/* ==========================================================================
   PropFolios — website
   Colour, spacing, radius and type values are transcribed from the app's
   design system ("Slate & Rust"): Common/DesignSystem/Theme.swift +
   Theme.xcassets. Add a token here rather than inventing a value inline.
   Light/Dark follows the visitor's system setting (no toggle).
   ========================================================================== */

/* --------------------------------------------------------------- 1. tokens */

:root {
  color-scheme: light dark;

  --accent:            #C1652E;
  --accent-fill:       #F3E1D0;
  --accent-fg:         #FFFFFF;
  --accent-hover:      #85400F;
  /* Web-only: Accent doesn't reach WCAG AA as text on warm paper or under white
     labels. This darker sibling does (5.14:1 / 5.90:1) and keeps the hue. */
  --accent-ink:        #9E4E1C;

  --bg:                #F3EFE6;
  --surface:           #FFFFFF;
  --surface-sunken:    #FBF8F1;

  --text:              #221F19;
  --text-2:            #5E5A4E;
  --text-3:            #8B8677;

  --sep:               #E1D8C4;
  --sep-strong:        #CBBE9E;

  --green:             #2F7D5A;
  --green-fill:        #DEEEE3;

  /* A printed page stays paper in both appearances, like the PDF it stands for;
     its source outline is ThemeRed, as in the app's source dialog. */
  --paper:             #FFFFFF;
  --paper-ink:         #221F19;
  --paper-rule:        #E8E2D5;
  --paper-hit:         #B5402E;

  --shadow-rgb:        40, 32, 10;
  --grain-opacity:     .035;
  --glow-opacity:      .26;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px; --s8: 48px;
  --s9: 64px; --s10: 96px; --s11: 128px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 28px;

  --font-ui: "Noto Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
             "Segoe UI", system-ui, sans-serif;
  --font-money: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --t-body: 14px; --t-subbody: 13px; --t-caption: 12px; --t-micro: 11px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent:            #E39A66;
    --accent-fill:       rgba(227, 154, 102, .16);
    --accent-fg:         #2E1B0C;
    --accent-hover:      #F0AC7C;
    --accent-ink:        #E39A66;

    --bg:                #1B1815;
    --surface:           #28231D;
    --surface-sunken:    #221E19;

    --text:              #F2EEE6;
    --text-2:            #B3AB9B;
    --text-3:            #7C7566;

    --sep:               #3A342A;
    --sep-strong:        #4E4638;

    --green:             #5CBE95;
    --green-fill:        rgba(92, 190, 149, .16);

    --paper:             #F1EDE5;

    --shadow-rgb:        0, 0, 0;
    --grain-opacity:     .05;
    --glow-opacity:      .2;
  }
}

/* --------------------------------------------------------------- 2. reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
s { text-decoration: none; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; top: var(--s2); left: var(--s2); z-index: 100;
  padding: var(--s2) var(--s4); border-radius: var(--r-sm);
  background: var(--accent-ink); color: var(--accent-fg); font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

/* A name with its own casing (myTax) inside an all-caps label keeps it. In a
   flex label, wrap the whole phrase in one span so the name isn't a flex item. */
.keep-case { text-transform: none; }

/* ------------------------------------------------------ 3. page furniture */

/* Warm paper grain and two slowly drifting terracotta glows. A real fixed
   element, not body pseudo-elements: fixed pseudo-elements on a body that owns
   `overflow-x` composite unreliably. */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg > span { position: absolute; display: block; }

.bg__glow {
  inset: -10%;
  opacity: var(--glow-opacity);
  background:
    radial-gradient(46vw 40vw at 80% 6%, color-mix(in srgb, var(--accent) 46%, transparent), transparent 68%),
    radial-gradient(42vw 36vw at 6% 42%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

.bg__grain {
  inset: 0;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { .bg__grain { mix-blend-mode: screen; } }

.wrap { width: min(1160px, 100% - 2 * var(--s6)); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2 * var(--s6)); margin-inline: auto; }

section { padding-block: clamp(var(--s9), 10vh, 128px); }
section[id], [id="main"] { scroll-margin-top: 72px; }

/* ------------------------------------------------------------- 4. type */

.display {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--accent-ink); }

.h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 700;
  text-wrap: balance;
}
.h3 { font-size: 1.28rem; line-height: 1.3; letter-spacing: -.015em; font-weight: 700; }

.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.small { font-size: var(--t-subbody); line-height: 1.55; color: var(--text-2); }
.micro { font-size: var(--t-caption); line-height: 1.5; color: var(--text-3); }

.section-head { max-width: 40rem; margin-bottom: var(--s8); }
.section-head--center { max-width: 46rem; margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: var(--s4); }

.kicker {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin-bottom: var(--s3);
  font-size: var(--t-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.kicker svg { width: 17px; height: 17px; flex: none; }

/* ---------------------------------------------------------- 5. controls */

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 0 var(--s6);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--prominent {
  background: var(--accent-ink);
  color: var(--accent-fg);
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .2),
              0 14px 30px -12px color-mix(in srgb, var(--accent-ink) 70%, transparent);
}
.btn--prominent:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* a slow highlight sweeps the primary button so the eye finds it */
.btn--prominent::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 5.5s var(--ease) 1.6s infinite;
}
@keyframes shine {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.btn { white-space: nowrap; }
.btn--lg { min-height: 56px; padding: 0 var(--s7); font-size: 17px; }
@media (max-width: 480px) {
  .btn--lg { padding: 0 var(--s5); font-size: 16px; }
  .deal { padding-inline: var(--s4); }
}
.btn--sm { min-height: 38px; padding: 0 var(--s5); font-size: var(--t-body); }
.btn--ghost {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-color: var(--sep-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn__glyph { flex: none; width: 19px; height: 19px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }

/* ------------------------------------------------------------- 6. nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.nav[data-stuck="true"] {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom-color: var(--sep);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: var(--s3); font-weight: 700; letter-spacing: -.015em; }
.brand img { width: 32px; height: 32px; }
.brand span { font-size: 17px; }

/* ------------------------------------------------------------- 7. hero */

.hero { padding-top: clamp(var(--s8), 8vh, var(--s10)); padding-bottom: clamp(var(--s8), 7vh, var(--s9)); }
.hero__copy { max-width: 56rem; margin-inline: auto; text-align: center; }
.hero .display { margin-top: var(--s4); }
.hero .lede { margin: var(--s6) auto 0; max-width: 40rem; }
/* the lede's key phrases read darker, the rest recedes */
.hero .lede strong { color: var(--text); font-weight: 500; }
.hero .cta-row { justify-content: center; margin-top: var(--s7); }

.proof {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s3) var(--s7);
  margin-top: var(--s7);
  font-size: var(--t-body); font-weight: 500; color: var(--text-2);
}
.proof li { display: inline-flex; align-items: center; gap: var(--s2); }
.proof svg { width: 18px; height: 18px; color: var(--accent-ink); flex: none; }

/* ------------------------------------------------- 8. the demo stage */

/* The app-window look every product illustration shares. */
.window {
  position: relative;
  border: 1px solid var(--sep-strong);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 1px 1px rgba(var(--shadow-rgb), .06),
              0 30px 60px -28px rgba(var(--shadow-rgb), .4),
              0 70px 120px -50px color-mix(in srgb, var(--accent) 42%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.stage {
  margin: clamp(var(--s8), 7vw, var(--s9)) auto 0;
  max-width: 1040px;
}
.stage__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 14px var(--s5);
  border-bottom: 1px solid var(--sep);
}
.stage__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--sep-strong); }
.stage__bar span { margin-left: var(--s3); font-size: var(--t-caption); font-weight: 600; color: var(--text-3); }

.stage__grid {
  display: grid; gap: var(--s5);
  grid-template-columns: minmax(0, 1fr);
  padding: var(--s6) var(--s5) var(--s7);
}
@media (min-width: 860px) {
  .stage__grid { grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1.2fr); gap: var(--s4); padding: var(--s7) var(--s7) var(--s8); align-items: start; }
}

.pane__cap {
  display: flex; align-items: center; gap: var(--s3);
  margin-bottom: var(--s4);
  font-size: var(--t-caption); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2); text-align: left;
}
.pane__cap b {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-fill); color: var(--accent-ink);
  font-size: var(--t-micro); letter-spacing: 0;
}

.folder {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  background: var(--accent-fill);
  color: var(--accent-ink);
  font-size: var(--t-body); font-weight: 600; text-align: left;
}
.folder svg { width: 20px; height: 20px; flex: none; }
.folder small { margin-left: auto; font-size: var(--t-caption); font-weight: 500; opacity: .85; }

.files { margin-top: var(--s3); display: flex; flex-direction: column; gap: 6px; }
.files li {
  display: flex; align-items: center; gap: var(--s3);
  padding: 9px var(--s3);
  border: 1px solid var(--sep);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--t-subbody); text-align: left;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), border-color .3s var(--ease);
}
.files svg { flex: none; width: 16px; height: 16px; color: var(--text-3); }
.files span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .tick { color: var(--green); opacity: 1; transition: opacity .3s var(--ease), transform .3s var(--ease-out); }
@media (max-width: 859px) { .files li:nth-child(n+5) { display: none; } }

/* the link between folder and figures */
.link { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: center; min-height: 64px; }
@media (min-width: 860px) {
  .link { flex-direction: column; justify-content: flex-start; align-self: stretch; padding-top: 30px; }
}

.link__beam {
  position: absolute; z-index: 0; top: 50%; left: 0; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 14px);
  opacity: .5;
  animation: beam 1.2s linear infinite;
}
@media (min-width: 860px) { .link__beam { top: 62px; left: -16px; right: -16px; } }
@keyframes beam { to { background-position: 14px 0; } }

.link__core {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 22%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--sep-strong), 0 10px 26px -10px rgba(var(--shadow-rgb), .5);
}
.link__core img { width: 52px; height: 52px; }
.link__core::before {
  content: ""; position: absolute; inset: -8px; border-radius: 28%;
  border: 2px solid var(--accent); opacity: 0;
}
.link__label {
  position: relative; z-index: 1; display: none; align-items: center; gap: var(--s2); margin-top: var(--s4);
  font-size: var(--t-caption); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2);
}
@media (min-width: 860px) { .link__label { display: flex; } }
.link__label b {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-fill); color: var(--accent-ink); font-size: var(--t-micro);
}

.figs { display: flex; flex-direction: column; gap: var(--s2); }
.figs li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s3);
  padding: 11px var(--s4);
  border: 1px solid var(--sep);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: left;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.figs b { display: block; font-size: var(--t-body); font-weight: 600; line-height: 1.3; }
.figs small { display: block; margin-top: 1px; font-size: var(--t-micro); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figs output {
  font-family: var(--font-money); font-variant-numeric: tabular-nums;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
}
.copy {
  position: relative; display: inline-grid; place-items: center;
  min-width: 34px; height: 30px; padding: 0 8px;
  border: 1px solid var(--sep-strong); border-radius: var(--r-sm);
  color: var(--text-2); font-size: var(--t-micro); font-weight: 700;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease-out);
}
.copy svg { width: 15px; height: 15px; }
.copy .copy__done { display: none; align-items: center; gap: 4px; }
.copy .copy__done svg { width: 13px; height: 13px; }
.figs li.is-copied { border-color: color-mix(in srgb, var(--green) 55%, transparent); box-shadow: 0 0 0 3px var(--green-fill); }
.is-copied .copy { background: var(--green-fill); border-color: var(--green); color: var(--green); }
.is-copied .copy__idle { display: none; }
.is-copied .copy__done { display: inline-flex; }
@media (max-width: 859px) { .figs li:nth-child(n+5) { display: none; } }

/* Animated state. Without JS (or with reduced motion) none of this applies and
   the stage simply shows its finished state. */
.stage.is-anim .files li { opacity: 0; transform: translateX(-16px); transition-delay: calc(var(--i) * 110ms); }
.stage.is-anim .files .tick { opacity: 0; transform: scale(.4); transition-delay: calc(var(--i) * 150ms); }
.stage.is-anim .figs li { opacity: 0; transform: translateY(12px); transition-delay: calc(var(--i) * 140ms); }
.stage.is-anim .link__core::before { animation: none; }

.stage.is-anim.p-files .files li { opacity: 1; transform: none; }
.stage.is-anim.p-read .files .tick { opacity: 1; transform: none; }
.stage.is-anim.p-read .files li { border-color: color-mix(in srgb, var(--green) 40%, var(--sep)); }
.stage.is-anim.p-read .link__core::before { animation: ring 1.1s var(--ease) 2; }
.stage.is-anim.p-figs .figs li { opacity: 1; transform: none; }
.stage.is-anim.is-reset *, .stage.is-anim.is-reset *::before { transition: none !important; }
@keyframes ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }

/* ------------------------------------------------------ 9. marquee */

.reads { padding-block: var(--s7) var(--s9); }
.reads__title { text-align: center; margin-bottom: var(--s6); font-size: var(--t-subbody); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

.marquee {
  display: flex; flex-direction: column; gap: var(--s3);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  overflow: hidden;
}
.marquee__track { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); width: max-content; max-width: 100%; margin-inline: auto; }
.marquee__track li {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 9px var(--s4) 9px var(--s3);
  border: 1px solid var(--sep);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  font-size: var(--t-body); font-weight: 500; white-space: nowrap;
}
.marquee__track svg { width: 16px; height: 16px; color: var(--accent-ink); flex: none; }

.js .marquee__track { flex-wrap: nowrap; justify-content: flex-start; max-width: none; margin-inline: 0; animation: scroll-x 60s linear infinite; }
.js .marquee__track--rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(calc(-50% - var(--s3) / 2)); } }

/* ----------------------------------------------- 10. the breakdown */

.showcase .section-head { margin-bottom: var(--s8); }

.trace { max-width: 860px; margin-inline: auto; }
.trace__body { padding: var(--s6) var(--s6) var(--s7); }

.trace__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--s3); padding-bottom: var(--s4); }
.trace__head b { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.trace__head output { font-family: var(--font-money); font-variant-numeric: tabular-nums; font-size: 1.15rem; font-weight: 700; }
.trace__chev { width: 20px; height: 20px; color: var(--text-2); }

.trace__lines {
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  background: var(--surface-sunken); box-shadow: 0 0 0 1px var(--sep);
}
.trace__lines li {
  display: grid; grid-template-columns: 16px 104px minmax(0, 1fr) auto; align-items: baseline; gap: var(--s3);
  padding: 8px 0; font-size: var(--t-subbody);
}
.trace__lines output, .trace__lines .op { font-family: var(--font-money); font-variant-numeric: tabular-nums; font-weight: 700; }
.trace__lines .op { color: var(--text-3); }
.trace__lines .src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent-ink); font-weight: 500; }
.trace__lines em { font-style: normal; color: var(--text-3); white-space: nowrap; }
.trace__sum { margin-top: 4px; padding-top: 12px !important; border-top: 1px solid var(--sep-strong); font-weight: 700; }
.trace__sum span:last-child { grid-column: 3 / -1; color: var(--text-2); font-weight: 500; }
@media (max-width: 599px) {
  .trace__body { padding-inline: var(--s4); }
  .trace__head { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: var(--s2); }
  .trace__head .trace__chev { grid-row: 1; grid-column: 1; }
  .trace__head b { grid-row: 1; grid-column: 2 / -1; }
  .trace__head output { grid-row: 2; grid-column: 2; }
  .trace__head .copy { grid-row: 2; grid-column: 3; }
  .trace__lines li { grid-template-columns: 14px auto minmax(0, 1fr); }
  .trace__lines em { display: none; }
  .trace__sum span:last-child { grid-column: 3; }
}

/* The total opens, its lines arrive one by one, then Copied lands. */
.js .trace__chev { transform: rotate(-90deg); transition: transform .5s var(--ease-out) .35s; }
.js .trace.is-in .trace__chev { transform: none; }
.js .trace__lines li {
  opacity: 0; transform: translateX(-12px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(var(--i) * .2s + .7s);
}
.js .trace.is-in .trace__lines li { opacity: 1; transform: none; }
.js .trace .copy { opacity: 0; scale: .7; transition: opacity .4s var(--ease), scale .5s cubic-bezier(.34, 1.56, .64, 1); transition-delay: 2.2s; }
.js .trace.is-in .copy { opacity: 1; scale: 1; }

/* ------------------------------------------------ 10b. feature rows */

.feature { display: grid; gap: var(--s8); align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: var(--s9); }
  .feature--flip { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .feature--flip .feature__copy { order: 2; }
}
.feature__copy .lede { margin-top: var(--s4); }
.feature__copy .ticks { margin-top: var(--s6); }

/* viz: the accountant pack */
.pack__body { display: grid; gap: var(--s4); padding: var(--s5); transition: opacity .5s var(--ease); }
.pack__tray { display: none; }
.pack.is-anim .pack__tray {
  display: block; min-height: 108px;
  padding: var(--s3);
  border: 1.5px dashed var(--sep-strong);
  border-radius: var(--r-lg);
}
.pack__from {
  display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3);
  font-size: var(--t-caption); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
}
.pack__from svg { width: 16px; height: 16px; color: var(--accent-ink); flex: none; }
.pack__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pack__chips li {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--sep); border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 6px 14px -10px rgba(var(--shadow-rgb), .5);
  font-size: var(--t-caption); font-weight: 500; line-height: 1.4; white-space: nowrap;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease-out), transform .45s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms);
}
.pack__chips svg { width: 14px; height: 14px; color: var(--text-3); flex: none; }
.pack.p-tray .pack__chips li { opacity: 1; transform: none; }
/* main.js sets the flight's transform; this only times it */
@media (max-width: 480px) {
  .pack__body { padding: var(--s4); }
  .pack.is-anim .pack__tray { min-height: 0; }
  .pack__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .pack__chips li { display: block; padding: 4px 8px 4px 6px; font-size: var(--t-micro); overflow: hidden; text-overflow: ellipsis; }
  .pack__chips svg { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; }
}
.pack .pack__chips li.is-gone { opacity: 0; transition: transform .62s cubic-bezier(.55, 0, .25, 1) 0s, opacity .18s var(--ease) .46s; }

.pack__zip {
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--sep), 0 18px 36px -24px rgba(var(--shadow-rgb), .5);
  overflow: hidden;
}
.pack__head { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--sep); }
.pack__icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--accent-fill); color: var(--accent-ink); }
.pack__icon svg { width: 18px; height: 18px; }
.pack__head b { font-size: var(--t-body); font-weight: 700; }
.pack__ready {
  display: inline-flex; align-items: center; gap: 4px; margin-left: auto;
  padding: 4px 10px; border-radius: 999px;
  background: var(--green-fill); color: var(--green);
  font-size: var(--t-micro); font-weight: 700; white-space: nowrap;
}
.pack__ready svg { width: 13px; height: 13px; }
.pack__tree { padding: 6px var(--s2) var(--s2); }
.pack__tree li {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: var(--s3);
  padding: 7px var(--s3); border-radius: var(--r-sm);
  font-size: var(--t-subbody); font-weight: 500;
  transition: color .3s var(--ease), background-color .5s var(--ease);
}
.pack__tree svg { width: 16px; height: 16px; color: var(--accent-ink); transition: color .3s var(--ease); }
.pack__tree span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack__tree em { min-width: 16px; font-style: normal; text-align: right; font-size: var(--t-caption); font-weight: 600; color: var(--text-3); transition: opacity .3s var(--ease); }
.pack__tree .pack__sum { margin-bottom: 2px; background: color-mix(in srgb, var(--accent-fill) 65%, transparent); font-weight: 700; transition: opacity .45s var(--ease-out), transform .55s cubic-bezier(.34, 1.56, .64, 1); }

.pack.is-anim .pack__tree li[data-row] { color: var(--text-3); }
.pack.is-anim .pack__tree li[data-row] svg { color: var(--text-3); }
.pack.is-anim .pack__tree li[data-row] em { opacity: 0; }
.pack.is-anim .pack__tree li.is-filled { color: var(--text); background: var(--green-fill); }
.pack.is-anim .pack__tree li.is-filled.is-settled { background: transparent; transition-duration: .3s, 1.2s; }
.pack.is-anim .pack__tree li.is-filled svg { color: var(--accent-ink); }
.pack.is-anim .pack__tree li.is-filled em { opacity: 1; }
.pack.is-anim .pack__sum { opacity: 0; transform: translateY(-6px) scale(.98); }
.pack.is-anim.p-sum .pack__sum { opacity: 1; transform: none; }
.pack.is-anim .pack__ready { opacity: 0; scale: .7; transition: opacity .35s var(--ease), scale .5s cubic-bezier(.34, 1.56, .64, 1); }
.pack.is-anim.p-done .pack__ready { opacity: 1; scale: 1; }
.pack.is-fade .pack__body { opacity: 0; }
.pack.is-reset *, .pack.is-reset { transition: none !important; }

/* viz: who reads your files */
.flow__body { display: grid; gap: var(--s6); padding: var(--s6); }
.flow .seg { margin-top: 0; }
.flow__stage { display: grid; }
.flow__scene { grid-area: 1 / 1; display: flex; flex-direction: column; gap: var(--s5); }
.flow__scene--cloud { animation: scene-a 8s infinite; }
.flow__scene--local { animation: scene-b 8s infinite; }
@keyframes scene-a { 0%, 38% { opacity: 1; } 44%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes scene-b { 0%, 42% { opacity: 0; } 50%, 88% { opacity: 1; } 94%, 100% { opacity: 0; } }

.flow__map { display: flex; align-items: center; min-height: 150px; }
.flow__frame {
  position: relative; display: flex; align-items: center;
  padding: 30px var(--s4) var(--s4);
  border: 1.5px dashed var(--sep-strong); border-radius: var(--r-lg);
}
.flow__frame--all {
  flex: 1;
  border-color: color-mix(in srgb, var(--green) 55%, transparent);
  background: color-mix(in srgb, var(--green-fill) 55%, transparent);
}
.flow__tag {
  position: absolute; top: 9px; left: var(--s4);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.flow__frame--all .flow__tag { color: var(--green); }
.flow__node { display: flex; flex-direction: column; align-items: center; gap: var(--s2); width: 104px; text-align: center; }
.flow__node b { font-size: var(--t-caption); font-weight: 700; line-height: 1.3; }
.flow__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--accent-fill); color: var(--accent-ink);
}
.flow__icon svg { width: 26px; height: 26px; }
.flow__icon--app { background: var(--surface); box-shadow: 0 0 0 1px var(--sep-strong), 0 10px 22px -12px rgba(var(--shadow-rgb), .55); }
.flow__icon--app img { width: 40px; height: 40px; }
.flow__icon--chip { background: var(--green); color: var(--surface); }

.flow__wire {
  position: relative; flex: 1; min-width: 56px; height: 2px; margin-inline: var(--s2);
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
}
.flow__wire::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
/* PropFolios AI: a read goes out, and only the figure comes back */
.flow__wire--both::after { content: none; }
.flow__ping {
  position: absolute; top: 50%; left: 6%; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  transform: translate(-50%, -50%);
  animation: ping-out 3.4s var(--ease) infinite;
}
@keyframes ping-out {
  0%       { left: 6%;  opacity: 0; }
  8%       { opacity: 1; }
  38%      { left: 94%; opacity: 1; }
  44%, 100% { left: 94%; opacity: 0; }
}
.flow__packet {
  position: absolute; top: 50%; left: 90%;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--green) 55%, transparent);
  background: var(--surface); color: var(--green);
  font-family: var(--font-money); font-variant-numeric: tabular-nums;
  font-size: var(--t-micro); font-weight: 700; white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: figure-back 3.4s var(--ease) infinite;
}
@keyframes figure-back {
  0%, 50% { left: 90%; opacity: 0; }
  58%      { opacity: 1; }
  88%      { opacity: 1; }
  100%     { left: 14%; opacity: 0; }
}
.flow__node--ai .flow__icon--app { animation: ai-read 3.4s var(--ease) infinite; }
@keyframes ai-read {
  0%, 36%, 60%, 100% { box-shadow: 0 0 0 1px var(--sep-strong), 0 10px 22px -12px rgba(var(--shadow-rgb), .55); }
  46%      { box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px var(--accent-fill), 0 10px 22px -12px rgba(var(--shadow-rgb), .55); }
}
.flow__wire--local { min-width: 32px; background: var(--green); opacity: .7; }
.flow__wire--local::after { border-color: var(--green); }

.flow__note { display: flex; align-items: center; justify-content: center; gap: var(--s2); font-size: var(--t-subbody); color: var(--text-2); }
.flow__note svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* Too narrow for a wire and its label side by side: the map runs top to bottom. */
@media (max-width: 480px) {
  .flow__body { padding: var(--s5) var(--s4); }
  .flow__map { flex-direction: column; min-height: 0; }
  .flow__frame { flex-direction: column; padding: 30px var(--s5) var(--s4); }
  .flow__frame--all { align-self: stretch; }
  .flow__wire {
    flex: none; width: 2px; min-width: 0; height: 64px; margin: var(--s2) 0;
    background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px);
  }
  .flow__wire::after { top: auto; right: auto; bottom: -2px; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .flow__ping { left: 50%; animation-name: ping-down; }
  .flow__packet { left: 50%; animation-name: figure-up; }
  .flow__wire--local { height: 32px; background: var(--green); }
}
@keyframes ping-down {
  0%       { top: 6%;  opacity: 0; }
  8%       { opacity: 1; }
  38%      { top: 94%; opacity: 1; }
  44%, 100% { top: 94%; opacity: 0; }
}
@keyframes figure-up {
  0%, 50% { top: 90%; opacity: 0; }
  58%      { opacity: 1; }
  88%      { opacity: 1; }
  100%     { top: 14%; opacity: 0; }
}

/* ------------------------------------------------- 11. secondary values */

.duo { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); } }

.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--sep);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  overflow: hidden;
  transition: translate .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease);
}
.card:hover { translate: 0 -4px; border-color: var(--sep-strong); box-shadow: 0 30px 60px -36px rgba(var(--shadow-rgb), .55); }
.card__viz {
  position: relative; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 268px; padding: var(--s6);
  border-bottom: 1px solid var(--sep);
  background:
    radial-gradient(90% 90% at 100% 0%, var(--accent-fill), transparent 70%),
    var(--surface-sunken);
}
.card__body { padding: var(--s6) var(--s6) var(--s7); }
.card__body p { margin-top: var(--s2); color: var(--text-2); max-width: 34rem; }
/* viz: performance */
.perf { display: flex; flex-direction: column; gap: var(--s4); }
.perf__row { display: grid; gap: 6px; }
.perf__row header { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-subbody); color: var(--text-2); font-weight: 500; }
.perf__row output { font-family: var(--font-money); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.perf__bar { height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--sep) 70%, transparent); overflow: hidden; }
.perf__bar i {
  display: block; height: 100%; width: var(--w); border-radius: inherit;
  background: var(--green);
  transform-origin: left; transform: scaleX(1);
}
.perf__row--out .perf__bar i { background: var(--accent); }
.perf__net {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--s4); margin-top: var(--s1);
  border-radius: var(--r-md);
  background: var(--surface); box-shadow: 0 0 0 1px var(--sep);
  font-size: var(--t-body); font-weight: 600;
}
.perf__net output { font-family: var(--font-money); font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 700; color: var(--green); }
.perf__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.perf__tile { padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 0 0 1px var(--sep); }
.perf__tile small { display: block; font-size: var(--t-micro); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.perf__tile b { font-family: var(--font-money); font-variant-numeric: tabular-nums; font-size: 15px; }

.perf__net output small { margin-left: 2px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.perf__toast {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 5px 10px 5px 9px; border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--sep), 0 10px 22px -14px rgba(var(--shadow-rgb), .6);
  font-size: var(--t-caption); font-weight: 600; color: var(--text-2);
}
.perf__toast svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.perf__toast .tick { color: var(--green); }

.js .perf [data-grow] i {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out) calc(var(--i, 0) * 160ms + .15s), width .9s var(--ease-out) 0s;
}
.js .is-in .perf [data-grow] i { transform: scaleX(1); }
/* main.js: the toast lands, then the month's figures move to match */
.perf.is-anim .perf__toast { opacity: 0; transform: translateY(-6px) scale(.96); transition: opacity .4s var(--ease-out), transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.perf.is-anim.p-new .perf__toast { opacity: 1; transform: none; }
.perf.p-up .perf__net { animation: net-up 1.4s var(--ease-out); }
@keyframes net-up { 0% { box-shadow: 0 0 0 1px var(--sep), 0 0 0 0 var(--green-fill); } 35% { box-shadow: 0 0 0 1px var(--green), 0 0 0 5px var(--green-fill); } 100% { box-shadow: 0 0 0 1px var(--sep), 0 0 0 0 transparent; } }
.perf.is-reset * { transition: none !important; }

/* viz: search by what's inside */
.find { display: flex; flex-direction: column; gap: var(--s3); min-height: 248px; }
.find__field {
  display: flex; align-items: center; gap: var(--s2);
  height: 40px; padding: 0 var(--s3);
  border-radius: var(--r-md);
  background: var(--surface); box-shadow: 0 0 0 1px var(--sep-strong);
  font-size: var(--t-body); font-weight: 500;
}
.find__field svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.find__q { white-space: pre; }
.find__caret { display: none; width: 1.5px; height: 18px; margin-left: -6px; background: var(--accent-ink); }
.find.is-anim .find__caret { display: block; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.find__list li {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: var(--s3);
  max-height: 40px; padding: 8px var(--s3);
  border-radius: var(--r-md);
  background: var(--surface); box-shadow: 0 0 0 1px var(--sep);
  font-size: var(--t-subbody); font-weight: 500;
  overflow: hidden;
  transition: opacity .3s var(--ease), max-height .45s var(--ease-out), padding .45s var(--ease-out),
              margin .45s var(--ease-out), box-shadow .35s var(--ease);
}
.find__list li + li { margin-top: 6px; }
.find__list svg { width: 16px; height: 16px; color: var(--text-3); flex: none; transition: color .3s var(--ease); }
.find__list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find__list em {
  padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--sep) 60%, transparent);
  font-style: normal; font-size: var(--t-micro); font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.find__list li.is-hit { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 5px var(--accent-fill); }
.find__list li.is-hit svg { color: var(--accent-ink); }
.find:not(.is-anim) .find__list li:not(.is-hit) { display: none; }
.find.is-anim .find__list li.is-hit { box-shadow: 0 0 0 1px var(--sep); }
.find.is-anim .find__list li.is-hit svg { color: var(--text-3); }
.find.is-anim.p-found .find__list li:not(.is-hit) { opacity: 0; max-height: 0; padding-block: 0; margin-top: 0; box-shadow: none; }
.find.is-anim.p-found .find__list li.is-hit { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 5px var(--accent-fill); }
.find.is-anim.p-found .find__list li.is-hit svg { color: var(--accent-ink); }
.find__list, .find__q { transition: opacity .4s var(--ease); }
.find.is-fade .find__list, .find.is-fade .find__q { opacity: 0; }
.find.is-reset * { transition: none !important; }

/* viz: click a figure, its page opens with the amount outlined */
.src { position: relative; display: flex; flex-direction: column; gap: var(--s3); }
.src__row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 10px var(--s4); border-radius: var(--r-md);
  background: var(--surface); box-shadow: 0 0 0 1px var(--sep);
  font-size: var(--t-subbody); font-weight: 600;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .16s var(--ease);
}
.src__row output { font-family: var(--font-money); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-ink); }
.src:not(.is-anim) .src__row { background: var(--accent-fill); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.src__cursor {
  display: none; position: absolute; z-index: 3; top: 24px; right: 10px; width: 22px; height: 22px;
  color: var(--text); stroke: var(--surface); stroke-width: 1.4;
  filter: drop-shadow(0 2px 3px rgba(var(--shadow-rgb), .35));
  transition: transform .9s var(--ease-out), opacity .3s var(--ease);
}
.src__sheet {
  padding: var(--s3); border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: 0 0 0 1px var(--sep);
  transform-origin: top right;
  transition: opacity .5s var(--ease-out), transform .55s var(--ease-out);
}
/* the printed page, paper in both appearances */
.peek__bar {
  display: flex; align-items: center; gap: var(--s2);
  padding: 2px var(--s1) var(--s2);
  font-size: var(--t-caption); font-weight: 600; color: var(--text-2);
}
.peek__bar svg { width: 15px; height: 15px; color: var(--accent-ink); flex: none; }
.peek__page {
  padding: 14px 18px 16px;
  border-radius: 6px;
  background: var(--paper); color: var(--paper-ink);
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .14), 0 16px 32px -20px rgba(var(--shadow-rgb), .55);
  font-size: var(--t-micro); line-height: 1.4;
}
.peek__brand { display: flex; justify-content: space-between; margin-bottom: 12px; }
.peek__brand i { display: block; height: 10px; border-radius: 3px; background: var(--paper-rule); }
.peek__brand i:first-child { width: 34%; background: color-mix(in srgb, var(--accent) 55%, var(--paper-rule)); }
.peek__brand i:last-child { width: 22%; }
.peek__title { font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.peek__line { display: block; width: var(--w); height: 6px; margin-top: 7px; border-radius: 3px; background: var(--paper-rule); }
.peek__table { margin-top: 10px; border-top: 1px solid var(--paper-rule); }
.peek__row { display: flex; justify-content: space-between; gap: var(--s3); padding: 7px 0; border-bottom: 1px solid var(--paper-rule); }
.peek__row span:last-child { font-family: var(--font-money); font-variant-numeric: tabular-nums; font-weight: 700; }
.peek__hit { position: relative; }
.peek__hit::after {
  content: ""; position: absolute; inset: -4px -7px;
  border: 2px solid var(--paper-hit); border-radius: 6px;
}
.src .peek__hit::after { transition: opacity .35s var(--ease), transform .5s cubic-bezier(.34, 1.56, .64, 1); }

/* main.js: the pointer comes in, clicks the figure, its page opens, the amount is outlined */
.src.is-anim .src__cursor { display: block; opacity: 0; transform: translate(-130px, 96px); }
.src.is-anim.p-move .src__cursor { opacity: 1; transform: none; }
.src.is-anim.p-press .src__row { transform: scale(.98); }
.src.is-anim.p-picked .src__row { background: var(--accent-fill); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.src.is-anim .src__sheet { opacity: 0; transform: translateY(-8px) scale(.97); }
.src.is-anim.p-open .src__sheet { opacity: 1; transform: none; }
.src.is-anim .peek__hit::after { opacity: 0; transform: scale(1.35); }
.src.is-anim.p-hit .peek__hit::after { opacity: 1; transform: none; }
.src.is-anim.is-fade .src__sheet, .src.is-anim.is-fade .src__cursor { opacity: 0; }
.src.is-anim.is-fade .src__row { background: var(--surface); box-shadow: 0 0 0 1px var(--sep); }
.src.is-reset, .src.is-reset * { transition: none !important; }

/* viz: an accountant's review, each line ticked with the judgement behind it */
.acct { display: flex; flex-direction: column; gap: var(--s2); }
.acct__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; align-items: center; gap: var(--s3);
  padding: 10px var(--s4); border-radius: var(--r-md);
  background: var(--surface); box-shadow: 0 0 0 1px var(--sep);
  font-size: var(--t-subbody); font-weight: 600;
}
.acct__row output { font-family: var(--font-money); font-variant-numeric: tabular-nums; font-weight: 700; }
.acct__row--share { margin-left: var(--s6); background: var(--surface-sunken); color: var(--text-2); font-weight: 500; }
.acct__row--share output { color: var(--text); }
.acct__tick { width: 22px; height: 22px; fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.acct__tick path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.acct__note { margin: 0 0 var(--s2) var(--s4); font-size: var(--t-caption); font-weight: 600; color: var(--accent-ink); }
.acct__row--share + .acct__note { margin-left: calc(var(--s6) + var(--s4)); }
.acct__note::before { content: "\21B3"; margin-right: 6px; }
.js .acct__tick path { stroke-dashoffset: 24; transition: stroke-dashoffset .5s var(--ease-out); transition-delay: calc(var(--i, 0) * .45s + .6s); }
.js .is-in .acct__tick path { stroke-dashoffset: 0; }
.js .acct__note { opacity: 0; transform: translateY(-4px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); transition-delay: calc(var(--i, 0) * .45s + 1.05s); }
.js .is-in .acct__note { opacity: 1; transform: none; }

/* ------------------------------------------------------- 12. ticks */

.ticks { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s5); }
.ticks li { display: flex; align-items: flex-start; gap: var(--s3); font-size: var(--t-body); line-height: 1.5; color: var(--text); font-weight: 500; }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--green); }
.js [data-reveal] .ticks li { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i, 0) * .12s + .35s); }
.js [data-reveal].is-in .ticks li { opacity: 1; transform: none; }

/* the AI engine switch */
.seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px; background: color-mix(in srgb, var(--sep) 65%, transparent);
  font-size: var(--t-subbody); font-weight: 600; text-align: center;
}
.seg span { position: relative; z-index: 1; padding: 9px var(--s3); color: var(--text-2); transition: color .3s var(--ease); }
.seg::before {
  content: ""; position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--surface); box-shadow: 0 1px 3px rgba(var(--shadow-rgb), .25);
  animation: seg-thumb 8s var(--ease) infinite;
}
.seg span:first-child { animation: seg-a 8s infinite; }
.seg span:last-child  { animation: seg-b 8s infinite; }
@keyframes seg-thumb { 0%, 38% { transform: none; } 50%, 88% { transform: translateX(100%); } 100% { transform: none; } }
@keyframes seg-a { 0%, 38% { color: var(--text); } 50%, 88% { color: var(--text-2); } 100% { color: var(--text); } }
@keyframes seg-b { 0%, 38% { color: var(--text-2); } 50%, 88% { color: var(--text); } 100% { color: var(--text-2); } }

/* ------------------------------------------------------- 13. the offer */

.get { padding-top: var(--s6); }
.deal {
  position: relative; overflow: hidden;
  padding: clamp(var(--s8), 8vw, var(--s10)) var(--s6);
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 120% at 50% 0%, var(--accent-fill), transparent 72%),
    color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--accent) 70%, transparent);
}
.deal .lede { margin: var(--s4) auto 0; max-width: 34rem; }

.price { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s7); }
.price__was {
  position: relative; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; color: var(--text-3);
}
.price__was span { font-size: .55em; font-weight: 500; }
.price__was::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 3px; border-radius: 2px;
  background: var(--accent-ink); transform: rotate(-6deg) scaleX(1); transform-origin: left;
}
.price__now {
  font-size: clamp(3.4rem, 9vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -.045em; color: var(--accent-ink);
}
.deal .cta-row { justify-content: center; margin-top: var(--s7); }
.deal__mail { margin-top: var(--s6); font-size: var(--t-body); color: var(--text-2); }
.deal__mail a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); text-underline-offset: 4px; }
.deal__mail a:hover { text-decoration-color: currentColor; }

.js .deal [data-strike]::after { transform: rotate(-6deg) scaleX(0); transition: transform .7s var(--ease-out) .5s; }
.js .deal.is-in [data-strike]::after { transform: rotate(-6deg) scaleX(1); }
.js .deal [data-pop] { opacity: 0; transform: scale(.8); transition: opacity .6s var(--ease-out) 1.1s, transform .7s cubic-bezier(.34, 1.56, .64, 1) 1.1s; }
.js .deal.is-in [data-pop] { opacity: 1; transform: none; }

/* ----------------------------------------------------- 14. footer */

.footer { border-top: 1px solid var(--sep); margin-top: clamp(var(--s9), 9vh, 120px); padding-block: var(--s7) var(--s8); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s7); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin-left: auto; font-size: var(--t-body); color: var(--text-2); }
.footer__links a:hover { color: var(--accent-ink); }
.footer__copy { margin-top: var(--s5); font-size: var(--t-caption); color: var(--text-3); }

/* ------------------------------------------------ 15. scroll reveal */

.js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------- 16. legal + contact pages */

.doc { padding-block: clamp(var(--s8), 8vh, var(--s10)) 0; }
.doc h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.doc__meta { margin-top: var(--s3); font-size: var(--t-body); color: var(--text-3); }
.doc h2 { margin-top: var(--s8); font-size: 1.3rem; line-height: 1.3; letter-spacing: -.012em; font-weight: 700; scroll-margin-top: 90px; }
.doc h3 { margin-top: var(--s5); font-size: 1rem; font-weight: 700; }
.doc p, .doc ul { margin-top: var(--s3); color: var(--text-2); }
.doc ul { list-style: disc; padding-left: 1.3em; }
.doc li + li { margin-top: var(--s2); }
.doc strong { color: var(--text); }
.doc a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.doc code { font-family: var(--font-money); font-size: .92em; }
.doc__summary {
  margin-top: var(--s7);
  padding: var(--s5) var(--s6);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--accent-fill) 70%, transparent);
}
.doc__summary h2 { margin-top: 0; font-size: 1.05rem; }
.doc__back { display: inline-block; margin-top: var(--s8); font-weight: 600; }
.doc .btn { text-decoration: none; color: var(--accent-fg); margin-top: var(--s4); }

/* ------------------------------------------------ 17. reduced motion */

@media (prefers-reduced-motion: reduce) {
  .bg__glow, .btn--prominent::after, .link__beam, .marquee__track,
  .seg::before, .seg span, .flow__scene, .flow__ping, .flow__packet, .flow__icon--app, .find__caret { animation: none !important; }
  .js [data-reveal], .js .perf [data-grow] i, .js .deal [data-strike]::after, .js .deal [data-pop],
  .js .trace__chev, .js .trace__lines li, .js .trace .copy, .js [data-reveal] .ticks li, .js .acct__note {
    opacity: 1; transform: none; scale: 1; transition: none;
  }
  .js .acct__tick path { stroke-dashoffset: 0; transition: none; }
  /* still, the wire's two travellers would be invisible: show the figure on its way back */
  .flow__ping { display: none; }
  .flow__packet { left: 50%; opacity: 1; }
  .js .deal [data-strike]::after { transform: rotate(-6deg); }
  .js .marquee__track { flex-wrap: wrap; justify-content: center; margin-inline: auto; width: auto; }
  /* the switch holds still, so show both of its scenes, one above the other */
  .flow__stage { gap: var(--s6); }
  .flow__scene { grid-area: auto; }
  .seg { display: none; }
}
