/* Front-page building blocks shared by the Vera (/vera/) and Vita (/vita.html) landing pages:
   the early-access request form, the "where we are today" strip, feature cards, and the steps list.
   Each page sets its palette through body[data-brand]; vera.css and vita.css supply the base tokens. */

body[data-brand="Vera"] {
  --lp-ink: var(--ink);
  --lp-muted: var(--muted);
  --lp-accent: var(--forest);
  --lp-accent-2: var(--coral);
  --lp-paper: var(--paper);
  --lp-card: #fffefa;
  --lp-line: var(--line);
  --lp-wash: var(--leaf);
  --lp-display: "Playfair Display", Georgia, serif;
  --lp-body: "DM Sans", sans-serif;
}

body[data-brand="Vita"] {
  --lp-ink: var(--vita-ink);
  --lp-muted: var(--vita-muted);
  --lp-accent: var(--vita-forest);
  --lp-accent-2: var(--vita-rust);
  --lp-paper: var(--vita-paper);
  --lp-card: var(--vita-white);
  --lp-line: var(--vita-line);
  --lp-wash: var(--vita-sky);
  --lp-display: var(--vita-display);
  --lp-body: var(--vita-body);
}

.lp-section {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 8px;
  color: var(--lp-ink);
  font-family: var(--lp-body);
}

/* Inside Vera's page container the section already has the page margins. */
.page-shell .lp-section {
  width: 100%;
}

/* The Features pages open with a page title instead of a hero. */
.lp-page-top {
  padding-top: 44px;
}

.lp-page-top h1 {
  margin: 0 0 14px;
  max-width: 24ch;
  font-family: var(--lp-display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500;
  line-height: 1.12;
}

.vera-nav a[aria-current="page"],
.vita-nav a[aria-current="page"] {
  color: var(--lp-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.lp-kicker {
  margin: 0 0 10px;
  color: var(--lp-accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lp-section h2 {
  margin: 0 0 12px;
  max-width: 22ch;
  font-family: var(--lp-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.15;
}

.lp-section-lede {
  max-width: 62ch;
  margin: 0 0 32px;
  color: var(--lp-muted);
}

/* Early-access request form */
.lp-request {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 22px 0 0;
}

.lp-request-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lp-request input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--lp-line);
  border-radius: 2px;
  padding: 0 14px;
  color: var(--lp-ink);
  background: var(--lp-card);
  font: 400 16px var(--lp-body);
}

.lp-request button {
  min-height: 48px;
  border: 1px solid var(--lp-accent);
  border-radius: 2px;
  padding: 0 22px;
  color: #fff;
  background: var(--lp-accent);
  font: 700 14px var(--lp-body);
  cursor: pointer;
}

.lp-request button:hover:not(:disabled),
.lp-request button:focus-visible {
  filter: brightness(1.12);
}

.lp-request button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.lp-request .lp-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lp-request-note,
.lp-request-status {
  margin: 0;
  color: var(--lp-muted);
  font-size: 13px;
  line-height: 1.5;
}

.lp-request-status {
  min-height: 1.5em;
  color: var(--lp-ink);
  font-weight: 600;
}

.lp-request-status[data-state="error"] {
  color: var(--lp-accent-2);
}

.lp-request-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.lp-request-links a {
  color: var(--lp-accent);
  text-underline-offset: 3px;
}

/* "Where we are today" */
.lp-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--lp-line);
  background: var(--lp-card);
}

.lp-stage > div {
  padding: 22px 24px;
  border-right: 1px solid var(--lp-line);
}

.lp-stage > div:last-child {
  border-right: 0;
}

.lp-stage strong {
  display: block;
  margin-bottom: 4px;
  color: var(--lp-accent);
  font-family: var(--lp-display);
  font-size: 20px;
  font-weight: 500;
}

.lp-stage span {
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Feature cards */
.lp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--lp-line);
  background: var(--lp-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.lp-card:hover,
.lp-card:focus-within {
  border-color: var(--lp-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.lp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--lp-accent);
  background: var(--lp-wash);
}

.lp-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-chip {
  padding: 3px 9px;
  border: 1px solid var(--lp-accent);
  border-radius: 999px;
  color: var(--lp-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lp-chip[data-status="planned"] {
  border-color: var(--lp-line);
  border-style: dashed;
  color: var(--lp-muted);
}

.lp-card h3 {
  margin: 4px 0 0;
  font-family: var(--lp-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.lp-card p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.lp-card a.lp-card-link {
  margin-top: auto;
  padding-top: 6px;
  color: var(--lp-accent);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.lp-card a.lp-card-link::after {
  position: absolute;
  inset: 0;
  content: "";
}

/* How it works */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lp-step;
}

.lp-steps li {
  position: relative;
  padding: 22px 20px 20px;
  border-top: 2px solid var(--lp-accent);
  background: var(--lp-card);
  counter-increment: lp-step;
}

.lp-steps li::before {
  display: block;
  margin-bottom: 10px;
  color: var(--lp-accent-2);
  content: "0" counter(lp-step);
  font: 700 12px var(--lp-body);
  letter-spacing: 0.12em;
}

.lp-steps strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--lp-display);
  font-size: 19px;
  font-weight: 500;
}

.lp-steps span {
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Request panel placed lower on the page */
.lp-request-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 36px;
  border: 1px solid var(--lp-line);
  background: var(--lp-card);
}

.lp-request-panel h2 {
  margin-bottom: 10px;
}

.lp-request-panel .lp-request {
  margin-top: 0;
  max-width: none;
}

@media (max-width: 900px) {
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-request-panel { grid-template-columns: 1fr; padding: 26px; }
}

@media (max-width: 700px) {
  .lp-section { width: min(100% - 32px, 1180px); padding-top: 52px; }
  .lp-stage { grid-template-columns: 1fr; }
  .lp-stage > div { border-right: 0; border-bottom: 1px solid var(--lp-line); }
  .lp-stage > div:last-child { border-bottom: 0; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-request button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-card { transition: none; }
  .lp-card:hover, .lp-card:focus-within { transform: none; }
}

/* ------------------------------------------------------------------------------------------------
   Features pages: soft hero, "Latest features" row, filter pills, and expandable cards in the style of a
   product "what's new" page. Markup: _includes/feature-explorer.html. Behavior: assets/js/landing.js.
   ------------------------------------------------------------------------------------------------ */

/* Illustrations (_includes/feature-art.html) take the page palette */
.fa { display: block; width: 100%; height: auto; }
.fa-card { fill: var(--lp-card); stroke: var(--lp-line); stroke-width: 1; }
.fa-bar { fill: var(--lp-wash); }
.fa-dot, .fa-ln, .fa-off { fill: var(--lp-line); }
.fa-leaf { fill: var(--lp-wash); }
.fa-ac { fill: var(--lp-accent); }
.fa-ac2 { fill: var(--lp-accent-2); }
.fa-ac-soft { fill: var(--lp-wash); stroke: var(--lp-accent); stroke-width: 1; }
.fa-white { fill: #fff; }
.fa-chip { fill: var(--lp-card); stroke: var(--lp-line); stroke-width: 1; }
.fa-chip-ac { fill: var(--lp-accent); stroke: none; }
.fa-chip-ac2 { fill: var(--lp-accent-2); stroke: none; }
.fa-chip-planned { fill: var(--lp-card); stroke: var(--lp-muted); stroke-dasharray: 4 3; }
.fa-text { font: 600 11px var(--lp-body); fill: var(--lp-ink); }
.fa-text-white { fill: #fff; }
.fa-big { font-size: 22px; }
.fa-math { font: italic 500 22px Georgia, "Times New Roman", serif; fill: var(--lp-ink); }
.fa-stroke-ac, .fa-stroke-ac2, .fa-stroke-ln, .fa-stroke-white { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fa-stroke-ac { stroke: var(--lp-accent); }
.fa-stroke-ac2 { stroke: var(--lp-accent-2); }
.fa-stroke-ln { stroke: var(--lp-line); }
.fa-stroke-white { stroke: #fff; }
.fa-thick { stroke-width: 3.5; }
.fa-nofill { fill: none; }
.fa-dash { fill: none; stroke: var(--lp-muted); stroke-width: 2.5; stroke-dasharray: 6 5; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.ft-hero {
  padding: 72px 24px 36px;
  background: linear-gradient(180deg, var(--lp-wash) 0%, var(--lp-paper) 100%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--lp-accent) 14%, var(--lp-paper)) 0%, var(--lp-paper) 100%);
  color: var(--lp-ink);
  font-family: var(--lp-body);
  text-align: center;
}

.ft-hero-inner { max-width: 760px; margin: 0 auto; }

.ft-hero h1 {
  margin: 0 0 14px;
  font-family: var(--lp-display);
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 500;
  line-height: 1.08;
}

.ft-hero-sub {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--lp-muted);
  font-size: 18px;
  line-height: 1.55;
}

.ft-hero .lp-request { margin: 28px auto 0; text-align: left; }
.ft-hero .lp-request-links { justify-content: center; }

/* Sections */
.ft-section {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 56px 0 8px;
  color: var(--lp-ink);
  font-family: var(--lp-body);
}

.page-shell .ft-section { width: 100%; }

.ft-section h2 {
  margin: 0 0 26px;
  font-family: var(--lp-display);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 500;
  text-align: center;
}

.ft-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ft-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 9px;
  border-radius: 999px;
  color: var(--lp-ink);
  background: color-mix(in srgb, var(--lp-line) 55%, var(--lp-card));
  font-size: 12.5px;
  font-weight: 600;
}

.ft-chip-icon { display: inline-grid; place-items: center; }
.ft-chip-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ft-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  color: var(--lp-ink);
  background: var(--lp-card);
  font: 700 14px var(--lp-body);
  text-decoration: none;
  cursor: pointer;
}

.ft-pill:hover, .ft-pill:focus-visible { border-color: var(--lp-accent); color: var(--lp-accent); }
.ft-pill-solid { border-color: var(--lp-accent); color: #fff; background: var(--lp-accent); }
.ft-pill-solid:hover, .ft-pill-solid:focus-visible { color: #fff; filter: brightness(1.12); }

/* Latest row */
.ft-latest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 26px;
  border: 1px solid var(--lp-line);
  border-radius: 24px;
  background: var(--lp-card);
  text-align: center;
}

.ft-big .ft-art { align-self: stretch; margin-bottom: 8px; }
.ft-big h3 { margin: 6px 12px 0; font-family: var(--lp-display); font-size: 24px; font-weight: 500; line-height: 1.2; }
.ft-big p { margin: 0 12px 8px; color: var(--lp-muted); }

/* Filters */
.ft-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 28px; }

.ft-filter {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  color: var(--lp-ink);
  background: transparent;
  font: 600 14px var(--lp-body);
  cursor: pointer;
}

.ft-filter:hover, .ft-filter:focus-visible { border-color: var(--lp-accent); }
.ft-filter[aria-pressed="true"] { border-color: var(--lp-accent); color: #fff; background: var(--lp-accent); }

/* Card grid */
.ft-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px 24px;
  border: 1px solid var(--lp-line);
  border-radius: 24px;
  background: var(--lp-card);
  cursor: pointer;
  scroll-margin-top: 90px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ft-card[hidden] { display: none; }
.ft-card:hover { border-color: var(--lp-accent); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07); transform: translateY(-2px); }

.ft-art { padding: 14px 18px; border-radius: 18px; background: var(--lp-wash); }

.ft-body { display: flex; flex-direction: column; gap: 4px; padding: 0 8px; }

.ft-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ft-status { color: var(--lp-muted); font-size: 12px; font-weight: 600; }
.ft-status[data-status="planned"] { font-style: italic; }

.ft-body h3 { margin: 10px 0 0; padding-right: 34px; font-family: var(--lp-display); font-size: 23px; font-weight: 500; line-height: 1.2; }

.ft-toggle {
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ft-toggle:focus-visible, .ft-nav-btn:focus-visible, .ft-close:focus-visible, .ft-pill:focus-visible, .ft-filter:focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 3px;
}

.ft-sub { margin: 4px 0 0; padding-right: 34px; color: var(--lp-muted); font-size: 14.5px; line-height: 1.5; }

.ft-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 24px;
  height: 24px;
  color: var(--lp-ink);
}

.ft-arrow svg, .ft-close svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ft-more { display: none; margin-top: 14px; }
.ft-desc { margin: 0 0 12px; color: var(--lp-ink); font-size: 16px; line-height: 1.6; }

.ft-points { margin: 0 0 4px; padding: 0; list-style: none; }

.ft-points li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 24px;
  color: var(--lp-muted);
  font-size: 15px;
  line-height: 1.5;
}

.ft-points li::before {
  position: absolute;
  top: 0.55em;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-accent-2);
  content: "";
}

.ft-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.ft-nav { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--lp-muted); font-size: 13px; font-weight: 600; }

.ft-nav-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--lp-line);
  border-radius: 50%;
  color: var(--lp-ink);
  background: var(--lp-card);
  font-size: 16px;
  cursor: pointer;
}

.ft-nav-btn:hover { border-color: var(--lp-accent); color: var(--lp-accent); }

.ft-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(30, 30, 30, 0.72);
  cursor: pointer;
}

/* Open card: spans two columns, picture left, text right */
.ft-card.is-open {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  cursor: default;
  border-color: var(--lp-accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: none;
  animation: ft-open 0.28s ease both;
}

.ft-card.is-open[data-direction="prev"] { --ft-from: -28px; }
.ft-card.is-open .ft-more { display: block; }
.ft-card.is-open .ft-arrow { display: none; }
.ft-card.is-open .ft-close { display: grid; }
.ft-card.is-open .ft-art { position: sticky; top: 90px; }
.ft-card.is-open .ft-body { padding: 6px 4px; }
.ft-card.is-open .ft-meta { padding-right: 46px; }

@keyframes ft-open {
  from { opacity: 0; transform: translateX(var(--ft-from, 28px)); }
  to { opacity: 1; transform: none; }
}

.ft-empty { text-align: center; color: var(--lp-muted); }

/* Without JavaScript every card shows its details and the filters are hidden */
html:not(.js) .ft-more { display: block; }
html:not(.js) .ft-filters, html:not(.js) .ft-arrow, html:not(.js) .ft-nav, html:not(.js) .ft-pill[data-open-feature] { display: none; }
html:not(.js) .ft-card { cursor: default; }

@media (max-width: 1000px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-latest { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 700px) {
  .ft-section { width: min(100% - 32px, 1180px); padding-top: 44px; }
  .ft-hero { padding: 52px 16px 28px; }
  .ft-grid { grid-template-columns: 1fr; }
  .ft-card.is-open { grid-column: auto; grid-template-columns: 1fr; }
  .ft-card.is-open .ft-art { position: static; }
  .ft-card.is-open .ft-body { padding: 4px 6px; }
  .ft-close { top: 24px; right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ft-card, .ft-card.is-open { transition: none; animation: none; }
  .ft-card:hover { transform: none; }
}

.lp-notice {
  margin: 22px auto 16px;
  max-width: 760px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #2b2230;
  font-size: 14px;
  line-height: 1.55;
  border-left: 4px solid var(--lp-accent, #d6657f);
}
