/* ==========================================================================
   DotWild — dotwild.app landing page
   Static, dependency-free. Tokens mirror the app's own theme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts. Latin and latin-ext subsets only; Cyrillic and Vietnamese dropped.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/bvp-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/bvp-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/bvp-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/bvp-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/bvp-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/bvp-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian Mono"; font-style: normal; font-weight: 400 500; font-stretch: 100%; font-display: swap;
  src: url("fonts/mm-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Martian Mono"; font-style: normal; font-weight: 400 500; font-stretch: 100%; font-display: swap;
  src: url("fonts/mm-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface2: #f1f4f2;
  --ink: #0f1412;
  --ink2: #4e5854;
  --ink3: #69746f;
  --line: #e3e8e5;
  --dash: #c4d5ce;
  --accent: #177a63;
  --accent-soft: #e8f2ee;
  --accent-line: #c6e1d6;
  --btn: #111614;
  --btn-ink: #fbfdfc;
  --shadow: 0 1px 2px rgba(16, 22, 20, 0.05), 0 14px 34px -18px rgba(16, 22, 20, 0.16);
  --wash: 0.075;
  --band-bg: #0e1211;
  --band-ink: #e9eeeb;
  --band-ink2: #96a29c;
  --band-btn: #7fdcc0;
  --band-btn-ink: #08120f;
  --dark-card: #0e1211;
  --dark-card-line: #212827;
  --pill-bg: rgba(247, 248, 247, 0.76);
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d0c;
  --surface: #111514;
  --surface2: #161b19;
  --ink: #e9eeeb;
  --ink2: #9ca7a2;
  --ink3: #737e79;
  --line: #1e2422;
  --dash: #2e3a35;
  --accent: #7fdcc0;
  --accent-soft: #122320;
  --accent-line: #23433a;
  --btn: #7fdcc0;
  --btn-ink: #08120f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 22px 48px -24px rgba(0, 0, 0, 0.75);
  --wash: 0.13;
  --band-bg: #edf1ef;
  --band-ink: #0f1412;
  --band-ink2: #4e5854;
  --band-btn: #111614;
  --band-btn-ink: #fbfdfc;
  --pill-bg: rgba(10, 13, 12, 0.76);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* No transition here. Transitioning background/color whose values come from
     custom properties leaves body stuck on the old theme in Chromium, so every
     element inheriting colour stayed dark-on-dark. The swap is instant instead. */
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

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

.shell { max-width: 1160px; margin: 0 auto; }
.spacer { flex: 1; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Shown only on the wide layout; the mobile menu carries these instead. */
.desktop-only { display: inline-flex; }
.nav-toggle { display: none; }

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: block; flex: none;
}

.micro {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
}
.micro.accent { color: var(--accent); }

/* larger section eyebrow */
.section-head-main > .micro,
.prose > .micro,
.price-head > .micro,
.two-col > div > .micro,
.desktop-panel > div > .micro {
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

@keyframes dw-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes dw-flick { from { opacity: 0; transform: translateY(0.12em); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; white-space: nowrap; font-weight: 600;
  padding: 14px 26px; font-size: 15px; border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--accent); color: var(--btn-ink); }
[data-theme="dark"] .btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-quiet { border-color: var(--line); background: var(--surface); color: var(--ink); font-weight: 500; padding: 14px 24px; }
.btn-quiet:hover { border-color: var(--accent-line); }
.btn-band { background: var(--band-btn); color: var(--band-btn-ink); padding: 15px 28px; margin-top: 4px; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { display: flex; width: 100%; margin-top: 16px; padding: 13px 22px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Notice bar: shown only to offer a visitor prices in their own currency.
   -------------------------------------------------------------------------- */

.notice {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-line);
  padding: 10px clamp(12px, 3vw, 26px);
  font-size: 13.5px;
}
.notice[hidden] { display: none; }
.notice-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
}
.notice-inner .dot { width: 6px; height: 6px; }
.notice p { color: var(--ink2); flex: 1 1 auto; min-width: 0; }
.notice strong { color: var(--ink); font-weight: 600; }
.notice > .notice-inner > a {
  color: var(--accent); font-weight: 600; white-space: nowrap;
  padding-block: 11px; margin-block: -11px;
}
.notice > .notice-inner > a:hover { text-decoration: underline; }
.notice-action {
  flex: none; padding: 5px 12px; border: 1px solid var(--accent-line); border-radius: 999px;
  color: var(--accent); background: var(--surface); font: inherit; font-weight: 600; cursor: pointer;
}
.notice-action:hover { background: var(--accent-line); color: var(--ink); }
.notice-close {
  flex: none; width: 40px; height: 40px; margin-block: -5px; margin-right: -10px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--ink3); cursor: pointer;
}
.notice-close:hover { background: var(--accent-line); color: var(--ink); }


/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding: 14px clamp(12px, 3vw, 26px);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.topbar > * { width: 100%; max-width: 1120px; }
.topbar-pill {
  pointer-events: auto;
  min-height: 58px;
  padding: 9px 12px 9px 16px;
  border-radius: 29px;
  border: 1px solid var(--line);
  background: var(--pill-bg);
  background: color-mix(in oklab, var(--bg) 76%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
}
.topbar-brand { display: flex; align-items: center; flex: none; color: var(--ink); }
.topbar-brand img { display: block; }
.topbar-nav {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-left: 6px; font-size: 14px; color: var(--ink2); white-space: nowrap;
}
.topbar-nav a:hover { color: var(--ink); }
.theme-toggle {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink2); font-size: 13px; white-space: nowrap; cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.theme-toggle:hover { border-color: var(--accent-line); color: var(--ink); }
.theme-toggle.theme-toggle-icon { width: 42px; height: 42px; padding: 0; justify-content: center; }
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }

/* ---- hamburger + drop-down panel ---- */
.nav-toggle {
  flex: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.nav-toggle-bars { display: block; width: 16px; }
.nav-toggle-bars i {
  display: block; height: 1.6px; border-radius: 2px; background: currentColor;
  transition: transform 0.18s ease, opacity 0.15s ease;
}
.nav-toggle-bars i + i { margin-top: 3.6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(5.2px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-5.2px) rotate(-45deg); }

.site-menu {
  pointer-events: auto;
  margin-top: 8px;
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface); box-shadow: var(--shadow);
  padding: 10px;
  animation: dw-rise 0.22s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
.site-menu[hidden] { display: none; }
.site-menu-nav { display: flex; flex-direction: column; }
.site-menu-nav a {
  padding: 14px 14px; border-radius: 14px;
  font-size: 16px; color: var(--ink);
}
.site-menu-nav a:active { background: var(--surface2); }
.site-menu-foot {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line);
}
.site-menu-foot .theme-toggle { justify-content: center; padding: 13px; font-size: 14px; }
body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5.5vw, 84px) clamp(20px, 4vw, 48px) 0;
}
.hero-wash {
  position: absolute; top: -170px; right: -210px;
  width: min(560px, 52vw);
  opacity: var(--wash);
  transform: rotate(-10deg);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 62%);
  mask-image: linear-gradient(200deg, #000 20%, transparent 62%);
}
.hero-wash img { width: 100%; height: auto; display: block; }

.hero-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; text-align: center;
}

.badge {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink2);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; }

.hero-title {
  font-size: min(8.2vw, 120px);
  line-height: 0.94; font-weight: 600; letter-spacing: -0.042em;
  white-space: nowrap; margin-top: 6px;
  animation: dw-rise 0.8s cubic-bezier(0.2, 0.75, 0.2, 1) both 0.04s;
}
.hero-title .light { font-weight: 400; }

.ext-block {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: dw-rise 0.8s cubic-bezier(0.2, 0.75, 0.2, 1) both 0.12s;
}
.ext-line {
  display: flex; align-items: center; gap: 1px;
  font-family: var(--mono);
  font-size: clamp(20px, 3.4vw, 36px); font-weight: 500; letter-spacing: -0.03em;
}
.ext-dot { color: var(--accent); }
.ext {
  display: inline-block; min-width: 4.4ch; text-align: left;
  animation: dw-flick 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ext-caption {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink3);
}

.hero-lede {
  max-width: 560px; font-size: 17.5px; line-height: 1.6; color: var(--ink2);
  animation: dw-rise 0.8s cubic-bezier(0.2, 0.75, 0.2, 1) both 0.2s;
}
.hero-inner .btn-row { justify-content: center; margin-top: 6px; }
.hero-fine { font-size: 13.5px; color: var(--ink3); }

/* hero screenshot */
.screenshot-frame { position: relative; width: 100%; margin-top: clamp(40px, 6vw, 72px); }
.screenshot-glow {
  position: absolute; inset: -80px -50px -20px;
  background: radial-gradient(58% 66% at 50% 46%, var(--accent-soft), transparent 72%);
  filter: blur(26px); pointer-events: none;
}
.screenshot-dash {
  position: absolute; inset: -22px;
  border: 1px dashed var(--dash); border-radius: 26px; pointer-events: none;
}
.screenshot {
  position: relative; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); background: var(--surface);
}
.screenshot img { width: 100%; height: auto; }

/* stats */
.stat-row {
  width: 100%; text-align: left;
  /* Explicit columns, not auto-fit: a wrapped orphan looks broken inside a pill. */
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--line); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.stat-row li { background: var(--bg); padding: 24px 32px; }
.stat-figure { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.stat-label {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink3);
}

.built-for {
  width: 100%;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 20px; margin-top: 26px; font-size: 13px; color: var(--ink3);
}
.built-for .sep { color: var(--dash); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(72px, 9vw, 128px) clamp(20px, 4vw, 48px) 0; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; margin-bottom: 36px;
}
.section-head-main { max-width: 560px; }
.section-head-aside {
  margin-bottom: 4px; max-width: 340px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink2);
}

.section h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; }
.section h2.h2-sm { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }

.prose { max-width: 600px; margin-bottom: 40px; }
.prose-narrow { max-width: 560px; margin-bottom: 36px; }
.prose h2 { margin-bottom: 18px; }

.body-lg { font-size: 16px; line-height: 1.65; color: var(--ink2); margin-bottom: 16px; }
.body-lg:last-of-type { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Modules
   -------------------------------------------------------------------------- */
.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 16px; }

.module-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.18s ease;
}
.module-card:hover { border-color: var(--accent-line); }
.module-card-top { display: flex; align-items: baseline; gap: 10px; }
.module-card-top .dot { transform: translateY(-2px); }
.module-card-top h3 { font-size: 17px; }
.module-card-top .micro { letter-spacing: 0.1em; }
.module-card > p { font-size: 14px; line-height: 1.55; color: var(--ink2); }

.tool-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line); border-radius: 10px; overflow: hidden; margin-top: 2px;
}
.tool-list li {
  background: var(--surface2); padding: 11px 14px;
  font-size: 13.5px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.tool-list li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.module-price {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto; padding-top: 4px;
  font-size: 13px; color: var(--ink3);
}
.module-price strong { font-weight: 600; color: var(--ink); }

.mod-tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink3); white-space: nowrap;
}
.mod-tag.live { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* Modules that do not exist yet read as quieter than the one that does. */
.module-card-soon { background: transparent; border-style: dashed; border-color: var(--dash); }
.module-card-soon .module-card-top .dot { background: var(--ink3); }
.module-card-soon .module-card-top h3 { color: var(--ink2); }
.module-card-soon .tool-list li { background: transparent; color: var(--ink2); }
.module-card-soon .tool-list li::before { background: var(--ink3); }
.module-card-soon .module-price strong { color: var(--ink2); }

.module-card-ghost {
  background: transparent; border: 1px dashed var(--dash);
  justify-content: center; gap: 10px; min-height: 200px;
}
.module-card-ghost:hover { border-color: var(--dash); }
.module-card-ghost h3 { font-size: 17px; color: var(--ink2); }
.module-card-ghost p { font-size: 14px; line-height: 1.55; color: var(--ink3); }

/* --------------------------------------------------------------------------
   Local
   -------------------------------------------------------------------------- */
.two-col {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.two-col h2 { margin-bottom: 22px; }

.no-list { margin-top: 30px; display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.no-list li {
  background: var(--bg); padding: 14px 0;
  display: flex; gap: 16px; align-items: baseline; font-size: 15px;
}
.no-list .micro { width: 22px; flex: none; }

.session-card {
  background: var(--dark-card); border: 1px solid var(--dark-card-line);
  border-radius: 16px; overflow: hidden;
}
.session-card-top {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--dark-card-line);
}
.session-card-top .dot { background: #7fdcc0; }
.session-card-top .micro { color: #6c7671; }
.session-card-top .micro.accent { color: #7fdcc0; }

.session-rows { padding: 6px 18px 0; }
.session-rows > div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--dark-card-line);
}
.session-rows > div:last-child { border-bottom: 0; }
.session-rows dt { font-size: 14px; color: #9ca7a2; }
.session-rows dd { font-family: var(--mono); font-size: 14px; color: #e9eeeb; }
.session-rows dd.accent { font-size: 12.5px; color: #7fdcc0; }
.session-note {
  margin: 8px 0 0; padding: 0 18px 18px;
  font-size: 12.5px; line-height: 1.6; color: #6c7671;
}

/* --------------------------------------------------------------------------
   Trying it
   -------------------------------------------------------------------------- */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.step-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.step-card h3 { font-size: 16.5px; }
.step-card p { font-size: 14px; line-height: 1.55; color: var(--ink2); }
.pips { display: flex; gap: 6px; }
.pips i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); display: block; }
.pips i.on { background: var(--accent); border-color: transparent; }

/* --------------------------------------------------------------------------
   Toolbelt: every tool, grouped by module, each linking straight into the app
   -------------------------------------------------------------------------- */
.toolbelt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

.tool-group {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.tool-group-head { display: flex; align-items: baseline; gap: 10px; padding: 0 4px; }
.tool-group-head .dot { transform: translateY(-2px); }
.tool-group-head h3 { font-size: 17px; }
.tool-group-head .micro { letter-spacing: 0.1em; }
.tool-group-price { font-size: 13px; color: var(--ink3); white-space: nowrap; }
.tool-group-price strong { font-weight: 600; color: var(--ink); }

.tool-tiles { display: grid; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
.tool-tile {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px; background: var(--surface2);
  transition: background 0.18s ease;
}
.tool-tile:hover { background: var(--accent-soft); }
.tool-tile:focus-visible { outline-offset: -2px; border-radius: 0; }
.tool-tile-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.tool-tile-arrow {
  flex: none; color: var(--accent); opacity: 0; transform: translate(-3px, 3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.tool-tile:hover .tool-tile-arrow,
.tool-tile:focus-visible .tool-tile-arrow { opacity: 1; transform: none; }
.tool-tile-job { font-size: 13px; line-height: 1.5; color: var(--ink2); }

/* --------------------------------------------------------------------------
   Product screenshots
   -------------------------------------------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.shot-lead { grid-column: 1 / -1; }
.shot-frame {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 13.5px; line-height: 1.55; color: var(--ink2); }
.shot figcaption strong { font-weight: 600; color: var(--ink); }

@media (max-width: 900px) {
  .toolbelt { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shots { grid-template-columns: 1fr; gap: 24px; }
  .tool-group { padding: 16px; }
}
@media (hover: none) {
  .tool-tile-arrow { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   A look inside
   -------------------------------------------------------------------------- */
.figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.figure-grid figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.figure-shot {
  border: 1px solid var(--dark-card-line); border-radius: 14px;
  overflow: hidden; background: var(--dark-card);
}
.figure-shot img { width: 100%; height: auto; display: block; }
.figure-grid figcaption { font-size: 13.5px; color: var(--ink3); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.price-head { max-width: 720px; margin-bottom: 40px; }
.price-headline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }
.price-figure { font-size: clamp(72px, 10vw, 132px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.85; }
.price-note { font-size: 17px; line-height: 1.55; color: var(--ink2); }
.price-note strong { color: var(--ink); font-weight: 600; }


.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; align-items: start; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-top h3 { font-size: 17px; }
.plan-price strong { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.plan-price span { font-size: 13px; color: var(--ink3); }
.plan-blurb { margin: 12px 0 20px; font-size: 14px; line-height: 1.55; color: var(--ink2); }

.plan-fine { margin-top: 14px; font-size: 12.5px; line-height: 1.55; color: var(--ink3); }

/* the module that cannot be bought yet */

.btn-disabled {
  background: var(--surface2); color: var(--ink3);
  border-color: var(--line); cursor: default; font-weight: 500;
}

.plan-featured { border-color: var(--accent-line); position: relative; }
.plan-flag {
  position: absolute; top: -1px; right: 20px;
  padding: 6px 12px; border-radius: 0 0 8px 8px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
}
.plan .plan-top { margin-top: 8px; }

.tick-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line); border-radius: 11px; overflow: hidden; margin-bottom: 22px;
}
.tick-list li { background: var(--surface2); padding: 11px 14px; font-size: 13.5px; display: flex; gap: 10px; }
.tick-list li::before { content: "\2713"; color: var(--accent); }

.extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.extra { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--surface); }
.extra-title { font-size: 15px; font-weight: 600; }
.extra-note { font-size: 13.5px; color: var(--ink2); margin-top: 4px; }
.extra-ghost { border: 1px dashed var(--dash); background: transparent; }
.extra-ghost .extra-title { color: var(--ink2); }
.extra-ghost .extra-note { color: var(--ink3); }

/* --------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */
.desktop-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.desktop-panel h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; margin-bottom: 18px; }
.desktop-panel .body-lg { margin-bottom: 24px; }

.platform-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.platform-list li {
  background: var(--surface2); padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; font-size: 14.5px;
}
.platform-list li.pending { color: var(--ink2); }
.platform-list .ring {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--ink3); display: block; flex: none;
}
.platform-list .micro { letter-spacing: 0.12em; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 0 44px; }
.faq { padding: 24px 0; border-top: 1px solid var(--line); }
.faq h3 { font-size: 15.5px; margin-bottom: 10px; }
.faq p { font-size: 14px; line-height: 1.6; color: var(--ink2); }

/* --------------------------------------------------------------------------
   Closing band
   -------------------------------------------------------------------------- */
.band {
  margin-top: clamp(72px, 9vw, 128px);
  background: var(--band-bg); color: var(--band-ink);
  padding: clamp(72px, 9vw, 132px) clamp(20px, 4vw, 48px);
  position: relative; overflow: hidden;
}
.band-mark {
  position: absolute; bottom: 28px; right: 28px;
  width: clamp(56px, 6vw, 84px); opacity: 0.35; pointer-events: none;
}
.band-mark img { width: 100%; height: auto; display: block; }
.band-inner {
  position: relative; max-width: 760px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.band h2 { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.band p { max-width: 470px; font-size: 16.5px; line-height: 1.6; color: var(--band-ink2); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px) 0;
  overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 260px; }
.footer-brand img { display: block; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; color: var(--ink3); }
.footer nav { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer nav a { color: var(--ink2); }
.footer nav a:hover { color: var(--accent); }
.footer nav .micro { margin-bottom: 4px; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink3);
}
.footer-base a { color: var(--ink3); text-decoration: underline; text-underline-offset: 2px; }
.footer-base a:hover { color: var(--accent); }
/* The buttons overlap the line slightly, so the footer row keeps the height of its text. */
.currency-toggle { display: inline-flex; align-items: center; gap: 2px; }
.currency-toggle[hidden] { display: none; }
.currency-toggle button {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin-block: -4px; padding: 0;
  border: 1px solid transparent; border-radius: 50%;
  color: var(--ink3); background: none; font: inherit; line-height: 1; cursor: pointer;
}
.currency-toggle button:hover { color: var(--ink); }
.currency-toggle button[aria-pressed="true"] { border-color: var(--line); color: var(--ink); background: var(--surface); }
.currency-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wordmark {
  font-size: clamp(80px, 17vw, 240px); font-weight: 600; letter-spacing: -0.05em;
  line-height: 0.78; color: var(--line);
  margin: 24px 0 -0.14em; text-align: center; user-select: none;
}

/* --------------------------------------------------------------------------
   Text pages (privacy, terms, roadmap)
   -------------------------------------------------------------------------- */
.doc { padding: clamp(40px, 6vw, 76px) clamp(20px, 4vw, 48px) 0; }
.doc-shell { max-width: 760px; margin: 0 auto; }
.doc-head { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.doc-head h1 {
  font-size: clamp(30px, 5vw, 48px); line-height: 1.06; letter-spacing: -0.038em; margin-top: 14px;
}
.doc-head .lede { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink2); }
.doc-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; }

.draft-flag {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 26px; padding: 16px 18px;
  border: 1px dashed var(--dash); border-radius: 14px;
  background: var(--surface2);
  font-size: 13.5px; line-height: 1.6; color: var(--ink2);
}
.draft-flag .dot { width: 6px; height: 6px; position: relative; top: -1px; }
.draft-flag strong { color: var(--ink); font-weight: 600; }

.doc-body { padding-block: 8px 20px; }
.doc-body section { padding-block: 30px; border-bottom: 1px solid var(--line); }
.doc-body section:last-child { border-bottom: 0; }
.doc-body h2 { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.2; margin-bottom: 14px; }
.doc-body h3 { font-size: 16px; margin: 22px 0 8px; }
.doc-body p { font-size: 15.5px; line-height: 1.68; color: var(--ink2); }
.doc-body p + p { margin-top: 14px; }
.doc-body ul { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.doc-body ul li {
  display: flex; gap: 12px; font-size: 15.5px; line-height: 1.62; color: var(--ink2);
}
.doc-body ul li::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); margin-top: 0.62em;
}
.doc-body ul + p { margin-top: 14px; }
.doc-body a { color: var(--accent); font-weight: 500; }
.doc-body a:hover { text-decoration: underline; }
.doc-body .todo {
  display: block; margin-top: 14px; padding: 14px 16px;
  border-left: 2px solid var(--accent-line); background: var(--surface2);
  border-radius: 0 10px 10px 0;
  font-size: 14px; line-height: 1.6; color: var(--ink3);
}
.doc-body .todo::before {
  content: "To write"; display: block; margin-bottom: 4px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}

/* roadmap status list */
.status-list { display: flex; flex-direction: column; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 20px; }
.status-list li {
  background: var(--surface); padding: 16px 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px;
}
.status-list li::before { content: none; }
.status-list .what { font-weight: 500; }
.status-list .note { color: var(--ink3); font-size: 13.5px; flex: 1 1 100%; }
.status-list .tag {
  margin-left: auto; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink3); white-space: nowrap;
}
.status-list .tag.live { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Expand the hit area of small inline links without moving anything.
   The negative margin cancels the padding, so layout is unchanged. */
.footer nav a,
.footer-base a {
  padding-block: 10px;
  margin-block: -10px;
}
.topbar-brand { padding: 5px; margin: -5px; }

@media (max-width: 900px) {
  .desktop-panel { padding: clamp(24px, 4vw, 40px); }
  /* Two rows, so the pill radius no longer applies. */
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 20px; }
}

@media (max-width: 720px) {
  /* --- header becomes a single row plus a drop-down panel --- */
  .topbar { padding-top: 10px; }
  .topbar-nav,
  .desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }
  .topbar-pill { flex-wrap: nowrap; min-height: 0; padding: 8px 8px 8px 14px; gap: 10px; }
  .topbar-brand img { width: 30px; height: 30px; }

  /* --- notice collapses to one line --- */
  .notice { padding-block: 9px; font-size: 13px; }
  .notice-inner { flex-wrap: nowrap; gap: 10px; }
  .notice-detail { display: none; }
  .notice p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .notice > .notice-inner > a { font-size: 12.5px; }
  /* Keep a 40px target without letting the bar grow past one line. */
  .notice-close { width: 40px; height: 40px; margin-block: -8px; margin-right: -8px; }

  /* --- hero carries the page, so give it the room --- */
  .hero { padding-top: 26px; }
  .hero-inner { gap: 18px; }
  .badge { font-size: 9px; letter-spacing: 0.1em; padding: 7px 13px; gap: 7px; }
  .hero-title {
    font-size: clamp(40px, 12.6vw, 66px);
    white-space: normal;
    line-height: 0.97;
    letter-spacing: -0.045em;
    margin-top: 2px;
  }
  .ext-line { font-size: 26px; }
  .hero-lede { font-size: 16px; line-height: 1.58; }
  .hero-fine { font-size: 12.5px; }
  .screenshot-frame { margin-top: 34px; }
  .screenshot-dash { inset: -12px; border-radius: 20px; }

  /* --- everything else --- */
  .section { padding-top: clamp(56px, 11vw, 80px); }
  .stat-row li { padding: 20px 24px; }
  .faq-grid { gap: 0; }
  .section-head { gap: 14px; }
  .section-head-aside { max-width: none; margin-bottom: 0; }
  .price-headline { gap: 12px; }
  .btn { padding: 13px 22px; }
  .btn-quiet { padding: 13px 20px; }

  /* Two stacked pills of different widths look accidental. */
  .hero-inner .btn-row,
  .desktop-panel .btn-row { width: 100%; }
  .hero-inner .btn-row .btn,
  .desktop-panel .btn-row .btn { flex: 1 1 100%; }
}

@media (max-width: 520px) {
  .stat-row { grid-template-columns: 1fr; }
  .built-for { gap: 8px 14px; }
  .plan { padding: 24px 20px; }
  .step-card { padding: 22px 20px; }
  .module-card { padding: 20px; }
  .band-mark { bottom: 18px; right: 18px; }
}

/* 36px is under the comfortable touch minimum. Applied for touch pointers and
   for narrow viewports, since a phone can report either. */
@media (pointer: coarse), (max-width: 720px) {
  .theme-toggle { padding-block: 11px; }
}

@media (max-width: 420px) {
  .theme-toggle { padding-inline: 12px; }
  .price-figure { font-size: clamp(56px, 18vw, 90px); }
  .wordmark { letter-spacing: -0.045em; }
  /* Below this the badge cannot hold all three clauses on one line. */
  .badge-mid { display: none; }
}

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

/* Without JS: no entrance animations to get stuck part-way, and no dead toggle. */
html:not(.js) .hero-title,
html:not(.js) .ext-block,
html:not(.js) .hero-lede { animation: none; }
html:not(.js) .theme-toggle { display: none; }
