/* Lariyo — tokens from the Lariyo brand (concept C, "Spark L"): ink, spark orange, white. One stylesheet, self-hosted fonts, no framework. */
@font-face { font-family: "Space Grotesk"; src: url("/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #F4F4F6; --surface: #FFFFFF; --line: #E4E4EA;
  --ink: #16141F; --ink-2: #3B3946; --ink-muted: #5E5C69;
  /* brand = the main action colour (ink buttons, as in the logo tiles); spark = the logo's orange, for accents only */
  --brand: #16141F; --brand-strong: #000000; --brand-soft: #ECECF1; --on-brand: #FFFFFF;
  --spark: #FF5B2F; --spark-soft: #FFE8E0; --spark-text: #B93A12;
  --night: #16141F; --night-2: #201E2B; --on-night: #F4F3F8; --night-muted: #A9A6B8; --night-line: #2E2C3A;
  --danger: #C8231B; --success: #0B7A5F; --focus: #B93A12;
  --font-display: "Space Grotesk", "Figtree", system-ui, sans-serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-deva: "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", "Noto Sans Devanagari", "Mangal", sans-serif;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --shadow-card: 0 1px 2px rgba(22,20,31,.05), 0 8px 24px rgba(22,20,31,.06);
  --shadow-screen: 0 2px 4px rgba(22,20,31,.08), 0 24px 64px rgba(22,20,31,.18);
  --wrap: 1280px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F0E15; --surface: #1A1823; --line: #2E2C3A;
    --ink: #F4F3F8; --ink-2: #D2D0DC; --ink-muted: #A6A3B5;
    --brand: #F4F3F8; --brand-strong: #FFFFFF; --brand-soft: #24222F; --on-brand: #16141F;
    --spark: #FF6A40; --spark-soft: #3A1E16; --spark-text: #FF8A66;
    --night: #07060B; --night-2: #16141F; --night-line: #26242F;
    --danger: #FF7A70; --success: #4FD1A9; --focus: #FF8A66;
    --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
    --shadow-screen: 0 2px 4px rgba(0,0,0,.4), 0 24px 64px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--font-sans); text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--spark) 70%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--spark); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .45em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 1.4rem + 4.2vw, 5.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.03; }
h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.5rem); font-weight: 700; }
h3, .h3 { font-size: 1.4rem; font-weight: 680; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
/* Devanagari uses the device's own font (Noto on Android, Kohinoor on Apple, Nirmala on Windows): no download, nothing to wait for.
   Latin letters inside Nepali text stay in Figtree because Figtree has no Devanagari and is listed first. */
[lang="ne"], .deva { font-family: "Figtree", var(--font-deva); }
/* On Nepali pages every font stack gains the device's Devanagari font; Latin stays in Figtree / Space Grotesk. */
html[lang="ne"] { --font-sans: "Figtree", var(--font-deva); --font-display: "Space Grotesk", "Figtree", var(--font-deva); }
html[lang="ne"] [lang="ne"] { font-family: inherit; }
html[lang="ne"] .label, html[lang="ne"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
html[lang="ne"] h1, html[lang="ne"] h2, html[lang="ne"] h3 { font-family: var(--font-display); letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.sprite { display: none; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.muted { color: var(--ink-muted); }
.small { font-size: .9rem; }
.label { display: inline-block; font: 650 .8rem/1.2 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.lead { font-size: clamp(1.12rem, 1rem + .5vw, 1.4rem); line-height: 1.65; color: var(--ink-2); max-width: 40em; }
em.hl { font-style: normal; color: var(--spark-text); }
.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 { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo img { height: 40px; width: auto; }
.logo .on-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo .on-light { display: none; } .logo .on-dark { display: block; } }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .96rem; }
.nav a:hover { background: var(--brand-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--spark); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-brand); background: var(--brand); }
.menu { display: none; }
.menu > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card); padding: 12px max(16px, env(safe-area-inset-left, 0px)) 20px; display: grid; gap: 4px; }
.menu-panel a { padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a.btn-primary { color: var(--on-brand); }
.menu-panel .btn { margin-top: 8px; }
@media (max-width: 960px) { .nav { display: none; } .menu { display: block; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-md); font: 650 1rem/1.2 var(--font-sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-outline { background: var(--surface); color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); }
.btn-sm { min-height: 42px; padding: 8px 16px; }
.btn-wa::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--success); }
.on-night .btn-outline, .band .btn-outline { background: transparent; color: var(--on-night); border-color: var(--night-line); }
.on-night .btn-outline:hover, .band .btn-outline:hover { border-color: var(--spark); }
.on-night .btn-primary, .band .btn-primary { background: var(--spark); color: #16141F; }
.on-night .btn-primary:hover, .band .btn-primary:hover { background: #FF7A55; color: #16141F; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 18px 0 0; margin: 0; font-size: .9rem; color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--ink-muted); }

/* Sections */
.section { padding-block: clamp(80px, 8vw + 32px, 160px); }
.section-tight { padding-block: clamp(48px, 4vw + 24px, 80px); }
.on-night { background: var(--night); color: var(--on-night); }
.on-night h1, .on-night h2, .on-night h3 { color: var(--on-night); }
.on-night .lead, .on-night .muted, .on-night p { color: var(--night-muted); }
.on-night .label { color: #FF8A66; }
.on-night em.hl { color: #FF7A55; }
.on-night a:not(.btn) { color: #FF8A66; }
.head { max-width: 54rem; margin-bottom: clamp(40px, 4vw, 64px); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lead { margin-inline: auto; }

/* Hero */
.hero { padding-block: clamp(40px, 5vw, 80px) clamp(72px, 8vw, 128px); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { margin-top: 14px; }
.hero .lead { margin-bottom: 26px; }
.picker { margin-top: 30px; }
.picker p { font-weight: 650; margin-bottom: 10px; color: var(--ink); }
.picker ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picker a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.picker a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.picker a::after { content: "→"; color: var(--spark-text); }
.fan { position: relative; aspect-ratio: 16 / 12; max-width: 780px; margin-inline: auto; width: 100%; }
.fan figure { position: absolute; margin: 0; width: 80%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-screen); }
.fan img { display: block; width: 100%; height: auto; }
.fan .f1 { left: 0; top: 12%; transform: rotate(-5deg); }
.fan .f2 { left: 20%; top: 26%; transform: rotate(4deg); }
.fan .f3 { left: 9%; top: 0; z-index: 2; }
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-card); font: 600 .82rem/1.3 var(--font-sans); color: var(--ink); white-space: nowrap; }
.float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.float .dot.spark { background: var(--spark); }
.float.a { left: 0; bottom: 6%; }
.float.b { right: 0; top: 4%; }
.float.c { right: 2%; bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .fan figure { animation: settle .6s cubic-bezier(.2,.7,.2,1) both; }
  .fan .f1 { animation-delay: .05s; } .fan .f2 { animation-delay: .1s; }
  @keyframes settle { from { translate: 0 18px; } to { translate: 0 0; } }
}
@media (max-width: 560px) { .float.c { display: none; } .float { font-size: .75rem; } }

/* Proof strip */
.proof { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-block: 1px solid var(--line); padding-block: 32px; }
.proof strong { display: block; font: 700 clamp(2rem, 1.5rem + 1.5vw, 3rem)/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.proof strong.hl { color: var(--spark-text); }
.proof span { display: block; margin-top: 6px; font-size: .92rem; color: var(--ink-muted); }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; min-width: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card h3 { margin-top: 14px; }
.card p { color: var(--ink-2); margin: 0; }
.on-night .card { background: var(--night-2); border-color: var(--night-line); }
.on-night .card h3 { color: var(--on-night); }
.on-night .card p { color: var(--night-muted); }
.chip { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--spark-soft); color: var(--spark-text); }
.on-night .chip { background: rgba(255,91,47,.16); color: #FF7A55; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 650; color: var(--spark-text); }
.more .i { width: 18px; height: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .i { color: var(--success); width: 20px; height: 20px; margin-top: 3px; stroke-width: 2.4; }
.on-night .ticks .i { color: #FF7A55; }
.on-night .ticks li { color: var(--on-night); }
.crosses .i { color: var(--danger); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.2fr; } .split.flip > :first-child { order: 2; } }

/* Screens */
.screen { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-screen); }
.screen img { display: block; width: 100%; height: auto; }
.screen figcaption { padding: 10px 16px; font-size: .88rem; color: var(--ink-muted); border-top: 1px solid var(--line); }

/* Tabs (CSS only, radio-driven, work without script) */
.tabs { display: grid; gap: 24px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-list label { cursor: pointer; padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 650; color: var(--ink); }
.tab-panel { display: none; }
#t1:checked ~ .tab-list label[for="t1"], #t2:checked ~ .tab-list label[for="t2"], #t3:checked ~ .tab-list label[for="t3"], #t4:checked ~ .tab-list label[for="t4"], #t5:checked ~ .tab-list label[for="t5"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
#t1:checked ~ .p1, #t2:checked ~ .p2, #t3:checked ~ .p3, #t4:checked ~ .p4, #t5:checked ~ .p5 { display: grid; }
#t1:focus-visible ~ .tab-list label[for="t1"], #t2:focus-visible ~ .tab-list label[for="t2"], #t3:focus-visible ~ .tab-list label[for="t3"], #t4:focus-visible ~ .tab-list label[for="t4"], #t5:focus-visible ~ .tab-list label[for="t5"] { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--spark); }
.plan .pill { position: absolute; top: -13px; left: 22px; background: var(--brand); color: var(--on-brand); font: 650 .75rem/1 var(--font-sans); padding: 6px 10px; border-radius: 999px; }
.price { font: 700 2.4rem/1 var(--font-display); margin: 14px 0 4px; letter-spacing: -.02em; }
.price small { font: 500 1rem var(--font-sans); color: var(--ink-muted); }
.plan .ticks { margin: 20px 0 24px; font-size: .95rem; }
.plan .btn { margin-top: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; padding: 14px 16px; font-weight: 650; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font: 650 .78rem/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
td.them { color: var(--ink-2); }

/* FAQ */
.faq { max-width: 52rem; }
.faq.center { margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px; font-weight: 650; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--spark-text); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 4px 20px; color: var(--ink-2); }

/* Article (help, guides) */
.doc, .article { display: grid; gap: 40px; padding-block: 32px 96px; }
@media (min-width: 1000px) { .doc, .article { grid-template-columns: 250px minmax(0, 1fr); } }
/* On phones the guide comes first and the list of other guides after it. */
@media (max-width: 999.98px) { .article > .prose { order: -1; } }
.toc { font-size: .93rem; align-self: start; min-width: 0; }
@media (min-width: 1000px) { .toc { position: sticky; top: 92px; } }
.toc h2 { font: 650 .78rem/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 10px; }
.toc ul { list-style: none; padding: 0; margin: 0 0 18px; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { background: var(--brand-soft); }
.toc a[aria-current="page"] { background: var(--brand-soft); color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--spark); }
.prose { max-width: 46rem; min-width: 0; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-top: 1.7em; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.4em; }
.where { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--ink); font-size: .93rem; }
.callouts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.callouts li { display: flex; gap: 10px; align-items: baseline; }
.callouts .n { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #BE123C; color: #fff; font: 700 .8rem/1 var(--font-sans); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--spark-soft); color: var(--spark-text); font-weight: 700; }
.steps-shots { gap: 44px; }
.step-shot { grid-column: 2; margin: 6px 0 0; }
@media (max-width: 640px) { .step-shot { grid-column: 1 / -1; } }
.step-shot a { display: block; border-radius: var(--r-md); }
.step-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-card); transition: box-shadow .25s ease, transform .25s ease; }
.step-shot a:hover img { box-shadow: var(--shadow-screen); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .step-shot img { transition: none; } .step-shot a:hover img { transform: none; } }
.tip { border-left: 3px solid var(--spark); background: var(--surface); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 12px 0; }
.list { list-style: none; padding: 0; margin: 0; }
.list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.list a span { display: block; color: var(--ink-muted); font-weight: 400; font-size: .94rem; margin-top: 2px; }
.list a:hover { color: var(--spark-text); }
.search { display: flex; gap: 8px; max-width: 40rem; }
.search input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); font: inherit; background: var(--surface); color: var(--ink); }
.center .search { margin-inline: auto; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span, .form legend { font-weight: 650; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); min-height: 50px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--spark) 30%, transparent); }
.field .hint { font-size: .85rem; color: var(--ink-muted); }
.err, .field-validation-error { color: var(--danger); font-size: .88rem; font-weight: 550; }
.input-validation-error { border-color: var(--danger) !important; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1em; color: var(--danger); }
.validation-summary-valid { display: none; }
.row2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.slots-day { margin-bottom: 14px; }
.slots-day .day { font: 650 .95rem/1.3 var(--font-sans); margin: 0 0 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.slot input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.slot input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.slot span:hover { border-color: var(--brand); }
.notice { padding: 16px 18px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--ink); }
.notice.ok { background: color-mix(in srgb, var(--success) 14%, var(--surface)); }
.tool-out { font: 700 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.2 var(--font-display); margin: 0; }

/* Closing band */
.band { background: var(--night); color: var(--on-night); border-radius: var(--r-lg); padding: clamp(36px, 5vw, 64px); display: grid; gap: 18px; justify-items: start; position: relative; overflow: hidden; }
.band h2 { color: var(--on-night); max-width: 18em; margin: 0; }
.band p { color: var(--night-muted); max-width: 38em; margin: 0; }
.band .spark-mark { position: absolute; right: clamp(16px, 6vw, 72px); bottom: -14px; width: clamp(60px, 9vw, 120px); height: auto; opacity: .9; }
@media (max-width: 640px) { .band .spark-mark { display: none; } }

/* Footer */
.site-footer { background: var(--night); color: var(--night-muted); padding-block: 64px 28px; }
.site-footer h2 { font: 650 .78rem/1.2 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--on-night); margin: 0 0 14px; }
.site-footer a { color: var(--night-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-night); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .94rem; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin: 14px 0; max-width: 22em; font-size: .94rem; }
.ask-ai { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ask-ai a { padding: 6px 12px; border: 1px solid var(--night-line); border-radius: 999px; font-size: .85rem; }
.wordmark-xl { margin-top: 48px; opacity: .1; }
.wordmark-xl img { width: 100%; height: auto; display: block; }
.footer-base { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: .86rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .site-header, .site-footer, .band, .menu { display: none !important; } body { background: #fff; color: #000; } }
.site-footer h2.mt { margin-top: 24px; }
.wordmark-xl img { max-width: 760px; margin-inline: auto; }

/* Aliases kept for older page markup */
.eyebrow { display: inline-block; font: 650 .8rem/1.2 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.h3-like { font-family: var(--font-display); font-size: 1.3rem; font-weight: 680; letter-spacing: -.01em; line-height: 1.25; margin: 14px 0 .45em; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.section-soft { background: var(--surface); border-block: 1px solid var(--line); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .actions, .center .cta-row { justify-content: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.card .h3 { margin-top: 14px; }
.group + .group { margin-top: 36px; }
.steps-inline { margin: 0; }

/* Tools */
.narrow { max-width: 820px; }
.row3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.seg a { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.seg a[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.form.card, .card.result { display: grid; gap: 18px; margin-bottom: 20px; }
.card.result table { margin: 0; }
.err-box { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--ink); }
.err-box ul { margin: 0; }

/* Brand showcase (About) */
.brand-show { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin: 8px 0 28px; }
.brand-show img { border-radius: 36px; }
.brand-show .tile-light { box-shadow: inset 0 0 0 1px var(--line); border: 1px solid var(--line); }
.brand-show .on-light, .brand-show .on-dark { border-radius: 0; margin-left: 16px; width: 263px; height: auto; }
.brand-show .on-dark { display: none; }
@media (prefers-color-scheme: dark) { .brand-show .on-light { display: none; } .brand-show .on-dark { display: block; } }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.pills a:hover { border-color: var(--spark); }
.card-cta { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--spark) 45%, var(--line)); }
@media (min-width: 1000px) { .g3 > .card-cta { grid-column: span 2; } }
.on-night .card-cta { border-color: color-mix(in srgb, var(--spark) 45%, var(--night-line)); }
.on-night .more { color: #FF8A66; }
.brand-why { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.brand-files { margin-top: 20px; }
.hero .actions + .screen, .hero .cta-row + .screen { margin-top: 40px; }
.icon-chip { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--spark-soft); color: var(--spark-text); margin-bottom: 6px; }
.list-plain { list-style: none; padding: 0; margin: 14px 0 0; }
.list-plain li + li { margin-top: 2px; }
.list-plain a { display: inline-block; padding: 6px 0; min-height: 32px; }
.field-validation-valid:empty { display: none; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--night); color: var(--on-night); font-size: .92rem; text-align: center; padding: 9px 16px; }
.announce a { color: var(--on-night); font-weight: 650; text-decoration-color: var(--spark); }

/* ---------- Avatars ---------- */
.avatar, .avatar-lg, .avatar-xl { border-radius: 50%; object-fit: cover; flex: none; }
.avatar { width: 44px; height: 44px; }
.avatar-lg { width: 72px; height: 72px; }
.avatar-xl { width: 120px; height: 120px; }
.initials { display: inline-grid; place-items: center; background: var(--night); color: var(--on-night); font: 700 1rem/1 var(--font-display); }
.avatar-xl.initials { font-size: 2.4rem; }
.avatar-lg.initials { font-size: 1.5rem; }

/* ---------- Blog ---------- */
.blog-hero { padding-block: clamp(40px, 5vw, 72px) 24px; }
.blog-hero h1 { max-width: 16em; }
.blog-nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.blog-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.blog-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.blog-nav a:hover { border-color: var(--ink); }
.blog-nav a[aria-current="page"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.blog-search { display: flex; gap: 8px; }
.blog-search input { font: inherit; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); min-width: 0; width: 220px; }
.blog-search.wide { margin-top: 16px; max-width: 640px; }
.blog-search.wide input { flex: 1; width: auto; }
.featured-post { margin-block: 8px 24px; }
.featured-link { display: grid; gap: 0; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-card); }
@media (min-width: 900px) { .featured-link { grid-template-columns: 1.15fr 1fr; } }
.featured-link img, .featured-link .post-card-art { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; align-self: center; }
.featured-link { align-items: center; background: var(--surface); }
.featured-body { display: grid; gap: 14px; align-content: center; padding: clamp(24px, 4vw, 48px); }
.featured-title { font: 700 clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem)/1.1 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.featured-link:hover .featured-title { text-decoration: underline; text-decoration-color: var(--spark); text-underline-offset: 4px; }
.post-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.post-card { min-width: 0; }
.post-card-link { display: grid; height: 100%; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
.post-card-link:hover { border-color: var(--ink); transform: translateY(-2px); }
.post-card-link img, .post-card-art { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; background: var(--brand-soft); }
.post-card-art { display: grid; place-items: end start; padding: 20px; background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.post-card-art::before { content: ""; position: absolute; right: 10%; top: 18%; width: 64px; height: 64px; background: url("/img/brand/lariyo-spark.svg") center / contain no-repeat; }
.post-card-art span { font: 700 1.05rem/1.2 var(--font-display); }
.post-card-art.big span { font-size: 1.6rem; }
.post-card-body { display: grid; gap: 10px; align-content: start; padding: 20px 22px 24px; }
.kicker { font: 650 .78rem/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--spark-text); text-decoration: none; }
.post-card-title { font: 700 1.3rem/1.25 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
.post-card-link:hover .post-card-title { text-decoration: underline; text-decoration-color: var(--spark); text-underline-offset: 3px; }
.post-card-excerpt { color: var(--ink-2); font-size: .98rem; }
.meta { color: var(--ink-muted); font-size: .88rem; }
.pager { display: flex; gap: 20px; justify-content: center; align-items: center; margin-top: 40px; }
.pager a { font-weight: 650; }
.newsletter { display: grid; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); margin-top: 48px; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1.1fr 1fr; } }
.newsletter p { margin: 0; color: var(--ink-2); }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input[type=email] { flex: 1 1 220px; font: inherit; min-height: 50px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); }
.preview-bar { background: #FFF3D6; color: #6B4700; text-align: center; padding: 10px 16px; margin: 0; font-weight: 600; }
.post-head { max-width: 980px; padding-top: clamp(24px, 4vw, 56px); }
.post-head h1 { font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.4rem); margin-top: 14px; }
.byline { display: flex; gap: 12px; align-items: center; margin-top: 8px; font-size: .95rem; }
.byline a { font-weight: 650; }
.post-cover { margin: clamp(28px, 4vw, 48px) auto 0; }
.post-cover img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
.post-grid-layout { display: grid; gap: 40px; padding-block: clamp(32px, 4vw, 56px) 24px; }
@media (min-width: 1100px) { .post-grid-layout { grid-template-columns: 260px minmax(0, 1fr); } .post-grid-layout > .post-body:only-child { grid-column: 2; } }
.post-toc { font-size: .93rem; align-self: start; }
.toc-desktop { display: none; }
@media (min-width: 1100px) { .post-toc { position: sticky; top: 96px; } .toc-mobile { display: none; } .toc-desktop { display: block; } }
.toc-title { font: 650 .78rem/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.post-toc ol { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 2px; }
.post-toc ol a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; border-left: 2px solid var(--line); }
.post-toc ol a:hover { color: var(--ink); border-left-color: var(--spark); background: var(--brand-soft); }
.toc-mobile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 16px; }
.toc-mobile summary { cursor: pointer; font-weight: 650; padding: 12px 0; min-height: 44px; }
.post-body { min-width: 0; }
.post-body .prose { font-size: 1.08rem; line-height: 1.75; }
.prose a { text-decoration-thickness: 1.5px; }
.prose img { border-radius: var(--r-md); margin-block: 8px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--spark); color: var(--ink-2); font-size: 1.12em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); }
.prose code { font: .9em ui-monospace, Menlo, Consolas, monospace; background: var(--brand-soft); padding: 2px 6px; border-radius: 6px; }
.prose li { margin-block: .35em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.post-faq { margin-top: 48px; }
.post-cta { display: grid; gap: 16px; align-items: center; grid-template-columns: auto 1fr; margin: 48px 0 32px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); max-width: 46rem; }
.post-cta p { margin: 0; color: var(--ink-2); }
.post-cta .h3-like { margin: 0 0 4px; color: var(--ink); }
.post-cta .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 700px) { .post-cta { grid-template-columns: auto 1fr auto; } .post-cta .btn { grid-column: auto; } }
.tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-flex; min-height: 36px; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.share { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 32px; }
.share a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; font-size: .95rem; }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); max-width: 46rem; }
.author-box p { margin: 0 0 6px; }
.author-box .h3-like { margin: 0; }
.author-head { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }

/* ---------- Customers ---------- */
.logo-wall { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.logo-wall li { display: grid; place-items: center; min-height: 104px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.logo-wall img { max-height: 56px; width: auto; object-fit: contain; }
.logo-name { font: 700 1.05rem/1.2 var(--font-display); text-align: center; }
.quote-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.quote-card { margin: 0; display: grid; gap: 18px; align-content: start; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.quote-card blockquote { margin: 0; font-size: 1.12rem; line-height: 1.6; }
.quote-card blockquote p::before { content: "“"; color: var(--spark); font: 700 2.4rem/0 var(--font-display); vertical-align: -.4em; margin-right: 4px; }
.quote-card figcaption { display: flex; gap: 12px; align-items: center; }
.quote-card.big { margin-block: 40px; }
.story-logo { max-height: 64px; width: auto; margin-bottom: 20px; }
.center-lead { margin-inline: auto; }

/* ---------- Tools ---------- */
.tool-card h3 { margin-top: 14px; }
.tool-out.words { font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); }
.cal-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin-block: 32px; }
.cal-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; min-width: 0; }
.cal-title { font-size: 1.15rem; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: .78rem; color: var(--ink-muted); font-weight: 650; padding: 4px 0 8px; }
.cal th abbr { text-decoration: none; }
.cal td { text-align: center; padding: 6px 0; border-radius: 8px; vertical-align: top; }
.cal td .bs { display: block; font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.cal td .ad { display: block; font-size: .72rem; color: var(--ink-muted); }
.cal td.sat .bs { color: var(--danger); }
.cal td.today { background: var(--brand); color: var(--on-brand); }
.cal td.today .ad, .cal td.today .bs { color: var(--on-brand); }
.year-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 16px 0 0; font-weight: 650; }
.year-nav a { display: inline-flex; min-height: 44px; align-items: center; }
.key-table { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-bottom: 32px; }
.key-table div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
kbd { font: 600 .9rem ui-monospace, Menlo, Consolas, monospace; padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--paper); }
.typing textarea { font-size: 1.15rem; }
.input-table { width: 100%; border-collapse: collapse; }
.input-table th { text-align: left; font-size: .82rem; color: var(--ink-muted); padding: 6px 6px; }
.input-table td { padding: 4px 6px; }
.input-table input { font: inherit; width: 100%; min-width: 72px; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
.tt-input input { min-width: 96px; }
.receipt, .timetable { background: #fff; color: #16141F; border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px; }
.receipt header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-bottom: 2px solid #16141F; padding-bottom: 14px; margin-bottom: 18px; }
.receipt p, .timetable p { margin: 0 0 6px; }
.r-name { font: 700 1.5rem/1.2 var(--font-display); }
.r-meta { text-align: right; }
.receipt table, .timetable table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.receipt th, .receipt td, .timetable th, .timetable td { border: 1px solid #C9C8D0; padding: 8px 10px; text-align: left; }
.receipt .num { text-align: right; font-variant-numeric: tabular-nums; }
.r-words { font-weight: 600; }
.receipt footer { display: flex; justify-content: space-between; align-items: end; margin-top: 36px; }
.r-sign { text-align: center; border-top: 1px solid #16141F; padding-top: 6px; min-width: 180px; }
.r-sign span { font-size: .8rem; color: #5E5C69; }
.timetable td { height: 56px; }
@media print {
  .site-header, .site-footer, .crumbs, .no-print, .announce, .band, .skip { display: none !important; }
  body { background: #fff; }
  .receipt, .timetable { border: 0; padding: 0; }
  main .section-tight { padding: 0; }
}
.cal td.empty { background: none; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.expired { max-width: var(--wrap); margin: 16px auto 0; padding: 12px 16px; border-radius: var(--r-md); background: #FFF3D6; color: #6B4700; font-weight: 600; }
.head-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(32px, 4vw, 56px); }
.head-row .head { margin-bottom: 0; }
.center-quote { max-width: 46rem; margin-inline: auto; text-align: left; }
.post { display: block; }
.toc-cta { margin-top: 4px; }

/* ======================================================================
   Motion. Everything here moves only transform and opacity (no layout,
   no repaint storms), and all of it is off for prefers-reduced-motion.
   ====================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Smooth page-to-page transitions (Chrome, Edge, Safari 18+); other browsers simply navigate. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

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

  /* Scroll reveal: site.js marks below-the-fold blocks .rv and adds .in as they arrive. */
  .rv { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .rv.in { opacity: 1; translate: 0 0; }

  /* Hero entrance: text rises (transform only, so the largest paint is never delayed), extras fade in. */
  .hero .label, .hero h1, .hero .lead, .hero .actions, .hero .picker { animation: rise .9s var(--ease-out) both; }
  .hero h1 { animation-delay: .04s; } .hero .lead { animation-delay: .1s; } .hero .actions { animation-delay: .16s; } .hero .picker { animation-delay: .22s; }
  @keyframes rise { from { translate: 0 22px; } }
  .hero em.hl { position: relative; }
  .hero em.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; border-radius: 99px; background: var(--spark); transform-origin: left; animation: swash .9s .55s var(--ease-out) both; }
  @keyframes swash { from { transform: scaleX(0); } }
  .fan .float { animation: pop .7s var(--ease-spring) both, bob 6s ease-in-out infinite; }
  .fan .float.b { animation-delay: .5s, 1.2s; } .fan .float.a { animation-delay: .7s, 2.4s; } .fan .float.c { animation-delay: .9s, .2s; }
  @keyframes pop { from { opacity: 0; scale: .8; } }
  @keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
  .float .dot { position: relative; }
  .float .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
  @keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

  /* Tabs and accordions glide instead of jumping. */
  #t1:checked ~ .p1, #t2:checked ~ .p2, #t3:checked ~ .p3, #t4:checked ~ .p4, #t5:checked ~ .p5 { animation: panel .5s var(--ease-out) both; }
  @keyframes panel { from { opacity: 0; translate: 0 14px; } }
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }

  /* The closing band's spark breathes; the blog's reading bar follows the scroll. */
  .band .spark-mark { animation: twinkle 5s ease-in-out infinite; transform-origin: 50% 50%; }
  @keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(45deg) scale(1.12); } }
  .read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 30; background: var(--spark); transform-origin: left; transform: scaleX(0); animation: read linear both; animation-timeline: scroll(root); }
  @keyframes read { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .read-progress { display: none; } }

/* Mouse-reactive hero: site.js sets --rx/--ry (tilt) and --gx/--gy (glow) from the pointer. */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--spark) 16%, transparent), transparent 70%);
  transform: translate(calc(var(--gx, 70vw) - 360px), calc(var(--gy, 140px) - 360px)); transition: transform .9s var(--ease-out); opacity: .9; }
.fan { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.fan .f3 { transform: translateZ(40px); }
.fan .f1 { transform: rotate(-5deg) translateZ(-20px); }
.fan .f2 { transform: rotate(4deg) translateZ(0); }
.fan .float { transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 18px), 70px); transition: transform .6s var(--ease-out); }

/* Spotlight cards: a soft glow follows the pointer (--mx/--my from site.js). */
.card, .post-card-link, .featured-link, .quote-card, .cal, .plan, .newsletter, .author-box, .key-table div { position: relative; }
.card::after, .post-card-link::after, .featured-link::after, .plan::after, .newsletter::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--spark) 11%, transparent), transparent 45%); }
.card:hover::after, .post-card-link:hover::after, .featured-link:hover::after, .plan:hover::after, .newsletter:hover::after { opacity: 1; }
a.card, .post-card-link, .featured-link { transition: transform .45s var(--ease-out), border-color .25s, box-shadow .45s var(--ease-out); }
a.card:hover, .post-card-link:hover, .featured-link:hover { transform: translateY(-4px); box-shadow: 0 2px 6px rgba(22,20,31,.06), 0 22px 48px rgba(22,20,31,.12); border-color: color-mix(in srgb, var(--spark) 40%, var(--line)); }
.post-card-link img, .featured-link img { transition: transform .8s var(--ease-out); }
.post-card-link:hover img, .featured-link:hover img { transform: scale(1.045); }
.post-card-link, .featured-link { isolation: isolate; }
.chip, .icon-chip { transition: transform .45s var(--ease-spring), background .25s; }
a.card:hover .chip, .tool-card:hover .chip { transform: rotate(-8deg) scale(1.08); }

/* Night sections glow where the pointer is. */
.on-night { position: relative; isolation: isolate; }
.on-night::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255,91,47,.10), transparent 50%); }
.on-night:hover::before { opacity: 1; }

/* Buttons: a light sweep, a press, and arrows that lean in. Magnetic pull comes from site.js (--bx/--by). */
.btn { position: relative; overflow: hidden; isolation: isolate; translate: var(--bx, 0) var(--by, 0); transition: background .2s, border-color .2s, color .2s, translate .35s var(--ease-out), transform .15s, box-shadow .3s; }
.btn:active { transform: scale(.97); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease-out); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 28%, transparent); }
.more svg, .btn svg, .picker a::after { transition: transform .35s var(--ease-out); display: inline-block; }
.more:hover svg, a.card:hover .more svg, .btn:hover svg { transform: translateX(4px); }
.picker a { transition: border-color .2s, background .2s, transform .35s var(--ease-out); }
.picker a:hover { transform: translateY(-2px); }
.picker a:hover::after { transform: translateX(3px); }
.nav a { transition: background .2s, box-shadow .2s; }
.tab-list label { transition: background .25s, border-color .25s, color .25s, transform .3s var(--ease-out); }
.tab-list label:hover { transform: translateY(-1px); border-color: var(--ink); }

/* Header gains a soft shadow once the page scrolls (class from site.js). */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(22,20,31,.08); }

/* Links grow their underline. */
.prose a, .footer-grid a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease-out); }
.prose a:hover, .footer-grid a:hover { background-size: 100% 1.5px; }

/* Integrations: an endless, pausable strip. */
.int-strip h2 { margin-bottom: 22px; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { flex: none; display: flex; gap: 12px; padding: 4px 12px 4px 0; margin: 0; list-style: none; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.int-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 650; white-space: nowrap; transition: border-color .2s, transform .35s var(--ease-out); }
.int-pill:hover { border-color: var(--spark); transform: translateY(-2px); }
.int-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--spark); rotate: 45deg; }
@media (prefers-reduced-motion: reduce) {
  .marquee { flex-wrap: wrap; justify-content: center; mask-image: none; }
  .marquee-track[aria-hidden] { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; }
  .fan, .fan .float, .hero::before { transform: none !important; }
  .btn { translate: none; }
}
@media (pointer: coarse) { .hero::before { display: none; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
