@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./inter-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --bg: #05070b;
  --bg-raised: #0a0d13;
  --surface: #0e1219;
  --surface-2: #151a24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f2f4f8;
  --text-2: #a4acbb;
  --text-3: #6c7586;

  --paper: #f5f3ee;
  --paper-line: #dedad0;
  --ink: #0b0e14;
  --ink-2: #4d5464;

  --blue: #4c8dff;
  --violet: #8f86ff;
  --amber: #f0a63a;
  --green: #35c98b;
  --accent: var(--blue);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  --text-h3: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --text-h2: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  --text-h1: clamp(2.5rem, 1.2rem + 5.2vw, 4.5rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-section: clamp(72px, 11vw, 152px);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

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

  --shadow-window: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 60px 120px -40px rgba(0, 0, 0, 0.8);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 0.15s;
  --t: 0.3s;
  --t-slow: 0.9s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--text-md)/1.6 var(--font);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(76, 141, 255, 0.35); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-sm); background: var(--text); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background var(--t) var(--ease), border-color var(--t) var(--ease); }
.nav.scrolled, .nav:has(.menu[open]) { background: rgba(5, 7, 11, 0.82); border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.nav-in { display: flex; align-items: center; gap: var(--space-5); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.015em; font-size: 1.0625rem; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand span span { color: var(--text-2); font-weight: 450; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: var(--text-sm); color: var(--text-2); }
.nav-links a { padding: 8px 12px; border-radius: var(--r-sm); transition: color var(--t-fast), background var(--t-fast); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover { background: rgba(255, 255, 255, 0.05); }
.nav .btn { margin-left: var(--space-2); }
.menu { display: none; margin-left: auto; }
.menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--line-strong); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu summary .x, .menu[open] summary .bars { display: none; }
.menu[open] summary .x { display: block; }
.menu-panel { position: absolute; inset: 68px 0 auto 0; padding: var(--space-3) var(--gutter) var(--space-5); background: rgba(5, 7, 11, 0.97); border-bottom: 1px solid var(--line); }
.menu-panel a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 500; }
.menu-panel a svg { width: 18px; height: 18px; color: var(--text-3); }
.menu-panel .btn { margin-top: var(--space-5); width: 100%; border-bottom: 0; justify-content: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  font-weight: 550; font-size: 0.9375rem; letter-spacing: -0.005em; white-space: nowrap; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); }
.btn svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -8px rgba(76, 141, 255, 0.7); }
.btn-primary:hover { background: #6199ff; border-color: transparent; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--text-sm); border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.on-paper .btn { border-color: var(--paper-line); color: var(--ink); background: transparent; }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-weight: 550; }
.link svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.link:hover svg { transform: translateX(3px); }
.link-quiet { color: var(--text-2); font-weight: 450; }
.link-quiet:hover { color: var(--text); }

/* Labels */
.label { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.label-accent { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: var(--r-full); border: 1px solid var(--line); font-size: 0.8125rem; color: var(--text-2); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* Section headings */
.section { padding-block: var(--space-section); }
.head { max-width: 760px; }
.head h2 { margin-top: var(--space-3); font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.034em; font-weight: 650; text-wrap: balance; }
.head p:not(.label) { margin-top: var(--space-5); max-width: 52ch; font-size: var(--text-lg); color: var(--text-2); text-wrap: pretty; }
.caption { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--text-3); }

/* Hero */
.hero { position: relative; padding-top: clamp(40px, 6.5vw, 88px); }
.backdrop { position: absolute; inset: -68px 0 auto 0; height: 900px; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 0%, rgba(76, 141, 255, 0.2), transparent 70%); }
.backdrop::after { content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(60% 55% at 50% 0%, #000, transparent 75%); }
.hero-copy { max-width: 900px; }
.hero h1 { margin-top: var(--space-5); font-size: var(--text-h1); line-height: 1; letter-spacing: -0.038em; font-weight: 660; text-wrap: balance; }
.hero h1 .soft { color: var(--text-3); }
.hero-lede { margin-top: var(--space-5); max-width: 46ch; font-size: var(--text-lg); color: var(--text-2); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.stage { position: relative; margin-top: clamp(40px, 5vw, 72px); aspect-ratio: 1180 / 640; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.stage > * { position: absolute; }
.stage .s-desk { left: 10%; top: 0; width: 80%; }
.stage .s-phone { left: 1.5%; top: 21%; width: 19%; }
.stage .s-pos { right: 0; top: 30%; width: 42%; }

/* Product blocks */
.products { display: grid; gap: var(--space-5); margin-top: clamp(40px, 6vw, 80px); }
.product { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-raised); isolation: isolate; }
.product::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 60% at var(--glow-x, 80%) var(--glow-y, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.product-copy { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4.5vw, 64px); }
.product-copy h3 { margin-top: var(--space-4); font-size: var(--text-h3); line-height: 1.08; letter-spacing: -0.035em; font-weight: 650; }
.product-copy .desc { margin-top: var(--space-4); max-width: 44ch; color: var(--text-2); font-size: var(--text-lg); }
.product-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.points { display: grid; gap: var(--space-3); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); width: 100%; max-width: 460px; }
.points li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 0.9375rem; color: var(--text); }
.points svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); }

.p-fit { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; --glow-x: 85%; --glow-y: 30%; }
.duo { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 3%, 28px); }
.duo > * { flex: 0 1 270px; min-width: 0; }
.duo > :last-child { margin-top: clamp(40px, 9%, 88px); }
.p-fit .visual { padding: 64px 5%; align-self: center; }

.p-time { --glow-x: 50%; --glow-y: 100%; }
.p-time .product-copy { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: var(--space-8); align-items: center; padding-bottom: 0; }
.p-time .points { margin-top: 0; padding-top: 0; border-top: 0; }
.p-time .product-cta { margin-top: var(--space-5); }
.p-time .visual { position: relative; margin: clamp(32px, 5vw, 64px) clamp(28px, 4.5vw, 64px) 0; }
.p-time .v-desk { margin-bottom: -8%; }
.p-time .v-card { position: absolute; right: -3%; bottom: 13%; width: 36%; }

.p-pos { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; --glow-x: 15%; --glow-y: 20%; }
.p-pos .visual { position: relative; padding: clamp(28px, 4.5vw, 64px) 0 clamp(56px, 8vw, 112px) clamp(28px, 4.5vw, 64px); }
.p-pos .v-pos { width: 100%; }
.p-pos .v-receipt { position: absolute; left: 3%; bottom: 5%; width: 29%; transform: rotate(-4deg); }

/* Philosophy */
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.paper .label { color: var(--ink-2); }
.creed { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.creed > :first-child { position: sticky; top: 112px; }
.creed h2 { font-size: clamp(2.75rem, 1.4rem + 6vw, 6rem); line-height: 0.98; letter-spacing: -0.042em; font-weight: 660; margin-top: var(--space-4); }
.creed-lede { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem); line-height: 1.35; letter-spacing: -0.02em; font-weight: 450; text-wrap: pretty; }
.tenets { margin-top: var(--space-7); border-top: 1px solid var(--paper-line); }
.tenets li { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4); padding-block: var(--space-5); border-bottom: 1px solid var(--paper-line); }
.tenets .n { font: 500 var(--text-sm)/1.7 var(--mono); color: var(--ink-2); }
.tenets h3 { font-size: 1.0625rem; font-weight: 620; letter-spacing: -0.015em; }
.tenets p { margin-top: 4px; color: var(--ink-2); }

/* Closing */
.closing { text-align: center; }
.closing .frame { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) var(--gutter); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-raised); isolation: isolate; }
.closing .frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 110%, rgba(76, 141, 255, 0.28), transparent 70%); }
.closing h2 { max-width: 16ch; margin-inline: auto; font-size: var(--text-h2); line-height: 1.04; letter-spacing: -0.036em; font-weight: 660; text-wrap: balance; }
.closing p { max-width: 44ch; margin: var(--space-5) auto 0; color: var(--text-2); font-size: var(--text-lg); }
.closing .actions { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: var(--space-8) var(--space-7); color: var(--text-2); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-7); }
.footer .tagline { margin-top: var(--space-4); max-width: 34ch; color: var(--text-3); }
.footer h2 { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.footer li a { display: inline-flex; align-items: center; min-height: 36px; transition: color var(--t-fast); }
.footer li a:hover { color: var(--text); }
.footer ul { margin-top: var(--space-3); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--text-3); }

/* Chronos Fit page */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: center; }
.split h1 { font-size: clamp(2.5rem, 1.3rem + 4.6vw, 4.5rem); }
.split .visual { justify-content: flex-end; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.tag { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-full); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 0.8125rem; color: var(--text-2); }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.figure { padding: var(--space-6) var(--space-5) var(--space-6) 0; }
.figure + .figure { padding-left: var(--space-5); border-left: 1px solid var(--line); }
.figure b { display: block; font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); line-height: 1; letter-spacing: -0.045em; font-weight: 650; font-variant-numeric: tabular-nums; }
.figure span { display: block; margin-top: var(--space-3); color: var(--text-2); font-size: var(--text-sm); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: var(--space-6); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background var(--t); }
.feature:hover { background: rgba(255, 255, 255, 0.025); }
.feature svg { width: 22px; height: 22px; color: var(--accent); }
.feature h3 { margin-top: var(--space-5); font-size: 1.0625rem; font-weight: 620; letter-spacing: -0.015em; }
.feature p { margin-top: var(--space-2); color: var(--text-2); font-size: 0.9375rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: clamp(40px, 6vw, 72px); counter-reset: step; }
.step { padding-top: var(--space-5); border-top: 1px solid var(--line-strong); }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 var(--text-sm) var(--mono); color: var(--accent); }
.step h3 { margin-top: var(--space-4); font-size: 1.1875rem; font-weight: 620; letter-spacing: -0.02em; }
.step p { margin-top: var(--space-2); color: var(--text-2); }

/* Documents */
.doc { max-width: 720px; padding-block: clamp(48px, 7vw, 96px) var(--space-8); }
.doc h1 { margin-top: var(--space-5); font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 660; }
.doc .meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-4); color: var(--text-3); font-size: var(--text-sm); }
.doc .meta a { color: var(--accent); }
.doc .notice { margin-top: var(--space-6); padding: var(--space-4) var(--space-5); border-radius: var(--r-md); font-size: 0.9375rem; border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent); background: color-mix(in srgb, var(--amber) 9%, transparent); }
.doc h2, .doc h3 { margin-top: var(--space-7); font-size: 1.1875rem; font-weight: 620; letter-spacing: -0.02em; }
.doc h2.part { margin-top: var(--space-8); padding-top: var(--space-7); border-top: 1px solid var(--line); font-size: var(--text-h3); letter-spacing: -0.035em; }
.doc p.body { margin-top: var(--space-3); color: #c3c9d4; }

/* Interface previews: shared */
.scale { container-type: inline-size; }
.mock { font-family: var(--font); line-height: 1.35; text-align: left; -webkit-user-select: none; user-select: none; }
.mock b { font-weight: 620; }

/* Preview: phone (26em wide) */
.phone { font-size: calc(100cqw / 26); padding: 0.8em; border-radius: 4em; background: #0b0d11; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 0.2em #000, 0 3em 6em -2em rgba(0, 0, 0, 0.85); color: #f4f6fa; }
.phone-screen { position: relative; border-radius: 3.3em; background: #07080a; padding: 4.2em 1.4em 7.6em; overflow: hidden; }
.ph-tabs { position: absolute; inset: auto 0 0 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0.9em 0.5em 1.7em; background: #0b0d11; border-top: 1px solid #22262d; }
.ph-tabs span { display: grid; justify-items: center; gap: 0.3em; color: #606775; }
.ph-tabs svg { width: 1.9em; height: 1.9em; }
.ph-tabs em { font-style: normal; font-size: 0.82em; }
.ph-tabs .on { color: #3d7bff; }
.phone-screen::before { content: ""; position: absolute; top: 1em; left: 50%; width: 7.6em; height: 2.1em; margin-left: -3.8em; border-radius: 2em; background: #000; }
.ph-sub { font-size: 1.05em; color: #99a0ad; }
.ph-title { font-size: 2.1em; font-weight: 700; letter-spacing: -0.02em; }
.ph-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4em; margin-top: 1.2em; }
.ph-day { display: grid; gap: 0.4em; justify-items: center; font-size: 0.9em; color: #606775; }
.ph-day i { display: grid; place-items: center; width: 2.7em; height: 2.7em; border-radius: 50%; background: #111317; box-shadow: inset 0 0 0 1px #22262d; color: #07080a; }
.ph-day i svg { width: 1.3em; height: 1.3em; stroke-width: 3; }
.ph-day.done i { background: #30d17c; box-shadow: none; }
.ph-day.now { color: #f4f6fa; }
.ph-day.now i { background: #3d7bff; box-shadow: 0 0 0 0.3em rgba(61, 123, 255, 0.3); }
.ph-card { margin-top: 1.2em; padding: 1.2em; border-radius: 1.6em; background: #111317; box-shadow: inset 0 0 0 1px #22262d; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.ph-name { font-size: 1.4em; font-weight: 650; }
.ph-ring { position: relative; width: 5.4em; height: 5.4em; flex: none; }
.ph-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ph-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.3em; font-variant-numeric: tabular-nums; }
.ph-ring.big { width: 9em; height: 9em; margin: 0.4em auto 0; }
.ph-ring.big b { font-size: 1.9em; letter-spacing: -0.02em; padding-bottom: 0.7em; }
.ph-ring.big small { position: absolute; left: 0; right: 0; top: 58%; text-align: center; font-size: 0.85em; color: #99a0ad; }
.ph-set { display: flex; align-items: center; justify-content: space-between; padding: 0.75em 0; border-top: 1px solid #22262d; font-size: 1.2em; font-variant-numeric: tabular-nums; }
.ph-set:first-of-type { margin-top: 1em; }
.ph-set > span:first-child { color: #99a0ad; }
.ph-ok { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: rgba(48, 209, 124, 0.16); color: #30d17c; }
.ph-ok svg { width: 1em; height: 1em; stroke-width: 3; }
.ph-ok.empty { background: none; box-shadow: inset 0 0 0 1px #3a3f4a; }
.ph-btn { display: grid; place-items: center; height: 3em; margin-top: 0.8em; border-radius: 0.9em; background: #3d7bff; font-size: 1.3em; font-weight: 650; }
.ph-meter { margin-top: 1em; }
.ph-meter div { display: flex; justify-content: space-between; font-size: 1.15em; color: #99a0ad; }
.ph-meter div b { color: #f4f6fa; font-variant-numeric: tabular-nums; }
.ph-bar { height: 0.45em; margin-top: 0.55em; border-radius: 1em; background: #1a1d23; overflow: hidden; }
.ph-bar i { display: block; height: 100%; border-radius: 1em; background: #3d7bff; }
.ph-bar.grey i { background: #606775; }
.ph-meal { display: flex; justify-content: space-between; padding: 0.7em 0; border-top: 1px solid #22262d; font-size: 1.15em; }
.ph-meal:first-of-type { margin-top: 0.8em; }
.ph-meal span:last-child { color: #99a0ad; font-variant-numeric: tabular-nums; }

/* Preview: desktop window (100em wide) */
.win { font-size: 1cqw; border-radius: 1.2em; overflow: hidden; background: #fff; color: #0b1020; box-shadow: var(--shadow-window); color-scheme: light; }
.win-bar { display: flex; align-items: center; gap: 0.6em; height: 3.4em; padding: 0 1.3em; background: #f1f2f6; border-bottom: 1px solid #e3e5ec; }
.win-bar i { width: 0.95em; height: 0.95em; border-radius: 50%; background: #d3d6df; }
.win-bar span { margin-left: 1.2em; font-size: 1.1em; color: #6b7280; }
.ts { display: grid; grid-template-columns: 19em 1fr; min-height: 54em; }
.ts-side { display: flex; flex-direction: column; padding: 1.6em 1.2em; background: #fafafc; border-right: 1px solid #e8eaf0; }
.ts-user { display: flex; align-items: center; gap: 0.9em; margin-top: auto; padding: 1.2em 0.6em 0; border-top: 1px solid #e8eaf0; }
.ts-user > span { display: grid; place-items: center; width: 2.9em; height: 2.9em; border-radius: 50%; background: #ecebfd; color: #4f46e5; font-size: 1.05em; font-weight: 650; flex: none; }
.ts-user b { display: block; font-size: 1.15em; }
.ts-user small { font-size: 0.95em; color: #6b7280; }
.ts-brand { display: flex; align-items: center; gap: 0.8em; padding: 0 0.6em 1.4em; font-size: 1.35em; font-weight: 650; letter-spacing: -0.01em; }
.ts-brand svg { width: 1.8em; height: 1.8em; }
.ts-nav li { display: flex; align-items: center; gap: 0.9em; height: 2.9em; padding: 0 0.9em; border-radius: 0.6em; font-size: 1.2em; color: #5b6272; }
.ts-nav li svg { width: 1.3em; height: 1.3em; flex: none; opacity: 0.85; }
.ts-nav li.on { background: #ecebfd; color: #4f46e5; font-weight: 600; }
.ts-main { padding: 2em 2.4em; background: #fff; min-width: 0; }
.ts-head { display: flex; align-items: flex-end; justify-content: space-between; }
.ts-head b { display: block; font-size: 2em; letter-spacing: -0.025em; }
.ts-head small { font-size: 1.15em; color: #6b7280; }
.ts-pill { display: inline-flex; align-items: center; height: 2.5em; padding: 0 1.1em; border-radius: 0.6em; background: #4f46e5; color: #fff; font-size: 1.15em; font-weight: 600; }
.ts-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2em; margin-top: 1.8em; }
.ts-card { border: 1px solid #e6e8ee; border-radius: 0.9em; background: #fff; }
.ts-kpi { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8em; padding: 1.4em 1.5em; }
.ts-kpi > i { display: grid; place-items: center; width: 2.9em; height: 2.9em; border-radius: 0.7em; background: #ecebfd; color: #4f46e5; flex: none; }
.ts-kpi > i svg { width: 1.55em; height: 1.55em; }
.ts-kpi span { font-size: 1.1em; color: #6b7280; }
.ts-kpi b .ts-badge { font-size: 0.5em; vertical-align: middle; }
.ts-kpi b { display: block; margin-top: 0.25em; font-size: 2.1em; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ts-kpi small { font-size: 0.95em; color: #6b7280; }
.ts-badge { display: inline-flex; align-items: center; height: 1.9em; padding: 0 0.8em; border-radius: 1em; font-size: 1em; letter-spacing: 0; font-weight: 600; background: #fef3c7; color: #92400e; }
.ts-badge.ok { background: #dcfce7; color: #166534; }
.ts-badge.info { background: #e0e7ff; color: #3730a3; }
.ts-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.2em; margin-top: 1.2em; }
.ts-box { padding: 1.5em 1.6em; }
.ts-box > b { font-size: 1.3em; letter-spacing: -0.01em; }
.ts-table { width: 100%; margin-top: 1em; border-collapse: collapse; font-size: 1.1em; font-variant-numeric: tabular-nums; }
.ts-table th { padding: 0.6em 0; font-weight: 500; color: #6b7280; text-align: right; border-bottom: 1px solid #e6e8ee; }
.ts-table td { padding: 0.72em 0; text-align: right; border-bottom: 1px solid #f0f1f5; }
.ts-table th:first-child, .ts-table td:first-child { text-align: left; }
.ts-table td:first-child { display: flex; align-items: center; gap: 0.7em; font-weight: 500; }
.ts-table td i { width: 0.75em; height: 0.75em; border-radius: 50%; }
.ts-table tr:last-child td { border-bottom: 0; font-weight: 650; }
.ts-leave { margin-top: 1.2em; }
.ts-leave div { display: flex; justify-content: space-between; font-size: 1.1em; }
.ts-leave div span { color: #6b7280; }
.ts-track { height: 0.55em; margin-top: 0.55em; border-radius: 1em; background: #eef0f5; overflow: hidden; }
.ts-track i { display: block; height: 100%; border-radius: 1em; }

/* Preview: approval card (40em wide) */
.approve { font-size: calc(100cqw / 40); padding: 1.8em; border-radius: 1.4em; background: #fff; color: #0b1020; box-shadow: var(--shadow-window); color-scheme: light; }
.approve > b { font-size: 1.5em; letter-spacing: -0.015em; }
.ap-row { display: flex; align-items: center; gap: 1em; margin-top: 1.3em; padding-top: 1.3em; border-top: 1px solid #eceef3; }
.ap-avatar { display: grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: 50%; background: #ecebfd; color: #4f46e5; font-size: 1.1em; font-weight: 650; flex: none; }
.ap-who { flex: 1; min-width: 0; }
.ap-who b { display: block; font-size: 1.3em; }
.ap-who span { font-size: 1.1em; color: #6b7280; }
.ap-btns { display: flex; gap: 0.8em; margin-top: 1.4em; }
.ap-btns span { flex: 1; display: grid; place-items: center; height: 3em; border-radius: 0.7em; font-size: 1.2em; font-weight: 600; border: 1px solid #e0e3ea; }
.ap-btns span:first-child { background: #4f46e5; border-color: #4f46e5; color: #fff; }

/* Preview: point of sale (80em wide) */
.pos { font-size: 1.25cqw; border-radius: 1.6em; overflow: hidden; background: #f3f5f9; color: #0f172a; box-shadow: var(--shadow-window); color-scheme: light; }
.pos-top { display: flex; align-items: center; justify-content: space-between; height: 4.6em; padding: 0 2em; background: #fff; border-bottom: 1px solid #e2e8f0; }
.pos-top b { font-size: 1.7em; letter-spacing: -0.02em; }
.pos-top span { font-size: 1.15em; color: #64748b; }
.pos-body { display: grid; grid-template-columns: 1fr 30em; gap: 1.4em; padding: 1.6em 2em; }
.pos-search svg { width: 1.3em; height: 1.3em; margin-right: 0.7em; }
.pos-search { display: flex; align-items: center; height: 3.6em; padding: 0 1.2em; border-radius: 0.9em; background: #fff; border: 1px solid #e2e8f0; font-size: 1.15em; color: #94a3b8; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; margin-top: 1.2em; }
.pos-item { position: relative; padding: 1.3em 1.3em 1.2em; border-radius: 1em; background: #fff; border: 1px solid #e2e8f0; }
.pos-item i { position: absolute; top: 0.9em; right: 0.9em; display: grid; place-items: center; min-width: 1.9em; height: 1.9em; border-radius: 1em; background: #1d4ed8; color: #fff; font-style: normal; font-size: 1em; font-weight: 650; }
.pos-item b { display: block; font-size: 1.25em; font-weight: 600; }
.pos-item span { font-size: 1.15em; color: #64748b; font-variant-numeric: tabular-nums; }
.pos-item.on { border-color: #1d4ed8; box-shadow: inset 0 0 0 1px #1d4ed8; background: #f5f8ff; }
.pos-cart { display: flex; flex-direction: column; padding: 1.5em; border-radius: 1.1em; background: #fff; border: 1px solid #e2e8f0; }
.pos-cart-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 0.6em; }
.pos-cart-head b { font-size: 1.4em; }
.pos-cart-head span { font-size: 1.1em; color: #1d4ed8; font-weight: 550; }
.pos-line { display: grid; grid-template-columns: 1fr auto 4.2em; align-items: center; gap: 0.9em; padding: 0.8em 0; border-top: 1px solid #eef2f7; font-variant-numeric: tabular-nums; }
.pos-name b { display: block; font-size: 1.15em; font-weight: 600; }
.pos-name small { font-size: 1em; color: #64748b; }
.pos-step { display: flex; align-items: center; gap: 0.5em; }
.pos-step i { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; border: 1px solid #cbd5e1; color: #475569; font-style: normal; font-size: 1.05em; }
.pos-step b { min-width: 1.1em; text-align: center; font-size: 1.15em; }
.pos-amt { text-align: right; font-size: 1.15em; font-weight: 600; }
.pos-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 1.3em; }
.pos-total span { font-size: 1.2em; color: #64748b; }
.pos-total b { font-size: 2.3em; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pos-pay svg { width: 1.2em; height: 1.2em; }
.pos-pay { display: flex; align-items: center; justify-content: center; gap: 0.6em; height: 3.3em; margin-top: 1em; border-radius: 0.8em; background: #1d4ed8; color: #fff; font-size: 1.35em; font-weight: 650; }
.pos-tabs { display: grid; grid-template-columns: repeat(5, 1fr); padding: 0.9em 0 1em; background: #fff; border-top: 1px solid #e2e8f0; }
.pos-tabs span { display: grid; justify-items: center; gap: 0.25em; color: #64748b; }
.pos-tabs svg { width: 1.9em; height: 1.9em; }
.pos-tabs em { font-style: normal; font-size: 1em; }
.pos-tabs span.on { color: #1d4ed8; font-weight: 650; }

/* Preview: receipt (24em wide) */
.receipt { font-size: calc(100cqw / 24); padding: 2em 1.8em 2.4em; background: #fff; color: #111; font-family: var(--mono); line-height: 1.5; box-shadow: 0 2em 4em -1.5em rgba(0, 0, 0, 0.7); color-scheme: light;
  -webkit-mask-image: linear-gradient(#000, #000), radial-gradient(circle at 0.6em 100%, transparent 0.5em, #000 0.55em); -webkit-mask-size: 100% calc(100% - 0.6em), 1.2em 0.6em; -webkit-mask-position: top, bottom left; -webkit-mask-repeat: no-repeat, repeat-x;
  mask-image: linear-gradient(#000, #000), radial-gradient(circle at 0.6em 100%, transparent 0.5em, #000 0.55em); mask-size: 100% calc(100% - 0.6em), 1.2em 0.6em; mask-position: top, bottom left; mask-repeat: no-repeat, repeat-x; }
.receipt p { font-size: 1.05em; }
.receipt .c { text-align: center; }
.receipt .r { display: flex; justify-content: space-between; gap: 1em; }
.receipt .rule { margin: 0.8em 0; border-top: 1px dashed #999; }
.receipt .t { font-size: 1.35em; font-weight: 700; }
.receipt .qr { width: 7em; height: 7em; margin: 1.2em auto 0; background: conic-gradient(#111 25%, #fff 0 50%, #111 0 75%, #fff 0) 0 0 / 1.4em 1.4em, #fff; box-shadow: inset 0 0 0 0.7em #fff, inset 0 0 0 1.05em #111; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .stage .s-desk { animation: lift 1.1s var(--ease) 0.15s both; }
  .stage .s-phone { animation: lift 1.1s var(--ease) 0.35s both; }
  .stage .s-pos { animation: lift 1.1s var(--ease) 0.5s both; }
  .ph-bar.live i { animation: fill 9s linear infinite; }
  @keyframes lift { from { opacity: 0; transform: translateY(36px); } }
  @keyframes fill { from { width: 0; } to { width: 100%; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* 960px: two columns become one */
@media (max-width: 960px) {
  .nav-links, .nav .nav-cta { display: none; }
  .menu { display: block; }
  .p-fit, .p-pos, .split, .creed { grid-template-columns: 1fr; }
  .creed { gap: var(--space-6); }
  .creed > :first-child { position: static; }
  .p-fit .visual { padding: 0 clamp(28px, 4.5vw, 64px) clamp(28px, 4.5vw, 64px); }
  .p-time .product-copy { grid-template-columns: 1fr; }
  .p-time .points { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); }
  .p-pos .visual { order: 2; padding: 0 clamp(28px, 4.5vw, 64px) clamp(56px, 9vw, 96px); }
  .p-pos .v-receipt { left: 1%; }
  .split .visual { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* 640px: the phone layout */
@media (max-width: 640px) {
  .stage { aspect-ratio: 1 / 1.02; }
  .stage .s-desk { left: 14%; width: 150%; }
  .stage .s-phone { left: 0; top: 30%; width: 40%; }
  .stage .s-pos { right: -34%; top: 52%; width: 92%; }
  .actions .btn { flex: 1 1 100%; }
  .p-time .visual { margin-right: 0; overflow: hidden; }
  .p-time .v-desk { width: 170%; margin-bottom: -24%; }
  .p-time .v-card { right: 6%; bottom: 8%; width: 64%; }
  .p-pos .visual { padding-left: 0; overflow: hidden; }
  .p-pos .v-pos { width: 165%; margin-left: -65%; }
  .p-pos .v-receipt { left: 5%; bottom: 3%; width: 42%; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figure:nth-child(3) { border-left: 0; padding-left: 0; }
  .figure:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
  .tenets li { grid-template-columns: 40px 1fr; }
}
