/* Verso — the home page. Hero, the mark drawing itself, the chapters and
   their figures, the gallery, the questions and the close. */

.home { padding-top: calc(var(--nav-h) + 26px); }

.section { padding: 92px 0; }
.section.band { background: var(--bg-alt); }
.section.wash { position: relative; overflow: hidden; }
.section.wash::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(60% 60% at 50% 0%, var(--accent-soft), transparent 72%);
  pointer-events: none;
}
.section > .wrap { position: relative; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

#walkthrough > .wrap { max-width: 1260px; }

/* ------------------------------------------------------------------ type -- */

.headline {
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  font-weight: 680;
}
.headline.center { text-align: center; }
.chapter-intro { max-width: 40rem; margin-bottom: 40px; }
.chapter-intro .lede { margin-top: 16px; }
.chapter-intro .eyebrow { display: block; margin-bottom: 12px; }
.section.chapter .figure-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-4);
  max-width: 38rem;
}
.chapter-guide-link { display: inline-block; margin-top: 22px; }

/* ------------------------------------------------------------------ hero -- */

#hero { padding-top: 26px; padding-bottom: 76px; }
.hero-in { display: grid; gap: 26px; justify-items: center; text-align: center; }

.hero-stage-wrap { width: min(640px, 100%); margin-inline: auto; cursor: pointer; }
.hero-name {
  font-size: clamp(31px, 5.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.034em;
  font-weight: 680;
  max-width: 20ch;
  margin-inline: auto;
}
.hero-lede {
  margin-top: 18px;
  max-width: 35rem;
  margin-inline: auto;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}
.hero-meta { font-size: 13.5px; color: var(--ink-4); }
.hero-meta b { font-weight: 620; color: var(--ink-3); }

.hero-copy.rv { opacity: 0; transform: translateY(14px); }
.hero-copy.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-reveal), transform 0.7s var(--ease-reveal);
}

/* -------------------------------------------------- the mark, animating -- */

.vlg {
  position: relative;
  width: 100%;
  aspect-ratio: 620 / 320;
  isolation: isolate;
}
.vlg-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  will-change: transform;
}
/* A page in the fan. Its face carries the same rules the app draws. */
.vlg-card {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: calc(var(--cr, 10px));
  background: var(--cbg, #fff);
  box-shadow: 0 1px 2px rgba(10, 20, 45, 0.16),
    0 14px 34px -10px rgba(10, 20, 45, 0.34);
  opacity: 0;
  overflow: hidden;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
}
.vlg-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 58%);
}
.vlg-rule {
  position: absolute;
  border-radius: 999px;
  background: var(--rc, #c3c7d2);
  transform-origin: left center;
  will-change: transform;
}
.vlg-blk {
  position: absolute;
  border-radius: 5px;
  background: linear-gradient(140deg, #98bcf2, #c9dbf8);
  transform-origin: center;
  will-change: transform, opacity;
  opacity: 0;
}
.vlg-plate {
  position: absolute;
  opacity: 0;
  border-radius: 22.37%;
  background: linear-gradient(163deg, #6e9cec 0%, #5789e2 20%, #3a6bc4 50%,
      #26478f 76%, #1b337a 100%);
  box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, 0.24),
    0 18px 44px -14px rgba(15, 28, 63, 0.6);
}
.vlg-gloss {
  position: absolute;
  opacity: 0;
  border-radius: 22.37%;
  pointer-events: none;
  background-image: linear-gradient(104deg, rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 62%);
  background-size: 260% 100%;
  background-position: var(--sweep, -120%) 0;
}
.vlg-glow {
  position: absolute;
  width: 420px;
  height: 300px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(34% 42% at 24% 60%, rgba(235, 153, 51, 0.24), transparent 70%),
    radial-gradient(40% 48% at 50% 42%, rgba(61, 128, 230, 0.3), transparent 72%),
    radial-gradient(34% 42% at 77% 60%, rgba(209, 74, 74, 0.22), transparent 70%);
  filter: blur(8px);
}
.vlg-word {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: baseline;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}
.vlg-word span { display: inline-block; opacity: 0; }
.vlg-tag {
  margin-left: 0.32em;
  padding: 0.16em 0.44em 0.2em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.29em;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(6px);
}
.vlg-cursor {
  position: absolute;
  width: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
}

/* -------------------------------------------------------------- features -- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(248px, 100%), 1fr));
  gap: 16px;
  margin-top: 44px;
}
.feature-card {
  padding: 24px 22px 26px;
  border-radius: var(--r-18);
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  box-shadow: var(--sh-low);
  transition: transform 0.28s var(--ease-reveal), box-shadow 0.28s var(--ease-reveal);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--sh-med); }
.card-glyph {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 12px -2px var(--accent-line);
}
.card-glyph svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 17.5px; letter-spacing: -0.02em; }
.feature-card p { margin-top: 8px; font-size: 14.8px; line-height: 1.55; color: var(--ink-2); }

/* -------------------------------------------------------- chapter stages -- */

.scene {
  margin-top: 8px;
  border-radius: var(--radius-card);
  padding: clamp(18px, 3vw, 40px);
  background: var(--sunken);
  border: 1px solid var(--hairline-soft);
}
.section.band .scene { background: var(--bg); }
.scene.plain { background: none; border: 0; padding: 0; }

.scene-split {
  display: grid;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .scene-split { grid-template-columns: 1fr 1fr; } }
.scene-split.flip > :first-child { order: 2; }
@media (max-width: 899px) { .scene-split.flip > :first-child { order: 0; } }

.point-list { display: grid; gap: 18px; margin-top: 4px; }
.point { display: flex; gap: 14px; }
.point .pn {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.point h3 { font-size: 16.5px; letter-spacing: -0.016em; }
.point p { margin-top: 5px; font-size: 14.8px; line-height: 1.55; color: var(--ink-2); }

/* A stage that holds one animated figure, centred, with room around it. */
.figure-stage {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: clamp(14px, 2.4vw, 26px);
  border-radius: var(--radius-media);
  background: var(--bg);
  border: 1px solid var(--hairline-soft);
  box-shadow: var(--sh-low);
  overflow: hidden;
}
.section.band .figure-stage { background: var(--bg-alt); }
.figure-stage > * { width: 100%; }

/* Three stages side by side under one heading. */
.trio {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio-item {
  border-radius: var(--radius-media);
  background: var(--bg);
  border: 1px solid var(--hairline-soft);
  padding: 22px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.section.band .trio-item { background: var(--bg-alt); }
.trio-item h3 { font-size: 16.5px; letter-spacing: -0.016em; }
.trio-item p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-top: 6px; }
/* A figure scales from --u, which grows with the column. In the one-column
   layout that column is wide, so a fixed height here amputates the figure.
   Give it a floor and let it take the room it needs. */
.trio-figure {
  min-height: 172px;
  border-radius: var(--r-14);
  background: var(--sunken);
  border: 1px solid var(--hairline-soft);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
}
.section.band .trio-figure { background: var(--bg); }

/* ------------------------------------------------------------ walkthrough -- */

.wt { margin-top: 36px; }
.wt-body { display: grid; gap: 22px; }
@media (min-width: 1000px) { .wt-body { grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: center; } }
.wt-steps { display: grid; gap: 6px; align-content: center; }
.wt-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 15px;
  border-radius: var(--r-12);
  text-align: left;
  width: 100%;
  color: var(--ink-3);
  transition: background 0.24s var(--smooth), color 0.24s var(--smooth);
  position: relative;
  overflow: hidden;
}
.wt-step:hover { background: var(--fill-1); color: var(--ink-2); }
.wt-step .ix {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 650;
  background: var(--fill-2);
  color: var(--ink-3);
  flex: none;
  transition: background 0.24s, color 0.24s;
}
.wt-step b { display: block; font-size: 15.5px; font-weight: 620; letter-spacing: -0.014em; color: inherit; }
.wt-step span { display: block; margin-top: 3px; font-size: 13.8px; line-height: 1.5; }
.wt-step[aria-selected="true"] { background: var(--fill-2); color: var(--ink); }
.wt-step[aria-selected="true"] .ix { background: var(--accent); color: var(--on-accent); }
.wt-step[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.wt-stage { min-width: 0; }
.wt-panel { display: none; }
.wt-panel.on { display: block; }

/* --------------------------------------------------------------- gallery -- */

.rail-wrap { margin-top: 38px; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 620px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--fill-3) transparent;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--fill-3); border-radius: 8px; }
.gallery-card { scroll-snap-align: center; }
.gallery-card .card-caption {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.gallery-card .card-caption b { color: var(--ink); font-weight: 620; }

/* --------------------------------------------------------------- privacy -- */

.shield {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 18px 44px -16px var(--accent-line);
}
.shield svg { width: 52px; height: 52px; }
.claims { display: grid; gap: 10px; }
.claim {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  font-size: 15px;
  font-weight: 560;
  box-shadow: var(--sh-low);
}
.claim > svg:first-child { width: 17px; height: 17px; color: var(--accent-ink); flex: none; }
.claim .tick { width: 16px; height: 16px; color: var(--green); margin-left: auto; flex: none; }

.banner-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  margin-top: 26px;
}
.banner-tile {
  padding: 20px 20px 22px;
  border-radius: var(--r-14);
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
}
.bt-glyph {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 13px;
}
.bt-glyph svg { width: 17px; height: 17px; }
.banner-tile h3 { font-size: 15.5px; letter-spacing: -0.015em; }
.banner-tile p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* ------------------------------------------------------------ what's free -- */

.tier-grid { display: grid; gap: 18px; margin-top: 38px; grid-template-columns: 1fr; }
@media (min-width: 840px) { .tier-grid { grid-template-columns: 1fr 1fr; } }
.tier {
  padding: 30px 30px 34px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  box-shadow: var(--sh-low);
}
.tier.pro { border-color: var(--accent-line); box-shadow: var(--sh-med); }
.tier-head { display: flex; align-items: center; gap: 12px; }
.tier-head h3 { font-size: 21px; letter-spacing: -0.022em; }
.tier-pill {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  background: var(--fill-2);
  color: var(--ink-3);
}
.tier.pro .tier-pill { background: var(--accent); color: var(--on-accent); }
.tier > p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.tier ul { list-style: none; margin-top: 20px; display: grid; gap: 11px; }
.tier li { display: flex; gap: 11px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tier li svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }
.tier.pro li svg { color: var(--accent-ink); }

/* ------------------------------------------------------------------- faq -- */

.faq-list { max-width: 780px; margin: 34px auto 0; }
.faq-item { border-bottom: 1px solid var(--hairline-soft); }
.faq-q {
  display: block;
  position: relative;
  width: 100%;
  padding: 19px 38px 19px 0;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.faq-q::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--ink-4);
  border-bottom: 1.8px solid var(--ink-4);
  transform: rotate(45deg);
  transition: transform 0.24s var(--smooth);
}
.faq-q[aria-expanded="true"]::after { transform: rotate(-135deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s var(--smooth); }
.faq-a > div { overflow: hidden; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  font-size: 15.8px;
  line-height: 1.68;
  color: var(--ink-2);
  padding-bottom: 20px;
}
.faq-a p + p { padding-top: 12px; }

/* --------------------------------------------------------------- closing -- */

.closing { text-align: center; padding-bottom: 104px; }
.closing-stage { width: min(560px, 100%); margin: 0 auto 10px; }
.closing h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 680;
}
.closing .lede { margin: 18px auto 0; max-width: 34rem; }
.closing .hero-ctas { margin-top: 30px; }

/* ---------------------------------------------------------------- reveal -- */

@keyframes settle {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.rv.in { animation: settle 0.72s var(--ease-reveal) both; }

@media (prefers-reduced-motion: reduce) {
  .rv.in { animation: none; }
  .hero-copy.rv { opacity: 1; transform: none; }
  .feature-card:hover { transform: none; }
}
