/*
 * munshi site. The dorvi works house style, shared with the Atlas site: ivory paper, slate ink, Geist type, one accent colour, calm motion. munshi's accent is its royal blue (the app icon's blue).
 * Plain CSS, no build step. Sizes are in rem at a 15px root, the same scale as Atlas.
 */

/* ---------- Tokens ---------- */
:root {
  --radius: 0.75rem;
  /* Neutrals: the same warm ivory and slate as Atlas. */
  --background: oklch(0.983 0.005 95);          /* #faf9f5 */
  --foreground: oklch(0.2 0.004 100);           /* #141413 */
  --card: oklch(1 0 0);
  --secondary: oklch(0.955 0.01 95);
  --muted-foreground: oklch(0.5 0.012 95);
  --border: oklch(0.918 0.012 95);
  --sidebar: oklch(0.968 0.008 95);
  --sidebar-muted: oklch(0.55 0.012 95);
  /* Accent: munshi royal blue (#2346a8), with a soft tint for icon tiles. */
  --primary: #2346a8;
  --primary-foreground: oklch(0.99 0.004 95);
  --accent: oklch(0.945 0.03 268);
  --accent-foreground: oklch(0.36 0.13 266);
  --ring: #2f58c8;
  --shadow-soft: 0 1px 2px oklch(0.2 0.01 60 / 0.05), 0 10px 30px -12px oklch(0.2 0.01 60 / 0.14);
  --shadow-lift: 0 2px 4px oklch(0.2 0.01 60 / 0.05), 0 22px 48px -18px oklch(0.35 0.12 266 / 0.3);
  --glow: color-mix(in oklch, var(--primary) 9%, transparent);
  /* The blue panel (CTA band, pricing side): the app icon's gradient stops. */
  --brand-via: #2346a8;
  --brand-ink: oklch(0.99 0.004 95);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.dark {
  --background: oklch(0.255 0.004 100);         /* #262624 */
  --foreground: oklch(0.983 0.005 95);
  --card: oklch(0.3 0.005 100);
  --secondary: oklch(0.33 0.005 100);
  --muted-foreground: oklch(0.74 0.01 95);
  --border: oklch(0.36 0.006 100);
  --sidebar: oklch(0.225 0.004 100);
  --sidebar-muted: oklch(0.72 0.01 95);
  --primary: oklch(0.74 0.11 268);              /* light royal blue, dark text on it */
  --primary-foreground: oklch(0.19 0.02 266);
  --accent: oklch(0.34 0.04 268);
  --accent-foreground: oklch(0.93 0.03 268);
  --ring: oklch(0.74 0.11 268);
  --shadow-soft: 0 1px 2px oklch(0 0 0 / 0.35), 0 10px 30px -12px oklch(0 0 0 / 0.55);
  --shadow-lift: 0 2px 4px oklch(0 0 0 / 0.4), 0 24px 50px -18px oklch(0 0 0 / 0.75);
  --glow: color-mix(in oklch, var(--primary) 7%, transparent);
  --brand-via: #1e3c94;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100dvh; background: var(--background); color: var(--foreground);
  font-family: var(--font-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in oklch, var(--primary) 22%, transparent); }

.display { font-weight: 600; letter-spacing: -0.04em; }
.tabular { font-variant-numeric: tabular-nums; }
.text-primary { color: var(--primary); }
.muted { color: var(--muted-foreground); }
.i { width: 1rem; height: 1rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }

.skip { position: fixed; top: .75rem; left: .75rem; z-index: 60; padding: .5rem 1rem; border-radius: .5rem; background: var(--card); box-shadow: var(--shadow-soft); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Light screenshots in the light theme, dark ones in the dark theme. */
.for-dark { display: none !important; }
.dark .for-light { display: none !important; }
.dark .for-dark { display: block !important; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap;
  height: 2.67rem; padding: 0 1rem; border-radius: calc(var(--radius) + 4px); font-size: .875rem; font-weight: 600;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.97); transition-duration: 75ms; }
.btn .i:last-child { transition: transform .3s var(--ease); }
.btn:hover .i:last-child { transform: translateX(2px); }
.btn-lg { height: 3.2rem; padding: 0 1.5rem; font-size: 15px; }
@media (min-width: 640px) { .btn-lg { height: 2.93rem; } }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: inset 0 1px 0 color-mix(in oklch, var(--primary-foreground) 22%, transparent), 0 1px 2px color-mix(in oklch, var(--primary) 40%, transparent);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: inset 0 1px 0 color-mix(in oklch, var(--primary-foreground) 22%, transparent), 0 6px 18px -6px color-mix(in oklch, var(--primary) 70%, transparent);
}
.btn-secondary { border: 1px solid var(--border); background: var(--card); box-shadow: 0 1px 2px oklch(0 0 0 / .05); }
.btn-secondary:hover { border-color: color-mix(in oklch, var(--foreground) 20%, transparent); background: var(--secondary); }

/* Buttons on the blue panel. */
.btn-on-brand, .btn-on-brand-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 3.2rem; padding: 0 1.5rem;
  border-radius: calc(var(--radius) + 4px); font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: filter .2s, background-color .2s, transform .2s var(--ease);
}
@media (min-width: 640px) { .btn-on-brand, .btn-on-brand-ghost { height: 2.93rem; } }
.btn-on-brand { background: var(--brand-ink); color: var(--brand-via); box-shadow: 0 1px 2px oklch(0 0 0 / .1); }
.btn-on-brand:hover { filter: brightness(1.06); }
.btn-on-brand .i { transition: transform .3s var(--ease); }
.btn-on-brand:hover .i { transform: translateX(2px); }
.btn-on-brand-ghost { color: var(--brand-ink); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--brand-ink) 40%, transparent); }
.btn-on-brand-ghost:hover { background: color-mix(in oklch, var(--brand-ink) 10%, transparent); }
.btn-on-brand:active, .btn-on-brand-ghost:active { transform: scale(.97); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 40; padding: .75rem .75rem 0; transition: transform .5s var(--ease); }
@media (min-width: 640px) { .header { padding-inline: 1.5rem; } }
.header.is-hidden { transform: translateY(-6.5rem); }
.header-bar {
  margin-inline: auto; display: flex; align-items: center; gap: 1rem; max-width: 72rem;
  padding: .75rem .5rem .75rem .75rem; border: 1px solid transparent; border-radius: 1rem;
  transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), max-width .5s var(--ease), padding .5s var(--ease);
}
.header.is-scrolled .header-bar, .header.is-open .header-bar {
  max-width: 64rem; padding-block: .5rem; border-color: var(--border);
  background: color-mix(in oklch, var(--background) 75%, transparent); box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; border-radius: .75rem; }
.brand img { width: 2.4rem; height: 2.4rem; }
.brand-word { font-size: 1.4rem; line-height: 1; }

.nav { position: relative; display: none; align-items: center; margin-inline: auto; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  position: relative; z-index: 1; padding: .5rem 1rem; font-size: 15px; font-weight: 500;
  color: color-mix(in oklch, var(--foreground) 65%, transparent); transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--foreground); }
.nav a.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: -.1rem; width: .27rem; height: .27rem; margin-left: -.135rem; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 10px 2px color-mix(in oklch, var(--primary) 45%, transparent);
}
.nav-hover {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; opacity: 0; pointer-events: none;
  background: color-mix(in oklch, var(--foreground) 5%, transparent);
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s;
}
.dark .nav-hover { background: color-mix(in oklch, var(--foreground) 8%, transparent); }

.header-end { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
@media (min-width: 900px) { .header-end { margin-left: 0; } }
.theme-toggle, .menu-btn {
  display: grid; place-items: center; width: 2.67rem; height: 2.67rem; border-radius: 999px; color: var(--muted-foreground);
  transition: background-color .2s, color .2s;
}
.theme-toggle:hover, .menu-btn:hover { background: var(--accent); color: var(--accent-foreground); }
.theme-toggle .i { width: 1.2rem; height: 1.2rem; grid-area: 1 / 1; transition: opacity .15s; }
.theme-toggle .i-sun, .dark .theme-toggle .i-moon { opacity: 0; }
.dark .theme-toggle .i-sun { opacity: 1; }
.header-cta { display: none; }
@media (min-width: 480px) { .header-cta { display: inline-flex; } }
.menu-btn { color: color-mix(in oklch, var(--foreground) 80%, transparent); }
@media (min-width: 900px) { .menu-btn { display: none; } }
.menu-icon { position: relative; display: block; width: 1.33rem; height: 1.33rem; }
.menu-icon i {
  position: absolute; left: 50%; width: 18px; height: 1.5px; margin-left: -9px; border-radius: 9px; background: currentColor;
  transition: top .2s var(--ease), transform .2s var(--ease), opacity .2s;
}
.menu-icon i:nth-child(1) { top: 5px; }
.menu-icon i:nth-child(2) { top: 9.5px; }
.menu-icon i:nth-child(3) { top: 14px; }
.is-open .menu-icon i:nth-child(1) { top: 9.5px; transform: rotate(45deg); }
.is-open .menu-icon i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.is-open .menu-icon i:nth-child(3) { top: 9.5px; transform: rotate(-45deg); }

.mobile-nav {
  max-width: 64rem; margin: .5rem auto 0; padding: .5rem; border: 1px solid var(--border); border-radius: 1rem;
  background: color-mix(in oklch, var(--background) 90%, transparent); box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  animation: drop .2s var(--ease);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav > a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-radius: .75rem;
  font-size: 15px; font-weight: 500; color: color-mix(in oklch, var(--foreground) 75%, transparent);
}
.mobile-nav > a:not(.btn):hover { background: var(--accent); }
.mobile-nav .btn { margin-top: .5rem; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Hero ---------- */
.site-glow { background: radial-gradient(1200px 420px at 50% -140px, var(--glow), transparent 70%) no-repeat; }
.site-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in oklch, var(--foreground) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
}
.hero { position: relative; overflow: hidden; padding-top: 9rem; }
@media (min-width: 640px) { .hero { padding-top: 11rem; } }
.hero-inner { position: relative; }
.hero-copy { max-width: 56rem; margin-inline: auto; text-align: center; }
.hero-title { font-size: 2.7rem; line-height: 1.06; text-wrap: balance; }
@media (min-width: 400px) { .hero-title { font-size: 3rem; } }
@media (min-width: 640px) { .hero-title { font-size: 4.5rem; line-height: 1.02; } .sm-block { display: block; } }
@media (min-width: 1024px) { .hero-title { font-size: 5.25rem; } }
.hero-sub {
  max-width: 42rem; margin: 1.5rem auto 0; font-size: 17px; line-height: 1.65; color: var(--muted-foreground); text-wrap: pretty;
}
@media (min-width: 640px) { .hero-sub { margin-top: 1.75rem; font-size: 1.2rem; } }
.hero-ctas { display: flex; flex-direction: column; justify-content: center; gap: .75rem; margin-top: 2.25rem; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; margin-top: 2.5rem; } }
.hero-shot { position: relative; max-width: 64rem; margin: 3.5rem auto 0; }
@media (min-width: 640px) { .hero-shot { margin-top: 5rem; } }
.hero-fade { position: absolute; inset: auto 0 0; height: 10rem; pointer-events: none; background: linear-gradient(to top, var(--background), transparent); }

/* A real munshi screen in a quiet window frame. */
.shot { overflow: hidden; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); box-shadow: var(--shadow-lift); }
.shot-bar { display: flex; align-items: center; gap: .4rem; height: 2.4rem; padding: 0 1rem; border-bottom: 1px solid var(--border); background: var(--sidebar); }
.shot-bar i { width: .67rem; height: .67rem; border-radius: 50%; background: color-mix(in oklch, var(--foreground) 12%, transparent); }
.shot-bar span { height: 1.33rem; width: 15rem; max-width: 45%; margin-inline: auto; border-radius: .4rem; background: color-mix(in oklch, var(--foreground) 6%, transparent); }
.shot-bar b { width: 2.67rem; }
.shot-pan { position: relative; overflow: hidden; }
.shot-pan img { width: 100%; user-select: none; -webkit-user-drag: none; }
/* Phones: the screen is shown zoomed in, at a size you can read, without the app's sidebar.
   The window keeps a 4:3 shape and you swipe sideways to see the rest of the screen. */
@media (max-width: 639px) {
  .shot { position: relative; border-radius: .85rem; }
  .shot-bar { height: 1.9rem; padding: 0 .75rem; gap: .3rem; }
  .shot-bar i { width: .5rem; height: .5rem; }
  .shot-bar span { height: 1rem; }
  .shot-pan { aspect-ratio: 4 / 3; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
  .shot-pan::-webkit-scrollbar { display: none; }
  .shot-pan img { width: 190%; max-width: none; margin-left: -28.5%; }
  .showcase-imgs { display: block; }
  .showcase-imgs .screen { display: none; }
  .showcase-imgs .screen.is-on { display: block; }
  .swipe-hint {
    position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .3rem;
    padding: .3rem .6rem; border-radius: 999px; font-size: 12px; font-weight: 500; pointer-events: none;
    background: color-mix(in oklch, var(--foreground) 82%, transparent); color: var(--background);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .swipe-hint .i { width: .8rem; height: .8rem; animation: nudge 1.6s var(--ease) infinite; }
  .swipe-hint.is-gone { opacity: 0; transform: translateY(4px); }
}
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(3px); } }
.swipe-hint { display: none; }
@media (max-width: 639px) { .swipe-hint { display: inline-flex; } }

/* ---------- Numbers and flow ---------- */
.numbers { padding: 4rem 0 1.5rem; }
@media (min-width: 640px) { .numbers { padding-top: 6rem; } }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 0 1rem; text-align: center; }
@media (min-width: 1024px) { .stat + .stat { border-left: 1px solid var(--border); } }
.stat-n { font-size: 3rem; line-height: 1; }
@media (min-width: 640px) { .stat-n { font-size: 3.75rem; } }
.stat p { max-width: 12rem; margin: .5rem auto 0; font-size: .875rem; line-height: 1.4; color: var(--muted-foreground); }

.flow-row { padding: 3.5rem 0; }
.flow-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem .65rem; }
.pill {
  display: inline-flex; align-items: center; height: 2.4rem; padding: 0 .95rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow-soft); font-size: .875rem; font-weight: 500; white-space: nowrap;
}
@media (min-width: 640px) { .pill { height: 2.67rem; padding-inline: 1.1rem; font-size: 15px; } }
.flow-arrow { color: color-mix(in oklch, var(--muted-foreground) 60%, transparent); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
@media (min-width: 640px) { .section { padding: 7rem 0; } }
.section-top-0 { padding-top: 0; }
.band { padding: 6rem 0; border-block: 1px solid var(--border); background: color-mix(in oklch, var(--sidebar) 60%, transparent); }
@media (min-width: 640px) { .band { padding: 8rem 0; } }

.sec-head { max-width: 42rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: flex; align-items: center; gap: .65rem; font-size: .875rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary);
}
.center .eyebrow, .eyebrow.center { justify-content: center; }
/* A small triangle, used as a marker before section labels. */
.tri { display: inline-block; width: .5rem; height: .45rem; background: currentColor; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sec-title { margin-top: 1rem; font-size: 2.25rem; line-height: 1.08; text-wrap: balance; }
@media (min-width: 640px) { .sec-title { font-size: 3rem; } }
.sec-sub { margin-top: 1rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted-foreground); text-wrap: pretty; }
.fine { margin-top: 2rem; font-size: .875rem; line-height: 1.55; color: var(--muted-foreground); max-width: 46rem; }
.fine.center { margin-inline: auto; text-align: center; }
.mt-cards { margin-top: 2.5rem; }
@media (min-width: 640px) { .mt-cards { margin-top: 3.5rem; } }

/* ---------- Cards ---------- */
.grid-4, .grid-3 { display: grid; gap: .75rem; }
@media (min-width: 640px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 > div, .grid-3 > div { height: 100%; }
.card {
  position: relative; height: 100%; border: 1px solid var(--border); border-radius: 1rem; background: var(--card); box-shadow: var(--shadow-soft);
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: color-mix(in oklch, var(--foreground) 20%, transparent); box-shadow: var(--shadow-lift); }
.card-pad { padding: 1.5rem; }
.card h3 { margin-top: 1rem; font-size: 1rem; font-weight: 600; }
.card p { margin-top: .4rem; font-size: 15px; line-height: 1.6; color: var(--muted-foreground); }
.tile { display: grid; place-items: center; width: 2.67rem; height: 2.67rem; border-radius: calc(var(--radius) + 4px); background: var(--accent); color: var(--accent-foreground); }
.tile .i { width: 1.33rem; height: 1.33rem; }

.details {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 1.5rem; overflow: hidden;
  border: 1px solid var(--border); border-radius: 1rem; background: var(--border);
}
@media (min-width: 640px) { .details { margin-top: 1rem; } }
@media (min-width: 1024px) { .details { grid-template-columns: repeat(5, 1fr); } }
.detail { padding: 1rem; background: var(--card); transition: background-color .3s; }
@media (min-width: 640px) { .detail { padding: 1.5rem; } }
.detail:last-child { grid-column: span 2; }
@media (min-width: 1024px) { .detail:last-child { grid-column: auto; } }
.detail:hover { background: color-mix(in oklch, var(--accent) 40%, var(--card)); }
.detail .i { width: 1.2rem; height: 1.2rem; color: var(--muted-foreground); transition: color .5s cubic-bezier(.34,1.56,.64,1), transform .5s cubic-bezier(.34,1.56,.64,1); }
.detail:hover .i { color: var(--primary); transform: translateY(-2px) scale(1.1); }
.detail h3 { margin-top: .75rem; font-size: 1rem; font-weight: 600; }
.detail p { margin-top: .25rem; font-size: .875rem; line-height: 1.55; color: var(--muted-foreground); }

/* ---------- Feature splits ---------- */
.splits { display: grid; gap: 7rem; margin-top: 4rem; }
@media (min-width: 640px) { .splits { gap: 9rem; margin-top: 6rem; } }
.split { display: grid; align-items: center; gap: 3rem; }
@media (min-width: 1024px) {
  .split { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .split.flip { grid-template-columns: 1.1fr .9fr; }
  .split.flip .split-copy { order: 2; }
}
.split-title { margin-top: 1rem; font-size: 2.25rem; line-height: 1.08; text-wrap: balance; }
@media (min-width: 640px) { .split-title { font-size: 2.75rem; } }
.split-sub { margin-top: 1rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted-foreground); text-wrap: pretty; }
.bullets { margin-top: 1.75rem; display: grid; gap: .875rem; }
.bullets li { display: flex; align-items: center; gap: .75rem; font-size: 15px; }
.bullets-top li { align-items: flex-start; }
.bullet { display: grid; place-items: center; width: 1.33rem; height: 1.33rem; flex-shrink: 0; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); }
.bullet .i { width: .8rem; height: .8rem; stroke-width: 3.5; }

/* ---------- Inside the app ---------- */
.showcase { max-width: 64rem; margin: 2.5rem auto 0; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 640px) { .showcase { margin-top: 3.5rem; } }
.segmented { position: relative; display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: .6rem; background: color-mix(in oklch, var(--secondary) 50%, transparent); }
.segmented button {
  position: relative; z-index: 1; padding: .4rem 1.1rem; border-radius: .45rem; font-size: .875rem; font-weight: 600;
  color: var(--muted-foreground); transition: color .15s;
}
.segmented button:hover, .segmented button[aria-checked='true'] { color: var(--foreground); }
.seg-thumb {
  position: absolute; top: 2px; left: 0; height: calc(100% - 4px); border-radius: .45rem; background: var(--card);
  box-shadow: 0 1px 2px oklch(0 0 0 / .08); transition: transform .35s var(--ease), width .35s var(--ease);
}
.showcase-shot { width: 100%; margin-top: 1.5rem; }
.showcase-imgs { display: grid; }
.screen { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.screen.is-on { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.showcase-caption { margin-top: 1.25rem; max-width: 36rem; text-align: center; font-size: 15px; line-height: 1.6; color: var(--muted-foreground); min-height: 3.2em; }

/* ---------- Getting started ---------- */
.steps-wrap { position: relative; margin-top: 3rem; }
@media (min-width: 640px) { .steps-wrap { margin-top: 4rem; } }
.steps-line { position: absolute; top: 1.5rem; bottom: 1.5rem; left: 1.5rem; width: 1px; background: var(--border); }
@media (min-width: 768px) { .steps-line { display: none; } }
@media (min-width: 1024px) { .steps-line { display: block; top: 1.5rem; bottom: auto; left: 12.5%; right: 12.5%; width: auto; height: 1px; } }
.steps { position: relative; display: grid; gap: 2.25rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; } }
.steps li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
@media (min-width: 768px) { .steps li { display: block; } }
.step-n {
  position: relative; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border: 1px solid var(--border); border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow-soft); font-size: 1.125rem; color: var(--primary);
}
@media (min-width: 1024px) { .step-n { margin-inline: auto; } }
.steps h3 { margin-top: .65rem; font-size: 1.125rem; font-weight: 600; }
@media (min-width: 768px) { .steps h3 { margin-top: 1.25rem; } }
.steps p { margin-top: .4rem; font-size: 15px; line-height: 1.6; color: var(--muted-foreground); }
@media (min-width: 1024px) { .steps p { max-width: 15rem; margin-inline: auto; } }

/* ---------- Pricing ---------- */
.price { display: grid; margin-top: 2.5rem; overflow: hidden; border: 1px solid var(--border); border-radius: 1.75rem; background: var(--card); box-shadow: var(--shadow-lift); }
@media (min-width: 640px) { .price { margin-top: 3.5rem; } }
@media (min-width: 1024px) { .price { grid-template-columns: 1.15fr .85fr; } }
.price-main { padding: 2rem; }
@media (min-width: 640px) { .price-main { padding: 3rem; } }
.price-label { font-size: .875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }
.price-title { margin-top: .75rem; font-size: 2.25rem; line-height: 1.15; }
@media (min-width: 640px) { .price-title { font-size: 3rem; } }
.price-sub { margin-top: .75rem; font-size: 1.125rem; color: var(--muted-foreground); }
.price .bullets { margin-top: 2rem; }

.brand-panel { position: relative; overflow: hidden; background: var(--brand-via); color: var(--brand-ink); }
.ring { position: absolute; top: -3rem; right: -3rem; width: 14rem; height: 14rem; border-radius: 50%; border: 1px solid color-mix(in oklch, var(--brand-ink) 15%, transparent); pointer-events: none; }
.ring-lg { top: -4rem; right: -4rem; width: 19rem; height: 19rem; }
.on-brand-muted { color: color-mix(in oklch, var(--brand-ink) 85%, transparent); }
.price-side { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: 2rem; }
@media (min-width: 640px) { .price-side { padding: 3rem; } }
.price-side-top, .price-side-ctas, .cta-inner { position: relative; }
.price-zero { margin-top: 1.5rem; font-size: 1.9rem; line-height: 1.3; }
.price-side-top .on-brand-muted { margin-top: .75rem; }
.price-side-ctas { display: flex; flex-direction: column; gap: .75rem; }
.mark-disc { display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--brand-ink); }
.mark-disc-md { width: 4.25rem; height: 4.25rem; box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand-ink) 15%, transparent); }
.mark-disc-md img { width: 2.6rem; height: 2.6rem; }
.mark-disc-lg { display: none; width: 8.5rem; height: 8.5rem; box-shadow: 0 0 0 8px color-mix(in oklch, var(--brand-ink) 15%, transparent); }
.mark-disc-lg img { width: 4.8rem; height: 4.8rem; }
@media (min-width: 768px) { .mark-disc-lg { display: grid; } }
.mark-disc-sm { width: 2.4rem; height: 2.4rem; background: var(--accent); }
.mark-disc-sm img { width: 1.6rem; height: 1.6rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } }
.faq { border: 1px solid var(--border); border-radius: 1rem; background: var(--card); box-shadow: var(--shadow-soft); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item h3 { font-size: inherit; }
.faq-item button {
  display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1rem 1.25rem; text-align: left; font-size: 15px; font-weight: 600;
  transition: color .2s; border-radius: 0;
}
@media (min-width: 640px) { .faq-item button { padding: 1.25rem 1.5rem; } }
.faq-item button:hover { color: var(--primary); }
.faq-item button > span:first-child { flex: 1; }
.faq-icon {
  display: grid; place-items: center; width: 1.85rem; height: 1.85rem; flex-shrink: 0; border-radius: 50%;
  background: var(--accent); color: var(--accent-foreground); transition: transform .2s var(--ease), background-color .3s, color .3s;
}
.is-open .faq-icon { transform: rotate(45deg); background: var(--primary); color: var(--primary-foreground); }
.faq-a { overflow: hidden; transition: height .3s var(--ease), opacity .3s var(--ease); }
.faq-a p { padding: 0 1.25rem 1.25rem; line-height: 1.65; color: var(--muted-foreground); }
@media (min-width: 640px) { .faq-a p { padding-inline: 1.5rem; } }

/* ---------- CTA band ---------- */
.cta { border-radius: 2rem; padding: 3.5rem 1.5rem; box-shadow: var(--shadow-lift); }
@media (min-width: 640px) { .cta { padding: 5rem 3.5rem; } }
.cta-inner { display: grid; align-items: center; gap: 2.5rem; }
@media (min-width: 768px) { .cta-inner { grid-template-columns: 1fr auto; } }
.cta-copy { max-width: 42rem; }
.cta .sec-title { margin-top: 0; }
.cta-sub { margin-top: 1rem; font-size: 1.125rem; line-height: 1.65; text-wrap: pretty; }
.cta-btns { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
@media (min-width: 640px) { .cta-btns { flex-direction: row; margin-top: 2.25rem; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--sidebar); }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; padding-block: 3rem; }
@media (min-width: 640px) { .footer-grid { padding-block: 3.5rem; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-about, .footer-contact { grid-column: span 2; }
@media (min-width: 1024px) { .footer-about, .footer-contact { grid-column: auto; } }
.footer-about > p:first-of-type { max-width: 20rem; margin-top: 1rem; font-size: .875rem; line-height: 1.6; color: var(--muted-foreground); }
.maker {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; padding: .4rem .8rem; border: 1px solid var(--border);
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow-soft); font-size: .875rem;
}
.maker-dot { width: .4rem; height: .4rem; border-radius: 50%; background: var(--primary); }
.maker b { font-weight: 600; }
.footer-h { font-size: .875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sidebar-muted); }
.footer ul { margin-top: 1rem; display: grid; gap: .65rem; font-size: 15px; }
.footer ul a { color: color-mix(in oklch, var(--foreground) 80%, transparent); transition: color .2s; }
.footer ul a:hover { color: var(--primary); }
.footer-word-wrap { overflow: hidden; }
.footer-word {
  margin-bottom: -.22em; text-align: center; font-size: 22vw; line-height: 1; user-select: none;
  color: color-mix(in oklch, var(--foreground) 7%, transparent);
}
@media (min-width: 1024px) { .footer-word { font-size: 15rem; } }
.footer-bar {
  position: relative; display: flex; flex-direction: column; gap: .5rem; padding-block: 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted-foreground);
}
@media (min-width: 640px) { .footer-bar { flex-direction: row; justify-content: space-between; } }
.footer-bar b { font-weight: 500; color: color-mix(in oklch, var(--foreground) 80%, transparent); }

/* ---------- Mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 40;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mobile-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 768px) { .mobile-cta { display: none; } }
.mobile-cta-inner {
  display: flex; align-items: center; gap: .75rem; padding: .5rem .5rem .5rem .75rem; border: 1px solid var(--border); border-radius: 1rem;
  background: color-mix(in oklch, var(--card) 85%, transparent); box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.mobile-cta p { flex: 1; min-width: 0; font-size: .875rem; line-height: 1.25; }
.mobile-cta p b, .mobile-cta p span { display: block; }
.mobile-cta p span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted-foreground); }

/* ---------- Phones ---------- */
@media (max-width: 639px) {
  .hero { padding-top: 7.5rem; }
  .hero-sub { font-size: 16px; line-height: 1.6; }
  .hero-ctas { margin-top: 2rem; }
  .hero-shot { margin-top: 2.75rem; }
  /* The numbers sit in one tidy 2 by 2 panel. */
  .numbers { padding-top: 3rem; padding-bottom: .5rem; }
  .hero-fade { height: 4rem; }
  .stats {
    width: auto; margin-inline: 1rem; padding: 0;
    gap: 1px; row-gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 1rem;
    background: var(--border); box-shadow: var(--shadow-soft);
  }
  .stat { padding: 1.4rem .75rem 1.25rem; background: var(--card); }
  .stat-n { font-size: 2.4rem; }
  .stat p { font-size: .8rem; }

  /* A light press on anything you can tap. */
  .card, .pill, .detail, .faq-item button, .btn, .btn-on-brand, .btn-on-brand-ghost { -webkit-tap-highlight-color: transparent; }
  .card:active { transform: scale(.985); }
  .card { transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
  .faq-item button:active { background: color-mix(in oklch, var(--accent) 50%, transparent); }
  .mobile-nav > a:not(.btn):active { background: var(--accent); }

  /* The flow is one line you can swipe, fading out at the edges. */
  .flow-row { padding: 2.5rem 0; }
  .flow-chips {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: .5rem;
    -webkit-mask-image: linear-gradient(to right, transparent, black 1rem, black calc(100% - 2rem), transparent);
    mask-image: linear-gradient(to right, transparent, black 1rem, black calc(100% - 2rem), transparent);
  }
  .flow-chips::-webkit-scrollbar { display: none; }
  .flow-chips::after { content: ''; flex: 0 0 1rem; }

  .section { padding: 4rem 0; }
  .section-top-0 { padding-top: 0; }
  .band { padding: 4.5rem 0; }
  .sec-title { font-size: 2rem; }
  .sec-sub { font-size: 1.05rem; }
  .fine { font-size: .8rem; }

  .splits { gap: 4.5rem; margin-top: 3rem; }
  .split { gap: 2rem; }
  .split-title { font-size: 1.95rem; }
  .split-sub { font-size: 1.05rem; }
  .bullets { margin-top: 1.25rem; gap: .7rem; }

  /* Card grids become a row you swipe through, one card at a time, with dots that follow. */
  .rail {
    display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -1rem; padding: 0 1rem .5rem; scroll-padding-inline: 1rem; -webkit-overflow-scrolling: touch;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > div { flex: 0 0 84%; scroll-snap-align: start; }
  .card-pad { padding: 1.25rem; }
  .card h3 { font-size: 1.05rem; }
  .rail-dots { display: flex; justify-content: center; gap: .35rem; margin-top: .75rem; }
  .rail-dots button { display: flex; align-items: center; height: 1.6rem; padding: 0 .15rem; }
  .rail-dots span {
    display: block; width: 6px; height: 6px; border-radius: 9px; background: var(--foreground); opacity: .3;
    transition: width .35s var(--ease), opacity .35s var(--ease), background-color .35s;
  }
  .rail-dots button[aria-current='true'] span { width: 22px; opacity: 1; background: var(--primary); }

  .showcase { margin-top: 2rem; }
  .segmented button { padding: .45rem .95rem; }
  .showcase-caption { font-size: 14px; }

  .steps-wrap { margin-top: 2.5rem; }
  .steps { gap: 1.75rem; }
  .step-n { width: 3rem; height: 3rem; font-size: 1rem; }
  .steps h3 { margin-top: .55rem; font-size: 1.05rem; }

  .price { border-radius: 1.4rem; }
  .price-main, .price-side { padding: 1.6rem; }
  .price-title { font-size: 1.95rem; }
  .price-zero { font-size: 1.6rem; }

  .faq-item button { padding: 1rem 1.1rem; font-size: 14.5px; }
  .faq-a p { padding: 0 1.1rem 1.1rem; font-size: 14.5px; }

  .cta { border-radius: 1.5rem; padding: 2.5rem 1.4rem; }
  .cta .sec-title { font-size: 1.95rem; }
  .cta-sub { font-size: 1.05rem; }

  .footer-grid { padding-block: 2.5rem; }
  .footer-bar { font-size: .8rem; padding-bottom: max(5.5rem, env(safe-area-inset-bottom)); }
}
.rail-dots { display: none; }
@media (max-width: 639px) { .rail-dots { display: flex; } }

/* ---------- Motion ---------- */
/* Content fades in with a short rise, once, as it scrolls into view. Hidden only when the script runs. */
.js [data-r] { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease) var(--d, 0s), transform .5s var(--ease) var(--d, 0s); }
.js [data-r].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-r] { transform: none; transition: opacity .2s; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
