/*
  The landing page's trust sections (/), after landing.css and landing-hero.css: privacy
  (lp-pv-), plans (lp-pl-), early access (lp-ea-) and questions (lp-faq-). Partials in
  templates/partials/landing/{privacy,plans,early,faq}.html.

  Bands, top to bottom, after the owner-app section's white: privacy #f5f5f7, plans white,
  early access #f5f5f7, questions white. The closing waitlist band after the questions is
  white too, on purpose: the questions run straight into the closing card, which carries
  its own colour. Only the foundation's tokens and
  radius system: tiles 28px, inner panels 18px, buttons and chips full pills.
  End states are the plain rules (reduced motion, no JS); start states and loops live in
  prefers-reduced-motion: no-preference blocks behind html.js.
*/

/* ------------------------------------------------------------------ privacy */
/* two-beat headlines break after their first beat (privacy, early access) */
.lp-pv .lp-h2, .lp-ea .lp-h2 { max-width: 9.5em; }
/* two-beat intros (plans, early access): the ink phrase moves to its own line as a whole
   rather than breaking inside it */
.lp-pl .lp-intro strong, .lp-ea .lp-intro strong { display: inline-block; }
.lp-pv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: var(--lp-gap) clamp(36px, 1.5vw + 20px, 72px);
}
.lp-pv-feature {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 1.6vw + 18px, 48px);
}
/* the featured statement: the biggest type in the section */
.lp-pv-figure {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 2.3rem + 4.4vw, 6.75rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  text-wrap: balance;
}
.lp-pv-figure-label {
  max-width: 26em;
  /* at least this much air above the panel, which sits on the tile's floor */
  margin-block: clamp(14px, 0.6vw + 10px, 20px) clamp(32px, 2vw + 20px, 56px);
  color: var(--text-2);
  font-size: var(--lp-fs-intro);
  font-weight: 500;
  line-height: 1.42;
  text-wrap: balance;
}
/* its picture: the owner app's own "delete the knowledge base" confirmation, the business's
   name typed in and the button ready (the end state; landing-trust motion types it) */
.lp-pv-sheet {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-block-start: auto;
  padding: clamp(20px, 1vw + 14px, 28px);
  border-radius: var(--lp-r-panel);
  background: var(--bg-alt);
  font-size: 15px;
  line-height: 1.45;
}
.lp-pv-sheet-head { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.lp-pv-sheet-head b { font-weight: 600; }
.lp-pv-sheet-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
}
.lp-pv-sheet-icon .icon { width: 18px; height: 18px; }
.lp-pv-sheet-body { color: var(--text-2); }
.lp-pv-sheet-label { margin-block-start: 4px; color: var(--text-2); font-size: 14px; }
.lp-pv-sheet-label b { color: var(--text); font-weight: 600; white-space: nowrap; }
.lp-pv-sheet-field {
  display: flex;
  align-items: center;
  justify-self: stretch;
  min-height: 48px;
  padding-inline: 14px;
  border: 1px solid var(--line);
  border-radius: var(--lp-r-input);
  background: var(--surface);
  font-size: 16px;
}
.lp-pv-typed {
  display: inline-block;
  max-width: 14em;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
}
.lp-pv-caret {
  flex: none;
  width: 1.5px;
  height: 1.2em;
  margin-inline-start: 1px;
  border-radius: 1px;
  background: var(--accent);
}
.lp-pv-sheet-act { margin-block-start: 6px; }
/* the app's destructive button, in the page's ink rather than a second accent colour */
.lp-pv-sheet-go {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: var(--lp-r-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
}

/* three statements beside the figure, hairlines between them */
.lp-pv-stats {
  display: grid;
  grid-auto-rows: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-pv-stat {
  display: grid;
  align-content: center;
  gap: 10px;
  padding-block: clamp(22px, 1.2vw + 14px, 34px);
  border-block-start: 1px solid var(--line);
}
.lp-pv-stat:first-child { border-block-start: 0; }
.lp-pv-stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
}
.lp-pv-stat-label { max-width: 27rem; color: var(--text-2); font-size: 17px; line-height: 1.55; }

/* four facts under one hairline: plain text, no cards */
.lp-pv-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px clamp(24px, 2.2vw, 44px);
  margin: clamp(56px, 3vw + 32px, 96px) 0 0;
  padding: clamp(32px, 1.5vw + 20px, 48px) 0 0;
  border-block-start: 1px solid var(--line);
  list-style: none;
}
.lp-pv-fact { display: grid; align-content: start; gap: 14px; }
.lp-pv-fact-icon { display: flex; color: var(--accent-ink); }
.lp-pv-fact-icon .icon { width: 28px; height: 28px; }
.lp-pv-fact p { color: var(--text-2); font-size: 16px; line-height: 1.55; }
.lp-pv-fact strong { color: var(--text); font-weight: 600; }

@media (max-width: 1068px) {
  .lp-pv-grid { grid-template-columns: minmax(0, 1fr); row-gap: clamp(32px, 4vw, 44px); }
  .lp-pv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
  .lp-pv-stat {
    align-content: start;
    padding: 8px clamp(18px, 2vw, 28px) 0;
    border-block-start: 0;
    border-inline-start: 1px solid var(--line);
  }
  .lp-pv-stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
  .lp-pv-stat-value { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); }
  .lp-pv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* tablet portrait: three columns get too narrow for the statements, so each one becomes a
   row under a hairline, the statement at the start and its line beside it */
@media (min-width: 735px) and (max-width: 899px) {
  .lp-pv-stats { grid-template-columns: minmax(0, 1fr); }
  .lp-pv-stat {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: baseline;
    gap: 8px clamp(28px, 4vw, 40px);
    padding: 24px 0;
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
  }
  .lp-pv-stat:first-child { padding-block-start: 0; border-block-start: 0; }
  .lp-pv-stat:last-child { padding-block-end: 0; }
  .lp-pv-stat-value { font-size: 2rem; }
}
@media (max-width: 734px) {
  .lp-pv-stats { grid-template-columns: minmax(0, 1fr); }
  .lp-pv-stat { padding: 24px 0; border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .lp-pv-stat:first-child { padding-block-start: 0; border-block-start: 0; }
  .lp-pv-stat:last-child { padding-block-end: 0; }
  .lp-pv-facts { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lp-pv-fact { grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
  .lp-pv-fact-icon .icon { width: 24px; height: 24px; }
}

/* the business's name types into the field, then the button wakes up (end state above) */
@media (prefers-reduced-motion: no-preference) {
  html.js .lp-pv-typed { transition: max-width 1.2s steps(14, end) 0.9s; }
  html.js .lp-pv-feature:not(.is-in) .lp-pv-typed { max-width: 0; }
  html.js .lp-pv-feature.is-in .lp-pv-caret { animation: lp-pv-blink 1.1s steps(1, end) 5; }
  html.js .lp-pv-sheet-go { transition: opacity 0.4s var(--lp-ease) 2.1s; }
  html.js .lp-pv-feature:not(.is-in) .lp-pv-sheet-go { opacity: 0.35; }
}
@keyframes lp-pv-blink {
  50% { opacity: 0; }
}

/* ------------------------------------------------------------------ plans */
/* the plans share rows (head, action, features) so they line up side by side; no price row
   before launch (owner decision 2026-10-16) */
.lp-pl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: var(--lp-gap);
  max-width: 1080px;
  margin-inline: auto;
}
.lp-pl-plan {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: clamp(22px, 0.8vw + 16px, 30px);
  padding: clamp(28px, 1.6vw + 18px, 48px);
}
/* the one to pick: a filled, wider tile lit from above in the brand's teal; the other one
   recedes to an outline */
.lp-pl-plan.is-rec {
  background:
    radial-gradient(90% 55% at 50% 0%, var(--lp-glow), transparent 75%),
    var(--lp-tile);
}
.lp-pl-plan:not(.is-rec) { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.lp-pl-head { display: grid; align-content: start; justify-items: start; gap: 10px; }
.lp-pl-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-block-end: 8px;
  padding: 0 12px;
  border-radius: var(--lp-r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
}
/* without a price, the plan's name is the column's big type */
.lp-pl-badge-none { visibility: hidden; }
.lp-pl-name {
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
}
.lp-pl-blurb {
  max-width: 24rem;
  color: var(--text-2);
  font-size: var(--lp-fs-tile);
  font-weight: 500;
  line-height: 1.42;
  text-wrap: pretty;
}
/* on the recommended plan's teal glow the secondary grey falls under AA, so it leans a
   little toward the ink there (darker in light mode, lighter in dark mode) */
.lp-pl-plan.is-rec .lp-pl-blurb { color: color-mix(in srgb, var(--text-2) 80%, var(--text)); }
.lp-pl-act { margin: 0; }
.lp-pl .lp-pl-cta { min-height: 48px; padding: 0 28px; font-size: 17px; }
/* the second plan's action: an outlined pill, so two filled buttons never sit side by side */
.lp-pl .lp-pl-cta-alt {
  border-color: var(--accent-ink);
  background: transparent;
  color: var(--accent-ink);
}
.lp-pl .lp-pl-cta-alt:hover { background: var(--accent-soft); }
.lp-pl-feats { padding-block-start: clamp(22px, 0.8vw + 16px, 30px); border-block-start: 1px solid var(--line); }
.lp-pl-feats-title { margin-block-end: 14px; font-size: 15px; font-weight: 600; }
.lp-pl-feats ul { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.lp-pl-feats li { display: flex; align-items: center; gap: 14px; font-size: 17px; line-height: 1.4; }
/* each feature's own icon, Apple's compare-column way, instead of a row of check marks */
.lp-pl-ficon { display: flex; flex: none; color: var(--accent-ink); }
.lp-pl-ficon .icon { width: 24px; height: 24px; }
/* a plan that includes a cheaper one lists only the rest beside it; on phones, where that
   plan comes second, it lists everything (these rows and the narrow title show there) */
.lp-pl-feats li.lp-pl-inh, .lp-pl-t-narrow { display: none; }
/* footnote marks stay legible at the plans' small sizes */
.lp-pl .lp-fn, .lp-faq .lp-fn { font-size: max(11px, 0.6em); }

/* under the plans: what both share, then the no-fee note */
.lp-pl-foot {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 1080px;
  margin: clamp(48px, 2.5vw + 28px, 72px) auto 0;
  text-align: center;
}
.lp-pl-both-title { font-family: var(--font); font-size: 17px; font-weight: 600; }
.lp-pl-both {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px clamp(28px, 2.4vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lp-pl-both li { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.45; }
.lp-pl-both .icon { flex: none; width: 22px; height: 22px; color: var(--accent-ink); }
.lp-pl-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-block-start: 10px;
  font-size: 17px;
  font-weight: 500;
  text-wrap: balance;
}
.lp-pl-note .icon { flex: none; width: 20px; height: 20px; color: var(--accent-ink); }
@media (max-width: 734px) {
  .lp-pl-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--lp-gap); }
  .lp-pl-plan { grid-row: auto; grid-template-rows: none; }
  .lp-pl .lp-pl-cta { width: 100%; }
  .lp-pl-badge-none { display: none; }
  .lp-pl-feats li.lp-pl-inh { display: flex; }
  .lp-pl-t-narrow { display: inline; }
  .lp-pl-t-wide { display: none; }
  .lp-pl-foot { justify-items: stretch; text-align: start; }
  .lp-pl-both { display: grid; justify-content: stretch; gap: 14px; }
  .lp-pl-note { justify-content: flex-start; align-items: flex-start; }
  .lp-pl-note .icon { margin-block-start: 3px; }
}

/* ------------------------------------------------------------------ early access */
/* the road to launch: one full-width stepper under the headline, no tile. Nodes sit at the
   inline start of their column, a hairline runs from each node to the next one (across
   the column gap), the current stage is filled and its stretch of track is lit. */
.lp-ea .lp-ea-stages {
  --ea-gap: clamp(28px, 3.2vw, 64px);
  --ea-node: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--ea-gap);
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.lp-ea-stage {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding-block-start: calc(var(--ea-node) + clamp(20px, 1vw + 12px, 28px));
}
.lp-ea-stage::before {
  content: "";
  position: absolute;
  inset-block-start: calc(var(--ea-node) / 2 - 1px);
  inset-inline-start: calc(var(--ea-node) + 12px);
  inset-inline-end: calc(12px - var(--ea-gap));
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.lp-ea-stage:last-child::before { display: none; }
/* the page is Hebrew (rtl): the lit stretch starts at the current node, on the right */
.lp-ea-stage.is-now::before { background: linear-gradient(to left, var(--accent), var(--line) 90%); }
.lp-ea-node {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: var(--ea-node);
  height: var(--ea-node);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-alt);
}
.lp-ea-stage.is-next .lp-ea-node { border-color: var(--accent); }
.lp-ea-stage.is-now .lp-ea-node {
  border-color: var(--accent);
  background: radial-gradient(circle, #fff 0 4px, var(--accent) 4.5px);
}
/* the stage labels are real content (when each stage happens): AA grey, the current one
   in the accent's ink */
.lp-ea-when { color: var(--text-2); font-size: 15px; font-weight: 600; line-height: 1.5; }
.lp-ea-stage.is-now .lp-ea-when { color: var(--accent-ink); }
.lp-ea-what {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.05rem + 1.05vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
.lp-ea-body { max-width: 22rem; margin-block-start: 4px; color: var(--text-2); font-size: 17px; line-height: 1.55; text-wrap: pretty; }

/* why join now: three perks in one centred column, then the call to action */
.lp-ea-join {
  max-width: 36rem;
  margin: clamp(72px, 3.5vw + 44px, 120px) auto 0;
}
.lp-ea-perks { display: grid; gap: clamp(26px, 1vw + 20px, 36px); margin: 0; padding: 0; list-style: none; }
.lp-ea-perk {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.lp-ea-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.lp-ea-icon .icon { width: 24px; height: 24px; }
.lp-ea-perk-copy { display: grid; gap: 4px; padding-block-start: 2px; }
.lp-ea-perk-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}
.lp-ea-perk p { color: var(--text-2); font-size: 17px; line-height: 1.55; }
.lp-ea-act { margin: clamp(40px, 2vw + 28px, 56px) 0 0; text-align: center; }
.lp-ea .lp-ea-cta { min-width: 240px; min-height: 48px; padding: 0 28px; font-size: 17px; }

/* phones: the stepper turns vertical, the track runs down from node to node */
@media (max-width: 734px) {
  .lp-ea .lp-ea-stages { grid-template-columns: minmax(0, 1fr); row-gap: 0; --ea-node: 24px; }
  .lp-ea-stage {
    gap: 4px;
    padding-block: 0 32px;
    padding-inline-start: calc(var(--ea-node) + 20px);
  }
  .lp-ea-stage:last-child { padding-block-end: 0; }
  .lp-ea-stage::before {
    inset-block: calc(var(--ea-node) + 6px) 4px;
    inset-inline: calc(var(--ea-node) / 2 - 1px) auto;
    width: 2px;
    height: auto;
  }
  .lp-ea-stage.is-now::before { background: linear-gradient(180deg, var(--accent), var(--line) 85%); }
  .lp-ea-node { inset-block-start: 1px; }
  .lp-ea-when { font-size: 14px; }
  .lp-ea-join { margin-block-start: 56px; }
  .lp-ea-perk { gap: 16px; }
  .lp-ea-icon { width: 44px; height: 44px; }
  .lp-ea-icon .icon { width: 21px; height: 21px; }
  .lp-ea .lp-ea-cta { width: 100%; }
}
/* the current stage breathes while the section is on screen (landing-trust.js: is-live) */
@media (prefers-reduced-motion: no-preference) {
  .lp-ea-stage.is-now .lp-ea-node::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--accent);
    opacity: 0;
    animation: lp-ea-ring 2.6s var(--lp-ease) infinite paused;
  }
  .lp-ea.is-live .lp-ea-stage.is-now .lp-ea-node::after { animation-play-state: running; }
}
@keyframes lp-ea-ring {
  0% { opacity: 0.45; box-shadow: 0 0 0 0 var(--accent); }
  70%, 100% { opacity: 0; box-shadow: 0 0 0 12px var(--accent); }
}

/* ------------------------------------------------------------------ questions */
.lp-faq .lp-faq-wrap { width: min(87.5vw, 760px); }
.lp-faq-list { border-block-end: 1px solid var(--line); }
.lp-faq-item { border-block-start: 1px solid var(--line); }
.lp-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(20px, 0.8vw + 15px, 28px);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.lp-faq-q-text { text-wrap: balance; }
/* a designed press instead of the browser's tap rectangle */
.lp-faq-q { -webkit-tap-highlight-color: transparent; }
.lp-faq-q:active { opacity: 0.6; }
.lp-faq-q::-webkit-details-marker { display: none; }
.lp-faq-q::marker { content: ""; }
/* "+" drawn with two bars; it turns into an "x" when the row is open */
.lp-faq-x {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--text-3);
}
.lp-faq-x::before,
.lp-faq-x::after {
  content: "";
  position: absolute;
  inset: 10px 2px;
  border-radius: 2px;
  background: currentColor;
}
.lp-faq-x::after { rotate: 90deg; }
.lp-faq-q:hover .lp-faq-x, .lp-faq-item[open] .lp-faq-x { color: var(--text); }
.lp-faq-item[open] .lp-faq-x { rotate: 45deg; }
.lp-faq-a { overflow: hidden; }
.lp-faq-a p {
  max-width: 38rem;
  padding-block-end: clamp(22px, 0.8vw + 16px, 30px);
  padding-inline-end: 46px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}
@media (max-width: 734px) {
  .lp-faq-q { gap: 16px; }
  .lp-faq-a p { padding-inline-end: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-faq-x { transition: rotate 0.35s var(--lp-ease-io), color 0.1s linear; }
  .lp-faq-q { transition: opacity 0.1s linear; }
  .lp-faq-item[open] .lp-faq-a p { animation: lp-faq-in 0.5s var(--lp-ease) both; }
  /* browsers that can animate to auto height open and close the row smoothly; the
     others get landing-trust.js's animation */
  @supports (interpolate-size: allow-keywords) {
    .lp-faq { interpolate-size: allow-keywords; }
    .lp-faq-item::details-content {
      block-size: 0;
      overflow-y: clip;
      transition:
        block-size 0.45s var(--lp-ease-io),
        content-visibility 0.45s allow-discrete;
    }
    .lp-faq-item[open]::details-content { block-size: auto; }
  }
}
@keyframes lp-faq-in {
  from { opacity: 0; translate: 0 -6px; }
}
