/*
 * Public website (landing, daftar, legal pages).
 *
 * Identity, with the reason for each choice:
 * - Plus Jakarta Sans for headings: a typeface drawn by an Indonesian foundry for Jakarta's own identity,
 *   so the headlines speak with a local voice to Indonesian business owners.
 * - Inter for body text and numbers: the same face as the app, so the site reads like the product it leads into.
 * - JetBrains Mono only for column letters, row numbers, and formulas: the spreadsheet motif, never for headings.
 * - Blue is for actions and the "selected cell" outline. Emerald marks data AdBridge has written (filled cells, money).
 * - Motif: the selected spreadsheet cell with its fill handle (the small square at the bottom-right corner).
 *   Filling a Spreadsheet is the product's core job, so the page borrows that gesture for its emphasis.
 */
:root {
    --bg: #FFFFFF;
    --bg-soft: #F5F7FB;
    --bg-wash: #EEF3FD;
    --surface: #FFFFFF;
    --surface-2: #F8FAFC;
    --line: #E2E8F0;
    --line-strong: #CBD5E1;
    /* Edges of inputs and buttons: 3:1 against every light background used here. */
    --control-line: #7A889E;
    --ink: #0B1324;
    --muted: #334155;
    --subtle: #5B6678;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-active: #1E40AF;
    --primary-deep: #1D4ED8;
    --primary-soft: #EAF1FE;
    --primary-line: #BFD3FB;
    --link: #1D4ED8;
    --focus: #2563EB;
    --accent: #10B981;
    --accent-strong: #047857;
    --accent-ink: #047857;
    --accent-soft: #E7F8F0;
    --accent-line: #A7F3D0;
    --cell-fill: #DCF5E8;
    --warn-ink: #92400E;
    --warn-soft: #FFFBEB;
    --warn-line: #FDE68A;
    --error-ink: #B91C1C;
    --error-soft: #FEF2F2;
    --error-line: #FECACA;
    --night: #0A1430;
    --night-2: #101C3E;
    --night-line: #22305A;
    --night-control: #7F8EA6;
    --night-ink: #F1F5FB;
    --night-muted: #B4C1DA;
    --mark-bg: #0B1324;
    --header-bg: rgba(255, 255, 255, 0.96);
    /* Background spreadsheet grid: decorative, kept faint so text contrast is unaffected. */
    --grid-line: rgba(37, 99, 235, 0.08);
    --grid-letter: #94A3B8;
    --grid-fill: rgba(16, 185, 129, 0.12);
    --grid-select: rgba(37, 99, 235, 0.55);
    --shadow-card: 0 1px 2px rgba(11, 19, 36, 0.06), 0 12px 28px -18px rgba(11, 19, 36, 0.28);
    --shadow-lift: 0 2px 4px rgba(11, 19, 36, 0.05), 0 32px 64px -36px rgba(11, 19, 36, 0.45);
    /* Translucent frame around the hero product window. */
    --bezel: rgba(255, 255, 255, 0.6);
    /* Light behind the hero window: brand blue fading into the "filled cell" green. */
    --glow-a: rgba(37, 99, 235, 0.15);
    --glow-b: rgba(16, 185, 129, 0.09);
    /* Headline selection: the light that crosses the fill once, and the ripple around the fill handle. */
    --mark-sheen: rgba(255, 255, 255, 0.8);
    --mark-ripple: rgba(37, 99, 235, 0.45);
    /* The recommended package is drawn as a selected column in the price table. */
    --rec-fill: rgba(37, 99, 235, 0.045);
    --rec-head: rgba(37, 99, 235, 0.1);
    /* Fine grain (SVG noise, about 1 KB, no request) laid over large tinted areas so they read as a printed
       surface instead of a flat vector fill. Kept at a few percent so it never touches text contrast. */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --grain-strength: 0.05;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    color-scheme: light;
}

html.dark {
    --bg: #0B1220;
    --bg-soft: #0F1829;
    --bg-wash: #0F1B33;
    --surface: #121C2F;
    --surface-2: #172238;
    --line: #24324B;
    --line-strong: #33425E;
    --control-line: #71809A;
    --ink: #F1F5FB;
    --muted: #C9D3E3;
    --subtle: #97A5BC;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-active: #1E40AF;
    --primary-deep: #1D4ED8;
    --primary-soft: rgba(59, 130, 246, 0.16);
    --primary-line: rgba(147, 197, 253, 0.35);
    --link: #93C5FD;
    --focus: #93C5FD;
    --accent: #34D399;
    --accent-strong: #047857;
    --accent-ink: #6EE7B7;
    --accent-soft: rgba(16, 185, 129, 0.14);
    --accent-line: rgba(110, 231, 183, 0.35);
    --cell-fill: #113B3F;
    --warn-ink: #FCD34D;
    --warn-soft: rgba(245, 158, 11, 0.12);
    --warn-line: rgba(252, 211, 77, 0.35);
    --error-ink: #FCA5A5;
    --error-soft: rgba(239, 68, 68, 0.12);
    --error-line: rgba(252, 165, 165, 0.35);
    --night: #060B16;
    --night-2: #0C1426;
    --night-line: #1E2A44;
    --night-control: #7F8EA6;
    --night-ink: #F1F5FB;
    --night-muted: #AAB7CE;
    --mark-bg: #2563EB;
    --header-bg: rgba(11, 18, 32, 0.95);
    --grid-line: rgba(148, 163, 184, 0.08);
    --grid-letter: #4B5A73;
    --grid-fill: rgba(16, 185, 129, 0.14);
    --grid-select: rgba(96, 165, 250, 0.6);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px -18px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 64px -34px rgba(0, 0, 0, 0.85);
    --bezel: rgba(148, 163, 184, 0.1);
    --glow-a: rgba(59, 130, 246, 0.2);
    --glow-b: rgba(16, 185, 129, 0.08);
    --mark-sheen: rgba(255, 255, 255, 0.16);
    --mark-ripple: rgba(96, 165, 250, 0.5);
    --rec-fill: rgba(59, 130, 246, 0.07);
    --rec-head: rgba(59, 130, 246, 0.16);
    --grain-strength: 0.035;
    color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

/* The tinted wash sits behind the header too, so the top of the page reads as one surface. */
.page-landing, .page-wash {
    background:
        linear-gradient(180deg, var(--bg-wash) 0, var(--bg) 720px) no-repeat,
        var(--bg);
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
}
p { margin: 0; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

a[href], button, summary, select, label[for], label:has(> input), input[type="checkbox"], input[type="radio"], [role="tab"] { cursor: pointer; }
button[disabled], [aria-disabled="true"], input[disabled] { cursor: not-allowed; }

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

[hidden] { display: none !important; }

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 60;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

.muted { color: var(--subtle); }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--control-line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink); }
.btn-ghost:active { background: var(--line); }
.btn-disabled, .btn[disabled] { background: var(--surface-2); color: var(--subtle); border-color: var(--line-strong); }
.btn-primary[disabled]:hover { background: var(--surface-2); }
.btn[disabled]:active, .btn-disabled:active { transform: none; }

.link-btn {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--link);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link-btn:hover { text-decoration-thickness: 2px; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--control-line);
    background: var(--surface);
    color: var(--muted);
    transition: background-color 0.18s ease, color 0.18s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:active { background: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }
/* The icon shows the mode you switch to: moon in light mode, sun in dark mode. */
[data-theme-toggle] [data-icon="sun"] { display: none; }
html.dark [data-theme-toggle] [data-icon="sun"] { display: block; }
html.dark [data-theme-toggle] [data-icon="moon"] { display: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* The only blurred surface on the site: content scrolls under it, and the blur keeps that content from fighting the nav. */
.site-header.is-scrolled, .site-header.menu-open {
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }

.scroll-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--primary);
    transform-origin: left center;
    transform: scaleX(var(--scroll, 0));
    pointer-events: none;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--mark-bg);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.site-nav a[aria-current]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: var(--primary);
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }

/* Language switcher (ID | EN) in desktop header and mobile drawer. */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--control-line);
    background: var(--surface);
}
.lang-btn {
    min-width: 34px;
    min-height: 36px;
    padding: 0 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background-color 0.16s ease, color 0.16s ease;
}
.lang-btn:hover { background: var(--surface-2); color: var(--ink); }
.lang-btn.is-active,
.lang-btn[aria-pressed="true"] {
    background: var(--primary);
    color: #FFFFFF;
}
.mobile-lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 12px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}
.mobile-lang-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}
.lang-switch-mobile .lang-btn {
    min-height: 38px;
    padding: 0 12px;
    font-weight: 600;
}
.mobile-signup-cta { margin: 4px 0; color: #FFFFFF !important; justify-content: center; }

.mobile-panel { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-panel ul { list-style: none; margin: 0; padding: 8px 0 16px; display: grid; gap: 2px; }
.mobile-panel a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
}
.mobile-panel a:not(.btn):hover { background: var(--surface-2); }

/* Seven links plus the language switch and buttons need about 1230px, so the mobile menu takes over below that. */
@media (max-width: 1230px) {
    .site-nav, .hide-md { display: none; }
    .menu-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
    .theme-toggle-desktop, .sound-toggle, .hide-xs { display: none; }
    .header-inner { gap: 6px; }
    .brand { font-size: 15.5px; gap: 8px; min-width: 0; }
    .brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lang-btn { min-width: 30px; padding: 0 7px; font-size: 12px; }
}

/* ---------- Sections ---------- */
main { display: block; }
.section { position: relative; padding: 68px 0; }
/* Every section opens the same way, centered on the page axis, so the page reads as one symmetric column. */
.section-head { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.section-head h2 {
    font-size: clamp(27px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.022em;
}
.section-head p { margin: 12px auto 0; max-width: 680px; color: var(--muted); font-size: 17.5px; }

@media (max-width: 720px) {
    .section { padding: 48px 0; }
    .section-head { margin-bottom: 26px; }
    .section-head p { font-size: 15.5px; }
}

/* Spreadsheet cell grid as background texture. The product's job is filling Spreadsheets, so the page
   borrows the sheet itself instead of a generic graph-paper pattern. Masked so it fades out toward the
   content and never sits behind body text at full strength. */
.bg-grid-soft { isolation: isolate; }
.bg-grid-soft::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 120px 40px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 0%, transparent 80%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 0%, transparent 80%);
    pointer-events: none;
}

/* ---------- Motion system ----------
 * Everything starts visible. Only when the head script adds .motion (the visitor allows motion and JS runs)
 * do elements start hidden and wait for site.js to add .is-in as they scroll into view.
 * Durations sit around one second: slow enough to follow, short enough not to hold up reading. */
.motion [data-reveal=""] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.05s var(--ease) var(--delay, 0ms), transform 1.05s var(--ease) var(--delay, 0ms);
}
.motion [data-reveal=""].is-in { opacity: 1; transform: none; }

/* Cards come into focus: they rise and sharpen from a light blur, so a row of cards reads in order. */
.motion [data-reveal="rise"] {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(5px);
    transition:
        opacity 1.05s var(--ease) var(--delay, 0ms),
        transform 1.05s var(--ease) var(--delay, 0ms),
        filter 1.05s var(--ease) var(--delay, 0ms);
}
.motion [data-reveal="rise"].is-in { opacity: 1; transform: none; filter: none; }

/* Section headings rise cleanly and symmetrically without clipping centered text while scrolling. */
.motion [data-reveal="write"] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}
.motion [data-reveal="write"].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 48px 0 56px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 28px 0 0;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 120px 40px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at 60% 35%, #000 10%, transparent 78%);
    mask-image: radial-gradient(ellipse 85% 80% at 60% 35%, #000 10%, transparent 78%);
}
/* Grain over the whole hero wash (see --grain). Dark mode inverts it to light specks. */
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    opacity: var(--grain-strength);
}
html.dark .hero-bg::after { filter: invert(1); }
/* Light behind the product window, so the window stands forward from the grid. It sits behind the right
   column only, never behind the headline, so no text is ever set on a gradient. */
.hero-glow {
    position: absolute;
    top: 10px;
    left: calc(50% + 40px);
    width: 720px;
    height: 620px;
    background: radial-gradient(closest-side, var(--glow-a), var(--glow-b) 58%, transparent 100%);
}
@media (max-width: 1040px) {
    .hero-glow { top: auto; bottom: 40px; left: 50%; transform: translateX(-50%); width: min(720px, 120vw); height: 520px; }
}
/* Column letters along the top edge, aligned with the 120px grid columns. */
.bg-cols { position: absolute; top: 0; left: calc(50% - 60px - 1200px); display: flex; height: 28px; opacity: 0.9; }
.bg-cols span {
    flex: none;
    width: 120px;
    display: grid;
    place-items: center;
    border-right: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--grid-letter);
}
/* A few cells that fill in after the hero story ends, as if AdBridge kept writing in the background. */
.bg-cell {
    position: absolute;
    left: calc(50% - 60px + var(--x) * 120px + 1px);
    top: calc(28px + var(--y) * 40px + 1px);
    width: 119px;
    height: 39px;
    background: var(--grid-fill);
}
.bg-cell-sel { box-shadow: inset 0 0 0 2px var(--grid-select); }
.motion .bg-cell { opacity: 0; animation: fade-in 1.2s ease var(--d, 6s) both; }
@media (max-width: 1199px) {
    .bg-cell { display: none; }
}
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
/* Sized so the marked phrase "dalam satu dashboard" fits the text column on one line at desktop widths. */
.hero h1 {
    font-size: clamp(32px, 4.1vw, 50px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.022em;
}
.hero-lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 580px; }
/* The opening sentence is the hook: the morning routine the reader wants to stop. */
.hero-lead strong { font-weight: 600; color: var(--ink); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* The phrase the headline promises gets the selected-cell treatment. */
.cell-mark {
    position: relative;
    z-index: 0;
    display: inline-block;
    padding: 0 0.14em;
    margin: 0.04em 0;
    white-space: nowrap;
}
/* Fill and blue edge live on their own layer, behind the words, so the selection can be dragged across. */
.cell-mark::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -2px;
    bottom: -2px;
    left: -2px;
    width: calc(100% + 4px);
    border-radius: 4px;
    box-shadow: inset 0 0 0 2px var(--primary);
    background:
        linear-gradient(105deg, transparent 30%, var(--mark-sheen) 50%, transparent 70%) 250% 0 / 50% 100% no-repeat,
        var(--cell-fill);
    transform-origin: left center;
}
.cell-mark::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 2px solid var(--bg-wash);
    border-radius: 2px;
}
/* About 2.4 s, once: a cell cursor lands on the first letter, is dragged to the end of the phrase like a
   range selection, the fill handle pops in with one ripple, and a single light pass crosses the fill. */
.motion .cell-mark::before {
    animation:
        mark-drag 1.15s 0.35s both,
        mark-sheen 1s ease-in-out 1.55s both;
}
.motion .cell-mark::after { animation: handle-pop 0.7s 1.4s both; }
@keyframes mark-drag {
    0% { width: 1.15em; opacity: 0; transform: scale(0.82); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1.2); }
    22% { width: 1.15em; opacity: 1; transform: scale(1); animation-timing-function: cubic-bezier(0.65, 0, 0.25, 1); }
    100% { width: calc(100% + 4px); opacity: 1; transform: scale(1); }
}
@keyframes mark-sheen {
    from { background-position: -150% 0, 0 0; }
    to { background-position: 250% 0, 0 0; }
}
@keyframes handle-pop {
    0% { transform: scale(0); box-shadow: 0 0 0 0 var(--mark-ripple); animation-timing-function: cubic-bezier(0.3, 1.6, 0.5, 1); }
    45% { transform: scale(1); box-shadow: 0 0 0 0 var(--mark-ripple); animation-timing-function: ease-out; }
    100% { transform: scale(1); box-shadow: 0 0 0 12px transparent; }
}

.works-with { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.works-with p { font-size: 13px; font-weight: 600; color: var(--subtle); }
.works-with ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.works-with li {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    padding: 5px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
}

@media (max-width: 1040px) {
    .hero { padding: 40px 0 80px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .hero-lead { font-size: 17px; }
}
@media (max-width: 480px) {
    .hero-actions .btn { width: 100%; }
    .works-with { margin-top: 28px; }
}

/* Hero workspace: one product window holding every module, as the headline promises. It is the one strongly
   elevated surface on the page because it stands in for the product. The AI card and the Sheets notice sit
   on top of it, so they carry their own shadow. */
.ws { position: relative; margin: 0; }
/* Room above for the Sheets notice and below for the AI card, kept compact so there is no dead gap below the hero. */
.ws-stage { position: relative; padding: 22px 0 92px; }
.ws-window {
    position: relative;
    z-index: 1;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    /* A thin translucent bezel outside the border frames the window like a screen, without a heavy device mockup. */
    box-shadow: var(--shadow-lift), 0 0 0 7px var(--bezel);
    overflow: hidden;
}
.ws-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}
.ws-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.ws-pills { margin-left: auto; display: flex; gap: 6px; }
.ws-pills span { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.ws-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    background: var(--bg-soft);
}
.ws-tile { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ws-ads, .ws-sheet { grid-column: 1 / -1; }
.ws-tile-title { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
/* One colour per module, the same small square used for each source in the app's menu. */
.ws-ico { width: 12px; height: 12px; border-radius: 3px; flex: none; background: var(--primary); }
.ico-chat { background: var(--accent); }
.ico-cal { background: #F59E0B; }
.ico-sheet { background: var(--accent-strong); }
.ws-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ws-kpis div { min-width: 0; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.ws-kpis small { display: block; font-size: 11px; color: var(--subtle); line-height: 1.3; }
.ws-kpis strong { display: block; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.35; overflow-wrap: anywhere; }
.ws-chart { height: 64px; margin-top: 10px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; align-items: end; border-bottom: 1px solid var(--line-strong); }
.ws-chart span { height: var(--h); border-radius: 3px 3px 0 0; background: var(--primary); transform-origin: bottom center; }
.ws-chart span:nth-child(6) { background: var(--accent-strong); }
.ws-bubble {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px 10px 10px 3px;
    background: var(--surface-2);
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink);
}
.ws-meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--subtle); }
.ws-chip { font-size: 11px; font-weight: 600; line-height: 1.5; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); background: var(--surface); white-space: nowrap; }
.chip-hot { color: var(--error-ink); background: var(--error-soft); border-color: var(--error-line); }
.chip-ok { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }
.ws-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ws-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.ws-day { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; text-align: center; color: var(--subtle); padding: 2px 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); }
.ws-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ws-cells > span { min-width: 0; padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-col { font-family: var(--font-mono); font-size: 10.5px; text-align: center; color: var(--subtle); background: var(--surface-2); padding-block: 3px !important; }
.ws-cells .w { background: var(--cell-fill); color: var(--c, var(--ink)); font-variant-numeric: tabular-nums; }
.ws-cells .money { --c: var(--accent-ink); font-weight: 600; }
.ws-cells .formula { font-family: var(--font-mono); font-size: 11px; color: var(--subtle); }

.ws-toast {
    position: absolute;
    z-index: 2;
    top: -12px;
    right: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid var(--accent-line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-card);
}
.ws-toast svg { width: 16px; height: 16px; flex: none; }
.ws-ai {
    position: absolute;
    z-index: 2;
    left: -34px;
    bottom: 0;
    width: min(300px, 72%);
    padding: 12px 14px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-lift);
}
.ws-ai-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ws-ai-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--mark-bg); color: #FFFFFF; font-size: 9.5px; font-weight: 700; }
.ws-q { margin: 9px 0 0 28px; padding: 7px 10px; border-radius: 10px 10px 3px 10px; background: var(--primary); color: #FFFFFF; font-size: 12.5px; line-height: 1.4; }
.ws-a { margin: 7px 14px 0 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px 10px 10px 3px; background: var(--surface-2); font-size: 12.5px; line-height: 1.45; color: var(--ink); min-height: 3.2em; }

/* Hero choreography, about 5.5 s, runs once: the window opens, the ad numbers count up,
   then a chat, the content plan, and the Sheets row arrive in the order an owner meets them in a day, and
   the AI answers last. Tiles come into focus (blur to sharp) so each one reads as "now this". */
.motion .ws:not(.is-playing) .ws-window,
.motion .ws:not(.is-playing) .ws-tile,
.motion .ws:not(.is-playing) .ws-toast,
.motion .ws:not(.is-playing) .ws-ai { opacity: 0; }
.motion .ws:not(.is-playing) .ws-chart span { transform: scaleY(0); }
.motion .ws:not(.is-playing) .ws-cells .w { color: transparent; background-color: transparent; }
.motion .ws.is-playing .ws-window { animation: window-in 0.95s var(--ease) both; }
.motion .ws.is-playing .ws-tile { animation: tile-in 0.9s var(--ease) var(--at, 0ms) both; }
.motion .ws.is-playing .ws-chart span { animation: bar-grow 0.95s var(--ease) calc(620ms + var(--i) * 85ms) both; }
.motion .ws.is-playing .ws-bubble { animation: rise-in 0.7s var(--ease) 1.4s both; }
.motion .ws.is-playing .ws-meta .ws-chip { animation: pop-in 0.5s var(--ease) 1.8s both; }
.motion .ws.is-playing .ws-meta .ws-chip + .ws-chip { animation-delay: 1.95s; }
.motion .ws.is-playing .ws-list li { animation: slide-in 0.7s var(--ease) calc(2000ms + var(--i) * 180ms) both; }
.motion .ws.is-playing .ws-list .chip-ok { animation: pop-in 0.5s var(--ease) 2.45s both; }
.motion .ws.is-playing .ws-cells .w { animation: cell-write 0.9s var(--ease) var(--d, 0ms) both; }
.motion .ws.is-playing .ws-toast { animation: drop-in 0.8s var(--ease) 3.45s both; }
.motion .ws.is-playing .ws-ai { animation: rise-in 0.85s var(--ease) 3.75s both; }
.motion .ws.is-playing .ws-q { animation: fade-in 0.5s ease 4.05s both; }

@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tile-in { from { opacity: 0; transform: translateY(10px) scale(0.985); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(0.7); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
/* 0% has no outline on purpose: during each cell's delay it waits blank, and only its own turn selects it. */
@keyframes cell-write {
    0% { color: transparent; background-color: transparent; box-shadow: inset 0 0 0 0 transparent; }
    8%, 40% { color: transparent; background-color: transparent; box-shadow: inset 0 0 0 2px var(--primary); }
    70% { color: var(--c, var(--ink)); background-color: var(--cell-fill); box-shadow: inset 0 0 0 2px var(--primary); }
    100% { color: var(--c, var(--ink)); background-color: var(--cell-fill); box-shadow: inset 0 0 0 0 transparent; }
}

@media (max-width: 1240px) {
    .ws-ai { left: -14px; }
}
@media (max-width: 1040px) {
    .ws { width: min(640px, 100%); margin-inline: auto; }
}
/* On a phone the floating cards would cover the window, so they line up below it instead. */
@media (max-width: 600px) {
    /* Sized to the screen so the highlighted phrase, which never breaks, fits a 320px phone. */
    .hero h1 { font-size: clamp(25px, 8vw, 34px); }
    .ws-stage { padding: 0; }
    .ws-window { box-shadow: var(--shadow-lift), 0 0 0 4px var(--bezel); }
    .ws-pills { display: none; }
    .ws-grid { grid-template-columns: minmax(0, 1fr); padding: 10px; }
    /* Three narrow boxes cannot hold "Rp2.418.000", so each figure gets its own row. */
    .ws-kpis { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .ws-kpis div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 10px; }
    .ws-kpis small { font-size: 12px; }
    .ws-kpis strong { font-size: 14px; white-space: nowrap; overflow-wrap: normal; }
    /* The formula column is the first thing to go so the written values keep their full width. */
    .ws-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ws-cells > span { padding-inline: 6px; }
    .ws-cells .w { font-size: 11.5px; }
    .ws-cells > :nth-child(4), .ws-cells .formula { display: none; }
    .ws-toast { display: none; }
    .ws-ai { position: relative; left: auto; bottom: auto; width: auto; margin: 14px 0 0; }
}

/* ---------- Before / after ledger ---------- */
.section-ledger { padding: 60px 0 64px; border-top: 1px solid var(--line); }
.ledger-head, .ledger-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 40px minmax(0, 1fr);
    gap: 0 18px;
    align-items: center;
}
.ledger-head {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-strong);
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}
.ledger-rows { list-style: none; margin: 0; padding: 0; }
.ledger-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ledger-row .row-no {
    align-self: stretch;
    display: grid;
    place-items: center;
    min-height: 44px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--subtle);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.before { color: var(--muted); }
.strike {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--subtle);
    transition: text-decoration-color 1s ease 0.2s;
}
.ledger-arrow { width: 24px; height: 24px; color: var(--primary); justify-self: center; }
.after {
    padding: 13px 16px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 500;
    background: linear-gradient(var(--cell-fill), var(--cell-fill)) no-repeat left center / 100% 100%;
    box-shadow: inset 0 0 0 1px var(--accent-line);
}

.motion .ledger-row .strike { text-decoration-color: transparent; }
.motion .ledger-row .ledger-arrow { opacity: 0; transform: translateX(-8px); transition: opacity 0.65s ease 0.45s, transform 0.65s var(--ease) 0.45s; }
.motion .ledger-row .after {
    background-size: 0% 100%;
    color: transparent;
    box-shadow: inset 0 0 0 2px var(--primary);
    transition: background-size 1.05s var(--ease) 0.7s, color 0.55s ease 1.15s, box-shadow 0.7s ease 1.55s;
}
/* Day version: the row number becomes the hour, and it is selected (blue) once its row has been rewritten. */
.ledger-day .ledger-head, .ledger-day .ledger-row { grid-template-columns: 64px minmax(0, 1fr) 40px minmax(0, 1fr); }
.ledger-day .ledger-head span:first-child { text-align: center; }
.ledger-day .row-no { font-size: 13px; font-weight: 600; color: var(--muted); transition: background-color 0.75s ease 0.95s, color 0.75s ease 0.95s, border-color 0.75s ease 0.95s; }
.motion .ledger-day .ledger-row.is-in .row-no { background: var(--primary-soft); border-color: var(--primary-line); color: var(--link); }
.motion .ledger-row.is-in .strike { text-decoration-color: var(--subtle); }
.motion .ledger-row.is-in .ledger-arrow { opacity: 1; transform: none; }
.motion .ledger-row.is-in .after { background-size: 100% 100%; color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-line); }

@media (max-width: 760px) {
    .ledger-head { display: none; }
    .ledger-row { grid-template-columns: 36px minmax(0, 1fr); gap: 10px 14px; align-items: start; }
    .ledger-day .ledger-row { grid-template-columns: 56px minmax(0, 1fr); }
    .ledger-row .row-no { grid-row: 1 / span 2; align-self: start; }
    .ledger-arrow { display: none; }
    .ledger-row .before, .ledger-row .after { grid-column: 2; }
    /* On a phone the column headers are gone, so the screen-reader labels become visible labels instead. */
    .ledger-row .sr-only {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 4px;
        overflow: visible;
        clip: auto;
        white-space: normal;
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: var(--subtle);
        text-decoration: none;
    }
    .ledger-row .after .sr-only { color: var(--accent-ink); }
    .motion .ledger-row:not(.is-in) .after .sr-only { color: transparent; }
}

/* ---------- Features ---------- */
.section-features { padding: 64px 0; border-top: 1px solid var(--line); }
.section-features .section-head { margin-bottom: 28px; }

/* Flagship sits on its own tinted panel because it is the job most customers buy AdBridge for. */
.flagship {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-soft);
}
.flagship h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.flagship-copy > p { margin-top: 14px; color: var(--muted); }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--muted); }
.check-list svg { width: 20px; height: 20px; color: var(--accent-strong); margin-top: 2px; }
html.dark .check-list svg { color: var(--accent-ink); }
.tag {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 3px 9px;
    background: var(--surface);
}

/* Product windows: drawn after the real app screens, labelled as illustrations. */
.ui-window {
    margin: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.ui-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.ui-mark {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: var(--mark-bg);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
}
.ui-window figcaption {
    padding: 8px 12px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--subtle);
}

/* Column Mapper illustration: each data field draws a line to its column; the formula column is skipped. */
.mapper-body { padding: 16px; }
.mapper-head, .mapper-rows li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1.1fr);
    align-items: center;
}
.mapper-head { font-size: 12px; font-weight: 700; color: var(--subtle); padding-bottom: 8px; }
.mapper-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-src {
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    color: var(--link);
    font-size: 13px;
    font-weight: 600;
}
.m-none { background: transparent; border-style: dashed; border-color: var(--line-strong); color: var(--subtle); }
.m-line { height: 2px; margin: 0 6px; background: var(--primary); transform-origin: left center; }
.is-skip .m-line { background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px); }
.m-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--cell-fill);
    font-size: 13px;
    color: var(--ink);
}
.m-cell b {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--subtle);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 6px;
}
.is-skip .m-cell { background: var(--surface-2); }
.m-cell em {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    border: 1px dashed var(--line-strong);
    border-radius: 4px;
    padding: 1px 6px;
}

.motion .mapper .m-line { transform: scaleX(0); transition: transform 0.9s var(--ease) calc(var(--i) * 300ms + 400ms); }
.motion .mapper .m-cell { background-color: var(--surface); transition: background-color 0.6s ease calc(var(--i) * 300ms + 1100ms), box-shadow 0.6s ease calc(var(--i) * 300ms + 1100ms); }
.motion .mapper.is-in .m-line { transform: scaleX(1); }
.motion .mapper.is-in li:not(.is-skip) .m-cell { background-color: var(--cell-fill); }
.motion .mapper.is-in .is-skip .m-cell { background-color: var(--surface-2); }

@media (max-width: 960px) {
    .flagship { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px; }
}
@media (max-width: 480px) {
    .flagship { padding: 20px 16px; border-radius: 14px; }
    .mapper-body { padding: 12px; }
    .mapper-head, .mapper-rows li { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1.15fr); }
    .m-line { margin: 0 3px; }
    .m-src, .m-cell { font-size: 12px; padding: 6px 8px; }
}

/* Showcase: the three daily modules behind one set of tabs. */
.showcase-tabs { display: none; }
.js .showcase-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 24px; }
.showcase-tabs [role="tab"] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--control-line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.showcase-tabs [role="tab"]:hover { color: var(--ink); border-color: var(--ink); }
.showcase-tabs [role="tab"]:active { transform: translateY(1px); }
.showcase-tabs [role="tab"][aria-selected="true"] {
    color: var(--ink);
    background: var(--primary-soft);
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}
/* Fill handle on the selected tab: the same "selected cell" mark as the headline. */
.showcase-tabs [role="tab"][aria-selected="true"]::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 9px;
    height: 9px;
    background: var(--primary);
    border: 2px solid var(--bg);
    border-radius: 2px;
}

.showcase-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}
/* With JS all panels share one grid cell, so the area keeps the height of the tallest panel and the page
   below does not jump when the tab changes. Any stray panel outside .showcase collapses completely. */
.js .showcase { display: grid; grid-template-columns: minmax(0, 1fr); }
.js .showcase-panel:not(.showcase > .showcase-panel) { display: none !important; }
.js .showcase > .showcase-panel {
    grid-row: 3;
    grid-column: 1;
    align-self: stretch;
    padding: 36px 40px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--bg-soft);
    box-shadow: var(--shadow-card);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.48s var(--ease), transform 0.48s var(--ease), visibility 0s;
}
.js .showcase > .showcase-panel:not(.is-active) {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.showcase-panel:focus-visible { outline-offset: 6px; border-radius: 12px; }
.showcase-tabs [role="tab"] svg { width: 18px; height: 18px; flex: none; }
.panel-copy h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.panel-copy p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.panel-copy .check-list { margin-top: 18px; }
.motion .showcase-panel.is-active .panel-copy { animation: rise-in 0.78s var(--ease) both; }
.motion .showcase-panel.is-active .ui-window { animation: window-in 0.88s var(--ease) 0.1s both; }
@keyframes window-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

/* Dashboard */
.dash-body { padding: 14px; display: grid; gap: 14px; }
.dash-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-filters span { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 6px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dash-kpis div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); min-width: 0; }
.dash-kpis small { display: block; font-size: 11.5px; color: var(--subtle); }
.dash-kpis strong { display: block; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.3; }
.dash-kpis .money { color: var(--accent-ink); }
.dash-chart {
    height: 150px;
    margin-bottom: 20px;
    padding: 12px 4px 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    border-top: 1px dashed var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}
.dash-chart span { position: relative; height: var(--h); background: var(--primary); border-radius: 4px 4px 0 0; transform-origin: bottom center; }
.dash-chart i { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 4px; font-style: normal; font-size: 11px; color: var(--subtle); }
.motion .showcase-panel:not(.is-live) .dash-chart span { transform: scaleY(0); }
.motion .showcase-panel.is-live .dash-chart span { animation: bar-grow 1.1s var(--ease) calc(var(--i) * 120ms + 300ms) both; }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Sales pipeline */
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px; min-height: 220px; --move-from: -112% 0; }
.pipe-col { display: flex; flex-direction: column; gap: 8px; padding: 8px; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.pipe-col b { font-size: 12px; font-weight: 700; color: var(--muted); }
.lead { font-size: 12.5px; line-height: 1.4; padding: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); overflow-wrap: anywhere; }
.lead-won { background: var(--cell-fill); border-color: var(--accent-line); }
.motion .showcase-panel:not(.is-live) .lead { opacity: 0; }
.motion .showcase-panel.is-live .lead { animation: rise-in 0.7s var(--ease) calc(var(--i) * 220ms + 300ms) both; }
.motion .showcase-panel.is-live .lead-move { animation: lead-move 1.2s var(--ease) 1.2s both; }
@keyframes lead-move { from { opacity: 0.25; translate: var(--move-from); } to { opacity: 1; translate: 0 0; } }

/* Content Studio */
.content-body { padding: 14px; display: grid; gap: 12px; }
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; list-style: none; margin: 0; padding: 0; }
.stages li { padding: 6px 2px; border-bottom: 3px solid var(--line-strong); font-size: 11.5px; font-weight: 600; color: var(--subtle); text-align: center; line-height: 1.25; }
.stages li:nth-child(-n+3) { border-bottom-color: var(--accent); color: var(--muted); }
.stages li.is-now { border-bottom-color: var(--primary); color: var(--link); }
.content-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.content-cards li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13.5px; }
.content-cards .day { font-family: var(--font-mono); font-size: 11px; color: var(--subtle); text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 3px 0; }
.content-cards .ttl { font-weight: 600; color: var(--ink); min-width: 0; }
.content-cards .st { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.content-cards li:first-child .st { background: var(--cell-fill); border-color: var(--accent-line); color: var(--accent-ink); }
.motion .showcase-panel:not(.is-live) .content-cards li { opacity: 0; }
.motion .showcase-panel.is-live .content-cards li { animation: slide-in 0.8s var(--ease) calc(var(--i) * 220ms + 300ms) both; }
.motion .showcase-panel.is-live .stages li { animation: fade-in 0.6s ease both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* AI Agent */
.chat { padding: 14px; display: grid; gap: 10px; align-content: start; min-height: 240px; }
.bubble { max-width: 90%; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.bubble.you { justify-self: end; background: var(--primary); color: #FFFFFF; border-bottom-right-radius: 4px; }
.bubble.bot { justify-self: start; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.bot ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.bubble.bot li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.bubble.bot li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.motion .showcase-panel:not(.is-live) .bubble { opacity: 0; }
.motion .showcase-panel.is-live .bubble.you { animation: rise-in 0.7s var(--ease) 0.3s both; }
.motion .showcase-panel.is-live .bubble.bot { animation: rise-in 0.8s var(--ease) 1.2s both; }
.motion .showcase-panel.is-live .bubble.bot li { animation: fade-in 0.6s ease both; }
.motion .showcase-panel.is-live .bubble.bot li:nth-child(1) { animation-delay: 1.8s; }
.motion .showcase-panel.is-live .bubble.bot li:nth-child(2) { animation-delay: 2.1s; }

@media (max-width: 960px) {
    .showcase-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .js .showcase > .showcase-panel { padding: 26px 22px; }
}
@media (max-width: 640px) {
    .js .showcase-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
    .js .showcase > .showcase-panel { padding: 20px 16px; border-radius: 14px; }
    .showcase-tabs [role="tab"] { justify-content: center; gap: 6px; padding: 6px 8px; font-size: 13.5px; line-height: 1.25; }
    .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-chart { height: 120px; gap: 6px; }
    .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; --move-from: 0 -16px; }
    .panel-copy p { font-size: 16px; }
    .stages li { font-size: 10.5px; }
}
@media (max-width: 400px) {
    .showcase-tabs [role="tab"] svg { display: none; }
}

/* ---------- AI Agent ---------- */
/* A soft light at the top of the section marks the AI as the layer that reads all the other modules. */
.section-ai { padding: 68px 0; border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 45% at 50% 0%, var(--glow-a), transparent 75%); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.ai-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ai-points li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.ai-num {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid var(--primary-line);
    background: var(--primary-soft);
    color: var(--link);
    font-family: var(--font-mono);
    font-size: 13px;
}
.ai-points p { color: var(--muted); font-size: 15.5px; }
.ai-points strong { color: var(--ink); }
.ai-demo { box-shadow: var(--shadow-lift), 0 0 0 7px var(--bezel); border-radius: 14px; }
.ai-demo-note { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--subtle); padding: 1px 8px; border: 1px dashed var(--line-strong); border-radius: 6px; }
.ai-asks { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 14px 0; }
.ai-asks [role="tab"] {
    position: relative;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--control-line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.ai-asks [role="tab"]:hover { color: var(--ink); border-color: var(--ink); }
.ai-asks [role="tab"]:active { transform: translateY(1px); }
.ai-asks [role="tab"][aria-selected="true"] { color: var(--ink); background: var(--primary-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.ai-convs { display: grid; padding: 14px; min-height: 300px; }
.ai-conv { display: grid; gap: 10px; align-content: start; }
.js .ai-conv {
    grid-area: 1 / 1;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s;
}
.js .ai-conv:not(.is-active) {
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
}
.ai-conv:focus-visible { outline-offset: 4px; border-radius: 10px; }
.ai-hooks li { font-style: italic; }
.ai-demo-cap { padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--subtle); }
.ai-tag-row { margin-top: 28px; text-align: center; }
.ai-tag-row .tag { margin-top: 0; }
/* Each question replays its answer: the question first, then the answer, then its lines one by one. */
.motion .ai-conv:not(.is-live) .bubble { opacity: 0; }
.motion .ai-conv.is-live .bubble.you { animation: rise-in 0.65s var(--ease) 0.2s both; }
.motion .ai-conv.is-live .bubble.bot { animation: tile-in 0.85s var(--ease) 0.85s both; }
.motion .ai-conv.is-live .bubble.bot li { animation: fade-in 0.55s ease both; }
.motion .ai-conv.is-live .bubble.bot li:nth-child(1) { animation-delay: 1.45s; }
.motion .ai-conv.is-live .bubble.bot li:nth-child(2) { animation-delay: 1.72s; }
.motion .ai-conv.is-live .bubble.bot li:nth-child(3) { animation-delay: 2.0s; }

@media (max-width: 960px) {
    .ai-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .ai-demo { width: min(640px, 100%); margin-inline: auto; }
}
@media (max-width: 480px) {
    .ai-asks [role="tab"] { flex: 1 1 100%; }
    .ai-convs { min-height: 340px; }
}

/* ---------- Who it is for ---------- */
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.who-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
/* The owner is the page's main reader, so that card is the selected cell: blue ring plus fill handle. */
.who-card.is-main { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-lift); }
.who-card.is-main::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 2px solid var(--bg);
    border-radius: 2px;
}
.who-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--primary-line); background: var(--primary-soft); color: var(--link); }
.who-ico svg { width: 24px; height: 24px; }
.who-card h3 { margin-top: 18px; font-size: 20px; font-weight: 800; }
.who-card > p { margin-top: 8px; color: var(--muted); }
.who-card .check-list { margin-top: 18px; }

@media (max-width: 960px) {
    .who-grid { grid-template-columns: minmax(0, 1fr); width: min(640px, 100%); margin-inline: auto; }
}

/* ---------- Night band (data commitments) ---------- */
.band-night { isolation: isolate; background: var(--night); color: var(--night-ink); }
/* The same spreadsheet grid, lighter, so the dark band still belongs to the page. */
.band-night::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(147, 197, 253, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(147, 197, 253, 0.07) 1px, transparent 1px);
    background-size: 120px 40px;
    background-position: center top;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    pointer-events: none;
}
/* The same grain as the hero, light specks on the dark band. */
.band-night::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--grain);
    filter: invert(1);
    opacity: 0.045;
    pointer-events: none;
}
html.dark .band-night { border-block: 1px solid var(--night-line); }
.band-night .section-head h2 { color: var(--night-ink); }
.band-night .section-head p { color: var(--night-muted); }
.btn-on-dark { background: transparent; color: var(--night-ink); border-color: var(--night-control); }
.btn-on-dark:hover { background: var(--night-2); border-color: var(--night-ink); }
.btn-on-dark:active { background: var(--night-line); }
.band-night :focus-visible { outline-color: #93C5FD; }
/* Six commitments of equal weight: one card style, three across, two rows, so the band stays symmetric. */
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust-list li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--night-line);
    border-radius: 12px;
    background: rgba(16, 28, 62, 0.65);
}
html.dark .trust-list li { background: var(--night-2); }
.trust-list svg { width: 40px; height: 40px; padding: 9px; border-radius: 8px; background: rgba(147, 197, 253, 0.12); color: #93C5FD; }
.trust-list p { color: var(--night-muted); font-size: 15px; }
.trust-list strong { color: var(--night-ink); }
.band-actions { margin-top: 36px; display: flex; justify-content: center; }

@media (max-width: 960px) {
    .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .trust-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Steps timeline ---------- */
.timeline {
    --progress: 1;
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}
.motion .timeline { --progress: 0; }
.timeline::before, .timeline::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 22px;
    width: calc(75% + 21px);
    height: 2px;
    background: var(--line-strong);
}
.timeline::after {
    background: var(--accent);
    transform-origin: left center;
    transform: scaleX(var(--progress));
}
.tl-step { position: relative; }
.tl-marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid var(--accent-strong);
    background: var(--accent-strong);
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.tl-marker svg { width: 20px; height: 20px; }
.tl-num { display: none; }
.motion .tl-step:not(.is-done) .tl-marker { background: var(--bg); border-color: var(--line-strong); color: var(--subtle); }
.motion .tl-step:not(.is-done) .tl-marker svg { display: none; }
.motion .tl-step:not(.is-done) .tl-num { display: block; }
.motion .tl-step.is-done .tl-marker { animation: marker-pop 0.6s var(--ease); }
@keyframes marker-pop { 50% { transform: scale(1.12); } }
.tl-step h3 { margin-top: 20px; font-size: 19px; font-weight: 700; }
.tl-step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
    .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 64px; }
    .timeline::before, .timeline::after { top: 22px; bottom: 22px; left: 21px; width: 2px; height: auto; }
    .timeline::after { transform-origin: center top; transform: scaleY(var(--progress)); }
    .tl-step { padding-bottom: 32px; min-height: 76px; }
    .tl-step:last-child { padding-bottom: 0; }
    .tl-marker { position: absolute; left: -64px; top: 0; }
    .tl-step h3 { margin-top: 8px; }
}

/* ---------- Pricing ---------- */
.section-pricing { background: var(--bg-soft); border-block: 1px solid var(--line); }
.period-switch {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--control-line);
    border-radius: 10px;
    background: var(--surface);
    margin: 0 auto 28px;
}
.seg {
    position: relative;
    z-index: 1;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.25s ease, background-color 0.18s ease;
}
.seg:hover { background: var(--surface-2); color: var(--ink); }
.seg[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
/* With JS, one indicator slides between periods instead of the background jumping. */
.seg-indicator {
    position: absolute;
    z-index: 0;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    width: 0;
    border-radius: 7px;
    background: var(--ink);
    transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}
.has-indicator .seg[aria-pressed="true"] { background: transparent; }
.has-indicator .seg[aria-pressed="true"]:hover { background: transparent; }

.pricing [data-m] { display: none; }
.pricing[data-period="1"] [data-m="1"],
.pricing[data-period="3"] [data-m="3"],
.pricing[data-period="12"] [data-m="12"] { display: flex; }
.motion .pricing .price[data-m] { animation: rise-in 0.6s var(--ease) both; }

/* Price cards. The four rows (name, price, button, contents) line up across cards through subgrid, so the
   prices and the buttons sit on one line even when one card carries an extra note. */
.price-cards {
    display: grid;
    grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
    grid-template-rows: auto auto auto 1fr;
    column-gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}
.price-card {
    position: relative;
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
    padding: 26px 24px 24px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.pc-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pc-for { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pc-for b { font-weight: 700; color: var(--link); }
.pc-price { padding-top: 18px; }
.pc-cta { padding-top: 18px; }
.pc-body { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pc-lead { font-size: 13px; font-weight: 700; color: var(--ink); }
.pc-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pc-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.pc-list .mark { width: 18px; height: 18px; margin-top: 1px; }
/* The recommended card is the selected cell: blue ring, fill handle, and a light tint fading from the top. */
.price-card.is-rec {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--rec-head) 0, transparent 240px), var(--surface);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lift);
}
.price-card.is-rec::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 2px solid var(--bg-soft);
    border-radius: 2px;
}

/* Full comparison, closed by default so the section stays short. */
.compare { max-width: 1080px; margin: 24px auto 0; }
.compare summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 44px;
    margin: 0 auto;
    padding: 0 18px;
    border: 1px solid var(--control-line);
    border-radius: 10px;
    background: var(--surface);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.compare summary::-webkit-details-marker { display: none; }
.compare summary:hover { border-color: var(--ink); background: var(--surface-2); }
.compare summary .chev { width: 18px; height: 18px; color: var(--subtle); transition: transform 0.25s var(--ease); }
.compare[open] summary .chev { transform: rotate(180deg); }
.compare-body { overflow: hidden; }
.compare-body .plan-table-wrap { margin-top: 18px; }

.plan-table-wrap { border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.plan-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.plan-table th, .plan-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14.5px; }
.plan-table thead th { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; background: var(--surface-2); }
.plan-table thead th:first-child { width: 34%; }
.plan-table tbody th { font-weight: 500; color: var(--muted); }
.plan-table tbody tr { transition: background-color 0.15s ease; }
.plan-table tbody tr:hover { background: var(--surface-2); }
.plan-table tbody tr:last-child th, .plan-table tbody tr:last-child td { border-bottom: 0; }

/* The price per day leads because owners weigh it against daily spending. The amount actually billed sits
   right under it, in full contrast, so the checkout total never surprises anyone. */
.price { flex-direction: column; gap: 4px; }
.price-day { display: flex; align-items: baseline; gap: 2px; }
.price-day strong { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--accent-ink); letter-spacing: -0.025em; line-height: 1.05; }
.price .suffix { font-size: 15px; font-weight: 600; color: var(--subtle); }
.price-bill { font-size: 14px; color: var(--muted); }
.price-bill b { font-weight: 700; color: var(--ink); }
.price-save { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
/* One short line on the recommended card: how little more it costs per day than the package below. */
.price-gap {
    align-self: flex-start;
    margin-top: 6px;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--primary-soft);
    font-size: 13px;
    font-weight: 600;
    color: var(--link);
}
.price-gap b { font-weight: 800; }
.price-na { font-size: 14px; color: var(--subtle); }

/* The recommended package is the selected column: blue edges down the whole column and a light fill. */
.plan-table .is-rec { background: var(--rec-fill); box-shadow: inset 2px 0 0 var(--primary), inset -2px 0 0 var(--primary); }
.plan-table thead .is-rec { background: var(--rec-head); box-shadow: inset 2px 0 0 var(--primary), inset -2px 0 0 var(--primary), inset 0 2px 0 var(--primary); }
.plan-table tbody tr:last-child .is-rec { box-shadow: inset 2px 0 0 var(--primary), inset -2px 0 0 var(--primary), inset 0 -2px 0 var(--primary); }
.seg { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.seg-tag { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.seg[aria-pressed="true"] .seg-tag { color: inherit; }

.mark { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.mark-yes { color: var(--accent-strong); }
html.dark .mark-yes { color: var(--accent-ink); }
.mark-no { width: 14px; height: 2px; background: var(--control-line); margin: 9px 3px; }

/* Phones and narrow tablets: one card per row in a readable column, the table tightened to fit. */
@media (max-width: 860px) {
    .price-cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; max-width: 520px; }
    .price-card { display: flex; flex-direction: column; grid-row: auto; }
}
@media (max-width: 600px) {
    .price-card { padding: 22px 20px 20px; }
    .plan-table th, .plan-table td { padding: 10px 8px; font-size: 13px; }
    .plan-table thead th { font-size: 14px; }
    .plan-table thead th:first-child { width: 40%; }
}
@media (max-width: 400px) {
    .seg { padding: 0 12px; }
}

.price-note { max-width: 760px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 15px; }
.empty-box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 24px; color: var(--muted); background: var(--surface); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 16px 4px;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--link); }
.faq summary .chev {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--subtle);
    transition: transform 0.25s var(--ease), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.faq details[open] summary .chev { transform: rotate(180deg); background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.faq .answer { padding: 0 4px 20px; color: var(--muted); max-width: 720px; overflow: hidden; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
/* The closing call to action is the page's selected cell: outline ring plus fill handle. */
.cta-panel {
    position: relative;
    isolation: isolate;
    overflow: visible;
    margin-top: 64px;
    padding: 56px 48px;
    border-radius: 6px;
    background: var(--primary-deep);
    color: #FFFFFF;
    outline: 2px solid var(--primary-deep);
    outline-offset: 5px;
    text-align: center;
}
.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 120px 40px;
    background-position: center center;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, transparent 30%, #000 100%);
    mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, transparent 30%, #000 100%);
}
.cta-panel::after {
    content: "";
    position: absolute;
    right: -13px;
    bottom: -13px;
    width: 14px;
    height: 14px;
    background: var(--primary-deep);
    border: 3px solid var(--bg);
    border-radius: 3px;
}
.cta-title { max-width: 760px; margin: 0 auto; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.022em; color: #FFFFFF; }
.cta-panel p { margin: 14px auto 0; color: #DCE6FF; font-size: 17px; max-width: 620px; }
.cta-panel .actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-panel .btn-primary { background: #FFFFFF; color: #1D4ED8; }
.cta-panel .btn-primary:hover { background: #EAF1FE; }
.cta-panel .btn-primary:active { background: #DCE6FF; }
.cta-panel .btn-ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.8); }
.cta-panel .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #FFFFFF; }
.cta-panel :focus-visible { outline-color: #FFFFFF; }

.contact-card { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
.contact-title, .question-form h3 { margin-bottom: 18px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.contact-actions { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions:empty { display: none; }

/* Visitor question form (stored as a Komunitas ticket for the Owner). */
.question-form { display: flex; flex-direction: column; height: 100%; }
.question-form h3 { margin-bottom: 4px; }
.question-intro { color: var(--muted); font-size: 15px; }
.q-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.q-full { grid-column: 1 / -1; }
.question-form textarea.input { min-height: 112px; resize: vertical; line-height: 1.5; }
.question-form .btn { margin-top: 18px; align-self: flex-start; }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list dt { color: var(--subtle); font-size: 15px; }
.contact-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
    .q-grid { grid-template-columns: minmax(0, 1fr); }
    .question-form .btn { align-self: stretch; }
}
@media (max-width: 480px) {
    .cta-panel { margin-top: 48px; padding: 32px 20px; }
    .cta-panel .actions .btn { width: 100%; }
    .contact-card { padding: 24px 16px; }
    .contact-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- Notices ---------- */
.notice {
    border: 1px solid var(--warn-line);
    background: var(--warn-soft);
    color: var(--warn-ink);
    border-radius: 10px;
    padding: 14px 16px;
}
.notice-error { border-color: var(--error-line); background: var(--error-soft); color: var(--error-ink); }
.notice-ok { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.notice strong { color: inherit; }
.notice a { color: inherit; font-weight: 600; }

.tiktok-code { margin-top: 16px; }
.tiktok-code .code-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tiktok-code code {
    flex: 1 1 260px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 8px 10px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; background: var(--bg-soft); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; }
.footer-brand p { margin-top: 10px; color: var(--subtle); font-size: 14px; max-width: 380px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--ink); }
.copyright { width: 100%; font-size: 13px; color: var(--subtle); }

/* ---------- Legal pages ---------- */
.legal-hero { position: relative; isolation: isolate; padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.legal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 120px 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 55%, transparent 100%);
    pointer-events: none;
}
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--subtle); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line-strong); }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.legal-hero h1 { margin-top: 6px; font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.026em; }
.legal-hero .updated { margin-top: 12px; color: var(--subtle); font-size: 15px; }
.legal-hero .intro { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 760px; }
.doc-switch { margin-top: 28px; }
.doc-switch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-switch a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--control-line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
.doc-switch a:hover { color: var(--ink); border-color: var(--ink); }
.doc-switch a[aria-current="page"] { color: var(--ink); background: var(--primary-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.doc-switch a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 9px;
    height: 9px;
    background: var(--primary);
    border: 2px solid var(--bg);
    border-radius: 2px;
}

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding: 48px 0 96px; }
.legal-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 4px; }
.legal-toc h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--subtle); letter-spacing: 0; margin: 0 0 8px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc a {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    min-height: 40px;
    padding: 6px 10px 6px 6px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}
.legal-toc a::before {
    counter-increment: toc;
    content: counter(toc) / "";
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--subtle);
    text-align: center;
}
.legal-toc a:hover { background: var(--surface-2); color: var(--ink); }
/* Marks the section being read: a real position state, which is why it may carry a colored edge. */
.legal-toc a[aria-current] { background: var(--primary-soft); color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--primary); }

.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 48px; scroll-margin-top: 96px; }
.legal-body > h2:first-child, .legal-body > section:first-child > h2 { margin-top: 0; }
.legal-body h3 { font-size: 18px; margin-top: 24px; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body p { margin-top: 12px; }
.legal-body ul, .legal-body ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.legal-body .contact-box { margin-top: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }

.case-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.case-card { padding: 22px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.case-card h3 { margin-top: 0; font-size: 18px; color: var(--ink); }
.case-card p { margin-top: 8px; color: var(--muted); }
.case-num { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; border-radius: 6px; background: var(--accent-strong); color: #FFFFFF; font-family: var(--font-mono); font-size: 13px; }

.no-list { list-style: none; padding-left: 0 !important; }
/* Padding plus a positioned marker (not a grid), so a link inside the sentence stays inline. */
.no-list li { position: relative; padding-left: 30px; }
.no-list li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 14px; height: 2px; background: var(--subtle); }

.proc-steps { list-style: none; padding-left: 0 !important; counter-reset: proc; gap: 0 !important; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.proc-steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.proc-steps li:last-child { border-bottom: 0; }
.proc-steps li::before {
    counter-increment: proc;
    content: counter(proc) / "";
    display: grid;
    place-items: start center;
    padding-top: 14px;
    background: var(--surface-2);
    border-right: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--subtle);
}
.proc-steps li span { padding: 12px 16px; }

.data-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.data-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.data-item h3 { margin-top: 0; font-size: 16px; }
.data-item p { margin-top: 6px; font-size: 15px; }

@media (max-width: 960px) {
    .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
    .legal-toc { position: static; max-height: none; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
    .legal-toc ol { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 640px) {
    .case-grid, .data-grid { grid-template-columns: minmax(0, 1fr); }
    .legal-hero .intro { font-size: 16px; }
    .legal-body h2 { font-size: 21px; }
}

/* ---------- Signup ---------- */
.auth-page { padding: 32px 0 88px; }
.stepper { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--subtle); }
.stepper li + li::before { content: ""; width: 36px; height: 2px; margin: 0 12px; background: var(--line-strong); }
.stepper .st-num {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 2px solid var(--line-strong);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--subtle);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.stepper [aria-current="step"] { color: var(--ink); }
.stepper [aria-current="step"] .st-num { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.stepper .is-done { color: var(--muted); }
.stepper .is-done .st-num { background: var(--accent-strong); border-color: var(--accent-strong); color: #FFFFFF; }
.stepper .is-done + li::before { background: var(--accent); }

.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; align-items: start; }
/* /akses: one short form, so one centred card at reading width. */
.auth-single { max-width: 600px; }
/* Short page: keep the footer at the bottom of the screen instead of floating mid-page. */
.auth-page-short { min-height: calc(100vh - 300px); }
.form-grid.form-grid-single { grid-template-columns: minmax(0, 1fr); }
.auth-card .form-message + .btn,
.auth-card [data-step] > p + .btn { margin-top: 20px; }
/* The form is the one task on this page, so it is the one raised surface. */
.auth-card { border: 1px solid var(--line-strong); border-radius: 16px; padding: 36px; background: var(--surface); box-shadow: var(--shadow-card); }
.auth-card h1 { font-size: clamp(28px, 3vw, 34px); font-weight: 800; letter-spacing: -0.022em; }
.auth-card [data-step] > p { margin-top: 8px; color: var(--muted); }
.motion [data-step]:not([hidden]) { animation: rise-in 0.7s var(--ease) both; }
.form-section-title { grid-column: 1 / -1; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.form-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field > label:not(.check-row) { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.field .hint { margin-top: 6px; font-size: 13px; color: var(--subtle); }
.field .error { margin-top: 6px; font-size: 14px; color: var(--error-ink); font-weight: 500; }
.input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--control-line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:hover { border-color: var(--ink); }
.input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus); }
.input::placeholder { color: var(--subtle); opacity: 1; }
.input[aria-invalid="true"] { border-color: var(--error-ink); box-shadow: inset 0 0 0 1px var(--error-ink); }
html, body { max-width: 100%; overflow-x: clip; }
.input-row { display: flex; align-items: stretch; gap: 8px; max-width: 100%; }
.input-row .input { width: 0; flex: 1 1 0%; min-width: 0; }
.input-row .btn { flex-shrink: 0; white-space: nowrap; }
.code-input { font-family: var(--font-mono); font-size: 24px; letter-spacing: 0.4em; text-align: center; }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-group[data-tier-choices] { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 14px;
    border: 1px solid var(--control-line);
    border-radius: 8px;
    background: var(--surface);
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
[data-tier-choices] .choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 10px; padding: 12px 14px; }
[data-tier-choices] .choice input { grid-row: 1 / span 2; align-self: center; }
.choice:hover { background: var(--surface-2); border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.choice:has(input:checked)::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 9px;
    height: 9px;
    background: var(--primary);
    border: 2px solid var(--surface);
    border-radius: 2px;
}
.choice:has(input:disabled) { color: var(--subtle); background: var(--surface-2); border-color: var(--line-strong); cursor: not-allowed; }
.choice:has(input:disabled):hover { border-color: var(--line-strong); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.choice .price-hint { font-weight: 500; color: var(--subtle); font-size: 14px; font-variant-numeric: tabular-nums; }
.choice .price-day-hint { display: block; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.choice-rec { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--link); }

.check-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--muted); font-size: 15px; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); }

.summary-card { position: sticky; top: 96px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); overflow: hidden; }
.summary-card h2 { padding: 16px 20px; font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.summary-card dl { margin: 0; counter-reset: sum; }
/* Order lines drawn as spreadsheet rows, with row numbers in the gutter. */
.summary-card dl div { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line); }
.summary-card dl div::before {
    counter-increment: sum;
    content: counter(sum) / "";
    align-self: stretch;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border-right: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--subtle);
}
.summary-card dt { padding: 12px 14px; color: var(--subtle); }
.summary-card dd { margin: 0; padding: 12px 16px; font-weight: 600; text-align: right; }
.summary-card .total dd { color: var(--accent-ink); font-family: var(--font-display); font-size: 22px; font-weight: 800; background: var(--cell-fill); }
.motion .summary-card .total dd.is-updated { animation: cell-flash 1s var(--ease); }
@keyframes cell-flash {
    0% { box-shadow: inset 0 0 0 2px var(--primary); }
    100% { box-shadow: inset 0 0 0 0 transparent; }
}
.summary-card ol { margin: 0; padding: 18px 20px 20px 40px; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.form-message { margin-top: 18px; }
.form-submit { margin-top: 22px; min-height: 52px; font-size: 16px; }
.form-secondary { margin-top: 10px; }
.form-gap { margin-top: 20px; }
.btn[aria-busy="true"] { opacity: 0.85; }

@media (max-width: 960px) {
    .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .summary-card { position: static; }
}
@media (max-width: 600px) {
    .auth-page { padding: 20px 0 56px; }
    .auth-card { padding: 22px 16px; border-radius: 14px; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .stepper li + li::before { width: 14px; margin: 0 8px; }
    .stepper li { font-size: 13px; gap: 8px; }
    /* Other steps keep their label for screen readers; only the visible text is dropped to fit a phone. */
    .stepper li:not([aria-current="step"]) .st-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

/* ---------- Signup extras: occupation, consent, discount code ---------- */
select.input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%235B6678' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}
html.dark select.input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%2397A5BC' stroke-width='2'/%3E%3C/svg%3E");
}
.consent-box { padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); }
.consent-box .hint { margin: 6px 0 0 32px; }
.discount-row { display: flex; align-items: stretch; gap: 8px; max-width: 100%; }
.discount-row .input { width: 0; flex: 1 1 0%; min-width: 0; text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 0.04em; }
.discount-row .btn { flex-shrink: 0; white-space: nowrap; }
.discount-ok { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--accent-ink); font-weight: 600; }
.summary-card .discount-line dd { color: var(--accent-ink); }

/* ---------- Visitor sound switch ---------- */
.sound-toggle [data-icon="off"] { display: none; }
.sound-toggle[aria-pressed="false"] [data-icon="on"] { display: none; }
.sound-toggle[aria-pressed="false"] [data-icon="off"] { display: block; }

/* ---------- Recent subscriber box ----------
 * Shows only real payments from customers who agreed to it. Bottom-left, small, with a pause and a close
 * button: it changes every few seconds, so the visitor must be able to stop it (WCAG 2.2.2). */
.proof-box { position: fixed; left: 20px; bottom: 20px; z-index: 35; width: min(360px, calc(100vw - 40px)); }
.proof-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 12px 16px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}
.proof-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--cell-fill);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    box-shadow: inset 0 0 0 2px var(--accent-line);
}
.proof-text { min-width: 0; }
.proof-text p { line-height: 1.35; }
.proof-name { font-size: 14px; color: var(--ink); }
.proof-name span { color: var(--subtle); font-weight: 500; }
.proof-name span:not(:empty)::before { content: "\00A0\00B7\00A0"; }
.proof-what { margin-top: 2px; font-size: 14px; color: var(--muted); }
.proof-what b { color: var(--accent-ink); font-weight: 700; }
.proof-time { margin-top: 2px; font-size: 12.5px; color: var(--subtle); }
.proof-controls { display: flex; flex-direction: column; gap: 4px; align-self: start; }
.proof-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--subtle);
}
.proof-btn:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.proof-btn:active { background: var(--line); }
.proof-btn svg { width: 16px; height: 16px; }
.proof-btn [data-icon="play"] { display: none; }
.proof-btn[aria-pressed="true"] [data-icon="pause"] { display: none; }
.proof-btn[aria-pressed="true"] [data-icon="play"] { display: block; }
/* Time left on the current entry, drawn like a cell being filled along the bottom edge. */
.proof-timer {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--accent);
    transform-origin: left center;
    transform: scaleX(0);
}
.proof-box.is-running .proof-timer { animation: proof-timer var(--proof-ms, 7000ms) linear forwards; }
.proof-box.is-paused .proof-timer { animation-play-state: paused; }
@keyframes proof-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.motion .proof-card.is-in { animation: proof-in 0.8s var(--ease) both; }
.motion .proof-card.is-out { animation: proof-out 0.6s ease both; }
@keyframes proof-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes proof-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px); } }
.proof-card.is-hidden { visibility: hidden; }
@media (max-width: 560px) {
    .proof-box { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* ---------- Public voucher promo ribbon & cards ---------- */
.voucher-ribbon {
    border-bottom: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--ink);
    padding: 10px 0;
}
.vr-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}
.vr-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 14px;
    line-height: 1.4;
}
.vr-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--accent-strong);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.vb-timer {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--surface);
    border: 1px solid var(--accent-line);
    color: var(--accent-ink);
    font-size: 12.5px;
    font-weight: 600;
}
.vr-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.vr-code {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    border: 1.5px dashed var(--accent-strong);
    border-radius: 7px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.vr-actions .btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }

.voucher-showcase {
    max-width: 1080px;
    margin: 0 auto 36px;
    padding: 24px;
    border: 1px solid var(--accent-line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}
.vs-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 20px;
}
.vs-head h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
}
.vs-head p {
    margin-top: 6px;
    font-size: 14.5px;
    color: var(--muted);
}
.voucher-grid {
    display: grid;
    grid-template-columns: repeat(var(--vn, 1), minmax(0, 1fr));
    gap: 16px;
}
.voucher-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface-2);
}
.vc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.vc-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.vc-pill-accent {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 700;
}
.vc-pill-warn {
    border-color: var(--warn-line);
    background: var(--warn-soft);
    color: var(--warn-ink);
}
.voucher-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}
.vc-desc {
    margin-top: 4px;
    font-size: 13.5px;
    color: var(--muted);
}
.vc-meta {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: var(--muted);
}
.vc-window { font-weight: 600; color: var(--ink); }
.vc-countdown {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--primary-soft);
    color: var(--link);
    font-size: 12.5px;
    font-weight: 600;
}
.vc-scope { font-size: 12.5px; color: var(--subtle); }
.vc-code-box {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 12px;
    border: 1.5px dashed var(--control-line);
    border-radius: 9px;
    background: var(--surface);
}
.vc-code {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.vc-copy-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    flex: none;
}
.vc-copy-btn.is-copied,
.vr-copy-btn.is-copied {
    border-color: var(--accent-strong);
    background: var(--accent-soft);
    color: var(--accent-ink);
}
.vc-use-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    align-self: flex-start;
}
.vc-use-link:hover { text-decoration: underline; }

.daftar-vouchers {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}
.dv-label { font-size: 12.5px; font-weight: 600; color: var(--subtle); }
.dv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dv-chip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 4px 10px;
    border: 1px dashed var(--accent-strong);
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--ink);
    font: inherit;
    font-size: 12.5px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.dv-chip:hover { background: var(--cell-fill); }
.dv-chip strong { color: var(--accent-ink); letter-spacing: 0.04em; }

@media (max-width: 820px) {
    .voucher-grid { grid-template-columns: minmax(0, 1fr); }
    .voucher-showcase { padding: 18px 16px; }
}

/* ---------- Platform logos ----------
 * Logos are never recoloured, stretched, or shadowed. Each sits on a plain white tile in both themes, because
 * the Facebook f and the YouTube play arrow are cut-outs that must stay white, and the monochrome logos are
 * black. Tiles are always smaller than the AdBridge mark nearby, so partner brands never outrank the product. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo-tile {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #DDE3EC;
}
.logo-tile .lg { width: 26px; height: 26px; display: block; }
.logo-tile-sm { width: 30px; height: 30px; border-radius: 8px; }
.logo-tile-sm .lg { width: 16px; height: 16px; }
.logo-tile-xs { width: 24px; height: 24px; border-radius: 6px; }
.logo-tile-xs .lg { width: 13px; height: 13px; }
html.dark .logo-tile { border-color: #FFFFFF; }

/* Hero: the platforms AdBridge connects to, as small tiles under the call to action. */
.works-with ul.works-logos { gap: 6px; align-items: center; }
.works-with .works-logos li { padding: 0; border: 0; background: none; border-radius: 0; }
.works-with .works-logos .works-wa { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.works-with p.works-legal { flex-basis: 100%; margin: 0; font-size: 12.5px; font-weight: 500; color: var(--subtle); }
.works-legal a { color: var(--link); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.works-legal a:hover { text-decoration-thickness: 2px; }

/* ---------- Organic dashboard illustration ---------- */
.org-body { padding: 14px 18px 16px; }
.org-head, .org-rows li { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 1.15fr) auto; align-items: center; column-gap: 14px; }
.org-head { padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--subtle); }
.org-head span:last-child { grid-column: 3 / span 2; }
.org-rows { list-style: none; margin: 0; padding: 0; }
.org-rows li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.org-rows li:last-child { border-bottom: 0; }
.org-acc { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; color: var(--ink); }
.org-rows b { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.org-spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.org-spark i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: var(--primary-line); }
.org-spark i:last-child { background: var(--primary); }
.org-delta { padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.motion .showcase-panel:not(.is-live) .org-rows li { opacity: 0; }
.motion .showcase-panel.is-live .org-rows li { animation: rise-in 0.7s var(--ease) calc(var(--i) * 140ms + 250ms) both; }
.motion .showcase-panel.is-live .org-spark i { animation: bar-grow 1s var(--ease) calc(var(--i) * 140ms + 450ms) both; transform-origin: bottom; }
@media (max-width: 480px) {
    .org-head, .org-rows li { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) auto; }
    .org-spark, .org-head span:last-child { display: none; }
}

/* ---------- Client logos ----------
 * Drawn as one spreadsheet row: cells share their borders. Six or more logos drift slowly and can be dragged,
 * swiped, or moved with the arrow keys (site.js); fewer stay still and centered. Logos keep their own colours
 * on white cells in both themes. Pointing at a logo selects its cell the way a spreadsheet does: tinted fill,
 * blue edge, and the fill handle, the same mark the headline and the closing panel use. */
.section-clients { border-top: 1px solid var(--line); }
.clients-row { display: flex; list-style: none; margin: 0; padding: 0; }
.client-cell {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 196px;
    height: 100px;
    padding: 18px 24px;
    margin-left: -1px;
    background: #FFFFFF;
    border: 1px solid var(--line-strong);
    transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.client-cell::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -5px;
    z-index: 2;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border: 2px solid #FFFFFF;
    border-radius: 2px;
    transform: scale(0);
    transition: transform 0.3s var(--ease);
}
.client-cell:hover { z-index: 1; background: #EAF1FE; box-shadow: inset 0 0 0 2px var(--primary); }
.client-cell:hover::after { transform: scale(1); }
.client-cell img { display: block; width: auto; height: auto; max-width: 100%; max-height: 56px; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.clients-static .clients-row { flex-wrap: wrap; justify-content: center; padding-left: 1px; }
.clients-static .client-cell { margin-top: -1px; }

.clients-marquee { border-radius: 4px; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.clients-marquee.is-dragging { cursor: grabbing; }
/* The fade lives on the inner window, so the focus ring on the strip itself is never faded away. */
.clients-viewport {
    overflow: hidden;
    padding-block: 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.clients-track { display: flex; width: max-content; padding-left: 1px; will-change: transform; }
/* Without motion the strip becomes a wrapped, centered grid and the copy used for looping is dropped. */
html:not(.motion) .clients-marquee { cursor: default; }
html:not(.motion) .clients-viewport { -webkit-mask-image: none; mask-image: none; overflow: visible; }
html:not(.motion) .clients-track { width: auto; flex-wrap: wrap; justify-content: center; }
html:not(.motion) .clients-marquee .clients-row { flex-wrap: wrap; justify-content: center; }
html:not(.motion) .clients-marquee .clients-row[aria-hidden="true"] { display: none; }
@media (max-width: 600px) {
    .client-cell { width: 150px; height: 84px; padding: 14px 18px; }
    .client-cell img { max-height: 46px; }
}

/* ---------- Mobile menu ---------- */
.motion .mobile-panel:not([hidden]) { animation: menu-down 0.4s var(--ease); }
@keyframes menu-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
