/* ============================================================
   Independent Books — landing page
   Minimalist light theme. No dependency, no infinite animation.
   The only motion is a short fade on scroll and a gentle
   pointer tilt on the hero mockup (transform-only, and the
   loop parks itself as soon as the pointer stops moving).
   Accent green matches the application's own UI (#2f653c).
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #f7f9f6;
  --surface: #ffffff;
  --surface-2: #fafbf9;
  --ink: #1b241f;
  --ink-soft: #404e46;
  /* Both secondary greys clear WCAG AA (4.5:1) against the page background,
     the white cards and the mint download panel. Hierarchy comes from size
     and weight rather than from washing the text out. */
  --muted: #55645c;
  --faint: #67756d;
  --line: #e4e9e3;
  --line-strong: #d1d9d2;
  --accent: #2f653c;
  --accent-dark: #24512f;
  --accent-soft: #eff5f0;
  --accent-line: #cfe0d2;
  --warn-soft: #fdfaf4;
  --warn-line: #ece0c8;
  --warn-ink: #8a6b33;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(22, 36, 27, 0.05);
  --shadow: 0 4px 16px rgba(22, 36, 27, 0.06);
  --shadow-lg: 0 16px 40px rgba(22, 36, 27, 0.09);
  --maxw: 1120px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.15rem); font-weight: 700; line-height: 1.14; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.03rem; font-weight: 640; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd { font-family: var(--mono); font-size: 0.86em; }
code {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 0.08em 0.36em;
  color: var(--accent-dark);
  word-break: break-word;
}
kbd {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0.05em 0.36em;
  color: var(--ink-soft);
  font-size: 0.78em;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--surface); color: var(--accent);
  padding: 0.6rem 1rem; border: 1px solid var(--line-strong); border-radius: 8px;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ============================================================
   header
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand:hover { text-decoration: none; }
.brand__logo { display: block; width: 36px; height: 36px; flex: 0 0 auto; }
.brand__text {
  display: inline-flex; flex-direction: column; line-height: 1;
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint);
}
.brand__text strong { font-size: 0.95rem; letter-spacing: 0.14em; color: var(--ink); }

.topnav { display: flex; gap: 1.4rem; margin-left: auto; font-size: 0.89rem; }
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--ink); text-decoration: none; }

/* ============================================================
   buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid transparent; border-radius: 9px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: -0.005em;
  padding: 0.58rem 1.05rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn--sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.btn--lg { padding: 0.72rem 1.25rem; font-size: 0.96rem; }

.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn--quiet { background: var(--surface); color: var(--ink-soft); border-color: var(--line-strong); }
.btn--quiet:hover { background: var(--surface-2); border-color: var(--faint); color: var(--ink); }

/* the download button: the page's one loud element */
.btn--download {
  width: 100%; max-width: 440px;
  justify-content: flex-start; gap: 0.85rem;
  padding: 0.85rem 1.15rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.btn--download .btn__icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
}
.btn--download .btn__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.btn--download .btn__text b { font-size: 1rem; font-weight: 650; }
.btn--download .btn__text small { font-size: 0.75rem; font-family: var(--mono); opacity: 0.86; }

/* ============================================================
   layout shell
   ============================================================ */
main { display: block; }
section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.2rem, 6.5vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
}
section[id] { scroll-margin-top: 76px; }

.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 0.9rem; font-weight: 600;
}
.lede { color: var(--muted); font-size: 1.02rem; max-width: 62ch; }
.lede strong, .straight-talk strong { color: var(--ink); font-weight: 640; }
.section-head { max-width: 720px; margin-bottom: 2.2rem; }
.section-head h2 { margin-bottom: 0.7rem; }

/* ============================================================
   hero
   ============================================================ */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 3.5rem); align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.hero__copy { min-width: 0; }
.hero h1 { margin-bottom: 1.1rem; max-width: 20ch; }
.hero .lede { margin-bottom: 1.1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.2rem; }

/* highlighter mark on the headline phrase */
.hl { color: var(--accent-dark); box-shadow: inset 0 -0.3em 0 rgba(47, 101, 60, 0.18); }

/* the free badge in the hero */
.free-note {
  display: inline-block; max-width: 52ch; margin: 0 0 1.8rem;
  padding: 0.6rem 0.95rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.91rem; color: var(--muted);
}
.free-note strong { color: var(--accent-dark); font-weight: 700; }

.hero__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem 0.5rem; list-style: none; margin: 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}
.hero__facts li { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.hero__facts b { font-size: 0.95rem; font-weight: 680; color: var(--ink); }
.hero__facts span { font-size: 0.76rem; color: var(--faint); }

/* ---------- hero mockup: static 3D arrangement ---------- */
.hero__visual { min-width: 0; perspective: 1250px; perspective-origin: 50% 42%; }
.stage {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--tx, 4deg)) rotateY(var(--ty, -10deg));
  will-change: transform;
}

.app-window {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.app-ribbon {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: #fff;
}
.app-brand {
  display: inline-flex; flex-direction: column; line-height: 1;
  font-size: 0.5rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.82;
}
.app-brand strong { font-size: 0.78rem; letter-spacing: 0.14em; opacity: 1; }
.app-menu {
  display: flex; align-items: center; gap: 0.45rem;
  flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap;
  font-size: 0.6rem; opacity: 0.92;
}
.app-menu i {
  font-style: normal; font-family: var(--mono); font-size: 0.54rem;
  background: rgba(255, 255, 255, 0.18); border-radius: 4px; padding: 0.04rem 0.24rem;
}
.app-titlebar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.5rem 0.9rem;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.app-titlebar strong { font-size: 0.8rem; }
.app-titlebar span { font-size: 0.62rem; color: var(--faint); font-family: var(--mono); white-space: nowrap; }
.app-body { display: grid; grid-template-columns: 122px minmax(0, 1fr); min-height: 224px; }
.app-side {
  list-style: none; margin: 0; padding: 0.6rem 0;
  border-right: 1px solid var(--line); background: var(--surface-2);
}
.app-side li { padding: 0.34rem 0.85rem; font-size: 0.68rem; color: var(--muted); }
.app-side li.is-active {
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 620;
  border-left: 2px solid var(--accent);
}
.app-main { padding: 0.8rem 0.95rem; min-width: 0; }
.app-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 86px 86px;
  gap: 0.4rem; padding: 0.32rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.67rem; color: var(--muted);
}
.app-row span:not(:first-child) { text-align: right; color: var(--accent-dark); }
.app-row--head {
  font-size: 0.57rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); border-bottom-color: var(--line-strong);
}
.app-row--head span:not(:first-child) { color: var(--faint); }
.app-row--total {
  border-bottom: 0; border-top: 1px solid var(--line-strong);
  margin-top: 0.35rem; padding-top: 0.45rem; font-weight: 620;
}
.app-row--total span:first-child { color: var(--ink); }
.app-footer {
  display: flex; gap: 0.9rem; align-items: center;
  padding: 0.42rem 0.9rem;
  background: var(--surface-2); border-top: 1px solid var(--line);
  font-size: 0.6rem; color: var(--faint);
}
.app-footer i {
  font-style: normal; font-family: var(--mono); color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 0.02rem 0.24rem; margin-right: 0.28rem;
}
.app-footer__tail { margin-left: auto; }

.float-card {
  position: absolute; display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.float-card__label { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
.float-card__value { font-family: var(--mono); font-size: 0.92rem; color: var(--accent-dark); }
.float-card--voucher { left: -7%; bottom: 13%; transform: translateZ(96px) rotateY(8deg); }
.float-card--balance { right: -5%; top: 7%; transform: translateZ(72px) rotateY(-7deg); }

/* ============================================================
   download (the highlighted section)
   ============================================================ */
.download { max-width: none; padding-left: 0; padding-right: 0; }
.download__card {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.6rem, 3.5vw, 2.75rem);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.download__head { margin-bottom: 1.9rem; max-width: 660px; }
.download__head h2 { margin-bottom: 0.8rem; }

.download__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem); align-items: start;
}
.download__note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); max-width: 52ch; }
.download__note strong { color: var(--ink); }

.download__meta {
  margin: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.download__meta > div {
  display: grid; grid-template-columns: 82px 1fr; gap: 0.8rem;
  padding: 0.6rem 0.9rem; align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.download__meta > div:last-child { border-bottom: 0; }
.download__meta dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.download__meta dd { margin: 0; font-family: var(--mono); font-size: 0.82rem; color: var(--ink-soft); }
.download__hash { grid-template-columns: 82px 1fr auto !important; }
.download__hash dd { font-size: 0.7rem; word-break: break-all; }
.copy {
  align-self: center; cursor: pointer;
  font: inherit; font-size: 0.72rem; font-weight: 600;
  padding: 0.22rem 0.6rem; border-radius: 7px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-soft);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.copy:hover { border-color: var(--faint); }
.copy.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }
/* the three "what free actually means" points */
.free-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--accent-line);
}
.free-point b { display: block; font-size: 0.95rem; font-weight: 680; color: var(--accent-dark); margin-bottom: 0.25rem; }
.free-point p { font-size: 0.86rem; color: var(--muted); }

.steps {
  list-style: none; margin: 2rem 0 0; padding: 1.6rem 0 0;
  border-top: 1px solid var(--accent-line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem;
}
.steps li { display: flex; gap: 0.7rem; min-width: 0; }
.steps__n {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--accent-line);
  color: var(--accent-dark); font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
}
.steps b { display: block; font-size: 0.93rem; margin-bottom: 0.15rem; }
.steps p { font-size: 0.85rem; color: var(--muted); }

.download__already {
  margin-top: 1.6rem; padding-top: 1.2rem;
  border-top: 1px dashed var(--accent-line);
  font-size: 0.85rem; color: var(--muted);
}
.download__already strong { color: var(--ink); }

/* ============================================================
   feature cards
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 0.9rem; }
.card {
  padding: 1.3rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.89rem; color: var(--muted); }
.card p code { font-size: 0.82em; }

.straight-talk {
  margin-top: 1.2rem; padding: 1.25rem 1.4rem;
  background: var(--warn-soft); border: 1px solid var(--warn-line);
  border-radius: var(--radius);
}
.straight-talk h3 { color: var(--warn-ink); margin-bottom: 0.5rem; font-size: 0.96rem; }
.straight-talk p { font-size: 0.89rem; color: var(--muted); }

/* ============================================================
   automation — the section meant to be noticed
   A single raised panel with a green rule on top and a soft
   mint wash that fades into white. Emphasis comes from that
   frame and the copy, not from movement.
   ============================================================ */
.auto-shell {
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 26%);
  border: 1px solid var(--accent-line);
  border-top: 3px solid var(--accent);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.auto-shell .section-head { max-width: 680px; margin-bottom: 1.8rem; }

.auto-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem; margin: 0 0 1.8rem; padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.auto-step { min-width: 0; }
.auto-step__n {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; margin-bottom: 0.55rem;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 700;
}
.auto-step h3 { font-size: 0.97rem; margin-bottom: 0.2rem; }
.auto-step p { font-size: 0.85rem; color: var(--muted); }

.auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 0.9rem; }
.auto-card {
  padding: 1.25rem 1.2rem 1.3rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.auto-card:hover { border-color: var(--line-strong); }
.auto-card h3 { margin-bottom: 0.45rem; font-size: 1rem; }
.auto-card p { font-size: 0.87rem; color: var(--muted); margin-bottom: 0.8rem; }
.tag {
  display: inline-block; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.mail {
  margin-top: 1.4rem;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem; align-items: center;
  padding: clamp(1.3rem, 2.8vw, 1.9rem);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
}
.mail__copy h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.mail__copy p { color: var(--muted); font-size: 0.93rem; }
.mail__action { display: flex; flex-direction: column; gap: 0.6rem; }
.mail__action .btn { justify-content: center; }

.email-copy {
  display: flex; align-items: center; gap: 0.55rem; cursor: pointer;
  font: inherit; text-align: left; padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface-2); color: var(--ink-soft);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.email-copy:hover { border-color: var(--faint); }
.email-copy__label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
.email-copy__value { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); word-break: break-all; }
.email-copy__hint {
  margin-left: auto; font-size: 0.68rem; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line-strong); border-radius: 7px; padding: 0.15rem 0.5rem; color: var(--muted);
}
.email-copy.is-done { border-color: var(--accent); }
.email-copy.is-done .email-copy__hint { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   faq
   ============================================================ */
.faq__list { display: grid; gap: 0.6rem; max-width: 860px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 0.95rem 2.8rem 0.95rem 1.1rem;
  font-size: 0.97rem; font-weight: 620;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; translate: 0 -50%;
  font-family: var(--mono); font-size: 1.1rem; line-height: 1; color: var(--accent);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.1rem 1.1rem; font-size: 0.91rem; color: var(--muted); max-width: 78ch; }

/* ============================================================
   footer
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: clamp(2.2rem, 4.5vw, 3.2rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
}
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem; max-width: var(--maxw); margin: 0 auto;
  padding-bottom: 1.8rem; border-bottom: 1px solid var(--line);
}
.footer__brandline { display: flex; align-items: center; gap: 0.55rem; }
.footer__brandline .brand__logo { width: 32px; height: 32px; }
.footer__brand p { margin-top: 0.75rem; color: var(--muted); font-size: 0.87rem; max-width: 46ch; }
.footer__nav { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.89rem; }
.footer__nav a { color: var(--muted); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  max-width: var(--maxw); margin: 1.3rem auto 0;
  font-size: 0.78rem; color: var(--faint);
}

/* Sections are never faded in. Content must not depend on a transition
   running: a scroll-reveal that starts at opacity 0 leaves the page blank
   wherever the compositor or the browser declines to animate. */

/* ============================================================
   AI offer bar
   Deliberately the one dark surface on the page: deep navy from
   the logo's book, emerald from its bars. It stays hidden until
   the visitor has scrolled a little, then eases up once with a
   single transform transition — no scroll-linked loop, and it
   can be dismissed.
   ============================================================ */
.ai-bar {
  position: fixed; z-index: 40; left: 50%; bottom: 1rem;
  width: min(1080px, calc(100vw - 1.5rem));
  display: flex; align-items: center; gap: 1.1rem;
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  background: linear-gradient(135deg, #17334f, #0d2137 56%, #0a1a2c);
  border: 1px solid rgba(110, 231, 183, 0.3);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(6, 18, 32, 0.42);
  color: #dce9e5;
  /* 14px, not more: even if the transition never advances, "bottom: 1rem" minus
     this offset still leaves the bar fully inside the viewport. */
  transform: translate(-50%, 14px);
  opacity: 0; visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
}
/* author "display: flex" beats the UA rule for [hidden], so restate it */
.ai-bar[hidden] { display: none; }
.ai-bar.is-visible {
  transform: translate(-50%, 0);
  opacity: 1; visibility: visible;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0s;
}
.ai-bar::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 183, 0.75), transparent);
}

.ai-bar__badge {
  flex: 0 0 auto;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #6ee7b7; white-space: nowrap;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.38);
  border-radius: 999px; padding: 0.26rem 0.6rem;
}
.ai-bar__pitch { margin: 0; font-size: 0.96rem; line-height: 1.45; color: #dce9e5; }
.ai-bar__pitch em { font-style: normal; font-weight: 700; color: #6ee7b7; }

.ai-bar__action {
  margin-left: auto; flex: 0 0 auto;
  display: flex; align-items: center; gap: 0.85rem;
}
.ai-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #34d399; color: #04241a;
  font-weight: 700; font-size: 0.91rem;
  padding: 0.58rem 1rem; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ai-btn:hover { background: #6ee7b7; text-decoration: none; }
.ai-bar__addr { font-family: var(--mono); font-size: 0.73rem; color: #a6bcb5; white-space: nowrap; }

.ai-bar__close {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 30px; height: 30px; cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cfe0dc;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.ai-bar__close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .ai-bar { transform: translate(-50%, 0); }
}

@media (max-width: 880px) {
  .ai-bar {
    display: grid; grid-template-columns: 1fr auto;
    gap: 0.55rem 0.9rem;
    padding: 0.95rem 1rem;
  }
  .ai-bar__badge { grid-column: 1; grid-row: 1; justify-self: start; }
  .ai-bar__close { grid-column: 2; grid-row: 1; }
  .ai-bar__pitch { grid-column: 1 / -1; grid-row: 2; font-size: 0.92rem; }
  .ai-bar__action {
    grid-column: 1 / -1; grid-row: 3;
    margin-left: 0; flex-wrap: wrap; gap: 0.6rem;
  }
  .ai-btn { flex: 1 1 auto; justify-content: center; }
  .ai-bar__addr { flex: 1 1 100%; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { max-width: none; }
  .hero__visual { perspective: 1000px; }
  .stage { transform: rotateX(3deg) rotateY(-5deg); }
  .download__grid { grid-template-columns: 1fr; }
  .mail { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .free-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .auto-steps { grid-template-columns: 1fr; gap: 0.9rem; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topnav { display: none; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.6rem; }
  .stage { transform: none; }
  .app-body { grid-template-columns: 84px minmax(0, 1fr); min-height: 200px; }
  .app-row { grid-template-columns: minmax(0, 1fr) 62px 62px; font-size: 0.6rem; }
  .float-card--voucher { left: 0; bottom: 9%; transform: translateZ(46px); }
  .float-card--balance { right: 0; top: 2%; transform: translateZ(34px); }
  .btn--download { max-width: none; }
}

/* ============================================================
   reduced motion / no-JS
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .stage { transform: none; }
}

@media print {
  .topbar, .hero__visual, .footer__nav { display: none; }
  body { background: #fff; }
}
