/* Retestbook marketing site. One stylesheet, no frameworks, no external fonts. */

@font-face {
  font-family: "IBM Plex Serif";
  src: url("/assets/fonts/IBMPlexSerif-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("/assets/fonts/IBMPlexSerif-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans.woff") format("woff");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #152238;
  --ink-2: #24314a;
  --muted: #3f4957;
  --paper: #efece4;
  --paper-2: #e8e4da;
  --card: #fffcf7;
  --line: #d6d0c4;
  --line-2: #c4bdb0;
  --teal: #1a6b62;
  --teal-soft: #e1eeeb;
  --cream: #f3efe6;
  --on-ink-muted: #d4cfc4;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --wrap: 1240px;
  --gutter: 24px;
  --header-h: 116px;
  --section: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-phone: 0 28px 64px rgba(21, 34, 56, 0.24), 0 6px 16px rgba(21, 34, 56, 0.12);
  --shadow-card: 0 1px 2px rgba(21, 34, 56, 0.04), 0 10px 30px rgba(21, 34, 56, 0.06);
  --shadow-lift: 0 2px 4px rgba(21, 34, 56, 0.05), 0 20px 44px rgba(21, 34, 56, 0.13);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}
h1, h2 { text-wrap: balance; }

p { margin: 0 0 1em; max-width: 66ch; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { left: 8px; color: var(--cream); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}

.section { padding: var(--section) 0; }
.section-head { margin-bottom: 32px; }
.section-head h2,
.forms-copy h2,
.band h2 {
  font-size: clamp(31px, 2.2vw + 22px, 46px);
  line-height: 1.1;
}
.section-head .lead {
  margin: 14px 0 0;
  color: var(--muted);
}
.section-alt { background: var(--paper-2); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 236, 228, 0.95);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .site-header {
    background: rgba(239, 236, 228, 0.82);
    -webkit-backdrop-filter: saturate(1.2) blur(14px);
    backdrop-filter: saturate(1.2) blur(14px);
  }
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--gutter) 0;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; }
.brand img { height: 34px; width: auto; }

.site-nav {
  order: 3;
  width: calc(100% + 2 * var(--gutter));
  margin: 8px calc(-1 * var(--gutter)) 0;
  border-top: 1px solid var(--line);
}
.site-nav ul {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 2px calc(var(--gutter) - 10px);
  list-style: none;
  white-space: nowrap;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: rgba(21, 34, 56, 0.07); }

/* App Store badge, built in CSS: black badge, white text, Apple logo */

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 56px;
  padding: 0 20px 0 15px;
  background: #000;
  color: #fff;
  border: 1px solid #a6a6a6;
  border-radius: 12px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, var(--sans);
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  flex-shrink: 0;
}
.appstore:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}
.appstore svg { width: 28px; height: 28px; flex-shrink: 0; fill: #fff; margin-top: -2px; }
.appstore .as-text { display: flex; flex-direction: column; gap: 3px; }
.appstore .as-small { font-size: 12px; font-weight: 500; letter-spacing: 0.01em; }
.appstore .as-big { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.appstore-sm { height: 44px; padding: 0 13px 0 11px; gap: 7px; border-radius: 10px; box-shadow: none; }
.appstore-sm svg { width: 20px; height: 20px; }
.appstore-sm .as-small { font-size: 9.5px; }
.appstore-sm .as-big { font-size: 17px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.btn:hover {
  color: var(--cream);
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(21, 34, 56, 0.22);
}


/* Store badges row: App Store plus Android beta (same size and radius) */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.android-beta svg { width: 30px; height: 30px; margin-top: 0; }
.android-beta:hover { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(61, 220, 132, 0.45); }
.beta-note { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.band .beta-note { color: var(--on-ink-muted); }
.band .badges { margin-top: 4px; }
.cta-row .trial-note { flex-basis: 100%; }
@media (min-width: 1100px) { .cta-row .trial-note { flex-basis: auto; } }
@media (max-width: 400px) {
  .badges .appstore { padding: 0 14px 0 12px; }
  .badges .as-big { font-size: 21px; }
}

/* Hero */

.hero { position: relative; padding: 36px 0 40px; overflow: hidden; overflow: clip; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 {
  font-size: clamp(38px, 8.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 15ch;
}
.hero .lede {
  margin: 18px 0 22px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

.perks { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.perk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
}
.perk-icon svg,
.feature .icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.trial-note { margin: 0; font-size: 16px; line-height: 1.4; color: var(--muted); }
.trial-note strong { display: block; color: var(--ink); font-size: 17px; }

.phone {
  position: relative;
  background: #0d1522;
  border-radius: 34px;
  padding: 8px;
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img {
  width: 100%;
  border-radius: 27px;
  background: var(--paper);
}
/* iPhone captures have empty space where the status bar was; trim it so every frame is the same height. */
.phone img.crop { aspect-ratio: 640 / 1137; object-fit: cover; object-position: 50% 71%; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26, 107, 98, 0.16), rgba(26, 107, 98, 0.05) 70%, transparent);
  pointer-events: none;
}
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 600 / 620;
  /* No 3D perspective here: a 3D layer is rasterized once and then resampled, which blurs the screenshots. */
  transition: transform 0.9s var(--ease);
}
.hero-stage .ph { position: absolute; }
.hero-stage .p-back { left: 3%; top: 7%; width: 45%; transform: rotate(-7deg); z-index: 1; }
.hero-stage .p-front { right: 5%; top: 0; width: 50%; z-index: 2; }
.hero-stage .p-back .phone { box-shadow: 0 20px 48px rgba(21, 34, 56, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hero-stage .p-front .phone { box-shadow: 0 36px 80px rgba(21, 34, 56, 0.32), 0 8px 20px rgba(21, 34, 56, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hero-stage .par { transform: translateY(var(--py, 0px)); transition: transform 0.25s linear; }
.hero-stage .p-back .par { --py: calc(var(--sy, 0) * -0.10px); }
.hero-stage .p-front .par { --py: calc(var(--sy, 0) * -0.22px); }

/* Gentle float, a few px, offset phases. Runs on the inner frame so it never fights the tilt or the parallax. */
.hero-stage .phone { animation: rb-float 7s ease-in-out infinite; }
.hero-stage .p-back .phone { animation-duration: 8s; animation-delay: -3s; }
.hero-stage .p-front .phone { animation-duration: 6.6s; animation-delay: -0.6s; }

@keyframes rb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes rb-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes rb-in-back {
  from { opacity: 0; transform: translateX(-40px) rotate(-13deg); }
  to { opacity: 1; transform: rotate(-7deg); }
}
@keyframes rb-in-front {
  from { opacity: 0; transform: translateY(48px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* Load animations, only once <html> has .js. Fill "backwards" so hover transforms still work afterwards. */
.js .hero-copy > * { animation: rb-rise 0.8s var(--ease) backwards; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.07s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.14s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.22s; }
.js .hero-copy > :nth-child(5) { animation-delay: 0.3s; }
.js .hero-copy > :nth-child(6) { animation-delay: 0.36s; }
.js .perks li { animation: rb-rise 0.7s var(--ease) backwards; }
.js .perks li:nth-child(1) { animation-delay: 0.3s; }
.js .perks li:nth-child(2) { animation-delay: 0.38s; }
.js .perks li:nth-child(3) { animation-delay: 0.46s; }
.js .hero-stage .p-back { animation: rb-in-back 1.05s var(--ease) 0.25s backwards; }
.js .hero-stage .p-front { animation: rb-in-front 1.1s var(--ease) 0.45s backwards; }

/* Scroll reveal. Hidden only while .js is set and the element has not been revealed. */
.js .reveal {
  transition:
    opacity 0.7s var(--ease) var(--d, 0s),
    transform 0.7s var(--ease) var(--d, 0s),
    box-shadow 0.25s var(--ease);
}
.js .reveal:not(.in) { opacity: 0; transform: translateY(22px); }
.js .reveal.done {
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
/* Safety net if the page script never runs: show everything after 2.5s. */
.js:not(.js-ready) .reveal:not(.in) { animation: rb-failsafe 0.01s linear 2.5s forwards; }
@keyframes rb-failsafe { to { opacity: 1; transform: none; } }

/* How it works */

#how { overflow: hidden; overflow: clip; }
.how-grid { display: grid; gap: 40px; align-items: center; }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
}
.step h3 { font-size: 23px; line-height: 1.25; margin: 6px 0 4px; }
.step p { margin: 0; color: var(--muted); }

/* Form fill illustration: a stylized paper form, not an app screen */

.fill { margin: 0; }
.fill figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--muted); text-align: center; }
.fill-card {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 22px 20px 24px;
  background: #fffdf8;
  border-radius: 6px;
  /* the first two layers are the paper's second page peeking out */
  box-shadow: 8px 8px 0 0 #f4f0e7, 8px 8px 0 1px rgba(21, 34, 56, 0.07), 0 24px 60px rgba(21, 34, 56, 0.14), 0 4px 12px rgba(21, 34, 56, 0.06);
  transform: rotate(-0.8deg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.fill-card:hover { transform: rotate(0deg) translateY(-4px); }
.fc-head { text-align: center; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.fc-agency { display: block; font-size: 15px; line-height: 1.35; color: var(--muted); }
.fc-title { display: block; margin: 2px 0; font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.2; color: var(--ink); }
.fc-sub { display: block; font-size: 15px; line-height: 1.35; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); }
.fc-grid { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid #cfc7b7; }
.fc-cell {
  padding: 8px 10px 9px;
  border-right: 1px solid #cfc7b7;
  border-bottom: 1px solid #cfc7b7;
  min-width: 0;
}
.fc-wide { grid-column: 1 / -1; }
.fc-l { display: block; font-size: 15px; line-height: 1.3; color: var(--muted); }
.fc-v { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: 28px; font-size: 17px; line-height: 1.35; color: var(--ink-2); }
.fv {
  display: inline-block;
  font-weight: 600;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fv.pass { letter-spacing: 0.04em; }
.fc-off { color: var(--muted); margin-left: 6px; }
.box {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-2);
  border-radius: 2px;
  flex-shrink: 0;
}
.fv.x { position: absolute; inset: 1px; }
.fv.x::before,
.fv.x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 2.5px;
  margin: -1.25px 0 0 -8.5px;
  background: var(--teal);
  border-radius: 2px;
  transform: rotate(45deg);
}
.fv.x::after { transform: rotate(-45deg); }
.fc-sign { position: relative; display: grid; gap: 4px; margin-top: 16px; padding-right: 150px; }
.fc-line { display: block; height: 34px; border-bottom: 1.5px solid var(--ink-2); }
.stamp {
  position: absolute;
  right: 0;
  bottom: -6px;
  padding: 6px 12px;
  border: 2.5px solid var(--teal);
  border-radius: 8px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-7deg);
  background: rgba(255, 253, 248, 0.85);
}

/* The fill plays once when it comes into view. Values are hidden only after site.js arms the card. */
.fill.armed:not(.play) .fv:not(.x) { clip-path: inset(0 100% 0 0); }
.fill.armed:not(.play) .fv.x,
.fill.armed:not(.play) .stamp { opacity: 0; }
.fill.play .fv { animation: rb-type 0.55s steps(var(--n, 4), end) calc(var(--i) * 0.42s + 0.5s) backwards; }
.fill.play .fv.x { animation: rb-mark 0.35s var(--ease) calc(var(--i) * 0.42s + 0.5s) backwards; }
.fill.play .stamp { animation: rb-stamp 0.55s var(--ease) 4.6s backwards; }
@keyframes rb-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rb-mark { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
@keyframes rb-stamp {
  0% { opacity: 0; transform: translateX(-12%) rotate(-14deg) scale(1.3); }
  70% { opacity: 1; transform: rotate(-6deg) scale(0.97); }
  100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}

/* What you get */

.feat-grid { display: grid; gap: 40px; align-items: center; }
.feat-shot { display: none; }
.features {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  background: var(--card);
  border-radius: 16px;
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-card);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal);
}
.feature h3 { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* Forms */

.forms-grid { display: grid; gap: 32px; align-items: start; }
.forms-copy h2 { margin-bottom: 18px; }
.forms-copy p:not(.eyebrow) { color: var(--muted); }
.forms-copy .request { margin: 22px 0 0; color: var(--ink); }
.request a { font-weight: 600; }
.num {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--teal);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 5px 4px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}
.chips .n {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
  text-align: center;
  color: var(--ink-2);
}
.chips .sw { border-color: var(--teal); box-shadow: inset 0 0 0 0.5px var(--teal); }
.chips .sw .n { background: var(--teal); color: #fff; }
.legend { display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--muted); margin: 16px 0 0; max-width: none; }
.legend .swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--teal); flex-shrink: 0; }

.formlist {
  margin-top: 20px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.formlist > summary {
  cursor: pointer;
  min-height: 56px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  transition: background-color 0.2s var(--ease);
}
.formlist > summary:hover { background: rgba(21, 34, 56, 0.03); }
.formlist > summary::-webkit-details-marker { display: none; }
.formlist > summary::after,
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.formlist[open] > summary::after,
.faq details[open] summary::after { transform: translateY(25%) rotate(225deg); }
.formlist-body {
  padding: 2px 20px 22px;
  columns: 1;
  column-gap: 32px;
  border-top: 1px solid var(--line);
}
.formlist-body section { break-inside: avoid; padding-top: 14px; }
.formlist-body h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0; }
.formlist-body ul { margin: 2px 0 0; padding: 0; list-style: none; }
.formlist-body li { font-size: 15px; color: var(--muted); padding: 2px 0; line-height: 1.45; }
.formlist-body .sw { color: var(--teal); font-weight: 600; }

/* FAQ */

.faq-grid { display: grid; gap: 8px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-of-type { border-top: 1px solid var(--line-2); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  padding: 14px 2px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  transition: color 0.2s var(--ease);
}
.faq summary:hover { color: var(--teal); }
.faq summary::-webkit-details-marker { display: none; }
.faq .answer { padding: 0 2px 20px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq details[open] .answer { animation: rb-open 0.35s var(--ease); }
@keyframes rb-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Pricing and final call to action */

.band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: var(--section) 0;
}
.band .crest {
  position: absolute;
  left: -140px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  opacity: 0.08;
  pointer-events: none;
}
.band-grid { position: relative; display: grid; gap: 36px; align-items: center; }
.band h2 { color: var(--cream); max-width: 16ch; }
.band-copy > p:not(.eyebrow):not(.beta-note) { color: var(--on-ink-muted); font-size: 19px; max-width: 32em; margin: 16px 0 26px; }
.band .eyebrow { color: #a8d8d0; }
.band .appstore { border-color: #c9c9c9; }
.band :focus-visible { outline-color: #a8d8d0; }

.price-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}
.price-card:hover { transform: translateY(-4px); }
.price-card .plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}
.price-card .trial {
  font-family: var(--sans);
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 5px 12px;
}
.prices { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.prices .where { font-weight: 600; font-size: 18px; }
.prices .where small { display: block; font-size: 15px; color: var(--muted); font-weight: 400; line-height: 1.45; }
.prices .amount { font-family: var(--serif); font-size: 29px; font-weight: 600; white-space: nowrap; letter-spacing: -0.02em; }
.prices .amount span { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.included { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.included li { position: relative; padding-left: 28px; color: var(--ink-2); line-height: 1.45; font-size: 17px; }
.included li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.fine { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 18px 0 0; }

/* Footer */

.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 14px; }
.footer-inner .brand img { height: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }
.footer-links a:hover { color: var(--teal); }
.made-by { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 0; font-size: 16px; color: var(--muted); }
.made-by img { width: 28px; height: 28px; border-radius: 7px; }
.made-by strong { color: var(--ink); font-weight: 600; }
.footer-meta { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; max-width: none; }

/* Privacy and simple pages */

.page-head { padding: 52px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 3vw + 24px, 56px); line-height: 1.1; }
.page-head p { margin: 14px 0 0; color: var(--muted); }
.page-head .eyebrow { margin: 0 0 12px; color: var(--teal); }
.narrow,
.prose {
  max-width: calc(68ch + 2 * var(--gutter));
}
.prose { padding-top: 40px; padding-bottom: 88px; }
.prose p { max-width: none; }
.prose p,
.prose li { color: var(--muted); }
.prose h2 { font-size: clamp(26px, 1vw + 22px, 32px); line-height: 1.2; margin: 56px 0 16px; }
.prose h3 { font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: 0; margin: 36px 0 10px; }
.prose ul { padding-left: 24px; margin: 0 0 1.1em; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose code { font-size: 0.9em; background: var(--paper-2); border-radius: 5px; padding: 1px 6px; overflow-wrap: anywhere; }

.notfound { padding: 88px 0 112px; text-align: left; }
.notfound h1 { font-size: clamp(38px, 8vw, 58px); line-height: 1.1; margin-bottom: 18px; }
.notfound p { font-size: 20px; color: var(--muted); max-width: 34em; }

/* Small phones */

@media (max-width: 639px) {
  .hero { padding-bottom: 8px; }
  .hero-stage { max-width: 400px; aspect-ratio: 600 / 580; }
  .feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding: 18px 18px 20px; }
  .feature .icon { grid-row: 1 / span 2; margin: 2px 0 0; }
  .feature h3 { font-size: 20px; margin-bottom: 4px; }
}

@media (max-width: 400px) {
  .perks li { font-size: 17px; gap: 10px; }
  .site-nav ul { padding: 2px 6px; }
  .site-nav a { padding: 0 8px; font-size: 16px; }
  .fill-card { padding: 18px 14px 20px; }
  .fc-cell { padding: 7px 8px 8px; }
  .fc-v { font-size: 16px; }
  .fc-sign { padding-right: 132px; }
  .stamp { font-size: 15px; padding: 5px 9px; }
}

/* Tablet */

@media (min-width: 640px) {
  :root { --gutter: 32px; --section: 76px; }
  .hero-stage { max-width: 500px; }
  .features { grid-template-columns: 1fr 1fr; gap: 16px; }
  .formlist-body { columns: 2; }
  .price-card { padding: 32px 32px; max-width: 560px; }
  .fill-card { padding: 26px 28px 28px; }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .made-by, .footer-meta { grid-column: 1 / -1; }
}

/* Desktop */

@media (min-width: 960px) {
  :root { --header-h: 76px; --gutter: 40px; --section: 92px; }
  body { font-size: 19px; }
  .header-inner { flex-wrap: nowrap; padding: 12px var(--gutter); }
  .site-nav {
    order: 0;
    width: auto;
    margin: 0 auto 0 32px;
    border-top: 0;
  }
  .site-nav ul { padding: 0; gap: 4px; }
  .site-nav a { font-size: 17px; padding: 0 12px; }
  .brand img { height: 38px; }

  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; }
  .hero h1 { max-width: none; font-size: clamp(48px, 2.6vw + 22px, 60px); }
  .hero .lede { font-size: 21px; }
  .hero-stage { max-width: 620px; }
  .hero-stage .p-back { width: 47%; left: 1%; top: 8%; }
  .hero-stage .p-front { width: 53%; right: 2%; }

  .how-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; }
  .fill-card { padding: 28px 32px 30px; }
  .fc-cell { padding: 9px 14px 10px; }
  .fc-v { font-size: 18px; }

  .feat-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 64px; }
  .feat-shot { display: block; }
  .feat-shot .phone { transform: rotate(-3deg); }

  .forms-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; }
  .forms-side { padding-top: 6px; }

  .faq-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 72px; }
  .faq summary { font-size: 21px; }

  .band-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; }
  .band .crest { width: 560px; height: 560px; left: auto; right: -120px; bottom: -200px; }
  .price-card { padding: 34px 36px; }
}

@media (min-width: 1140px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .formlist-body { columns: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  .fill.armed .fv:not(.x) { clip-path: none; }
  .fill.armed .fv.x,
  .fill.armed .stamp { opacity: 1; }
  .hero-stage { transform: none; }
  .hero-stage .par { transform: none; }
  .feature:hover,
  .price-card:hover,
  .fill-card:hover,
  .appstore:hover,
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .hero-visual, .band .crest { display: none; }
  body { background: #fff; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
  .fill.armed .fv:not(.x) { clip-path: none; }
  .fill.armed .fv.x,
  .fill.armed .stamp { opacity: 1; }
}

.formlist-link { margin-top: 20px; }
.formlist-link a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  gap: 12px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.formlist-link a:hover { background: rgba(21, 34, 56, 0.03); color: var(--teal); }
.formlist-link a::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-15%) rotate(-45deg);
  flex-shrink: 0;
}
.forms-page { padding-top: 28px; padding-bottom: 88px; }
.forms-page .formlist-body {
  padding: 0;
  border-top: 0;
  margin-top: 28px;
}
.forms-page .formlist-body h2 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  line-height: 1.3;
}
.forms-page .forms-request { margin: 36px 0 0; color: var(--ink); }
.forms-page .forms-cta { margin: 28px 0 0; }
