/* TALLISFY website. Same world as the app (DESIGN.md): ivory paper, deep teal ink, champagne gold,
   and one jewel colour per module. Colours come from tokens only; dark is its own palette, not an inversion. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --page: #fafbf8;
  --surface: #ffffff;
  --sunken: #f4f5f1;
  --ink: #18313d;
  --ink-2: #2f4652;
  --muted: #5b6d78;
  --line: #e5e7e3;
  --line-strong: #d3d8d1;
  --primary: #0d6a63;
  --primary-ink: #0b4744;
  --primary-tint: #e3f0ed;
  --on-primary: #ffffff;
  --gold: #b08d57;
  --gold-ink: #7a5d2f;
  --champagne: #f6ecdc;
  --deep: #0f2e30;
  --deep-2: #143c3e;
  --on-deep: #f3efe4;
  --on-deep-muted: #b9c9c4;

  --teal: #0d8a80;
  --emerald: #11875a;
  --sapphire: #2f63d6;
  --amethyst: #7148d4;
  --amber: #c7720f;
  --coral: #d8394f;
  --jewel-gold: #b8892f;
  --sky: #0f7fb8;

  --dr: #11733f;
  --cr: #b42338;
  --on-j: #ffffff;
  --btn-shadow: 0 10px 24px -12px rgb(13 74 70 / 0.55);
  --btn-shadow-hover: 0 16px 32px -14px rgb(13 74 70 / 0.6);

  --shadow-sm: 0 1px 2px rgb(16 40 44 / 0.06), 0 2px 6px rgb(16 40 44 / 0.05);
  --shadow-md: 0 2px 4px rgb(16 40 44 / 0.05), 0 12px 28px -8px rgb(16 40 44 / 0.16);
  --shadow-lg: 0 4px 10px rgb(16 40 44 / 0.06), 0 30px 70px -20px rgb(16 40 44 / 0.32);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --page: #121b27;
    --surface: #1a2534;
    --sunken: #16202d;
    --ink: #eef1ec;
    --ink-2: #d3dbd6;
    --muted: #9eadb6;
    --line: #2a3849;
    --line-strong: #3a4a5f;
    --primary: #5bbcae;
    --primary-ink: #9edcd2;
    --primary-tint: #1d3a3d;
    --on-primary: #0d2422;
    --gold: #d6b47e;
    --gold-ink: #e3c896;
    --champagne: #3a3122;
    --deep: #0c2227;
    --deep-2: #12303a;
    --teal: #2bb3a5;
    --emerald: #2fae7a;
    --sapphire: #6b97f2;
    --amethyst: #a58af2;
    --amber: #e3963a;
    --coral: #ef6b7c;
    --jewel-gold: #d9b066;
    --sky: #3aa7dc;
    --dr: #4cc68a;
    --cr: #f07a8a;
    --on-j: #0d1b22;
    --btn-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.7);
    --btn-shadow-hover: 0 16px 32px -14px rgb(0 0 0 / 0.75);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-md: 0 2px 4px rgb(0 0 0 / 0.25), 0 14px 30px -10px rgb(0 0 0 / 0.55);
    --shadow-lg: 0 4px 10px rgb(0 0 0 / 0.3), 0 34px 80px -20px rgb(0 0 0 / 0.7);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #121b27;
  --surface: #1a2534;
  --sunken: #16202d;
  --ink: #eef1ec;
  --ink-2: #d3dbd6;
  --muted: #9eadb6;
  --line: #2a3849;
  --line-strong: #3a4a5f;
  --primary: #5bbcae;
  --primary-ink: #9edcd2;
  --primary-tint: #1d3a3d;
  --on-primary: #0d2422;
  --gold: #d6b47e;
  --gold-ink: #e3c896;
  --champagne: #3a3122;
  --deep: #0c2227;
  --deep-2: #12303a;
  --teal: #2bb3a5;
  --emerald: #2fae7a;
  --sapphire: #6b97f2;
  --amethyst: #a58af2;
  --amber: #e3963a;
  --coral: #ef6b7c;
  --jewel-gold: #d9b066;
  --sky: #3aa7dc;
  --dr: #4cc68a;
  --cr: #f07a8a;
  --on-j: #0d1b22;
  --btn-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.7);
  --btn-shadow-hover: 0 16px 32px -14px rgb(0 0 0 / 0.75);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-md: 0 2px 4px rgb(0 0 0 / 0.25), 0 14px 30px -10px rgb(0 0 0 / 0.55);
  --shadow-lg: 0 4px 10px rgb(0 0 0 / 0.3), 0 34px 80px -20px rgb(0 0 0 / 0.7);
}

/* Module jewels: each module owns one colour (set with a class, no inline styles: the CSP forbids them). */
.j-teal { --j: var(--teal); }
.j-emerald { --j: var(--emerald); }
.j-sapphire { --j: var(--sapphire); }
.j-amethyst { --j: var(--amethyst); }
.j-amber { --j: var(--amber); }
.j-coral { --j: var(--coral); }
.j-gold { --j: var(--jewel-gold); }
.j-sky { --j: var(--sky); }
/* A jewel strong enough to carry text: deepened in light, as-is in dark (text then turns dark, --on-j). */
[class*='j-'] { --j-solid: color-mix(in oklab, var(--j) 80%, #06282a); }
:root[data-theme='dark'] [class*='j-'] { --j-solid: var(--j); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) [class*='j-'] { --j-solid: var(--j); } }

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 'Manrope', system-ui, sans-serif;
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
svg.i { width: 1em; height: 1em; flex: none; }
a svg.i, p svg.i, span > svg.i { display: inline-block; vertical-align: -0.14em; }
a { color: var(--primary-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.012em; line-height: 1.12; text-wrap: balance; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in oklab, var(--gold) 38%, transparent); color: var(--ink); }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--primary) 70%, transparent); outline-offset: 3px; border-radius: 8px; }
html { scrollbar-color: color-mix(in oklab, var(--primary) 45%, var(--line)) transparent; scrollbar-width: thin; }
.num { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: transform 200ms var(--ease-out); }
.skip:focus { transform: translateY(72px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.h2 { font-size: clamp(30px, 4.2vw, 50px); }
.h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.005em; }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); max-width: 62ch; line-height: 1.6; }
.muted { color: var(--muted); }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.gold-rule { width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), color-mix(in oklab, var(--gold) 20%, transparent)); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 800; font-size: 16px; letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), box-shadow 240ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--primary); color: var(--on-primary);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.22) inset, var(--btn-shadow);
}
.btn-primary .arrow { transition: transform 240ms var(--ease-out); }
.btn-line { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-gold { background: var(--champagne); color: var(--gold-ink); border-color: color-mix(in oklab, var(--gold) 45%, transparent); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 1px 0 rgb(255 255 255 / 0.22) inset, var(--btn-shadow-hover); }
  .btn-primary:hover .arrow { transform: translateX(4px); }
  .btn-line:hover { border-color: var(--primary); color: var(--primary-ink); }
  .btn-ghost:hover { background: var(--sunken); }
}

/* ---------- status badges (the only words used for a feature's state) ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.01em; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.live { background: color-mix(in oklab, var(--emerald) 13%, var(--surface)); color: color-mix(in oklab, var(--emerald) 78%, var(--ink)); }
.badge.setup { background: color-mix(in oklab, var(--amber) 15%, var(--surface)); color: color-mix(in oklab, var(--amber) 70%, var(--ink)); }
.badge.later { background: color-mix(in oklab, var(--sapphire) 12%, var(--surface)); color: color-mix(in oklab, var(--sapphire) 72%, var(--ink)); }
.badge.sample { background: var(--champagne); color: var(--gold-ink); }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in oklab, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(16 40 44 / 0.4); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; }
.logo-dark { display: none; }
:root[data-theme='dark'] .logo-light { display: none; }
:root[data-theme='dark'] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .logo-light { display: none; }
  :root:not([data-theme='light']) .logo-dark { display: block; }
}
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a { position: relative; padding: 10px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color 160ms ease; }
.nav-links a[aria-current='page'] { color: var(--primary-ink); }
.nav-links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); }
.nav-links a[aria-current='page']::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
  .nav-links a:hover::after { transform: scaleX(1); }
}
.nav-cta { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: transform 160ms var(--ease-out), border-color 200ms ease; }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.theme-btn .sun, .theme-btn .moon, .theme-btn .auto { display: none; }
.theme-btn[data-mode='light'] .sun, .theme-btn[data-mode='dark'] .moon, .theme-btn[data-mode='system'] .auto { display: block; }

@media (max-width: 1080px) {
  .nav-links, .nav-cta .hide-sm { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-cta { margin-left: auto; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer[data-open='true'] { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgb(8 22 24 / 0.5); opacity: 0; transition: opacity 280ms ease; }
.drawer-panel {
  position: absolute; inset: 0 0 0 auto; width: min(380px, 88vw); background: var(--surface);
  display: flex; flex-direction: column; padding: 18px 20px 28px; gap: 6px; overflow-y: auto;
  transform: translateX(100%); transition: transform 380ms var(--ease-drawer);
  box-shadow: var(--shadow-lg);
}
.drawer[data-open='true'] .drawer-scrim { opacity: 1; }
.drawer[data-open='true'] .drawer-panel { transform: translateX(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.drawer a.link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; border-radius: 12px; font-weight: 700; color: var(--ink); text-decoration: none; }
.drawer a.link .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in oklab, var(--j) 14%, var(--surface)); color: var(--j); }
.drawer a.link .dot svg { width: 17px; height: 17px; }
.drawer a.link[aria-current='page'] { background: var(--primary-tint); }
.drawer .btns { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; }
body.locked { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(40px, 5vw, 72px); isolation: isolate; overflow-x: clip; }
.aura { position: absolute; inset: -10% -5% 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.aura i:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle, color-mix(in oklab, var(--teal) 40%, transparent), transparent 68%); }
.aura i:nth-child(2) { width: 38vw; height: 38vw; right: -8vw; top: -6vw; background: radial-gradient(circle, color-mix(in oklab, var(--gold) 45%, transparent), transparent 66%); }
.aura i:nth-child(3) { width: 30vw; height: 30vw; right: 22vw; top: 22vw; background: radial-gradient(circle, color-mix(in oklab, var(--amethyst) 22%, transparent), transparent 66%); }
.grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5; background-image: radial-gradient(color-mix(in oklab, var(--ink) 9%, transparent) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 .accent svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: 0.3em; color: var(--gold); overflow: visible; }
.hero h1 .accent path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero .lead { margin-top: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.fine span { display: inline-flex; align-items: center; gap: 6px; }
.fine svg { width: 16px; height: 16px; color: var(--emerald); }
.who { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.who span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in oklab, var(--surface) 70%, transparent); font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* entrance: one authored moment. Visible by default; JS adds .pre only when motion is allowed. */
.pre [data-in] { opacity: 0; transform: translateY(18px); filter: blur(6px); }
.play [data-in] { opacity: 1; transform: none; filter: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), filter 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.i0{--i:0}.i1{--i:1}.i2{--i:2}.i3{--i:3}.i4{--i:4}.i5{--i:5}.i6{--i:6}.i7{--i:7}.i8{--i:8}
.d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; } .d5 { --d: 5; } .d6 { --d: 6; }
.play .hero h1 .accent path { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease-in-out) 600ms; }
.pre .hero h1 .accent path { stroke-dashoffset: 1; }
.hero h1 .accent path { stroke-dashoffset: 0; }

/* ---------- the app window (interactive demo) ---------- */
.stage { position: relative; perspective: 1600px; }
.stage .glow { position: absolute; inset: 8% -4% -6%; z-index: -1; border-radius: 40px; background: conic-gradient(from 200deg, var(--teal), var(--sapphire), var(--amethyst), var(--coral), var(--amber), var(--jewel-gold), var(--teal)); filter: blur(46px); opacity: 0.28; }
.app {
  position: relative; border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
}
.pre .app[data-in] { transform: translateY(40px) rotateX(10deg) scale(0.96); clip-path: inset(8% 4% 20% 4% round 24px); filter: none; }
.play .app[data-in] { clip-path: inset(0 0 0 0 round 24px); transition: opacity 800ms var(--ease-out) 250ms, transform 1100ms var(--ease-out) 250ms, clip-path 1100ms var(--ease-out) 250ms; }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.lights i:nth-child(1) { background: #ec6a5e; } .lights i:nth-child(2) { background: #f4bf4f; } .lights i:nth-child(3) { background: #61c554; }
.app-title { font-size: 13px; font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-right: auto; }
.app-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: 452px; }
.app-side { border-right: 1px solid var(--line); padding: 12px 10px; display: grid; align-content: start; gap: 3px; background: color-mix(in oklab, var(--sunken) 60%, var(--surface)); }
.tab {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 11px;
  border: 0; background: transparent; cursor: pointer; text-align: left; font-weight: 700; font-size: 14px; color: var(--ink-2);
  position: relative; transition: background-color 200ms ease, color 200ms ease;
}
.tab .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in oklab, var(--j) 13%, var(--surface)); color: var(--j); transition: transform 200ms var(--ease-out); }
.tab .ic svg { width: 16px; height: 16px; }
.tab[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab[aria-selected='true'] .ic { background: var(--j-solid); color: var(--on-j); }
.tab:active .ic { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--ink); } }
.app-main { padding: 20px; position: relative; overflow: hidden; }
.panel { display: none; }
.panel.on { display: block; animation: panel-in 320ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.p-title { font-size: 17px; font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.kpi small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kpi small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--j); }
.kpi b { display: block; margin-top: 4px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi.flash { animation: flash 900ms var(--ease-out); }
@keyframes flash { 0% { background: color-mix(in oklab, var(--j) 20%, var(--surface)); } }
.chart { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.chart-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 118px; margin-top: 10px; }
.bars span { display: block; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--teal), color-mix(in oklab, var(--teal) 55%, var(--surface))); transform-origin: bottom; transform: scaleY(var(--h, 0.5)); transition: transform 700ms var(--ease-out); height: 100%; }
.bars span.today { background: linear-gradient(180deg, var(--jewel-gold), color-mix(in oklab, var(--jewel-gold) 50%, var(--surface))); }
.bars.zero span { transform: scaleY(0.02); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 6px; font-size: 11px; color: var(--muted); text-align: center; font-weight: 700; }
.h10{--h:.1}.h20{--h:.2}.h30{--h:.3}.h40{--h:.4}.h50{--h:.5}.h60{--h:.6}.h70{--h:.7}.h80{--h:.8}.h90{--h:.9}.h100{--h:1}

.bill { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bill-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 86px; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.bill-row:last-child { border-bottom: 0; }
.bill-row.th { background: var(--sunken); font-size: 12px; font-weight: 800; color: var(--muted); padding-block: 8px; }
.bill-row .nm b { display: block; font-weight: 700; }
.bill-row .nm small { color: var(--muted); font-size: 12px; }
.bill-row .amt { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.step button { width: 32px; height: 32px; border: 0; background: var(--sunken); cursor: pointer; display: grid; place-items: center; transition: background-color 160ms ease; }
.step button:active { background: var(--primary-tint); }
.step button svg { width: 14px; height: 14px; }
.step output { min-width: 30px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.totals { display: grid; gap: 4px; padding: 12px; margin-top: 12px; border-radius: 14px; background: var(--sunken); font-size: 14px; }
.totals div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.totals .grand { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-size: 18px; font-weight: 800; }
.bill-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.party-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--primary-tint); color: var(--primary-ink); font-weight: 800; font-size: 13px; }

.toast {
  position: absolute; left: 50%; top: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 28px);
  padding: 10px 16px; border-radius: 999px; background: var(--deep); color: var(--on-deep); font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-md); opacity: 0; transform: translate(-50%, -12px) scale(0.97); pointer-events: none;
  transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-out);
}
.toast svg { width: 18px; height: 18px; color: #6fe0b0; display: block; }
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

.ledger { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 13.5px; }
.ledger .r { display: grid; grid-template-columns: 70px minmax(0, 1fr) 96px 104px; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.ledger .r:last-child { border-bottom: 0; }
.ledger .r.th { background: var(--sunken); font-size: 12px; font-weight: 800; color: var(--muted); }
.ledger .r.new { animation: row-in 700ms var(--ease-out); }
@keyframes row-in { from { background: color-mix(in oklab, var(--gold) 22%, var(--surface)); } }
.ledger .r span:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.dr { color: var(--dr); } .cr { color: var(--cr); }
.close-strip { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; margin-bottom: 12px; border-radius: 14px; background: color-mix(in oklab, var(--emerald) 10%, var(--surface)); border: 1px solid color-mix(in oklab, var(--emerald) 25%, transparent); font-weight: 800; }
.close-strip b { font-size: 20px; font-variant-numeric: tabular-nums; }

.stock { display: grid; gap: 8px; }
.stock .it { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.stock .meter { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; }
.stock .meter i { display: block; height: 100%; border-radius: 6px; background: var(--sky); transform-origin: left; transition: transform 600ms var(--ease-out); }
.stock .it.low .meter i { background: var(--coral); }
.stock .qty { font-weight: 800; font-variant-numeric: tabular-nums; }

.gst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gst-grid .kpi b { font-size: 18px; }
.check { margin-top: 12px; display: grid; gap: 6px; }
.check li { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 12px; background: var(--sunken); }
.check svg { width: 18px; height: 18px; color: var(--emerald); flex: none; }

.pl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pl div { display: flex; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; font-size: 14.5px; }
.pl div:last-child { border-bottom: 0; font-weight: 800; background: color-mix(in oklab, var(--emerald) 9%, var(--surface)); }
.pl div.sub { padding-left: 28px; color: var(--muted); font-size: 13.5px; }

.hint { display: block; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.hint svg { width: 16px; height: 16px; color: var(--jewel-gold); margin-right: 6px; }
.hint b { color: var(--ink); }

@media (max-width: 640px) {
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; scrollbar-width: none; }
  .app-side::-webkit-scrollbar { display: none; }
  .tab { min-height: 40px; }
  .app-main { padding: 14px; }
  .bill-row { grid-template-columns: minmax(0, 1fr) 96px 74px; font-size: 13px; }
  .ledger .r { grid-template-columns: 56px minmax(0, 1fr) 84px; }
  .ledger .r span:nth-child(3) { display: none; }
  .gst-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- one entry, every book ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 800; font-size: 14.5px; color: var(--ink-2);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.chip svg { width: 17px; height: 17px; color: var(--j); transition: color 200ms ease; }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed='true'], .chip[aria-selected='true'] { background: var(--j-solid); border-color: var(--j-solid); color: var(--on-j); }
.chip[aria-pressed='true'] svg, .chip[aria-selected='true'] svg { color: var(--on-j); }
.entry-card { margin-top: 22px; padding: 22px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-md); }
.entry-card .what { font-weight: 800; font-size: 20px; }
.entry-card .sum { margin-top: 6px; color: var(--muted); }
.entry-card .big { margin-top: 14px; font-size: 34px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.books { position: relative; display: grid; gap: 10px; }
.book {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface);
  transition: opacity 300ms ease, transform 400ms var(--ease-out), border-color 300ms ease, box-shadow 300ms ease;
}
.book .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--j) 13%, var(--surface)); color: var(--j); }
.book .ic svg { width: 22px; height: 22px; }
.book b { display: block; font-weight: 800; }
.book small { color: var(--muted); font-size: 14px; }
.book .fx { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.book.off { opacity: 0.42; transform: scale(0.985); }
.book.off .fx { color: var(--muted); }
.book.hit { border-color: color-mix(in oklab, var(--j) 60%, var(--line)); background: color-mix(in oklab, var(--j) 6%, var(--surface)); }
.book.hit .fx { animation: pop 500ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .book { grid-template-columns: 44px minmax(0, 1fr); } .book .fx { grid-column: 2; text-align: left; white-space: normal; } }

/* ---------- modules rail ---------- */
.rail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.rail-tabs { display: grid; gap: 4px; position: sticky; top: calc(var(--nav-h) + 24px); }
.rail-tab {
  display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 16px; border-radius: 16px; border: 1px solid transparent;
  background: transparent; cursor: pointer; text-align: left; font-weight: 800; font-size: 16.5px; color: var(--ink-2);
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}
.rail-tab .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in oklab, var(--j) 13%, var(--surface)); color: var(--j); transition: background-color 220ms ease, color 220ms ease; }
.rail-tab .ic svg { width: 20px; height: 20px; }
.rail-tab[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-md); }
.rail-tab[aria-selected='true'] .ic { background: var(--j-solid); color: var(--on-j); }
@media (hover: hover) and (pointer: fine) { .rail-tab:hover { color: var(--ink); } }
.rail-panel { display: none; }
.rail-panel.on { display: block; animation: panel-in 380ms var(--ease-out); }
.rail-panel .top { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: linear-gradient(135deg, color-mix(in oklab, var(--j) 14%, var(--surface)), var(--surface) 60%); border: 1px solid color-mix(in oklab, var(--j) 22%, var(--line)); }
.rail-panel h3 { font-size: clamp(24px, 2.6vw, 32px); }
.rail-panel .top p { margin-top: 10px; color: var(--ink-2); font-size: 17.5px; }
.rail-panel .more { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary-ink); text-decoration: none; }
.rail-panel .more svg { width: 18px; height: 18px; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .rail-panel .more:hover svg { transform: translateX(4px); } }
.feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 8px; }
.feat { padding: 20px 4px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.feat .t { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 16.5px; }
.feat p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 960px) {
  .rail { grid-template-columns: 1fr; }
  .rail-tabs { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .rail-tabs::-webkit-scrollbar { display: none; }
  .rail-tab { min-height: 50px; font-size: 15px; }
}
@media (max-width: 640px) { .feat-list { grid-template-columns: 1fr; } }

/* ---------- deep band (trust) ---------- */
.deep {
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, var(--teal) 30%, var(--deep)), var(--deep) 55%), var(--deep);
  color: var(--on-deep); position: relative; overflow: hidden;
}
.deep::after { content: ''; position: absolute; top: 0; bottom: 0; left: max(var(--gutter), calc(50% - var(--wrap) / 2 - 28px)); width: 1px; background: linear-gradient(180deg, rgb(214 180 126 / 0.5), transparent 70%); pointer-events: none; }
.deep h2, .deep h3 { color: #fbf7ee; }
.deep .lead, .deep p { color: var(--on-deep-muted); }
.deep .gold-rule { background: linear-gradient(90deg, #d6b47e, transparent); }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgb(214 180 126 / 0.22); }
.trust li { padding: 30px 28px 30px 0; border-bottom: 1px solid rgb(214 180 126 / 0.22); display: grid; gap: 10px; align-content: start; }
.trust li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid rgb(214 180 126 / 0.22); }
.trust svg { width: 26px; height: 26px; color: #d6b47e; }
.trust h3 { font-size: 22px; }
@media (max-width: 900px) {
  .deep::after { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust li, .trust li:not(:nth-child(3n + 1)) { padding: 24px 20px 24px 0; border-left: 0; }
  .trust li:nth-child(even) { padding-left: 20px; border-left: 1px solid rgb(214 180 126 / 0.22); }
}
@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; }
  .trust li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- online store flow ---------- */
.journey { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.journey li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 15px; box-shadow: var(--shadow-sm); }
.journey li svg { width: 18px; height: 18px; color: var(--j); }
.journey .to { color: var(--gold); padding: 0; border: 0; background: none; box-shadow: none; }
.journey .to svg { color: var(--gold); }

/* ---------- industries ---------- */
.inds { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.inds li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; color: var(--ink-2); transition: transform 240ms var(--ease-out), border-color 240ms ease; }
.inds li svg { width: 18px; height: 18px; color: var(--j); }
@media (hover: hover) and (pointer: fine) { .inds li:hover { transform: translateY(-3px); border-color: var(--j); } }

/* ---------- pricing ---------- */
.billing-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.billing-toggle button { position: relative; z-index: 1; min-height: 44px; padding: 0 22px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-weight: 800; color: var(--muted); transition: color 240ms ease; }
.billing-toggle button[aria-pressed='true'] { color: var(--on-primary); }
.billing-toggle .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--primary); transition: transform 320ms var(--ease-out); }
.billing-toggle[data-cycle='yearly'] .thumb { transform: translateX(100%); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 36px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.plan.best { border: 2px solid var(--gold); box-shadow: var(--shadow-md); }
.plan .tag { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: #1f1608; font-size: 12.5px; font-weight: 800; }
.plan h3 { font-size: 21px; }
.price { display: flex; align-items: baseline; gap: 6px; min-height: 52px; }
.price b { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; transition: opacity 200ms ease, transform 260ms var(--ease-out); }
.price.swap b { opacity: 0; transform: translateY(-6px); }
.price span { color: var(--muted); font-weight: 700; }
.plan .save { font-size: 13.5px; font-weight: 800; color: var(--emerald); min-height: 20px; }
.plan ul { display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; color: var(--emerald); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
@media (hover: hover) and (pointer: fine) { .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--sunken), color-mix(in oklab, var(--line) 70%, var(--sunken)), var(--sunken)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.plan .skel { height: 300px; }
.price-note { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-weight: 800; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); transition: transform 300ms var(--ease-out), background-color 200ms ease; }
.faq summary .pm svg { width: 18px; height: 18px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--champagne); color: var(--gold-ink); }
.faq .a { padding: 0 52px 24px 4px; color: var(--ink-2); }
.faq details::details-content { transition: content-visibility 300ms allow-discrete, height 300ms var(--ease-out); height: 0; overflow: clip; }
.faq details[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- final CTA ---------- */
.final { text-align: center; padding: clamp(48px, 7vw, 88px) var(--gutter); border-radius: var(--r-xl); position: relative; overflow: hidden; isolation: isolate; background: var(--deep); color: var(--on-deep); }
.final::before { content: ''; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 90deg at 50% 50%, color-mix(in oklab, var(--teal) 50%, transparent), color-mix(in oklab, var(--gold) 45%, transparent), color-mix(in oklab, var(--amethyst) 30%, transparent), color-mix(in oklab, var(--teal) 50%, transparent)); filter: blur(70px); opacity: 0.55; }
.final h2 { color: #fbf7ee; font-size: clamp(30px, 4.6vw, 56px); }
.final p { margin: 16px auto 0; max-width: 56ch; color: var(--on-deep-muted); font-size: 18px; }
.final .cta-row { justify-content: center; }
.final .btn-primary { background: #f3efe4; color: #0b3b38; }
.final .btn-line { background: transparent; color: #f3efe4; border-color: rgb(243 239 228 / 0.35); }

/* ---------- inner page hero ---------- */
.page-hero { overflow-x: clip; position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(16px, 2vw, 24px); isolation: isolate; overflow: hidden; }
.page-hero .aura i:nth-child(1) { background: radial-gradient(circle, color-mix(in oklab, var(--j, var(--teal)) 34%, transparent), transparent 68%); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.018em; max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }
.crumbs .here { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: color-mix(in oklab, var(--j) 12%, var(--surface)); color: var(--ink); }
.crumbs .mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--j-solid); color: var(--on-j); }
.crumbs .mark svg { width: 15px; height: 15px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs svg { width: 14px; height: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; font-size: 14px; color: var(--muted); }

.grid-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; border-top: 1px solid var(--line); }
.grid-feats .feat { padding: 26px 0; }
.grid-feats .feat { grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; }
.grid-feats .feat .t, .grid-feats .feat p { grid-column: 2; }
.grid-feats .feat .ic { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--j) 13%, var(--surface)); color: var(--j); }
.grid-feats .feat .ic svg { width: 21px; height: 21px; }
@media (max-width: 960px) { .grid-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-feats { grid-template-columns: 1fr; } }

.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.mod { display: grid; gap: 12px; padding: 26px; border-radius: var(--r-lg); text-decoration: none; color: inherit; background: linear-gradient(160deg, color-mix(in oklab, var(--j) 11%, var(--surface)), var(--surface) 55%); border: 1px solid color-mix(in oklab, var(--j) 20%, var(--line)); transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
.mod-top { display: flex; align-items: center; gap: 14px; }
.mod .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--j-solid); color: var(--on-j); }
.mod .ic svg { width: 24px; height: 24px; }
.mod h3 { font-size: 22px; }
.mod p { color: var(--ink-2); }
.mod .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--primary-ink); }
.mod .go svg { width: 17px; height: 17px; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .mod:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .mod:hover .go svg { transform: translateX(4px); }
}

.prose { max-width: 70ch; display: grid; gap: 18px; font-size: 18px; color: var(--ink-2); }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 18px; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.principles li { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.principles svg { width: 26px; height: 26px; color: var(--jewel-gold); margin-top: 2px; }
.principles b { display: block; font-size: 18px; margin-bottom: 4px; }
.principles p { color: var(--muted); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.contact-card { display: grid; gap: 8px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-card svg { width: 24px; height: 24px; color: var(--j); }
.contact-card b { font-size: 17px; }
.contact-card a, .contact-card span { font-weight: 700; word-break: break-word; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); background: var(--sunken); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding-block: 56px 28px; }
.foot h2 { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--primary-ink); text-decoration: underline; }
.foot .about p { margin-top: 14px; color: var(--muted); max-width: 36ch; font-size: 15px; }
.foot .bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* ---------- scroll reveal ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); }
.js-reveal [data-reveal].seen { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- 404 ---------- */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.lost b { font-size: clamp(90px, 16vw, 180px); line-height: 1; letter-spacing: -0.04em; color: var(--primary); }

/* Reduced motion: keep fades that explain a change, drop movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .pre [data-in], .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .panel.on, .rail-panel.on { animation: fade 200ms ease; }
  .bars span, .stock .meter i, .billing-toggle .thumb, .drawer-panel { transition-duration: 0ms !important; }
  .btn:active, .chip:active, .icon-btn:active { transform: none; }
  .skel { animation: none; }
}
@keyframes fade { from { opacity: 0; } }

@media print { .nav, .drawer, .foot, .final { display: none; } }

/* ======================================================================
   Premium layer (19 Oct): reading progress, hero floats, ribbon, bento,
   GST calculator, pointer spotlight, gold-ringed plan, living CTA glow.
   Same tokens and jewels as above; nothing here adds a new colour.
   ====================================================================== */

/* reading progress: a jewel thread under the bar */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; overflow: hidden; }
.progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--sapphire), var(--amethyst), var(--coral), var(--amber), var(--jewel-gold)); }
@supports (animation-timeline: scroll()) {
  .progress i { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* primary button: one slow sheen on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.28) 50%, transparent 65%); transform: translateX(-120%); }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover::after { transform: translateX(120%); transition: transform 900ms var(--ease-out); } }

/* hero: two sample notifications float beside the app window */
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  border-radius: 16px; background: color-mix(in oklab, var(--surface) 88%, transparent); border: 1px solid color-mix(in oklab, var(--j) 30%, var(--line));
  backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: var(--shadow-md);
  font-size: 13px; line-height: 1.3; animation: bob 6s var(--ease-in-out) infinite alternate;
}
.float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--j-solid); color: var(--on-j); flex: none; }
.float .ic svg { width: 18px; height: 18px; }
.float b { display: block; font-weight: 800; color: var(--ink); }
.float small { color: var(--muted); font-weight: 600; }
.float.f1 { left: -28px; bottom: 54px; }
.float.f2 { right: -22px; top: 64px; animation-delay: -3s; }
@keyframes bob { from { translate: 0 -6px; } to { translate: 0 6px; } }
.pre .float { opacity: 0; scale: 0.9; }
.play .float { transition: opacity 600ms var(--ease-out) 1300ms, scale 700ms var(--ease-out) 1300ms; }
@media (max-width: 1180px) { .float.f1 { left: 8px; } .float.f2 { right: 8px; } }
@media (max-width: 640px) { .float { display: none; } }

/* industries: an endless ribbon that pauses under the pointer */
.marquee { display: flex; overflow: hidden; gap: 10px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding-block: 6px; }
.marquee .inds { flex: none; flex-wrap: nowrap; justify-content: flex-start; animation: ribbon 38s linear infinite; }
.marquee:hover .inds, .marquee:focus-within .inds { animation-play-state: paused; }
.marquee .inds li { background: color-mix(in oklab, var(--j) 9%, var(--surface)); border-color: color-mix(in oklab, var(--j) 26%, var(--line)); }
@keyframes ribbon { to { transform: translateX(calc(-100% - 10px)); } }

/* pointer spotlight on cards (vars set by site.js; fine pointers only) */
.spot, .mod, .plan { position: relative; isolation: isolate; }
.spot::before, .mod::before, .plan::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--j, var(--gold)) 16%, transparent), transparent 60%);
}
@media (hover: hover) and (pointer: fine) { .spot:hover::before, .mod:hover::before, .plan:hover::before { opacity: 1; } }

/* recently added: a bento of jewel tiles */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(155deg, color-mix(in oklab, var(--j) 15%, var(--surface)), var(--surface) 62%);
  border: 1px solid color-mix(in oklab, var(--j) 24%, var(--line)); box-shadow: var(--shadow-sm);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.tile .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--j-solid); color: var(--on-j); box-shadow: 0 8px 18px -10px var(--j); }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { font-size: 19px; margin-top: 4px; }
.tile p { color: var(--ink-2); font-size: 15.5px; }
.tile .badge { margin-top: auto; align-self: flex-start; }
.tile.big { grid-column: span 2; grid-row: span 2; padding: clamp(26px, 3vw, 36px); }
.tile.big h3 { font-size: clamp(24px, 2.4vw, 30px); }
.tile.big p { font-size: 17px; max-width: 40ch; }
.tile.wide { grid-column: span 2; }
.fx-bill { margin-block: 14px 4px; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px dashed color-mix(in oklab, var(--j) 45%, var(--line-strong)); display: grid; gap: 8px; box-shadow: var(--shadow-md); }
.fx-bill div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.fx-bill span { color: var(--muted); font-weight: 700; font-size: 14px; }
.fx-bill b { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.01em; }
.fx-bill div + div b { color: var(--j-solid); }
.fx-bill small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile.big, .tile.wide { grid-column: auto; grid-row: auto; } }

/* GST calculator */
.calc-band { background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--amber) 6%, transparent) 30%, color-mix(in oklab, var(--jewel-gold) 7%, transparent) 70%, transparent); }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.calc-in { display: grid; gap: 22px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.amt-field, .seg legend { font-weight: 800; font-size: 14px; color: var(--muted); letter-spacing: 0.02em; }
.amt-box { display: flex; align-items: center; gap: 8px; margin-top: -12px; padding: 0 18px; min-height: 68px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--sunken); transition: border-color 200ms ease, box-shadow 200ms ease; }
.amt-box:focus-within { border-color: var(--j-solid); box-shadow: 0 0 0 4px color-mix(in oklab, var(--j) 18%, transparent); }
.amt-box .cur { font-size: 28px; font-weight: 800; color: var(--j-solid); }
.amt-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 800 clamp(26px, 3vw, 34px)/1 'Manrope', system-ui, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; caret-color: var(--j-solid); }
.amt-box input[aria-invalid='true'] { color: var(--cr); }
.calc-err { margin-top: -12px; color: var(--cr); font-weight: 700; font-size: 14px; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 10px; }
.seg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-weight: 800; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.seg input:checked + span { background: var(--j-solid); border-color: var(--j-solid); color: var(--on-j); }
.seg input:focus-visible + span { outline: 3px solid color-mix(in oklab, var(--j) 60%, transparent); outline-offset: 2px; }
.seg label:active span { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .seg input:not(:checked):hover + span { border-color: var(--j); color: var(--ink); } }
.calc-out {
  display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in oklab, var(--amber) 26%, var(--deep)), var(--deep) 60%); color: var(--on-deep);
  box-shadow: var(--shadow-lg); --j: var(--jewel-gold);
}
.calc-out > small { font-weight: 800; color: var(--on-deep-muted); font-size: 14px; letter-spacing: 0.02em; }
.calc-out .big { font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.02em; color: #fbf7ee; line-height: 1.1; }
.split { display: flex; height: 10px; margin: 14px 0 8px; border-radius: 10px; overflow: hidden; background: rgb(255 255 255 / 0.08); }
.split i { display: block; height: 100%; flex: 1 1 0; transform-origin: left; transition: transform 500ms var(--ease-out); }
.split i.tx, .key.tx { background: #5bbcae; }
.split i.gs, .key.gs { background: #d6b47e; }
.split i.gs { transform-origin: right; }
.calc-out dl { margin: 6px 0 0; display: grid; }
.calc-out dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgb(214 180 126 / 0.18); }
.calc-out dl div[hidden] { display: none; }
.calc-out dt { display: flex; align-items: center; gap: 10px; color: var(--on-deep-muted); font-weight: 600; }
.calc-out dd { margin: 0; font-weight: 800; color: #fbf7ee; }
.calc-out dl .sum { border-bottom: 0; }
.calc-out dl .sum dt, .calc-out dl .sum dd { color: #e3c896; font-weight: 800; }
.key { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.calc-act { margin-top: auto; padding-top: 14px; }
.calc-out .btn-line { background: transparent; color: #f3efe4; border-color: rgb(243 239 228 / 0.3); }
@media (hover: hover) and (pointer: fine) { .calc-out .btn-line:hover { border-color: #d6b47e; color: #fbf7ee; } }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

/* the recommended plan wears a slowly turning gold ring */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.plan.best {
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang), var(--gold), var(--champagne), var(--teal), var(--gold), var(--champagne), var(--gold)) border-box;
  animation: ring 7s linear infinite;
}
@keyframes ring { to { --ang: 360deg; } }
.plans .plan { --j: var(--teal); }
.plans .plan.best { --j: var(--jewel-gold); }

/* final CTA: the colour field turns very slowly */
.final::before { animation: turn 24s linear infinite; }
@keyframes turn { to { rotate: 1turn; } }

.foot .tagline { letter-spacing: 0.02em; }

@media (prefers-reduced-motion: reduce) {
  .float, .marquee .inds, .plan.best, .final::before, .progress i { animation: none !important; }
  .marquee { mask-image: none; }
  .marquee .inds { flex-wrap: wrap; justify-content: center; }
  .marquee .inds[aria-hidden='true'] { display: none; }
  .split i { transition: none; }
  .progress { display: none; }
}
