/* Ahna Play public website. No build step: plain CSS, light + dark. */
:root {
  --green: #0a7d3b;
  --green-deep: #075c2c;
  --green-night: #06301a;
  --green-soft: #e6f4eb;
  --accent: #0a7d3b;
  --accent-2: #b8f0cc;
  --ink: #102018;
  --ink-soft: #3d5247;
  --muted: #5d6f64;
  --paper: #f6faf7;
  --card: #ffffff;
  --card-2: #f0f6f2;
  --line: rgba(10, 125, 59, 0.15);
  --line-strong: rgba(16, 32, 24, 0.16);
  --shadow: 0 18px 40px rgba(16, 32, 24, 0.12);
  --live: #d6332b;
  --gold: #c9a227;
  --display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #46c47b;
    --accent-2: #b8f0cc;
    --green-soft: #12301f;
    --ink: #e8f1eb;
    --ink-soft: #b7c7bd;
    --muted: #8fa397;
    --paper: #0a1310;
    --card: #111d17;
    --card-2: #16261d;
    --line: rgba(70, 196, 123, 0.18);
    --line-strong: rgba(232, 241, 235, 0.16);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --live: #ff6359;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--green-deep); }
@media (prefers-color-scheme: dark) { a:hover { color: var(--accent-2); } }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; word-spacing: 0.06em; line-height: 1.12; font-weight: 800; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-in { max-width: 1120px; margin: 0 auto; padding: 10px 22px; min-height: 64px; display: flex; align-items: center; gap: 12px 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) !important; font-family: var(--display); }
.brand img { width: 38px; height: 38px; border-radius: 11px; display: block; }
.brand b { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.brand b span { color: var(--accent); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.nav a:not(.btn):hover { color: var(--accent); background: var(--green-soft); }
.nav a[aria-current='page'] { color: var(--accent); background: var(--green-soft); }
.head .btn { margin-left: 8px; }
.head .nav-open-sm { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; min-height: 46px; border-radius: 999px;
  background: var(--green); color: #fff !important; font-weight: 700; font-size: 15px;
  text-decoration: none !important; border: 0; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(10, 125, 59, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-sm { padding: 8px 15px; min-height: 38px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--accent) !important; box-shadow: inset 0 0 0 2px var(--line-strong); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-white { background: #fff; color: var(--green-deep) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.btn-white:hover { background: #e9f7ee; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.kicker { font-family: var(--display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38ch; margin: 0 0 24px; }
.meta { color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; }
.fine, .feature p.fine { color: var(--muted); font-size: 0.78rem; line-height: 1.45; margin: 14px 0 0; max-width: 60ch; }
.feature p.meta { font-size: 0.92rem; color: var(--muted); }
.page-head { padding: 44px 0 18px; }
.page-head .lede { max-width: 56ch; margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px 48px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 48px 22px 40px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.hero-disc { position: absolute; width: min(92%, 430px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #1fa85a, var(--green) 55%, var(--green-night)); box-shadow: 0 30px 60px rgba(10, 125, 59, 0.3); }
.hero-disc::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.pills li { background: var(--green-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; }

/* phone frame (hero): a real app screenshot inside */
.phone { position: relative; z-index: 1; width: min(290px, 78%); border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #1c2a22, #0b1410); box-shadow: 0 26px 50px rgba(16, 32, 24, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.screen { border-radius: 25px; overflow: hidden; background: var(--card); }
.screen img { display: block; width: 100%; height: auto; }
@keyframes pulse { 50% { opacity: 0.3; } }
.notif { position: absolute; z-index: 2; right: max(0px, calc(50% - 230px)); bottom: 40px; width: 250px; border-radius: 16px; padding: 11px 12px; color: #fff; background: linear-gradient(160deg, #0b5d2e, #06301a); box-shadow: 0 18px 36px rgba(6, 48, 26, 0.4); font-size: 12.5px; line-height: 1.35; display: grid; grid-template-columns: 34px 1fr; gap: 10px; animation: float 6s ease-in-out infinite; text-align: left; }
.notif img { width: 34px; height: 34px; border-radius: 9px; }
.notif b { display: block; font-size: 13px; }
.notif small { display: block; color: #b8f0cc; font-size: 11px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- green story band ---------- */
.band { background: linear-gradient(165deg, var(--green) 0%, var(--green-deep) 60%, var(--green-night) 100%); color: #fff; padding: 64px 0 0; margin-top: 24px; }
.band-in { max-width: 1120px; margin: 0 auto; padding: 0 22px; text-align: center; }
.band h2 { color: #fff; max-width: 20ch; margin: 0 auto 10px; }
.band h2 em { color: var(--accent-2); }
.band .band-lede { color: rgba(255, 255, 255, 0.85); max-width: 46ch; margin: 0 auto 34px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--r); padding: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--green-deep); font-family: var(--display); font-weight: 800; margin-bottom: 12px; }
.steps h3 { color: #fff; margin-bottom: 6px; }
.steps p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; }
.wave { display: block; width: 100%; height: 64px; margin-top: 44px; }
.wave path { fill: var(--paper); }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 64px 22px; }
.feature.flip > :first-child { order: 2; }
.feature p { color: var(--ink-soft); font-size: 1.06rem; margin: 0 0 14px; max-width: 44ch; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%230a7d3b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
@media (prefers-color-scheme: dark) {
  .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%2346c47b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.ticks li.soon { opacity: .75; }
.ticks li.soon::before { background: var(--card-2); }
.ticks li.soon .badge { padding: 1px 8px; font-size: 11.5px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.alt { background: color-mix(in srgb, var(--green-soft) 55%, var(--paper)); border-block: 1px solid var(--line); }

/* real app screenshots (assets/shots, made by apps/web/e2e/site-shots.spec.ts) */
.shot { margin: 0; min-width: 0; display: grid; justify-items: center; gap: 12px; }
.shot-frame { width: min(100%, 360px); border-radius: 30px; padding: 7px; background: linear-gradient(160deg, #1c2a22, #0b1410); box-shadow: 0 24px 48px rgba(16, 32, 24, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.shot.wide .shot-frame { width: min(100%, 520px); border-radius: 24px; }
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 24px; background: var(--card); }
.shot.wide .shot-frame img { border-radius: 18px; }
.shot figcaption, .notif-stack figcaption { color: var(--muted); font-size: 0.88rem; line-height: 1.45; text-align: center; max-width: 40ch; }
.shot-pair { display: grid; gap: 28px; min-width: 0; }
.feature.season { grid-template-columns: minmax(0, 1fr); align-items: start; }
.season-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
.season-copy .ticks { margin-top: 6px; }
.season-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; min-width: 0; }
.season-shots .shot-frame { width: min(100%, 320px); }
@media (max-width: 900px) {
  .season-copy { grid-template-columns: minmax(0, 1fr); }
  /* Phones: the three screens side by side, swiped (the row scrolls, never the page). */
  .season-shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 28px; margin: 0 -4px; overscroll-behavior-x: contain; }
  .season-shots .shot { scroll-snap-align: center; }
}
@media (prefers-color-scheme: dark) {
  .shot-frame { background: linear-gradient(160deg, #2a3a31, #18241d); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
}

/* notifications: the app's real words and score-card picture, drawn as a lock-screen card */
.notif-stack { margin: 0; display: grid; gap: 10px; justify-items: center; min-width: 0; }
.notif-card { width: min(100%, 400px); border-radius: 18px; padding: 12px 14px; color: #fff; background: linear-gradient(160deg, #0b5d2e, #06301a); display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; font-size: 14px; line-height: 1.35; box-shadow: 0 14px 30px rgba(6, 48, 26, 0.25); }
.notif-card > img { width: 36px; height: 36px; border-radius: 9px; }
.notif-card b { display: block; overflow-wrap: anywhere; }
.notif-card small { display: block; color: #b8f0cc; font-size: 12px; }
.notif-card .notif-pic { display: block; width: 100%; height: auto; margin-top: 10px; border-radius: 10px; }

/* everything grid */
.grid-title { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.grid-title p { color: var(--ink-soft); margin: 0; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.tile .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; }
.tile h3 { margin-bottom: 6px; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; padding: 64px 22px; }
.faq h2 { text-align: center; margin-bottom: 22px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; font-family: var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); font-weight: 600; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-soft); }

.close { text-align: center; padding: 64px 22px 80px; max-width: 680px; margin: 0 auto; }
.close p { color: var(--ink-soft); margin: 0 0 22px; }
.close .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 0.92rem; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 28px 22px 36px; display: grid; grid-template-columns: 1.2fr 1.6fr; gap: 18px; align-items: start; }
.foot p { margin: 0; }
.foot-brand { color: var(--ink-soft); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.foot-brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: flex-end; }
.foot-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.foot-nav a:hover { color: var(--accent); }
.foot-note { grid-column: 1 / -1; font-size: 0.84rem; }

/* ---------- toolbar / filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 18px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.input, .select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; min-height: 46px; width: 100%;
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field-grow { flex: 1 1 260px; }
.field-fixed { flex: 0 1 200px; }
.tabs { display: inline-flex; gap: 4px; background: var(--card-2); border-radius: 999px; padding: 4px; border: 1px solid var(--line); max-width: 100%; overflow-x: auto; }
.tabs button { font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--ink-soft); padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs button[aria-selected='true'] { background: var(--green); color: #fff; }
.tabs .count { font-size: 12px; opacity: 0.8; }
.status-line { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; min-height: 1.4em; }

/* ---------- live cards ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; padding-bottom: 64px; }
.comp { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.comp:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.comp-top { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
.comp-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; overflow: hidden; }
.comp-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.comp h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.comp-sub { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.comp-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--card-2); color: var(--ink-soft); }
.badge.live { background: color-mix(in srgb, var(--live) 14%, transparent); color: var(--live); }
.badge.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
.badge.up { background: var(--green-soft); color: var(--accent); }
.comp-teams { font-size: 0.88rem; color: var(--ink-soft); margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.comp-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); flex-wrap: wrap; }
.comp-foot .go { font-weight: 700; color: var(--accent); white-space: nowrap; }
mark { background: color-mix(in srgb, var(--gold) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

.empty { grid-column: 1 / -1; text-align: center; background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 40px 20px; }
.empty .big { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--ink-soft); margin: 0 auto 16px; max-width: 44ch; }
.empty .btn-row { justify-content: center; }
.skeleton { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); height: 190px; position: relative; overflow: hidden; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 8%, transparent), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- formats ---------- */
.fmt-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.fmt-section-title h2 { margin: 0; font-size: 1.45rem; }
.fmt-section-title p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.fmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.fmt { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fmt h3 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.fmt-desc { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.fmt-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.fmt-feats { display: flex; flex-wrap: wrap; gap: 6px; }
.feat { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--card); }
.fmt-sample { font-size: 0.92rem; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.fmt-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.fmt-actions .btn { flex: 1 1 auto; }
.chart-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; background: var(--card-2); border-radius: 14px; padding: 6px; overscroll-behavior-x: contain; }
.chart-scroll svg { display: block; margin: 0 auto; max-width: none; }
.chart-hint { font-size: 12px; color: var(--muted); margin: -4px 0 0; display: none; }
.chart-scroll.overflows + .chart-hint { display: block; }

/* flowchart (SVG) */
.fc-node rect { fill: var(--card); stroke: var(--line-strong); stroke-width: 1.2; }
.fc-node .fc-band { fill: var(--green); stroke: none; }
.fc-node.k-knockout .fc-band { fill: #2f6fd6; }
.fc-node.k-matches .fc-band { fill: var(--gold); }
.fc-node.k-swiss .fc-band { fill: #8a4fd0; }
.fc-node.k-league .fc-band { fill: #13a35a; }
.fc-name { font: 700 13px var(--display); fill: var(--ink); }
.fc-kind { font: 600 11.5px var(--body); fill: var(--ink-soft); }
.fc-sub { font: 500 11px var(--body); fill: var(--muted); }
.fc-ico { fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fc-ico.fill { fill: var(--ink-soft); stroke: none; }
.fc-teams rect { fill: var(--green); stroke: none; }
.fc-teams text { font: 800 13px var(--display); fill: #fff; }
.fc-edge { fill: none; stroke: color-mix(in srgb, var(--accent) 70%, var(--muted)); stroke-width: 1.6; }
.fc-arrow { fill: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
.fc-label rect { fill: var(--card); stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1; }
.fc-label text { font: 700 11px var(--body); fill: var(--accent); }

/* wall-chart poster (SVG, assets/poster.js) */
.chart-scroll.poster { padding: 4px; }
.pc-card { fill: var(--card); stroke: var(--line-strong); stroke-width: 1; }
.pc-tab { fill: var(--green); }
.pc-tab-t { font: 800 12px var(--display); fill: #fff; letter-spacing: 0.01em; }
.pc-q { fill: color-mix(in srgb, var(--accent) 13%, var(--card)); }
.pc-key { stroke: color-mix(in srgb, var(--accent) 40%, transparent); stroke-width: 1; }
.pc-q.maybe { fill: color-mix(in srgb, var(--gold) 16%, transparent); }
.pc-pos { font: 700 10px var(--body); fill: var(--muted); }
.pc-row { font: 600 11px var(--body); fill: var(--ink); }
.pc-dest { font: 700 9.5px var(--body); fill: var(--accent); }
.pc-dest.maybe { fill: var(--muted); }
.pc-dot { stroke: var(--card); stroke-width: 1.5; }
.pc-dot.none { fill: var(--line-strong); stroke: none; }
.pc-pill { fill: var(--card); stroke: var(--line-strong); stroke-width: 1.2; }
.pc-final .pc-pill { stroke: var(--gold); stroke-width: 2.2; }
.pc-final.minor .pc-pill { stroke: color-mix(in srgb, var(--accent) 55%, var(--muted)); stroke-width: 1.8; }
.pc-div { stroke: var(--line-strong); stroke-width: 1; opacity: 0.6; }
.pc-team { font: 600 10.5px var(--body); fill: var(--ink); }
.pc-team.big { font: 700 12px var(--body); }
.pc-team.ph { fill: var(--ink-soft); font-weight: 500; }
.pc-tag { font: 800 9px var(--display); fill: var(--muted); letter-spacing: 0.06em; }
.pc-head { font: 800 10px var(--display); fill: var(--accent); letter-spacing: 0.1em; }
.pc-head.small { font-size: 9px; letter-spacing: 0.04em; }
.pc-lines path { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, var(--muted)); stroke-width: 1.5; stroke-linejoin: round; }
.pc-trophy { fill: var(--gold); }
.pc-trophy .pc-trophy-h { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; }
.pc-medal circle { fill: none; stroke: var(--muted); stroke-width: 2; }
.pc-medal .pc-medal-r { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.pc-sec-t { font: 800 13.5px var(--display); fill: var(--ink); }
.pc-sec-s { font: 500 11px var(--body); fill: var(--muted); }
.pc-note { font: 600 10.5px var(--body); fill: var(--muted); }
.pc-step { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, var(--muted)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* format dialog */
dialog.fmt-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 22px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
dialog.fmt-dialog::backdrop { background: rgba(6, 20, 12, 0.55); }
.dlg-in { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dlg-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.dlg-head h2 { font-size: 1.4rem; margin: 0; overflow-wrap: anywhere; }
.x { font: inherit; font-size: 22px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card-2); color: var(--ink); cursor: pointer; flex: none; }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stage-list li { background: var(--card-2); border-radius: 12px; padding: 10px 12px; font-size: 0.95rem; }
.stage-list b { font-family: var(--display); }
.stage-list span { color: var(--ink-soft); display: block; font-size: 0.9rem; }
.rules { font-size: 0.92rem; color: var(--ink-soft); margin: 0; padding-left: 1.1em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero, .feature { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
  .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .hero { text-align: center; padding-top: 28px; }
  .hero .lede, .hero .meta { margin-inline: auto; }
  .hero .btn-row, .hero .pills { justify-content: center; }
  .feature { padding: 44px 22px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .head-in { flex-wrap: wrap; padding: 8px 16px 0; min-height: 0; gap: 6px 10px; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .brand b { font-size: 19px; }
  .nav { order: 3; width: 100%; margin: 0 -8px; gap: 2px; font-size: 15px; }
  .nav a:not(.btn) { padding: 8px 10px; border-radius: 10px 10px 0 0; }
  .nav a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--accent); background: transparent; }
  .head .nav .btn { display: none; }
  .head .nav-open-sm { display: inline-flex; margin-left: auto; }
  .hero { padding: 24px 16px 24px; gap: 8px; }
  .hero-visual { min-height: 400px; }
  .phone { width: min(260px, 74%); }
  .notif { right: 0; bottom: 18px; width: 220px; font-size: 12px; }
  .band { padding: 44px 0 0; }
  .band-in { padding: 0 16px; }
  .feature { padding: 40px 16px; gap: 22px; }
  .panel { padding: 14px; border-radius: 18px; }
  .cards3 { grid-template-columns: 1fr; }
  .faq { padding: 44px 16px; }
  .close { padding: 44px 16px 56px; }
  .foot-in { grid-template-columns: 1fr; padding: 22px 16px 28px; }
  .foot-nav { justify-content: flex-start; }
  .page-head { padding: 26px 0 8px; }
  .toolbar { gap: 10px; }
  .field-fixed, .field-grow { flex: 1 1 100%; }
  .tabs { width: 100%; }
  .tabs button { flex: 1 1 0; justify-content: center; padding: 9px 8px; }
  .dlg-in { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Privacy and other text pages */
.prose { padding-bottom: 56px; }
.prose h2 { font-family: var(--display); font-size: 1.4rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.prose p, .prose li { max-width: 70ch; color: var(--ink-soft); line-height: 1.6; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--accent); }

/* ---------- pricing ---------- */
.plan-grid { padding-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.plan.popular { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -13px; left: 18px; margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; }
.plan-name { font-size: 1.25rem; margin: 0; overflow-wrap: anywhere; }
.plan-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.plan-price strong { font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1.1; letter-spacing: -0.02em; }
.plan-price span { color: var(--muted); font-weight: 600; }
.plan-note { margin: -4px 0 0; font-size: 0.88rem; font-weight: 700; color: var(--accent); }
.plan-desc { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.plan .ticks { margin: 4px 0 8px; font-size: 0.95rem; }
.plan .btn { margin-top: auto; width: 100%; white-space: normal; text-align: center; }
.always { margin: 28px 0 0; }
.always h2 { font-size: 1.35rem; }
.always .ticks { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 0; }
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; }
  .plan { padding: 16px; }
}

/* ---------- home: ready-made formats ---------- */
.showcase { padding-top: 64px; padding-bottom: 64px; }
.fmt-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.fmt-list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.fmt-list a:hover, .fmt-list a:focus-visible { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.fmt-list b { font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.fmt-list span { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; }
.fmt-list em { align-self: flex-start; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--accent); }
.btn-row.center { justify-content: center; }
.tile h3 .badge { vertical-align: middle; margin-left: 4px; font-family: var(--body); letter-spacing: 0; word-spacing: 0; }
@media (max-width: 640px) {
  .showcase { padding-top: 44px; padding-bottom: 44px; }
  .btn-row.center .btn { width: 100%; white-space: normal; text-align: center; justify-content: center; }
}

/* ---------- samples page ---------- */
.samples-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 28px 48px; align-items: center; padding-bottom: 12px; }
.samples-intro .page-head { padding-bottom: 0; }
.samples-intro .shot { padding-top: 28px; }
.samples-intro .shot-frame { width: min(100%, 290px); }
.how-try { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.how-try li { counter-increment: step; position: relative; padding-left: 40px; color: var(--ink-soft); min-height: 28px; }
.how-try li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--accent); font-family: var(--display); font-weight: 800; font-size: 14px; }
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 28px 0 64px; }
.sample { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sample h2 { font-size: 1.4rem; margin: 0; overflow-wrap: anywhere; }
.sample .fmt-desc { font-size: 1rem; }
.sample dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 0.95rem; }
.sample dt { font-weight: 700; color: var(--muted); }
.sample dd { margin: 0; color: var(--ink-soft); }
.sample .shot { margin-top: 4px; }
.sample .shot-frame { width: min(100%, 320px); }
.sample .try { margin-top: auto; display: grid; gap: 8px; }
.sample .try .btn { width: 100%; min-height: 54px; font-size: 17px; }
.sample .try small { color: var(--muted); font-size: 0.85rem; text-align: center; }
@media (max-width: 900px) {
  .samples-intro, .sample-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sample { padding: 16px; }
  .sample-grid { padding: 18px 0 44px; gap: 16px; }
  .sample dl { grid-template-columns: 1fr; gap: 2px; }
  .sample dd { margin-bottom: 6px; }
}
@media (max-width: 400px) {
  .nav a:not(.btn) { padding: 8px 7px; font-size: 14.5px; }
}
