/* Athlety — marketing site. Tokens mirror the web app (`athletyappweb/src/styles/globals.css`);
   every colour goes through a variable, so dark mode only swaps tokens. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/geist-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: "Geist";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/geist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/geist-mono-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: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/geist-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Saira Italic 800 is the logotype face: only the H1 accent and the step numbers use it. */
@font-face {
  font-family: "Saira";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/saira-italic-800-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: "Saira";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/saira-italic-800-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ──────────────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --background: #FFFFFF;
  --foreground: #0A0A0A;
  --card: #FFFFFF;
  --muted: #F4F4F5;
  --muted-foreground: #52525B;
  --text-secondary: #3F3F46;
  --surface: #FAFAFA;
  --border: #E4E4E7;
  --input-border: #71717A;
  --primary: #0F62FE;
  --primary-hover: #0B4FD0;
  --primary-foreground: #FFFFFF;
  --link: #0F62FE;
  --accent: #E0E7FF;
  --accent-foreground: #0B3EA8;
  --accent-soft: #EEF2FF;
  --accent-border: #C7D2FE;
  --success: #15803D;
  --success-foreground: #FFFFFF;
  --success-bg: #F0FDF4;
  --warning: #A16207;
  --warning-bg: #FEFCE8;
  --destructive: #A8151D;
  --destructive-bg: #FEF2F2;
  --brand-chevron-top: #0F62FE;
  --brand-chevron-bottom: #A6C8FF;
  --ring: #0F62FE;
  --ring-shadow: 0 0 0 3px rgb(15 98 254 / .35);
  --header-scrolled: rgb(255 255 255 / .86);
  --shadow-card: 0 1px 2px rgb(10 10 10 / .04), 0 12px 32px -18px rgb(10 10 10 / .18);
  --shadow-float: 0 30px 60px -30px rgb(10 22 51 / .35);
  --phone-frame: #0A0A0A;

  /* Constant in both themes: navy sections (site, OG, social) and the white used on them. */
  --navy: #0A1633;
  --navy-muted: #C3CDE3;
  --white: #FFFFFF;
  --loader-on-primary: #9EC0FF;
  --brand-chevron-top-dark: #A6C8FF;
  --brand-chevron-bottom-dark: #4589FF;

  --radius-control: 8px;
  --radius-card: 16px;
  --radius-section: 24px;
  --header-h: 74px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Saira", "Geist", system-ui, sans-serif;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 400ms;
  --duration-brand: 900ms;
}

/* Dark mode = the app's `.dark` tokens. Deliberate difference from the app: brand fills
   (primary buttons, featured plan, final CTA, active tab) stay #0F62FE with white text,
   because white on the app's dark primary #4589FF is below 4.5:1. Brand-coloured text on
   dark backgrounds uses --link (#4589FF, 6.4:1 on #09090B). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #09090B;
  --foreground: #FAFAFA;
  --card: #18181B;
  --surface: #101012;
  --muted: #27272A;
  --muted-foreground: #A1A1AA;
  --text-secondary: #D4D4D8;
  --border: #3F3F46;
  --input-border: #8D8D93;
  --accent: #1E293B;
  --accent-foreground: #DBEAFE;
  --accent-soft: #101D38;
  --accent-border: #27407A;
  --success: #24A148;
  --success-foreground: #06120A;
  --success-bg: #0F2417;
  --warning: #D2A106;
  --warning-bg: #241D06;
  --destructive: #FF8389;
  --destructive-bg: #2A1013;
  --link: #4589FF;
  --brand-chevron-top: var(--brand-chevron-top-dark);
  --brand-chevron-bottom: var(--brand-chevron-bottom-dark);
  --ring: #4589FF;
  --ring-shadow: 0 0 0 3px rgb(69 137 255 / .45);
  --header-scrolled: rgb(9 9 11 / .86);
  --shadow-card: none;
  --shadow-float: none;
  --phone-frame: #3F3F46;
}

/* Registration can be hidden before launch with one attribute on <html>. */
html[data-prelaunch] [data-cta="register"] {
  display: none !important;
}

/* ── Base ────────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
}

a {
  color: var(--link);
}

button, input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.time {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ── Logo (inline SVG: colours from tokens, so dark mode needs no second file) ──────── */
.mark {
  overflow: visible;
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark .chev-top {
  stroke: var(--brand-chevron-top);
}

.mark .chev-bottom {
  stroke: var(--brand-chevron-bottom);
}

.wordmark {
  color: var(--foreground);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-control);
  color: var(--foreground);
  text-decoration: none;
}

.logo .chev-top {
  transition: transform 220ms var(--ease-spring);
}

.logo .chev-bottom {
  transition: transform 220ms var(--ease-spring) 60ms, stroke 220ms ease 60ms;
}

@media (hover: hover) {
  .logo:hover .chev-top,
  .logo:hover .chev-bottom {
    transform: translateY(-3px);
  }
  .logo:hover .chev-bottom {
    stroke: var(--brand-chevron-top);
  }
}

.logo:focus-visible .chev-top,
.logo:focus-visible .chev-bottom {
  transform: translateY(-3px);
}

.logo:focus-visible .chev-bottom {
  stroke: var(--brand-chevron-top);
}

.logo:focus-visible {
  box-shadow: var(--ring-shadow);
}

/* Legal pages keep the logo as an image. */
.logo__img {
  display: block;
  width: auto;
  height: 26px;
}

/* ── Buttons, tags, badges ───────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}

.button--small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.button--large {
  min-height: 52px;
  padding: 0 22px;
  font-size: 16px;
}

.button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button--primary:hover {
  background: var(--primary-hover);
  color: var(--primary-foreground);
}

.button--secondary {
  border-color: var(--input-border);
  background: var(--background);
  color: var(--foreground);
}

.button--secondary:hover {
  background: var(--muted);
}

/* White buttons on navy or blue: constant in both themes. */
.button--on-dark {
  background: var(--white);
  color: var(--primary);
}

.how .button--on-dark,
.plan--dark .button--on-dark {
  color: var(--navy);
}

.button--on-dark:hover {
  background: var(--accent);
}

.button--outline-light {
  border-color: rgb(255 255 255 / .7);
  background: transparent;
  color: var(--white);
}

.button--outline-light:hover {
  background: rgb(255 255 255 / .1);
}

.button__arrow {
  transition: transform var(--duration-base) var(--ease-out);
}

.button:hover .button__arrow {
  transform: translateX(3px);
}

.button[disabled] {
  cursor: default;
}

.button[aria-busy="true"] {
  cursor: progress;
}

.how :focus-visible,
.plan--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--brand-chevron-top-dark);
}

.plan--featured :focus-visible,
.final-cta :focus-visible {
  outline-color: var(--white);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--muted);
}

.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.tag--soon,
.tag--dark {
  background: var(--navy);
  color: var(--white);
}

[data-theme="dark"] .tag--soon {
  background: var(--accent-soft);
  color: var(--accent-foreground);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.tag--on-dark {
  background: var(--white);
  color: var(--navy);
}

.tag--match {
  background: var(--accent);
  color: var(--accent-foreground);
}

/* On the blue featured plan the label is white with brand-blue text in both themes. */
.plan--featured .tag--match,
.plan--dark .tag--match {
  background: var(--white);
  color: var(--primary);
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
}

.badge--success {
  background: var(--success-bg);
  color: var(--success);
}

.badge--danger {
  background: var(--destructive-bg);
  color: var(--destructive);
}

.badge--warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge--primary-soft {
  background: var(--accent);
  color: var(--accent-foreground);
}

.avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 600;
}

.avatar--dashed {
  border: 1px dashed var(--input-border);
  background: transparent;
}

/* ── Header ──────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: var(--background);
  transition: height 250ms var(--ease-out), background-color 250ms ease, border-color 250ms ease;
}

/* Fixed, not sticky: shrinking it never moves the content below (body keeps 74 px). */
.site-header.is-scrolled {
  height: 62px;
  border-bottom-color: var(--border);
  background: var(--header-scrolled);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.site-menu {
  display: contents;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}

.site-nav__link {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--foreground);
}

.site-nav__link[aria-current="true"] {
  color: var(--link);
}

.site-nav__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset: auto 12px 2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  order: 3;
}

.site-header__login {
  color: var(--foreground);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 4px;
  order: 2;
}

.menu-toggle {
  display: none;
}

.icon--sun,
.icon--close,
[data-theme="dark"] .icon--moon {
  display: none;
}

[data-theme="dark"] .icon--sun {
  display: block;
}

.is-menu-open .icon--menu {
  display: none;
}

.is-menu-open .icon--close {
  display: block;
}

@media (max-width: 899px) {
  .site-header__inner {
    justify-content: space-between;
  }
  .site-header__tools {
    order: 0;
  }
  .menu-toggle,
  .icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
  }
  .site-menu {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--border);
    background: var(--background);
  }
  .is-menu-open .site-menu {
    display: flex;
  }
  .site-nav {
    flex-direction: column;
    margin: 0;
  }
  .site-nav__link {
    padding: 12px 8px;
  }
  .site-header__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .site-header__login {
    padding: 10px 8px;
  }
  .site-header__actions .button {
    min-height: 48px;
  }
}

/* Legal pages have no theme toggle: their menu toggle sits in the header row. */
.site-header__inner > .menu-toggle {
  order: 2;
}

/* ── Sections ────────────────────────────────────────────────────────────────────────── */
.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section--tight-top {
  padding-top: 0;
}

.section--surface {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow--on-dark {
  color: var(--brand-chevron-top-dark);
}

.section-title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section-title--small {
  font-size: clamp(26px, 2.8vw, 34px);
}

.section-lead {
  max-width: 640px;
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ── Hero ────────────────────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-foreground);
  font-size: 13px;
  font-weight: 600;
}

.hero__title {
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero__accent {
  color: var(--link);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 560px;
  color: var(--muted-foreground);
  font-size: 18px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-self: stretch;
  gap: 12px;
}

.checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist .icon {
  width: 16px;
  height: 16px;
  color: var(--link);
}

.hero__visual {
  position: relative;
  /* The 206 px phone may overlap the window by at most 40 px. */
  padding-right: 166px;
}

/* ── Product mockups (decorative, aria-hidden) ───────────────────────────────────────── */
.mock-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-float);
  font-size: 12px;
}

.mock-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mock-window__bar > span:not(.mock-window__url) {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.mock-window__url {
  margin-left: 12px;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 11px;
}

.mock-window__body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 330px;
}

.mi {
  flex: none;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Web panel (athletyappweb): sidebar-07 with club switcher, Pulpit with stat tiles */
.mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 7px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  font-size: 10.5px;
}

.mock-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 10px;
}

.mock-sidebar__club {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.2;
}

.mock-sidebar__club > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-sidebar__club small {
  color: var(--muted-foreground);
  font-size: 9px;
  font-weight: 400;
}

.mock-sidebar__club-logo {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 10px;
}

.mock-sidebar__label {
  padding: 2px 8px 4px;
  color: var(--muted-foreground);
  font-size: 9.5px;
  font-weight: 500;
}

.mock-sidebar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
}

.mock-sidebar__item b {
  margin-left: auto;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 9px;
}

.mock-sidebar__item.is-active {
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
}

/* The phone overlaps the window by up to 40 px, so the content keeps that much padding. */
.mock-dash {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 52px 14px 14px;
}

.mock-dash__title {
  font-size: 15px;
  font-weight: 600;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mock-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04);
}

.mock-stat__label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-foreground);
  font-size: 9.5px;
  line-height: 1.2;
}

.mock-stat__label .mi {
  box-sizing: content-box;
  width: 10px;
  height: 10px;
  padding: 3px;
  border-radius: 5px;
  background: var(--muted);
  color: var(--foreground);
}

.mock-stat b {
  font-size: 18px;
  line-height: 1.2;
}

.mock-stat small {
  color: var(--muted-foreground);
  font-size: 9.5px;
}

.mock-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.mock-card__head {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.mock-card__head span {
  color: var(--link);
  font-size: 10px;
  font-weight: 500;
}

.mock-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
}

.mock-list li + li {
  border-top: 1px solid var(--border);
}

.mock-list li.is-live {
  box-shadow: inset 3px 0 0 var(--primary);
}

.mock-list li.is-synced {
  box-shadow: none;
}

.mock-list .time {
  width: 28px;
  flex: none;
  font-size: 10.5px;
  font-weight: 600;
}

.mock-list .is-live .time,
.mock-list em {
  color: var(--primary);
}

.mock-list .is-synced .time,
.mock-list .is-synced em {
  color: inherit;
}

.mock-list .is-synced em {
  display: none;
}

.mock-list em {
  font-size: 9.5px;
  font-style: normal;
  font-weight: 500;
}

.mock-list__name {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.mock-list__name > * {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-list__name small {
  color: var(--muted-foreground);
  font-size: 9.5px;
  font-weight: 400;
}

.mock-list .badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  white-space: nowrap;
}

.mock-list .badge .mi {
  width: 10px;
  height: 10px;
}

.mock-list__soon {
  color: var(--muted-foreground);
  font-size: 9.5px;
  white-space: nowrap;
}

.mock-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 10px;
  font-weight: 500;
}

.mock-list .mock-list__action .badge,
.is-synced .mock-list__action .mock-btn {
  display: none;
}

.mock-list .is-synced .mock-list__action .badge {
  display: inline-flex;
  animation: ath-pop 250ms var(--ease-spring);
}

.mock-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 196px;
  padding: 14px 12px 12px;
  border: 5px solid var(--phone-frame);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow-float);
  font-size: 12px;
}

.hero__phone {
  position: absolute;
  right: 0;
  top: 28px;
  width: 200px;
  height: 392px;
  overflow: hidden;
  padding: 12px 10px 0;
  border-width: 6px;
  border-radius: 34px;
}

/* Mobile app (athletymobileapp): ClassSessionDetailsScreen */
.att__top {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  color: var(--muted-foreground);
  font-size: 10.5px;
}

.mock-phone__title {
  font-size: 15px;
  font-weight: 700;
}

.mock-phone__meta {
  margin-bottom: 6px;
  color: var(--muted-foreground);
  font-size: 10.5px;
}

.att__status .badge {
  font-size: 9.5px;
  font-weight: 600;
}

.att__status .badge--success,
.is-done .att__status .badge--warning {
  display: none;
}

.is-done .att__status .badge--success {
  display: inline-block;
}

.att__summary {
  margin: 6px 0 8px;
  line-height: 1.35;
  color: var(--muted-foreground);
  font-size: 9.5px;
}

.att {
  display: grid;
  gap: 6px;
}

.att li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.att__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-foreground);
  font-size: 9px;
  font-weight: 700;
}

.att__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.att__history {
  display: flex;
  gap: 2px;
}

.dot {
  width: 7px;
  height: 7px;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.dot--present {
  border-color: transparent;
  background: var(--success);
}

.dot--absent {
  border-color: transparent;
  background: var(--destructive);
}

.att__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted-foreground);
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}

.att__btn .mi {
  width: 13px;
  height: 13px;
}

.att li.is-present .att__btn--yes {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
  animation: ath-pop 250ms var(--ease-spring);
}

.hero__phone .mock-phone__button {
  margin-top: 10px;
  padding: 8px;
  font-size: 11px;
}

.att__tabs {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-around;
  padding: 7px 4px 9px;
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 8.5px;
}

.att__tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.att__tabs .mi {
  width: 14px;
  height: 14px;
}

.att__tabs .is-active {
  color: var(--link);
  font-weight: 600;
}

.hero__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 64px;
  color: var(--muted-foreground);
  font-size: 13px;
}

.hero__platforms span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__platforms .mi {
  width: 16px;
  height: 16px;
  color: var(--link);
}

.mock-phone__button {
  margin-top: auto;
  padding: 10px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  text-align: center;
  transition: background-color 250ms ease, color 250ms ease;
}

.mock-phone__button.is-done {
  background: var(--success-bg);
  color: var(--success);
}

@media (max-width: 639px) {
  .hero__visual {
    padding-right: 0;
  }
  .hero__phone {
    position: relative;
    top: auto;
    right: auto;
    margin: -24px 0 0 auto;
  }
  .mock-dash {
    padding-right: 14px;
  }
  .mock-window__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .mock-sidebar {
    display: none;
  }
  .hero__platforms {
    margin-top: 16px;
  }
}

/* ── Problem / solution ──────────────────────────────────────────────────────────────── */
.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.comparison__card {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.comparison__card--after {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.comparison__title {
  margin-bottom: 20px;
  color: var(--muted-foreground);
  font-size: 20px;
  font-weight: 600;
}

.comparison__card--after .comparison__title {
  color: var(--accent-foreground);
}

.comparison__list {
  display: grid;
  gap: 16px;
  color: var(--text-secondary);
}

.comparison__list li {
  display: flex;
  gap: 12px;
}

.comparison__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
}

.comparison__icon .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.comparison__list--before .comparison__icon {
  background: var(--destructive-bg);
  color: var(--destructive);
}

.comparison__list--after .comparison__icon {
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
}

.comparison__list--after .is-soon .comparison__icon {
  background: var(--muted);
  color: var(--muted-foreground);
}

/* ── Product tour (WAI-ARIA tabs) ────────────────────────────────────────────────────── */
.tour__tabs {
  display: none;
}

.js .tour__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.tour__tab {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--duration-base) ease, color var(--duration-base) ease;
}

.tour__tab:hover {
  color: var(--foreground);
}

.tour__tab[aria-selected="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Without JS every panel is shown, one under another. */
.tour__panel {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
}

.tour__panel + .tour__panel {
  margin-top: 16px;
}

.js .tour__panel + .tour__panel {
  margin-top: 0;
}

.tour__panel[hidden] {
  display: none;
}

.tour__copy {
  display: grid;
  gap: 12px;
  color: var(--muted-foreground);
}

.tour__title {
  color: var(--foreground);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.tour__hint {
  font-size: 13px;
}

.tour__screen {
  min-width: 0;
  font-size: 14px;
}

.attendance__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.attendance__group {
  font-weight: 600;
}

.attendance__meta {
  color: var(--muted-foreground);
  font-size: 12px;
}

.attendance__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attendance__list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.attendance__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
}

.attendance__list li + li {
  border-top: 1px solid var(--border);
}

.attendance__name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.segmented {
  display: flex;
  gap: 4px;
}

.segmented button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.segmented button:hover:not([disabled]) {
  border-color: var(--input-border);
}

.segmented [data-set="present"][aria-pressed="true"] {
  border-color: var(--success);
  background: var(--success);
  color: var(--success-foreground);
}

.segmented [data-set="absent"][aria-pressed="true"] {
  border-color: var(--destructive);
  background: var(--destructive);
  color: var(--background);
}

.segmented button[disabled] {
  cursor: default;
  opacity: .7;
}

.attendance__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  margin-top: 12px;
}

.attendance__status {
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
}

.schedule__progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.progress-mark svg {
  overflow: visible;
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress-mark .track {
  stroke: var(--border);
}

.progress-mark .fill {
  stroke-dasharray: 43;
  stroke-dashoffset: 0;
}

.progress-mark .fill--top {
  stroke: var(--brand-chevron-top);
}

.progress-mark .fill--bottom {
  stroke: var(--brand-chevron-bottom);
}

.schedule__label {
  flex: 1;
  font-weight: 600;
}

.schedule__meta {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 400;
}

.schedule__pct {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.week__day {
  display: grid;
  align-content: start;
  gap: 6px;
}

.week__label {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
}

.week__block {
  display: grid;
  padding: 8px;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.week__block .time {
  color: var(--accent-foreground);
  font-size: 11px;
}

.groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.group-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.group-card__name {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
}

.group-card__meta,
.group-card__foot {
  color: var(--muted-foreground);
  font-size: 12px;
}

.group-card__foot {
  display: flex;
  justify-content: space-between;
}

.table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.table__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.table__row + .table__row {
  border-top: 1px solid var(--border);
}

.table__row--head {
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
}

.team {
  display: grid;
  gap: 8px;
}

.team__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.team__who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-weight: 600;
  line-height: 1.35;
}

.team__who small {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 400;
}

/* ── Mobile app (1c boot) ────────────────────────────────────────────────────────────── */
.mobile-app__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.mobile-app__visual {
  display: grid;
  place-items: center;
  padding: 48px 24px;
  border-radius: var(--radius-section);
  background-color: var(--accent-soft);
  background-image: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--link) 18%, transparent), transparent 60%);
}

.mock-phone--large {
  width: 268px;
  height: 500px;
  overflow: hidden;
  padding: 0;
  border-width: 6px;
  border-radius: 36px;
}

.boot {
  position: absolute;
  inset: 0 0 48px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.boot__tile {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
}

.phone-today {
  display: flex;
  flex-direction: column;
  padding: 22px 12px 0;
}

/* Mobile app (athletymobileapp): HomeScreen — greeting, quick actions, today's timeline */
.ph-home__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.ph-home__head > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ph-home__head b {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.ph-home__head small {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-home__section {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
}

.ph-home__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 14px;
}

.ph-home__actions li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 2px;
  border-radius: 10px;
  background: var(--muted);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.ph-home__actions span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--background);
  color: var(--link);
}

.ph-home__actions .mi {
  width: 14px;
  height: 14px;
}

.ph-home__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.ph-home__list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 5px 9px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ph-home__time {
  flex: none;
  padding-right: 6px;
  border-right: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  line-height: 2.2;
}

.ph-home__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-home__info small {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted-foreground);
  font-size: 9px;
  font-weight: 400;
}

.ph-home__info .mi {
  width: 9px;
  height: 9px;
}

.ph-home__list .badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 2px 5px;
  font-size: 8px;
  font-weight: 600;
}

.ph-home__list .badge .mi {
  width: 9px;
  height: 9px;
}

.ph-home__list li > .mi {
  width: 11px;
  height: 11px;
  color: var(--muted-foreground);
}

.phone-tabs {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-around;
  padding: 8px 6px 12px;
  border-top: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 9px;
}

.phone-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.phone-tabs .mi {
  width: 16px;
  height: 16px;
}

.phone-tabs .is-active {
  color: var(--link);
  font-weight: 600;
}

/* Feature list with icons (mobile app, enrollment form) */
.feature-list {
  display: grid;
  gap: 18px;
  margin: 8px 0;
}

.feature-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.feature-list__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--link);
}

.feature-list__icon .icon {
  width: 20px;
  height: 20px;
}

.feature-list li > span:last-child {
  display: grid;
  gap: 2px;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.55;
}

.feature-list strong {
  color: var(--foreground);
  font-size: 16px;
  font-weight: 600;
}

/* Enrollment form section: the embedded form on a club site and the new enrollment in the panel */
.enroll__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.enroll__copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.enroll__visual {
  position: relative;
  padding: 32px 24px 136px;
  border-radius: var(--radius-section);
  background-color: var(--accent-soft);
  background-image: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--link) 18%, transparent), transparent 60%);
}

.enroll__window {
  max-width: 360px;
}

.form-mock {
  display: grid;
  gap: 7px;
  padding: 14px 16px 12px;
  font-size: 11px;
}

.form-mock__club {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.form-mock__club span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 12px;
}

.form-mock__section {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}

.form-mock__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.form-mock__field {
  display: grid;
  gap: 3px;
}

.form-mock__field small,
.form-mock__label {
  color: var(--muted-foreground);
  font-size: 9.5px;
  font-weight: 500;
}

.form-mock__field > span {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--background);
  font-weight: 500;
}

.form-mock__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.form-mock__chips span {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 10px;
}

.form-mock__chips .is-on {
  border-color: var(--link);
  background: var(--accent-soft);
  color: var(--accent-foreground);
  font-weight: 600;
}

.form-mock__consent {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 10.5px;
}

.form-mock__consent span {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.form-mock__consent .mi {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}

.form-mock__submit {
  margin-top: 4px;
  padding: 8px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  text-align: center;
}

.form-mock__powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted-foreground);
  font-size: 9px;
}

.enroll__card {
  position: absolute;
  right: 16px;
  bottom: 24px;
  width: min(290px, calc(100% - 32px));
  padding: 10px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-float);
  font-size: 11px;
}

.enroll__card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-weight: 600;
}

.enroll__card-head b {
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 9px;
}

.enroll__card-head span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--muted-foreground);
  font-size: 9.5px;
  font-weight: 400;
}

.enroll__card-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enroll__card-name {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
}

.enroll__card-name small {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 9.5px;
  font-weight: 400;
  text-overflow: ellipsis;
}

.enroll__card .badge {
  font-size: 9.5px;
  font-weight: 600;
}

.enroll__card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}

.enroll__card-actions span {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 500;
}

.enroll__card-actions .is-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

@media (max-width: 1023px) {
  .enroll__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479px) {
  .enroll__visual {
    padding: 24px 16px 16px;
  }
  .enroll__card {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 12px;
  }
}

.mobile-app__copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.store-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 600;
}

/* ── Roles ───────────────────────────────────────────────────────────────────────────── */
.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.role-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 14px;
}

.role-card__title {
  color: var(--foreground);
  font-size: 17px;
  font-weight: 600;
}

/* ── How it works (navy, skewed edges) ───────────────────────────────────────────────── */
.how {
  padding: clamp(110px, 12vw, 170px) 0;
  background: var(--navy);
  color: var(--white);
  clip-path: polygon(0 clamp(24px, 4vw, 64px), 100% 0, 100% calc(100% - clamp(24px, 4vw, 64px)), 0 100%);
}

.steps {
  position: relative;
}

.steps__line {
  position: absolute;
  top: 19px;
  left: 40px;
  right: 3%;
  border-top: 2px dashed var(--brand-chevron-bottom-dark);
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.step {
  position: relative;
  display: grid;
  gap: 12px;
  color: var(--navy-muted);
}

.step__number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border: 1px solid var(--brand-chevron-bottom-dark);
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 800;
}

.step__number--filled {
  border-color: var(--primary);
  background: var(--primary);
}

.step__title {
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
}

.how__cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ── Pricing ─────────────────────────────────────────────────────────────────────────── */
.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px 40px;
  margin-bottom: 24px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}

.calculator__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

.calculator__number {
  width: 96px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-control);
  background: var(--background);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.calculator__range {
  width: 100%;
  min-height: 24px;
  accent-color: var(--primary);
}

.calculator__scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 12px;
}

.calculator__result {
  color: var(--muted-foreground);
}

.calculator__result strong {
  color: var(--foreground);
}

.calculator__plan {
  color: var(--link) !important;
}

.calculator__price {
  color: var(--foreground);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plans--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 14px;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms ease;
}

.plan.is-match {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  transform: translateY(-4px);
}

.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 28px;
}

.plan__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.plan__name {
  color: var(--foreground);
  font-size: 18px;
  font-weight: 700;
}

.plan__price {
  margin: 8px 0 16px;
  color: var(--foreground);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.plan__price small {
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 400;
}

.plan__price--text {
  font-size: 20px;
  line-height: 1.25;
}

.plan .button {
  margin-top: auto;
}

.plan--featured {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.plan--featured .plan__name,
.plan--featured .plan__price,
.plan--featured .plan__price small {
  color: var(--white);
}

.plan--featured.is-match {
  box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px var(--accent-border);
}

.plan--dark {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--navy-muted);
}

.plan--dark .plan__name,
.plan--dark .plan__price {
  color: var(--white);
}

.included {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: 14px;
}

.included li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.included__label {
  color: var(--foreground);
  font-weight: 600;
}

.plans__note {
  margin-top: 16px;
  color: var(--muted-foreground);
  font-size: 13px;
  text-align: center;
}

/* ── FAQ (accordion; without JS every answer is open) ────────────────────────────────── */
.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 64px);
}

.faq__contact {
  margin-top: 12px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.faq__list {
  border-top: 1px solid var(--border);
}

.faq__more {
  padding-top: 20px;
  font-size: 15px;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__heading {
  font-size: 17px;
  font-weight: 600;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 14px 0;
  border: 0;
  background: none;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq__icon {
  color: var(--link);
  transition: transform 300ms var(--ease-out);
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 300ms var(--ease-out);
}

.faq__answer > div {
  overflow: hidden;
}

.faq__answer p {
  padding-bottom: 18px;
  color: var(--text-secondary);
}

.faq__item.is-closed .faq__answer {
  grid-template-rows: 0fr;
}

/* ── Founders, final CTA ─────────────────────────────────────────────────────────────── */
.founders {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-section);
  background: var(--card);
}

.founders__copy {
  display: grid;
  gap: 12px;
  color: var(--muted-foreground);
}

.founders .section-title {
  color: var(--foreground);
}

.founders__contact {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.contact-card:hover {
  border-color: var(--link);
}

.contact-card:hover .contact-card__arrow {
  transform: translateX(3px);
  color: var(--link);
}

.contact-card__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--link) 12%, transparent);
}

.contact-card__icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--link);
}

.contact-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.contact-card__title {
  color: var(--foreground);
  font-size: 17px;
  font-weight: 600;
}

.contact-card__arrow {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted-foreground);
  transition: transform .15s ease, color .15s ease;
}

.testimonial {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.testimonial__icon {
  width: 32px;
  height: 32px;
  fill: var(--link);
}

.testimonial__quote {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.testimonial__quote p::before { content: "„"; }
.testimonial__quote p::after { content: "”"; }

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  color: var(--foreground);
  text-align: left;
  text-decoration: none;
}

.testimonial__author:hover .testimonial__who {
  color: var(--link);
}

.testimonial__logo {
  width: auto;
  height: 48px;
}

.testimonial__who {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  line-height: 1.35;
}

.testimonial__who small {
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 400;
}

.final-cta {
  display: grid;
  gap: 24px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-section);
  background-color: var(--primary);
  background-image: repeating-linear-gradient(-12deg, rgb(255 255 255 / .07) 0 2px, transparent 2px 26px);
  color: var(--white);
}

.final-cta .section-title {
  max-width: 560px;
  margin-bottom: 12px;
}

.final-cta p {
  max-width: 520px;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Payments screen from the mobile app, cropped by the card's bottom edge */
.final-cta--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.final-cta__copy {
  display: grid;
  gap: 24px;
}

.final-cta__visual {
  align-self: end;
  margin-bottom: calc(-1 * clamp(32px, 5vw, 56px));
  padding-right: clamp(0px, 3vw, 32px);
}

.phone-fees {
  width: 240px;
  height: 300px;
  overflow: hidden;
  gap: 10px;
  padding: 18px 12px 0;
  border-width: 6px;
  border-bottom: 0;
  border-radius: 36px 36px 0 0;
  color: var(--foreground);
  font-size: 12px;
}

.phone-fees svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-fees__header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}

.phone-fees__header svg {
  width: 18px;
  height: 18px;
}

.phone-fees__search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted-foreground);
  font-size: 11px;
}

.phone-fees__search svg {
  width: 13px;
  height: 13px;
}

.phone-fees__list {
  display: grid;
  gap: 6px;
}

.phone-fees__list li {
  display: grid;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.phone-fees__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phone-fees__row > span:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 600;
  line-height: 1.3;
}

.phone-fees__row small {
  color: var(--muted-foreground);
  font-size: 9.5px;
  font-weight: 400;
}

.phone-fees .badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  font-size: 9.5px;
  font-weight: 600;
}

.phone-fees .badge svg {
  width: 10px;
  height: 10px;
}

.phone-fees__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--link);
  font-size: 11px;
  font-weight: 500;
}

.phone-fees__mark svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 899px) {
  .final-cta--split {
    grid-template-columns: minmax(0, 1fr);
  }
  .final-cta__visual {
    display: none;
  }
}

/* ── Footer (navy in both themes) ────────────────────────────────────────────────────── */
.site-footer {
  padding: 56px 0 32px;
  background: var(--navy);
  color: var(--navy-muted);
  font-size: 14px;
}

.site-footer .logo,
.site-footer .wordmark {
  color: var(--white);
}

.site-footer .mark .chev-top {
  stroke: var(--brand-chevron-top-dark);
}

.site-footer .mark .chev-bottom {
  stroke: var(--brand-chevron-bottom-dark);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.site-footer__about {
  max-width: 280px;
  margin-top: 14px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-column__title {
  margin-bottom: 4px;
  color: var(--white);
  font-weight: 600;
}

.footer-column__link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--navy-muted);
  text-decoration: none;
}

.footer-column__link:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / .14);
  font-size: 13px;
}

/* ── Responsive ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero__inner,
  .mobile-app__inner,
  .faq,
  .founders,
  .tour__panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__visual {
    max-width: 640px;
  }
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plans--three {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .comparison,
  .roles,
  .calculator {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .steps__line {
    display: none;
  }
  .week {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .groups {
    grid-template-columns: minmax(0, 1fr);
  }
  .table__row {
    grid-template-columns: 1.4fr 1fr auto;
  }
  .table__row > :nth-child(3) {
    display: none;
  }
}

@media (max-width: 559px) {
  .plans,
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__actions .button,
  .final-cta__actions .button {
    width: 100%;
  }
  .attendance__list li {
    flex-wrap: wrap;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    min-height: 44px;
  }
}

/* ── 404 / 50x ───────────────────────────────────────────────────────────────────────── */
.error-page {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--surface);
}

.error-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "badge card"
    "title card"
    "lead card"
    "actions card"
    "links card";
  grid-template-rows: auto auto auto auto 1fr;
  align-items: start;
  gap: 22px clamp(32px, 6vw, 64px);
}

.error-page__grid--single {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "badge" "title" "lead";
  grid-template-rows: auto;
}

.error-page__badge {
  grid-area: badge;
  justify-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.error-page__title {
  grid-area: title;
}

.error-page__lead {
  grid-area: lead;
  max-width: 440px;
}

.error-page__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-page__links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
  font-weight: 600;
}

.error-page__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--link);
  text-decoration: none;
}

.error-page__links a:hover {
  text-decoration: underline;
}

.error-card {
  grid-area: card;
  align-self: center;
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.error-card__decor {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.error-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.error-card__eyebrow {
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.error-card__status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.error-card__status--planned {
  background: var(--accent-soft);
  color: var(--accent-foreground);
}

.error-card__status--cancelled {
  display: none;
  background: var(--destructive-bg);
  color: var(--destructive);
}

.error-card__session {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.error-card__time {
  display: grid;
  flex: none;
  place-content: center;
  justify-items: center;
  gap: 2px;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-foreground);
}

.error-card__time strong {
  font-size: 22px;
  line-height: 1;
}

.error-card__time small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.error-card__what {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.error-card__name {
  color: var(--foreground);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: line-through transparent;
  transition: color .3s ease, text-decoration-color .3s ease;
}

.error-card__path {
  overflow: hidden;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.error-card__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.error-card__field {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
}

.error-card__field strong {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
}

.error-card__alt {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.error-card__alt-label {
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
}

.error-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.error-card__link:hover {
  border-color: var(--input-border);
}

.error-card__url {
  color: var(--link);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Cancelled: after ~0.8 s with JS, at once without JS or with reduced motion. */
.error-card.is-cancelled .error-card__status--planned,
html:not(.js) .error-card__status--planned {
  display: none;
}

.error-card.is-cancelled .error-card__status--cancelled,
html:not(.js) .error-card__status--cancelled {
  display: inline-block;
}

.error-card.is-cancelled .error-card__name,
html:not(.js) .error-card__name {
  color: var(--muted-foreground);
  text-decoration-color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .error-card .error-card__status--planned {
    display: none;
  }
  .error-card .error-card__status--cancelled {
    display: inline-block;
  }
  .error-card .error-card__name {
    color: var(--muted-foreground);
    text-decoration-color: currentColor;
  }
}

/* Below the tablet breakpoint: one column, the short card right under the heading. */
@media (max-width: 767px) {
  .error-page__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "badge" "title" "card" "lead" "actions" "links";
    grid-template-rows: auto;
  }
  .error-card {
    padding: 16px;
  }
  .error-card__fields,
  .error-card__alt,
  .error-card__time {
    display: none;
  }
  .error-card__name {
    font-size: 17px;
  }
  .error-page__actions .button {
    width: 100%;
  }
}

/* ── Legal pages (terms, privacy policy) ─────────────────────────────────────────────── */
.legal-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.legal-hero__title {
  max-width: 820px;
  margin-top: 16px;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.legal-hero__meta {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted-foreground);
}

.legal {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 72px;
  padding-block: 64px 120px;
}

.legal-toc {
  position: sticky;
  top: 108px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.legal-toc__title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.legal-toc__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc__link {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.legal-toc__link:hover {
  color: var(--link);
}

.legal__content {
  max-width: 760px;
}

.legal-section + .legal-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.legal-section__title {
  margin-bottom: 20px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-text + .legal-list,
.legal-list + .legal-text,
.legal-table-wrapper + .legal-text {
  margin-top: 16px;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 24px;
  list-style: decimal;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-list--alpha {
  margin-top: 8px;
  gap: 6px;
  list-style: lower-alpha;
}

.legal-list--bullets {
  gap: 6px;
  list-style: disc;
}

.legal-list__item {
  padding-left: 4px;
}

.legal-list__item::marker {
  font-weight: 700;
  color: var(--link);
}

.legal-link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-link:hover {
  color: var(--primary-hover);
}

.legal-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
}

.legal-table__heading {
  padding: 12px 16px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.legal-table__cell {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-secondary);
}

.legal-table__cell:first-child {
  width: 45%;
  font-weight: 600;
  color: var(--foreground);
}

.definitions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.definitions__item {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface);
}

.definitions__term {
  font-size: 16px;
  font-weight: 700;
}

.definitions__description {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 960px) {
.legal {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
.legal-toc {
    position: static;
  }
}

@media (max-width: 720px) {
.legal-hero {
    padding: 40px 0 32px;
  }
.legal-hero__title {
    margin-top: 12px;
    font-size: 32px;
  }
.legal-hero__meta {
    margin-top: 12px;
    font-size: 14px;
  }
.legal {
    gap: 32px;
    padding-block: 32px 64px;
  }
.legal-toc {
    padding: 20px;
  }
.legal-section + .legal-section {
    margin-top: 32px;
    padding-top: 32px;
  }
.legal-section__title {
    margin-bottom: 16px;
    font-size: 21px;
  }
.legal-text,
  .legal-list {
    font-size: 15px;
    line-height: 1.65;
  }
.legal-list {
    padding-left: 20px;
  }
.legal-table {
    font-size: 14px;
  }
.legal-table__heading,
  .legal-table__cell {
    padding: 12px;
  }
.definitions__item {
    padding: 14px 16px;
  }
}

/* ── Knowledge base (/pomoc) ───────────────────────────────────────────────────────── */
.kb-hero__lead {
  max-width: 640px;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.kb-breadcrumbs {
  margin-bottom: 20px;
}

.kb-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.kb-breadcrumbs__item + .kb-breadcrumbs__item::before {
  content: "/";
  margin-right: 6px;
  color: var(--border);
}

.kb-breadcrumbs__link {
  color: var(--muted-foreground);
  text-decoration: none;
}

.kb-breadcrumbs__link:hover {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kb-home {
  padding-block: 64px 120px;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.kb-category {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.kb-category__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--link);
}

.kb-category__icon .icon {
  width: 22px;
  height: 22px;
}

.kb-category__title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.kb-category__desc {
  margin-top: -8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.kb-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.kb-links__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.45;
  color: var(--foreground);
  text-decoration: none;
}

.kb-links__link::after {
  content: "→";
  flex: none;
  color: var(--muted-foreground);
  transition: transform var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.kb-links__link:hover {
  color: var(--link);
}

.kb-links__link:hover::after {
  color: var(--link);
  transform: translateX(3px);
}

.kb-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 56px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.kb-help__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.kb-help__text {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.kb-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kb-note {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--accent-border);
  border-left-width: 4px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 15px;
  line-height: 1.6;
  color: var(--foreground);
}

.kb-note--warning {
  border-color: var(--warning);
  background: var(--warning-bg);
}

.kb-note__label {
  font-weight: 700;
}

.legal-text + .legal-text,
.legal-list + .legal-list,
.kb-note + .legal-text,
.kb-note + .legal-list {
  margin-top: 16px;
}

.kb-kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.85em;
  line-height: 1.5;
  text-align: center;
  color: var(--foreground);
}

.kb-ui {
  font-weight: 600;
  color: var(--foreground);
}

.kb-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.kb-related__title {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 800;
}

.kb-article .kb-help {
  margin-top: 40px;
}

@media (max-width: 960px) {
.kb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
.kb-hero__lead {
    margin-top: 12px;
    font-size: 16px;
  }
.kb-home {
    padding-block: 32px 64px;
  }
.kb-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
.kb-category {
    padding: 22px 20px;
  }
.kb-help {
    margin-top: 40px;
    padding: 22px 20px;
  }
.kb-note {
    font-size: 14px;
  }
}

/* ── Motion (each effect once; reduced motion shows the end state) ───────────────────── */
@keyframes ath-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ath-pop { from { transform: scale(.85); } to { transform: none; } }
@keyframes ath-draw { from { stroke-dashoffset: 43; } to { stroke-dashoffset: 0; } }
@keyframes ath-rise { from { transform: translateY(6px); } to { transform: none; } }
@keyframes ath-wipe { from { clip-path: inset(0 100% 0 0); transform: translateX(-10px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes ath-tile { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: none; } }
@keyframes ath-step { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ath-boot-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-110px) scale(.42); } }
@keyframes ath-line { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ath-climb { from { transform: translateY(0); } to { transform: translateY(-15px); } }
@keyframes ath-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ath-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ath-promote { from { stroke: var(--loader-on-primary); } to { stroke: var(--white); } }

/* 1a — header logo intro, once per session (class set by the head script). */
.intro .site-header .mark {
  animation: ath-rise 760ms var(--ease-out) both;
}
.intro .site-header .chev-bottom {
  stroke-dasharray: 43;
  animation: ath-draw 500ms var(--ease-out) both;
}
.intro .site-header .chev-top {
  stroke-dasharray: 43;
  animation: ath-draw 500ms var(--ease-out) 160ms both;
}
.intro .site-header .wordmark {
  animation: ath-wipe 560ms var(--ease-out) 460ms both;
}

/* 1b — loader on a primary button (white / #9EC0FF). */
.loader {
  width: 16px;
  height: 16px;
  overflow: hidden;
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.loader .p1 {
  stroke: var(--white);
  animation: ath-out var(--duration-brand) var(--ease-in-out) infinite;
}
.loader .p2 {
  stroke: var(--loader-on-primary);
  animation: ath-promote var(--duration-brand) var(--ease-in-out) infinite;
}
.loader .p3 {
  stroke: var(--loader-on-primary);
  opacity: 0;
  animation: ath-in var(--duration-brand) var(--ease-in-out) infinite;
}
.loader g {
  animation: ath-climb var(--duration-brand) var(--ease-in-out) infinite;
}

/* Hidden start states exist only once main.js has added `has-motion`. */
.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.has-motion [data-reveal="1"] {
  transition-delay: 90ms;
}
.has-motion [data-reveal="2"] {
  transition-delay: 180ms;
}
.has-motion [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* 1d — schedule fill: blocks appear one by one while the mark fills. */
.has-motion [data-schedule].is-filling .week__block {
  animation: ath-step 400ms var(--ease-out) both;
  animation-delay: calc(var(--n, 0) * 180ms);
}

/* 1c — app boot in the phone. */
.has-motion [data-app-boot]:not(.is-done) .boot {
  display: flex;
}
.has-motion [data-app-boot]:not(.is-done) .phone-today {
  opacity: 0;
}
.has-motion [data-app-boot].is-playing .boot__tile {
  animation: ath-tile 480ms var(--ease-spring) both;
}
.has-motion [data-app-boot].is-playing .chev-bottom {
  animation: ath-step 420ms var(--ease-spring) 220ms both;
}
.has-motion [data-app-boot].is-playing .chev-top {
  animation: ath-step 420ms var(--ease-spring) 360ms both;
}
.has-motion [data-app-boot].is-playing .boot__word {
  animation: ath-step 400ms var(--ease-out) 720ms both;
}
.has-motion [data-app-boot].is-playing .boot {
  animation: ath-boot-out 560ms cubic-bezier(.6, 0, .2, 1) 1550ms both;
}
.has-motion [data-app-boot].is-playing .phone-today {
  animation: ath-step 420ms var(--ease-out) 1850ms both;
}

/* How it works — the dashed line draws once the section is in view. */
.has-motion [data-steps]:not(.is-drawn) .steps__line {
  clip-path: inset(0 100% 0 0);
}
.has-motion [data-steps].is-drawn .steps__line {
  animation: ath-line 900ms var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .loader g,
  .loader .p1,
  .loader .p2,
  .loader .p3,
  .intro .site-header *,
  .att li.is-present .att__btn--yes,
  .mock-list .is-synced .mock-list__action .badge {
    animation: none !important;
  }
  .loader .p3 {
    display: none;
  }
}
