/* Kabten website. Colours are the apps' "Berry & blush" roles (mobile/packages/design_system: tokens.dart, theme.dart)
   in light and dark; every text pair meets WCAG AA. Logical properties throughout, so Arabic pages mirror. Motion is
   decorative only and stops under prefers-reduced-motion. */

@font-face {
  font-family: "Alexandria";
  src: url("fonts/alexandria-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+2013-2014, U+2018-201D, U+2022, U+2026, U+2190-2193;
}
@font-face {
  font-family: "Alexandria";
  src: url("fonts/alexandria-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  color-scheme: light dark;
  --bg: #fff5f8;
  --surface: #ffffff;
  --surface-2: #fcedf3;
  --text: #2a1630;
  --muted: #6b4a63;
  --primary: #8e2c6b;
  --primary-deep: #6e1f55;
  --on-primary: #ffffff;
  --rose: #f9d9e6;
  --on-rose: #5a1a47;
  --outline: #ebd3de;
  --cta-start: #8e2c6b;
  --cta-end: #c93c48;
  --on-cta: #ffffff;
  --night: #2a1630;
  --night-2: #3f2a3a;
  --on-night: #fff0f6;
  --on-night-muted: #e6cfdc;
  --mint: #0e7a66;
  --mint-bg: #d5f5ee;
  --coral: #ff6f61;
  --notice-bg: #ffebcc;
  --notice-text: #8a4b00;
  --shadow: 0 10px 30px rgb(142 44 107 / 0.1), 0 2px 6px rgb(142 44 107 / 0.06);
  --shadow-lg: 0 30px 60px rgb(90 24 70 / 0.18);
  --radius: 24px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a0f1a;
    --surface: #261826;
    --surface-2: #211421;
    --text: #fbeef5;
    --muted: #dcc3d3;
    --primary: #ffaedb;
    --primary-deep: #f7a3d2;
    --on-primary: #3a0a2a;
    --rose: #4a2340;
    --on-rose: #ffd8ea;
    --outline: #4a3346;
    --cta-start: #ffaedb;
    --cta-end: #ffa49a;
    --on-cta: #3a0a2a;
    --night: #120a12;
    --night-2: #2a1a29;
    --mint: #6fe0c6;
    --mint-bg: #0d3f36;
    --coral: #ff8a7e;
    --notice-bg: #4a3000;
    --notice-text: #ffd79a;
    --shadow: 0 10px 30px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 30px 60px rgb(0 0 0 / 0.5);
  }
}

/* ------------------------------------------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 "Alexandria", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  overflow-x: clip;
}
body:lang(ar) { line-height: 1.85; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; text-wrap: balance; }
:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.45; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--primary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 800px; }
.center { text-align: center; margin-inline: auto; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: 50;
  background: var(--primary); color: var(--on-primary); padding: 8px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }
.gradient-text {
  background: linear-gradient(100deg, var(--cta-start), var(--cta-end));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:dir(rtl) .gradient-text { background-image: linear-gradient(260deg, var(--cta-start), var(--cta-end)); }

/* ---------------------------------------------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--outline) 70%, transparent);
}
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.3rem; }
.brand img { border-radius: 11px; }
.nav { display: flex; gap: 26px; }
.nav a, .menu__panel a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--primary); }
.top__end { display: flex; align-items: center; gap: 12px; }
.lang { border: 1px solid var(--outline); border-radius: 999px; padding: 5px 14px; color: var(--text); text-decoration: none; font-weight: 500; }
.lang:hover { border-color: var(--primary); }
.menu { position: relative; display: none; }
.menu summary {
  list-style: none; cursor: pointer; display: grid; gap: 4px; place-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--outline);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.2s var(--ease), opacity 0.2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu__panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 220px; display: grid;
  background: var(--surface); border: 1px solid var(--outline); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg);
}
.menu__panel a { padding: 12px 14px; border-radius: 12px; }
.menu__panel a:hover { background: var(--surface-2); }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 520px) { .top__end .button--small { display: none; } }

/* ------------------------------------------------------------------------------------------- buttons, badges */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 0;
  background: linear-gradient(90deg, var(--cta-start), var(--cta-end)); color: var(--on-cta);
  font: inherit; font-weight: 650; text-decoration: none; box-shadow: 0 10px 24px rgb(201 60 72 / 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
:dir(rtl) .button { background: linear-gradient(270deg, var(--cta-start), var(--cta-end)); }
.button:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px rgb(201 60 72 / 0.34); }
.button--small { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; box-shadow: none; }
.button--ghost { background: transparent; color: var(--primary); border: 1.5px solid currentColor; box-shadow: none; }
:dir(rtl) .button--ghost { background: transparent; }
.button--light { background: var(--on-night); color: #2a1630; box-shadow: none; }
:dir(rtl) .button--light { background: var(--on-night); }
.button svg, .card-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:dir(rtl) .flip { transform: scaleX(-1); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; min-width: 188px; padding: 8px 18px;
  border-radius: 16px; background: var(--text); color: var(--bg); text-decoration: none; line-height: 1.25;
  transition: transform 0.2s var(--ease);
}
.store svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.store small { display: block; font-size: 0.75rem; opacity: 0.85; }
.store > span > span { font-weight: 650; font-size: 1.05rem; }
.store:hover { text-decoration: none; transform: translateY(-2px); }
.store--soon { background: var(--surface); color: var(--text); border: 1.5px dashed var(--muted); }
.on-night .store { background: var(--on-night); color: #2a1630; }
.on-night .store--soon { background: transparent; color: var(--on-night); border-color: var(--on-night-muted); }

/* ------------------------------------------------------------------------------------------------- sections */
section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  background: var(--rose); color: var(--on-rose); font-size: 0.9rem; font-weight: 650;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.lead { font-size: clamp(1.05rem, 1rem + 0.45vw, 1.3rem); color: var(--muted); max-width: 40em; }
/* The approved rhyming brand lines (docs/launch/01-naming-and-brand.md §4): a supporting line, never the heading. */
.rhyme { margin: 0; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); font-weight: 650; color: var(--primary); max-width: 40em; text-wrap: balance; }
.section-head.center .rhyme { margin-inline: auto; }
.hero .rhyme { margin-top: 18px; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center .lead { margin-inline: auto; }
.alt { background: var(--surface-2); }

/* Reveal on scroll, in browsers with scroll-driven animations; everything is visible without them. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------------------------------------------ hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); overflow: clip; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.55;
}
.hero::before { width: 520px; height: 520px; inset-inline-end: -120px; top: -140px; background: radial-gradient(circle, #f7a3d2, transparent 70%); }
.hero::after { width: 420px; height: 420px; inset-inline-start: -160px; bottom: -120px; background: radial-gradient(circle, #ffb4a9, transparent 70%); }
@media (prefers-color-scheme: dark) { .hero::before, .hero::after { opacity: 0.22; } }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero .lead { margin-block: 22px 30px; }
.hero__points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 500; }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--mint) url("img/tick.svg") center / 12px no-repeat;
}
.hero__demo { margin-top: 18px; font-size: 0.95rem; }

.stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.stage__court { position: absolute; inset: 6% 4%; z-index: -1; color: var(--primary); opacity: 0.16; }
.stage__court svg { width: 100%; height: 100%; }
.stage .phone { width: min(300px, 64vw); position: relative; z-index: 2; }
.stage .phone--back { position: absolute; z-index: 1; width: min(250px, 50vw); inset-inline-end: 0; top: 4%; transform: rotate(7deg); opacity: 0.95; }
:dir(rtl) .stage .phone--back { transform: rotate(-7deg); }
.stage .phone--front { margin-inline-end: 22%; transform: rotate(-3deg); }
:dir(rtl) .stage .phone--front { transform: rotate(3deg); }
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; box-shadow: var(--shadow);
  font-size: 0.9rem; font-weight: 600; white-space: nowrap;
}
.float b { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.float i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--mint-bg); color: var(--mint); font-style: normal; }
.float--a { inset-inline-start: 0; top: 14%; }
.float--b { inset-inline-end: 2%; bottom: 14%; }
.float--c { inset-inline-start: 4%; bottom: 6%; }
@media (max-width: 560px) { .float--c { display: none; } .stage { min-height: 440px; } }
@media (prefers-reduced-motion: no-preference) {
  .stage .phone--front { animation: bob 7s ease-in-out infinite; }
  .stage .phone--back { animation: bob 8s ease-in-out -2s infinite; }
  .float--a { animation: drift 6s ease-in-out infinite; }
  .float--b { animation: drift 7s ease-in-out -3s infinite; }
  .float--c { animation: drift 8s ease-in-out -1s infinite; }
  .hero__copy > * { animation: enter 0.8s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero__copy > :nth-child(n + 5) { animation-delay: 0.32s; }
}
@keyframes bob { 50% { translate: 0 -14px; } }
@keyframes drift { 50% { translate: 0 -10px; } }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------------------------------- phones, browsers */
.phone { margin: 0; filter: drop-shadow(0 24px 40px rgb(90 24 70 / 0.22)); }
.phone img { width: 100%; }
@media (prefers-color-scheme: dark) { .phone { filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.55)); } }
.browser { margin: 0; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--outline); box-shadow: var(--shadow-lg); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--outline); }
.browser__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--outline); }
.browser__bar span:first-child { background: #ff6f61; }
.browser__bar span:nth-child(2) { background: #ffc857; }
.browser__bar span:nth-child(3) { background: #2bb39a; }
.browser__bar em { margin-inline-start: 14px; flex: 1; max-width: 340px; padding: 3px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); font-style: normal; font-size: 0.82rem; }
.browser img { width: 100%; }

/* --------------------------------------------------------------------------------------------- tabs, toggles */
.tabs__list { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--outline); box-shadow: var(--shadow); }
.tabs__list [role="tab"] {
  font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.tabs__list [role="tab"][aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.tabs__list [role="tab"]:hover:not([aria-selected="true"]) { color: var(--text); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.screen-lang { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.92rem; }
.screen-lang__buttons { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface); }
.screen-lang button { font: inherit; font-weight: 600; border: 0; background: none; color: var(--muted); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.screen-lang button[aria-pressed="true"] { background: var(--rose); color: var(--on-rose); }
.js-only { display: none; }
.js .js-only { display: revert; }
.js .screen-lang.js-only { display: inline-flex; }

/* Showcase rail: phones in a scroll-snapping row. */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(260px, 70vw); gap: clamp(18px, 3vw, 32px);
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.rail > figure, .rail > .shot { scroll-snap-align: start; margin: 0; }
.shot figcaption { margin-top: 12px; text-align: center; }
.shot figcaption b { display: block; font-weight: 650; }
.shot figcaption span { color: var(--muted); font-size: 0.92rem; }
.rail .phone { transition: transform 0.35s var(--ease); }
.rail .shot:hover .phone { transform: translateY(-6px); }
.desktops { display: grid; gap: 28px; }
@media (min-width: 900px) { .desktops { grid-template-columns: 1fr 1fr; } }
.desktops figcaption { margin-top: 14px; }

/* How it works: steps on one side, the screen on the other. */
.how { display: grid; gap: 40px; align-items: center; margin-top: 36px; }
@media (min-width: 900px) { .how { grid-template-columns: 1fr 340px; gap: 64px; } }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; width: 100%;
  text-align: start; font: inherit; color: inherit; cursor: pointer; counter-increment: step;
  padding: 18px 20px; border-radius: 20px; border: 1px solid var(--outline); background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.step::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 14px; background: var(--rose); color: var(--on-rose); font-weight: 800;
}
.step b { font-size: 1.08rem; font-weight: 650; }
.step span { color: var(--muted); }
.step[aria-selected="true"] { border-color: var(--primary); box-shadow: var(--shadow); }
.step[aria-selected="true"]::before { background: linear-gradient(135deg, var(--cta-start), var(--cta-end)); color: var(--on-cta); }
.step:hover { transform: translateX(4px); }
:dir(rtl) .step:hover { transform: translateX(-4px); }
.how__screen { display: grid; justify-items: center; }
.how__screen .phone { width: min(300px, 72vw); }
.how__screen [role="tabpanel"] { animation: fade 0.35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .how__screen [role="tabpanel"] { animation: none; } }

/* ------------------------------------------------------------------------------------------- features, bento */
.bento { display: grid; gap: 18px; grid-auto-flow: dense; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile p { color: var(--muted); margin: 0; }
.tile svg.icon {
  width: 48px; height: 48px; padding: 11px; margin-bottom: 18px; border-radius: 16px;
  background: var(--rose); stroke: var(--on-rose); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (min-width: 980px) { .tile--wide { grid-column: span 2; } }
.tile--accent { background: linear-gradient(135deg, var(--cta-start), var(--cta-end)); color: var(--on-cta); border: 0; }
.tile--accent p { color: var(--on-cta); opacity: 0.92; }
.tile--accent svg.icon { background: rgb(255 255 255 / 0.18); stroke: var(--on-cta); }

/* ------------------------------------------------------------------------------------------- Kabten Score */
.night { background: radial-gradient(circle at 85% 10%, #5a1846, transparent 55%), var(--night); color: var(--on-night); }
.night .lead, .night .muted { color: var(--on-night-muted); }
.night .eyebrow { background: rgb(255 255 255 / 0.1); color: var(--on-night); }
.night a:not(.button):not(.store) { color: #ffaedb; }
.score { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .score { grid-template-columns: 1.1fr 0.9fr; } }
.why { background: var(--night-2); border: 1px solid rgb(255 255 255 / 0.08); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.why__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.why__total { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 800; line-height: 1; }
.why__total small { font-size: 1.1rem; opacity: 0.7; font-weight: 600; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.why li b { font-weight: 600; }
.why li span { color: var(--on-night-muted); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: rgb(255 255 255 / 0.1); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffaedb, #ff8a7e); transform-origin: left; }
:dir(rtl) .bar i { transform-origin: right; background: linear-gradient(270deg, #ffaedb, #ff8a7e); }
.p40 { width: 40%; } .p60 { width: 60%; } .p70 { width: 70%; } .p80 { width: 80%; } .p100 { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .bar i { animation: grow linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}
@keyframes grow { from { transform: scaleX(0); } }
.why__note { margin: 16px 0 0; font-size: 0.85rem; color: var(--on-night-muted); }
.score__phones { display: flex; justify-content: center; }
.score__phones .phone { width: min(300px, 72vw); }

/* ---------------------------------------------------------------------------------------------- coaches band */
.band { background: linear-gradient(135deg, #8e2c6b, #b8406a 60%, #c93c48); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: grid; gap: 36px; align-items: center; overflow: hidden; position: relative; }
@media (prefers-color-scheme: dark) { .band { background: linear-gradient(135deg, #5a1846, #7a2a5c); } }
@media (min-width: 900px) { .band { grid-template-columns: 1.2fr 0.8fr; } }
.band h2, .band h3 { color: #fff; }
.band .lead { color: #fff; opacity: 0.92; }
.band .eyebrow { background: rgb(255 255 255 / 0.16); color: #fff; }
.band .phone { width: min(260px, 64vw); margin-inline: auto; margin-bottom: calc(-1 * clamp(28px, 5vw, 64px) - 60px); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%; background: rgb(255 255 255 / 0.2) url("img/tick.svg") center / 13px no-repeat; }
.ticks--dark li::before { background-color: var(--primary); }
@media (prefers-color-scheme: dark) { .ticks--dark li::before { background-color: #6e1f55; } }

/* ------------------------------------------------------------------------------------------------- about */
.about { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.founder { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.founder__id { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.monogram { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, var(--cta-start), var(--cta-end)); color: var(--on-cta); font-weight: 800; font-size: 1.3rem; }
.founder__id b { display: block; font-size: 1.2rem; }
.founder__id div span { color: var(--muted); }
.founder dl { display: grid; gap: 12px; margin: 0; }
.founder dt { font-weight: 650; }
.founder dd { margin: 0; color: var(--muted); }
.mission { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); font-weight: 600; line-height: 1.5; }

/* -------------------------------------------------------------------------------------- download, contact */
.download { display: grid; gap: 20px; }
@media (min-width: 760px) { .download { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 4px; }
.card .stores { margin-top: 20px; }
.contacts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card-link {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--outline); box-shadow: var(--shadow); transition: transform 0.2s var(--ease), border-color 0.2s;
}
.card-link:hover { transform: translateY(-3px); border-color: var(--primary); text-decoration: none; }
.card-link > svg { width: 48px; height: 48px; padding: 12px; border-radius: 16px; background: var(--rose); stroke: var(--on-rose); flex: none; }
.card-link b { display: block; }
.card-link span { color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------------------------------- text pages (legal) */
.doc { padding-block: clamp(32px, 6vw, 64px); }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: 0.4em; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-inline-start: 1.4em; margin: 0 0 1em; }
.doc li { margin-block: 0.35em; }
.doc li > ul { margin: 0.35em 0 0; }
.meta { color: var(--muted); font-size: 0.95rem; }
.notice { margin: 20px 0 28px; padding: 14px 18px; border-radius: 16px; border-inline-start: 4px solid var(--notice-text); background: var(--notice-bg); color: var(--notice-text); }
.notice p { margin: 0; }
.tbd { color: var(--notice-text); background: var(--notice-bg); border-radius: 6px; padding: 0 6px; font-size: 0.92em; }
.table { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--outline); border-radius: 16px; }
.table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: start; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--outline); }
.table tr:last-child td { border-bottom: 0; }
.table th { background: var(--surface-2); font-weight: 650; }
.toc { background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; padding: 16px 20px; margin-bottom: 8px; }
.toc ol { columns: 2 220px; margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--outline); border-radius: 18px; padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; list-style-position: inside; }
.faq details[open] summary { border-bottom: 1px solid var(--outline); margin-bottom: 12px; }
.faq details > :last-child { margin-bottom: 18px; }

/* --------------------------------------------------------------------------------------------------- 404 */
.lost { text-align: center; padding-block: clamp(56px, 10vw, 120px); }
.lost .actions { justify-content: center; margin-top: 24px; }
.lost__code { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.lost__ar { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--outline); }

/* ------------------------------------------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--outline); padding-block: 48px 28px; background: var(--surface-2); }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { color: var(--text); }
.foot__title { font-weight: 650; margin-bottom: 6px; }
.foot p + .foot__title { margin-top: 16px; }
.foot__social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__base { margin-top: 28px; font-size: 0.9rem; }
.foot p { margin-bottom: 0.4em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
@media print {
  .top, .foot, .skip, .stage, .rail { display: none; }
  body { background: #fff; color: #000; }
}
.tile--accent a { color: var(--on-cta); }
.band .button--ghost { color: #fff; }
.band a:not(.button):not(.store) { color: #fff; }
.band .on-night { margin-top: 22px; }
.band .hero__demo { margin: 18px 0 0; }
@media (forced-colors: active) { .gradient-text { color: CanvasText; background: none; } }
/* Grid children may shrink below their content (long words, the screenshot rail), so nothing widens the page. */
:where(.hero__grid, .how, .score, .about, .band, .download, .contacts, .bento, .desktops, .foot__grid, .steps) > * { min-width: 0; }
