/*
 * The public site.
 *
 * Static HTML with one stylesheet and no JavaScript: a marketing page is read
 * by search engines and by people on Tashkent mobile data, and both are served
 * better by HTML that is already the page than by a bundle that has to build it.
 * Yandex matters here as much as Google and is the worse of the two at running
 * JavaScript, so client-side rendering would cost real traffic.
 */

:root {
  /* Neutrals carry a trace of the accent's warmth, so grey never reads as
     unconsidered next to it. */
  --ink: #17161a;
  --ink-soft: #63606b;
  --paper: #ffffff;
  --paper-soft: #faf8f7;
  --paper-deep: #f2efed;
  --line: #e7e2df;
  --line-strong: #d5cfcb;
  --accent: #e8412c;
  --accent-soft: rgba(232, 65, 44, 0.08);
  --accent-ink: #ffffff;
  --ink-invert: #ffffff;
  --paper-invert: #17161a;
  --radius: 16px;
  --radius-sm: 10px;
  /* Same curve the panels use: quick to leave, slow to arrive. */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --wrap: 980px;
  --shadow: 0 1px 2px rgba(23, 22, 26, 0.04), 0 8px 24px rgba(23, 22, 26, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0eeec;
    --ink-soft: #a09a97;
    --paper: #121113;
    --paper-soft: #1a1719;
    --paper-deep: #221e21;
    --line: #2b2629;
    --line-strong: #3a3438;
    --accent: #ff5f47;
    --accent-soft: rgba(255, 95, 71, 0.12);
    --accent-ink: #17161a;
    --ink-invert: #17161a;
    --paper-invert: #f0eeec;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

/* ------------------------------------------------------------------- nav */

.site-nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  flex-wrap: wrap;
}

.site-nav .brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* The mark, inlined in the markup rather than fetched.
 *
 * Two attempts before this one, both of which looked right on a desktop:
 *
 *   <img src="/peshtaxtam.svg">  — an SVG loaded through <img> is a separate
 *     document, so its `currentColor` has nothing to inherit and falls back to
 *     black. In dark mode that was a black mark on a near-black header.
 *
 *   background + mask                — fixed the colour on Chrome and rendered
 *     as a solid blob on iOS Safari, which reads the SVG's alpha differently.
 *
 * Inline SVG has neither problem: currentColor inherits from the element beside
 * it the way any other text colour does, and there is no second document and no
 * mask semantics to differ between engines. It costs about 250 bytes per use in
 * markup that is already served with no-cache — and saves the request.
 *
 * peshtaxtam.svg stays where it is: it still serves the favicon and the panels.
 */
.mark {
  display: inline-block;
  flex: none;
}

.site-nav .brand .mark { width: 24px; height: 24px; }

.site-nav a.link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
}

.site-nav a.link:hover,
.site-nav a.link[aria-current='page'] { color: var(--ink); }

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

.hero {
  padding: 56px 0 48px;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

h1 {
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  text-wrap: balance;
}

h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  text-wrap: balance;
}

h3 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 6px; }

.accent { color: var(--accent); }

.lede {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 28px;
}

/* padding-block, not `padding: 48px 0`.
   .wrap and .section have equal specificity and most containers carry both, so
   the shorthand won on the cascade and reset .wrap's horizontal padding to zero
   — on 10 of the 13 wraps on the home page. Invisible on a desktop, where the
   980px max-width leaves margin anyway, and flush against the screen edge on a
   phone, which is exactly where it was reported. */
.section { padding-block: 48px; }
.section + .section { border-top: 1px solid var(--line); }

p { max-width: 68ch; }

/* ----------------------------------------------------------------- demos */

.demos {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 12px;
}

.demo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.demo:hover, .demo:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.demo .emoji { font-size: 28px; line-height: 1; }
.demo .text { display: flex; flex-direction: column; min-width: 0; }
.demo .text strong { font-weight: 600; letter-spacing: -0.01em; }
.demo .text span { font-size: 14px; color: var(--accent); }

.hint { font-size: 14px; color: var(--ink-soft); }

/* ----------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  padding: 20px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ----------------------------------------------------------------- price */

.price-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.price-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.price-value {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-period { color: var(--ink-soft); }
.price-note { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

ul.checks { margin: 20px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
ul.checks li { margin-bottom: 6px; }

/* --------------------------------------------------------------- compare */

.compare {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.compare-col { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-col ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
.compare-col li { margin-bottom: 6px; }
.accent-col { border-color: var(--accent); }

/* ------------------------------------------------------------------ steps */

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }

ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 22px;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

ol.steps p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }

/* -------------------------------------------------------------- контакты */

.contacts { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--accent);
}

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:focus-visible, .demo:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 8px;
  background: var(--paper-soft);
}

details summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; }

/* ------------------------------------------------------------------ legal */

.legal { font-size: 15px; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; }

.callout {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  background: var(--paper-soft);
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.callout p { margin: 0; font-size: 15px; }

/* ---------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 14px;
  margin-top: 20px;
}

footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }
.muted { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ==========================================================================
   Second pass: the first version was correct and characterless — a stack of
   bordered boxes. What follows gives the page a spine: an eyebrow-and-heading
   rhythm, a drawn phone so a visitor sees the product before they read about
   it, real tier cards, and icons that mean something.
   ========================================================================== */

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper-soft);
}

/* A wash rather than a band: the accent should be felt, not fought. */
.hero::before {
  content: '';
  position: absolute;
  inset: -40% 30% auto -10%;
  height: 520px;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 65%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-split {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

@media (max-width: 780px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .phone-frame { margin: 0 auto; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 { font-size: clamp(32px, 6.4vw, 52px); }

/* --------------------------------------------------------------- phone */

.phone-frame {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 24px 48px rgba(23, 22, 26, 0.22));
}

@media (prefers-color-scheme: dark) {
  .phone-frame { filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.55)); }
}

/* ---------------------------------------------------------------- strip */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.strip .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.stat .num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: block;
}

.stat .lbl { font-size: 14px; color: var(--ink-soft); }

/* --------------------------------------------------------------- section */

.section-head { margin-bottom: 28px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------------------- cards v2 */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover { transform: translateY(-2px); border-color: var(--line-strong); }

.card .ic {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.card .ic svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------------- tiers */

.tiers {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.tier {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.tier.featured { border-color: var(--accent); }

.tier .badge {
  position: absolute;
  top: -11px;
  left: 28px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 4px 10px;
  border-radius: 999px;
}

.tier h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

.tier .amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 4px;
  flex-wrap: wrap;
}

.tier .amount b {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.tier .amount span { color: var(--ink-soft); }
.tier .summary { color: var(--ink-soft); font-size: 15px; margin: 0 0 18px; }

.tier ul { list-style: none; margin: 0 0 22px; padding: 0; font-size: 15px; }

.tier li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--ink-soft);
}

.tier li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.tier li.no { color: var(--ink-soft); opacity: 0.65; }

.tier li.no::before {
  border: 0;
  left: 5px;
  top: 11px;
  width: 10px;
  height: 2px;
  background: var(--line-strong);
  transform: none;
}

.tier .btn { width: 100%; justify-content: center; }

/* -------------------------------------------------------------- compare2 */

.compare-col { background: var(--paper); box-shadow: var(--shadow); }
.accent-col { background: var(--paper-deep); }

/* ----------------------------------------------------------------- steps */

ol.steps li::before { box-shadow: 0 2px 8px var(--accent-soft); }

/* ------------------------------------------------------------------- cta */

.cta {
  background: var(--paper-invert);
  color: var(--ink-invert);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.cta h2 { color: var(--ink-invert); }
.cta p { color: var(--ink-invert); opacity: 0.72; margin: 0 auto 24px; max-width: 46ch; }
.cta .contacts { justify-content: center; }
.cta .btn-ghost { color: var(--ink-invert); border-color: rgba(255, 255, 255, 0.25); }

@media (prefers-color-scheme: dark) {
  .cta .btn-ghost { border-color: rgba(0, 0, 0, 0.25); }
}

/* ------------------------------------------------------------------- nav */

.site-nav { backdrop-filter: blur(8px); background: color-mix(in srgb, var(--paper) 86%, transparent); }

.site-nav a.link { position: relative; padding: 4px 0; }

.site-nav a.link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ----------------------------------------------------------------- demos */

.demo { box-shadow: var(--shadow); }

/* ==========================================================================
   Third pass. The page still read as one flat sheet: every section the same
   ground, every block the same weight. What follows gives it bands, a nav that
   asks for the sale, a footer that looks like a company's, and a comparison
   table — the thing a buyer actually scans before choosing a tier.
   ========================================================================== */

/* Alternating grounds, so sections are felt as sections without extra rules. */
.section.band { background: var(--paper-soft); }

.band-wrap {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-wrap .section { border-top: 0; }

/* -------------------------------------------------------------------- nav */

.site-nav .wrap { gap: 24px; }

.site-nav .nav-cta {
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .nav-cta:hover { filter: brightness(1.06); }

@media (max-width: 620px) {
  .site-nav .wrap { gap: 14px 18px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav .brand { margin-right: 0; width: 100%; }
  .site-nav .nav-cta { margin-left: auto; }
}

/* ------------------------------------------------------------------ table */

/* The tier cards sell; this settles the argument. Scrolls in its own box so a
   phone never scrolls the whole page sideways. */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

table.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-soft);
}

.compare-table thead th:not(:first-child) { text-align: center; }
.compare-table td:not(:first-child) { text-align: center; width: 130px; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td { background: var(--paper-soft); }
.compare-table td:first-child { color: var(--ink-soft); }

.compare-table .yes { color: var(--accent); font-weight: 700; }
.compare-table .no { color: var(--ink-soft); opacity: 0.45; }

.compare-table .price-row td { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.compare-table .featured-col { background: var(--accent-soft); }

/* ----------------------------------------------------------------- footer */

footer { background: var(--paper-soft); border-top: 1px solid var(--line); padding: 44px 0 28px; }

footer .cols {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 28px;
}

footer .about { max-width: 34ch; }

footer .about .brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}

footer .about .brand-row .mark { width: 22px; height: 22px; }
footer .about p { color: var(--ink-soft); margin: 0; font-size: 14px; }

footer .col h4 {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
  font-weight: 600;
}

footer .col a { display: block; margin-bottom: 7px; }

footer .base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

footer .wrap { display: block; }

/* --------------------------------------------------------------- headings */

/* One shared measure for section intros, so headings sit on a common baseline
   instead of each finding its own width. */
.section-head h2 { margin-bottom: 8px; }
.section-head p { max-width: 56ch; }

/* ------------------------------------------------------------------ shots */

/*
 * Screens shown in a phone.
 *
 * Drawn rather than photographed: a screenshot goes stale the day the UI moves,
 * carries a fixed light or dark theme into a page that has both, and costs a
 * request on mobile data. These are SVG, so they take the reader's theme and
 * stay sharp at any size. Swap in real captures when the product is worth
 * photographing — the markup does not change, only what is inside the frame.
 *
 * Scrolls horizontally on a phone rather than shrinking to unreadable, and the
 * scroll lives in this box so the page body never moves sideways.
 */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots.one {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  justify-items: start;
  overflow: visible;
}

.shots.one .shot { max-width: 280px; }

.shot {
  margin: 0;
  scroll-snap-align: start;
  min-width: 0;
}

.shot svg {
  width: 100%;
  height: auto;
  display: block;
  /* No border-radius: the device draws its own, and clipping here would shave
     the titanium band and the side buttons. */
  filter: drop-shadow(0 18px 36px rgba(23, 22, 26, 0.22));
}

@media (prefers-color-scheme: dark) {
  .shot svg { filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5)); }
}

.shot figcaption {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

@media (min-width: 780px) {
  .shots { overflow: visible; }
}

/* --------------------------------------------------------- side by side */

/*
 * Text with one phone beside it. A grid of business types is a claim; a working
 * shop next to it is the evidence, and putting them side by side is what makes
 * the reader connect the two.
 */
.side-by-side {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  margin-top: 32px;
}

.side-by-side h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 10px; }
.side-by-side p { color: var(--ink-soft); }
.side-by-side .shots.one { justify-items: center; }
.side-by-side .shots.one .shot { max-width: 240px; }

@media (max-width: 720px) {
  .side-by-side { grid-template-columns: 1fr; }
  .side-by-side .shots.one { justify-items: start; }
}

/* The language switch. A link, not a button: it goes somewhere. */
.site-nav a.link.lang {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.site-nav a.link.lang:hover { border-color: var(--line-strong); color: var(--ink); }

/* ==========================================================================
   Motion.
   
   CSS only — the site's most valuable property is that it is HTML a crawler
   reads and a phone paints without running anything, and a scroll library
   would cost that for a fade.
   
   Two mechanisms, and the difference matters:
   
   - The hero animates on LOAD. A plain @keyframes with `both` always runs, so
     the content is never left hidden by a feature that did not arrive.
   - Everything below animates on SCROLL, via `animation-timeline: view()`,
     behind @supports. Where that is unsupported (Firefox today) the rules
     never apply and the page is simply the page — which is why the opacity: 0
     lives INSIDE the guard and nowhere else. An unguarded opacity: 0 waiting
     for a script is how a site ships blank.
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- on load */

/*
 * Staggered, in reading order: label, headline, sentence, the two demos, then
 * the phone. Small delays — this is a business site, and a visitor who has to
 * wait for the argument to arrive reads the wait, not the argument.
 */
.hero .eyebrow  { animation: rise 0.5s var(--ease) both; }
.hero h1        { animation: rise 0.55s var(--ease) 0.06s both; }
.hero .lede     { animation: rise 0.55s var(--ease) 0.12s both; }
.hero .demos    { animation: rise 0.55s var(--ease) 0.18s both; }
.hero .hint     { animation: rise 0.5s var(--ease) 0.26s both; }
.hero .demo:nth-child(2) { animation: rise 0.5s var(--ease) 0.24s both; }

.phone-frame {
  animation: settle 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both;
}

.strip .stat { animation: rise 0.5s var(--ease) both; }
.strip .stat:nth-child(2) { animation-delay: 0.06s; }
.strip .stat:nth-child(3) { animation-delay: 0.12s; }
.strip .stat:nth-child(4) { animation-delay: 0.18s; }

/* ----------------------------------------------------------- on scroll */

@supports (animation-timeline: view()) {
  .section-head,
  .grid > .card,
  .tiers > .tier,
  .compare > .compare-col,
  ol.steps > li,
  .shots > .shot,
  .table-scroll,
  .side-by-side > *,
  .cta {
    animation: rise 0.6s var(--ease) both;
    animation-timeline: view();
    /* Play across the element's entry only, and finish well before it is
       centred — an item still fading in when the eye reaches it reads as a
       slow page, not a designed one. */
    animation-range: entry 5% cover 26%;
  }

  /* Cards in a row arrive together rather than in sequence: they are siblings
     of equal weight, and staggering them implies an order that is not there. */
  .grid > .card,
  .tiers > .tier,
  .compare > .compare-col {
    animation-range: entry 10% cover 30%;
  }

  /* The hero is already animating on load; a second timeline would restart it
     the moment the visitor scrolls back up. */
  .hero .section-head { animation: none; }
}

/* --------------------------------------------------------------- opt out */

/*
 * Not a nicety. Vestibular disorders make movement genuinely unpleasant, and
 * the setting exists to be honoured — so everything above collapses to the
 * finished state rather than to a shorter version of the movement.
 */
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .hero h1,
  .hero .lede,
  .hero .demos,
  .hero .hint,
  .hero .demo:nth-child(2),
  .phone-frame,
  .strip .stat,
  .section-head,
  .grid > .card,
  .tiers > .tier,
  .compare > .compare-col,
  ol.steps > li,
  .shots > .shot,
  .table-scroll,
  .side-by-side > *,
  .cta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
