/* ============================================================
   Selevy — site.css
   Ink blue + signal green + lime. Bricolage Grotesque (headings), Inter (text).
   ============================================================ */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0b1b2b;
  --ink-2: #13283d;
  --ink-3: #1d3954;
  --green: #16c47f;
  --green-ink: #0a7a4b;
  --lime: #d4f55a;

  --bg: #ffffff;
  --bg-soft: #f3f7f5;
  --card: #ffffff;
  --text: #0b1b2b;
  --muted: #51606f;
  --line: #e3e8ee;
  --icon-bg: var(--ink);

  --s1: #e5484d;
  --s2: #f2994a;
  --s3: #f5c84b;
  --s4: #8bd46a;
  --s5: #16c47f;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(11 27 43 / 6%), 0 8px 24px rgb(11 27 43 / 8%);
  --shadow-lg: 0 2px 4px rgb(11 27 43 / 8%), 0 24px 60px rgb(11 27 43 / 18%);
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08141f;
    --bg-soft: #0d1d2c;
    --card: #11243a;
    --text: #e8eef3;
    --muted: #9aabba;
    --line: #1f3449;
    --icon-bg: #1d3954;
    --green-ink: #3ee09a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

/* ── Base ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--green-ink);
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.35em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--green);
  color: var(--ink);
}
.btn[aria-disabled='true'] {
  opacity: 0.75;
  cursor: progress;
}
.btn-primary:hover {
  background: #2fd893;
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text);
}
.on-dark .btn-ghost,
.site-header .btn-ghost,
.mobile-menu .btn-ghost {
  border-color: rgb(255 255 255 / 25%);
  color: #fff;
}
.on-dark .btn-ghost:hover,
.site-header .btn-ghost:hover,
.mobile-menu .btn-ghost:hover {
  border-color: #fff;
}
/* Secondary button on a light background */
.btn-outline {
  border-color: var(--green);
  color: var(--green-ink);
}
.btn-outline:hover {
  background: rgb(22 196 127 / 10%);
}
.btn-sm {
  padding: 0.55em 1em;
  font-size: 0.9375rem;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(11 27 43 / 92%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  color: #fff;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font: 800 1.6rem/1 var(--font-head);
  letter-spacing: -0.03em;
}
.logo img {
  width: 32px;
  height: 32px;
}
.main-nav {
  display: flex;
  gap: 1.75rem;
  margin-right: auto;
}
.main-nav a,
.lang-switch a {
  color: rgb(255 255 255 / 75%);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.975rem;
}
.main-nav a:hover,
.main-nav a[aria-current] {
  color: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang-switch {
  display: flex;
  gap: 0.15rem;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}
.lang-switch a {
  padding: 0.25em 0.5em;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-switch a[aria-current] {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}
.menu-toggle,
.mobile-demo {
  display: none;
}
.menu-toggle {
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #fff;
  cursor: pointer;
}
.menu-toggle .icon {
  width: 26px;
  height: 26px;
}
.menu-toggle .icon-close,
.menu-toggle[aria-expanded='true'] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded='true'] .icon-close {
  display: block;
}
.mobile-menu {
  position: fixed;
  inset: 64px 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0.5rem 16px calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--ink);
  animation: menu-in 0.2s ease-out;
}
.mobile-menu[hidden] {
  display: none;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.mobile-menu nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  color: #fff;
  text-decoration: none;
  font: 700 1.375rem/1.2 var(--font-head);
}
.mobile-menu nav a .icon {
  color: rgb(255 255 255 / 40%);
}
.mobile-menu-actions {
  display: grid;
  gap: 0.75rem;
}
.mobile-menu-actions .btn {
  justify-content: center;
  padding-block: 1em;
  font-size: 1.0625rem;
}
.mobile-lang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
  padding: 4px;
  border-radius: 12px;
  background: rgb(255 255 255 / 6%);
}
.mobile-lang a {
  padding: 0.7rem;
  border-radius: 9px;
  color: rgb(255 255 255 / 70%);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}
.mobile-lang a[aria-current] {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}
body.menu-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-header .container {
    gap: 0.75rem;
    height: 64px;
  }
  .main-nav,
  .header-actions {
    display: none;
  }
  .logo {
    margin-right: auto;
  }
  .menu-toggle {
    display: grid;
  }
  .mobile-demo {
    display: inline-flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none;
  }
}

/* ── Sections ───────────────────────────────────────────── */
.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.section-soft {
  background: var(--bg-soft);
}
.section-dark,
.hero {
  background: var(--ink);
  color: #e8eef3;
}
.section-dark h2,
.section-dark h3,
.hero h1 {
  color: #fff;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1rem;
  color: var(--green-ink);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.on-dark .eyebrow {
  color: var(--lime);
}
.section-head {
  max-width: 720px;
  margin-bottom: 3.5rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
}
.on-dark .lead {
  color: #a9b8c6;
}
.hl {
  color: var(--green);
}
.on-dark .hl {
  color: var(--lime);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero::before {
  content: '';
  position: absolute;
  inset: auto -20% -60% 30%;
  height: 120%;
  background: radial-gradient(closest-side, rgb(22 196 127 / 22%), transparent);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  margin-bottom: 1.5rem;
}
.hero .lead {
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1.5rem;
  color: #8fa2b4;
  font-size: 0.9rem;
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.hero-note .icon {
  color: var(--green);
  width: 1.05em;
}
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
}

/* ── Product mockups ────────────────────────────────────── */
.mock-stage {
  position: relative;
  padding: 2rem 0 3rem;
}
.mock {
  background: #fff;
  color: #0b1b2b;
  border-radius: 10px;
  /* a hairline around the window, so its dark band stands off the dark background (Gitea #40); not on the floating cards */
  box-shadow: 0 0 0 1px rgb(255 255 255 / 16%), var(--shadow-lg);
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.4;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  background: #f3f5f7;
  border-bottom: 1px solid #e3e8ee;
}
.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6dce3;
}
.mock-bar span {
  min-width: 0;
  margin-left: 0.75rem;
  overflow: hidden;
  color: #7a8794;
  font-size: 0.75rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-body {
  padding: 1.25rem 1.25rem 2.75rem;
}
/* The band of the app (Tribune): ink with a green line, square photo, position chip and the score ring */
.mock-band {
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--green);
  padding: 1rem 1.25rem;
}
.player-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: var(--ink-3);
  color: var(--green);
  font: 700 1.25rem var(--font-head);
  object-fit: cover; /* a photo instead of initials (Gitea #39) */
}
.player-head strong {
  display: block;
  font: 800 1.15rem/1.2 var(--font-head);
  letter-spacing: -0.01em;
}
.player-head .pos {
  display: inline-block;
  margin: 0.3rem 0.4rem 0 0;
  padding: 0.05em 0.45em;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 4px;
  background: var(--ink-2);
  font-size: 0.6875rem;
  font-weight: 700;
}
.player-head small {
  color: #9aabba;
  font-size: 0.75rem;
}
.ring-wrap {
  flex: none;
  margin-left: auto;
  display: grid;
  justify-items: center;
  gap: 0.15rem;
}
.ring-wrap small {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ring-wrap em {
  font-style: normal;
  color: var(--green);
  font-size: 0.6875rem;
  font-weight: 700;
}
@property --p {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}
.ring {
  --p: var(--to);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--ink) 80%, transparent 81%),
    conic-gradient(var(--ring) calc(var(--p) * 1%), rgb(255 255 255 / 14%) 0);
}
.ring span {
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
/* Tabs under the band, as in the app */
.mock-tabs {
  display: flex;
  gap: 1.1rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid #e3e8ee;
  color: #51606f;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.mock-tabs span {
  padding: 0.6rem 0 0.5rem;
  border-bottom: 2px solid transparent;
}
.mock-tabs span.on {
  color: #0b1b2b;
  border-color: var(--green);
}
.mock-tabs i {
  font-style: normal;
  margin-left: 0.2em;
  padding: 0 0.4em;
  border-radius: 999px;
  background: #edf0f3;
  font-size: 0.625rem;
}
.score {
  display: inline-grid;
  place-items: center;
  min-width: 2.6em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0b1b2b;
}
.score.s1 {
  background: var(--s1);
  color: #fff;
}
.score.s2 {
  background: var(--s2);
}
.score.s3 {
  background: var(--s3);
}
.score.s4 {
  background: var(--s4);
}
.score.s5 {
  background: var(--s5);
}
.mock-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
  align-items: center;
}
.radar text {
  font: 600 13px var(--font-body);
  fill: #51606f;
}
.legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
  color: #6b7885;
  font-size: 0.75rem;
}
.legend i {
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 0.35em;
  vertical-align: middle;
  border-radius: 2px;
  background: var(--green);
}
.legend i.dash {
  background: repeating-linear-gradient(90deg, #7a8794 0 4px, transparent 4px 7px);
}
.section-rows {
  display: grid;
  gap: 0.55rem;
}
.section-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
}
.section-row .bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 3px;
  background: #edf0f3;
  overflow: hidden;
}
.section-row .bar b {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--green); /* as in the app: the bar in the accent, the chip in the colour of the score */
}
.float-card {
  position: absolute;
  background: #fff;
  color: #0b1b2b;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}
.float-card strong {
  display: block;
  font-size: 0.875rem;
}
.float-round {
  left: -2rem;
  bottom: 0;
  width: 230px;
}
.float-ai {
  right: -0.5rem;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
@media (max-width: 960px) {
  .float-round {
    left: 1rem;
  }
  .float-ai {
    right: 1rem;
  }
}
.float-ai .icon {
  color: #0a7a4b;
  width: 1.4em;
  height: 1.4em;
}
.progress {
  height: 6px;
  margin-top: 0.5rem;
  border-radius: 3px;
  background: #edf0f3;
}
.progress b {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--green);
}
.dots {
  display: flex;
  gap: 4px;
  margin-top: 0.5rem;
}
.dots i {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--green);
}
.dots i.todo {
  background: #e3e8ee;
}
/* The hero mock builds itself up once it is in view (site.js adds .play); before that it waits at the start.
   Only with JS and without reduced motion; the end state is the normal state. */
@media (prefers-reduced-motion: no-preference) {
  .js .mock-stage .mock {
    animation: mock-rise 0.8s ease-out backwards;
  }
  .js .mock-stage .radar-avg {
    animation: mock-fade 0.8s 0.4s backwards;
  }
  .js .mock-stage .radar-player {
    transform-box: fill-box;
    transform-origin: 52.7% 53.6%; /* the centre of the radar (120,120) within this polygon */
    animation: radar-grow 1.3s 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.15) backwards;
  }
  .js .mock-stage .ring {
    animation: ring-fill 1.3s 0.5s cubic-bezier(0.33, 1, 0.68, 1) backwards;
  }
  .js .mock-stage .section-row .bar b {
    transform-origin: left;
    animation: bar-grow 0.8s calc(0.65s + var(--i) * 0.15s) ease-out backwards;
  }
  .js .mock-stage .section-row .score {
    animation: mock-fade 0.4s calc(0.65s + var(--i) * 0.15s) backwards;
  }
  .js .mock-stage .float-ai {
    animation: card-in 0.7s 1.7s ease-out backwards;
  }
  .js .mock-stage .float-round {
    animation: card-in 0.7s 2s ease-out backwards;
  }
  .js .mock-stage .dots i.just-done {
    animation: dot-fill 0.8s ease-out backwards;
  }
  /* last, so it wins over the animation shorthands above */
  .js .mock-stage:not(.play) :is(.mock, .ring, .radar-avg, .radar-player, .bar b, .score, .float-card) {
    animation-play-state: paused;
  }
}
@keyframes ring-fill {
  from {
    --p: 0;
  }
}
@keyframes mock-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes mock-fade {
  from {
    opacity: 0;
  }
}
@keyframes radar-grow {
  from {
    transform: scale(0);
  }
}
@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}
@keyframes dot-fill {
  from {
    background: #e3e8ee;
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.8);
  }
}
@media (max-width: 560px) {
  .mock-stage {
    padding: 0;
  }
  .mock-grid {
    grid-template-columns: 1fr;
  }
  /* the radar and its legend: the mock would otherwise be one and a half screens high */
  .mock-grid > div:first-child {
    display: none;
  }
  .radar {
    max-width: 300px;
    margin-inline: auto;
  }
  .float-card {
    position: relative;
    inset: auto;
  }
  .float-ai {
    width: max-content;
    margin: 0 0.75rem -1.75rem auto;
  }
  .float-round {
    margin: -1.75rem 0 0 0.75rem;
  }
}

/* ── Sports strip ───────────────────────────────────────── */
.sports {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.sports .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}
.sports p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}
.sports ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chip {
  padding: 0.4em 0.95em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ── Problem ────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.pain-list,
.check-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pain-list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pain-list .icon {
  color: var(--s1);
  margin-top: 0.2em;
}
.pain-list strong {
  display: block;
  margin-bottom: 0.15rem;
}
.pain-list span {
  color: var(--muted);
  font-size: 0.975rem;
}
.quote-q {
  font: 700 clamp(1.5rem, 2.6vw, 2rem) / 1.25 var(--font-head);
  letter-spacing: -0.015em;
  padding-left: 1.25rem;
  border-left: 4px solid var(--green);
  margin: 1.5rem 0 1.5rem;
}

/* ── Steps ──────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
@media (max-width: 960px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step-visual {
  display: grid;
  place-items: center;
  height: 290px;
  padding: 1.5rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.step-text {
  padding: 1.5rem 1.6rem 1.75rem;
}
.step-text h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.75em;
  height: 1.75em;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.8em;
  vertical-align: 0.1em;
}
.step-text p {
  color: var(--muted);
  font-size: 0.975rem;
  margin-bottom: 0;
}
.mini {
  width: 100%;
  max-width: 290px;
  min-height: 176px;
  background: #fff;
  color: #0b1b2b;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
  font-size: 0.8125rem;
}
/* Step 1: the evaluation round on a phone, as the app shows it there (the name above the score buttons); the phone
   stands on the bottom edge of the visual and its screen is cut off there (the screen clips, not the visual).
   .phone.phone-sm: the generic .phone rules come later in this file and would win otherwise */
.step-visual.step-visual-phone {
  align-items: start;
  height: 290px;
  padding: 1rem 1.5rem 0;
}
.phone.phone-sm {
  width: 220px;
  padding: 7px 7px 0;
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow);
}
.phone.phone-sm .phone-screen {
  border-radius: 22px 22px 0 0;
  height: 267px; /* 290px minus the padding above and the frame: the phone ends exactly on the edge */
}
.phone.phone-sm .mock-band {
  padding: 1rem 0.85rem 0.7rem;
}
.phone.phone-sm .avatar {
  width: 38px;
  height: 38px;
}
.phone.phone-sm .player-head {
  gap: 0.6rem;
}
.phone.phone-sm .player-head strong {
  font-size: 0.95rem;
}
.phone.phone-sm .player-head small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
}
.phone.phone-sm .player-head small + small {
  margin-top: 0;
  color: #fff;
  font-weight: 600;
}
.phone.phone-sm .phone-body {
  padding: 0.5rem 0.85rem 0;
}
.phone.phone-sm .mini-hint {
  margin: 0 0 0.2rem;
}
.phone.phone-sm .crit {
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  padding: 0.4rem 0;
  font-size: 0.75rem;
  font-weight: 600;
}
.phone.phone-sm .rate {
  justify-content: space-between;
}
.phone.phone-sm .rate i {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}
/* Card title with the accent bar, as in the app */
.mini-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.mini-title::before {
  content: '';
  flex: none;
  width: 10px;
  height: 3px;
  background: var(--green);
}
.mini-title small {
  margin-left: auto;
  color: #6b7885;
  font-weight: 500;
}
.mini-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: -0.35rem 0 0.4rem;
  color: #6b7885;
  font-size: 0.6875rem;
}
.mini-hint i {
  width: 10px;
  height: 10px;
  border: 1.5px dashed #51606f;
  border-radius: 50%;
}
.crit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-top: 1px solid #edf0f3;
}
.rate {
  display: flex;
  gap: 4px;
}
.rate i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d6dce3;
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #51606f;
}
/* The score of the previous evaluation: dashed until a score is chosen, as in the app's round */
.rate i.prev {
  border-style: dashed;
  border-color: #51606f;
  color: #13283d;
}
.rate i.on {
  border-color: transparent;
  color: #0b1b2b;
}
/* The chosen score has the colour of that score, as in the app */
.rate i.s1 {
  background: var(--s1);
  color: #fff;
}
.rate i.s2 {
  background: var(--s2);
}
.rate i.s3 {
  background: var(--s3);
}
.rate i.s4 {
  background: var(--s4);
}
.rate i.s5 {
  background: var(--s5);
}
.lineup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.lineup-col {
  min-height: 8.75rem; /* room for three players: Noor moves from the first column to the second */
  background: #f3f5f7;
  border-radius: 6px;
  padding: 0.5rem;
}
.lineup-col b {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
}
/* A player tile of Teamindeling: name, tags, score chip on the right */
.pchip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 4px;
  padding: 0.25rem 0.3rem 0.25rem 0.45rem;
  border: 1px solid #e3e8ee;
  border-radius: 4px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.pchip .score {
  margin-left: auto;
  min-width: 0;
  padding: 0 0.3em;
  font-size: 0.6875rem;
}
.pchip em {
  padding: 0 0.25em;
  border-radius: 3px;
  background: #fde4e2;
  color: #b42318;
  font-style: normal;
  font-size: 0.625rem;
}
/* On the smallest phones a column has no room for the tag next to name and score */
@media (max-width: 400px) {
  .pchip {
    gap: 0.15rem;
    padding-left: 0.35rem;
    font-size: 0.6875rem;
  }
  .pchip em {
    display: none;
  }
}
.pchip.drag {
  transform: rotate(-3deg) translate(6px, 2px);
  box-shadow: 0 6px 16px rgb(11 27 43 / 20%);
  outline: 2px solid var(--green);
}
.warn {
  margin-top: 0.5rem;
  color: #a35a00;
  font-size: 0.7rem;
  font-weight: 600;
}
/* Each step plays once when its visual is in view (site.js adds .play and a stagger --d); before that it waits at the
   start. Only with JS and without reduced motion; the end state is the normal state. */
@media (prefers-reduced-motion: no-preference) {
  .js .step .rate i.on {
    animation: rate-pick 0.5s calc(var(--d, 0s) + 0.3s + var(--i) * 0.6s) ease-out backwards;
  }
  .js .step .trend {
    stroke-dasharray: 1;
    animation: trend-draw 1.6s calc(var(--d, 0s) + 0.2s + var(--i) * 0.3s) ease-in-out backwards;
  }
  .js .step .pchip.drag {
    animation: pchip-move 1.8s calc(var(--d, 0s) + 0.4s) ease-in-out backwards;
  }
  .js .step .warn {
    animation: warn-in 0.5s calc(var(--d, 0s) + 2.4s) ease-out backwards;
  }
  .js .step:not(.play) :is(.rate i.on, .trend, .pchip.drag, .warn) {
    animation-play-state: paused;
  }
}
@keyframes rate-pick {
  from {
    border-color: #d6dce3;
    background: transparent;
    color: #8a96a3;
  }
  60% {
    transform: scale(1.3);
  }
}
@keyframes trend-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
/* Noor starts as third player in the first column (a column is 1rem wider than a chip, plus 0.6rem gap),
   is picked up and dropped at the top of the second column. */
@keyframes pchip-move {
  from {
    transform: rotate(0) translate(calc(-100% - 1.6rem), calc(200% + 8px));
    box-shadow: 0 1px 2px rgb(11 27 43 / 10%);
    outline-color: transparent;
  }
  25% {
    transform: rotate(-3deg) translate(calc(-100% - 1.6rem + 6px), calc(200% + 6px));
  }
}
@keyframes warn-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* ── AI section ─────────────────────────────────────────── */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
}
.check-list li {
  display: flex;
  gap: 0.8rem;
}
.check-list .icon {
  color: var(--green);
  margin-top: 0.25em;
}
.on-dark .check-list .icon {
  color: var(--lime);
}
.check-list strong {
  color: inherit;
}
.on-dark .check-list strong {
  color: #fff;
}
.ai-card {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  font-size: 0.9375rem;
}
.ai-card header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin-bottom: 1.1rem;
  color: #fff;
  font-weight: 600;
}
.ai-card header .icon {
  color: var(--lime);
}
.ai-card header small {
  margin-left: auto;
  color: #8fa2b4;
  font-weight: 500;
}
.ai-block {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgb(255 255 255 / 4%);
  margin-bottom: 0.6rem;
}
.ai-block b {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ai-block.plus b {
  color: var(--green);
}
.ai-block.min b {
  color: var(--s2);
}
.ai-block.tip b {
  color: var(--lime);
}
.ai-block p {
  margin: 0;
  color: #c6d2dd;
}
/* The AI summary writes itself once it is in view (site.js adds .play): skeleton lines shimmer, then each block's text
   comes into focus. Only with JS and without reduced motion; the end state is the normal state. */
@media (prefers-reduced-motion: no-preference) {
  .js .ai-card {
    animation: mock-rise 0.8s ease-out backwards;
  }
  .js .ai-card header .icon {
    animation: ai-spark 0.9s 0.4s ease-in-out backwards;
  }
  .js .ai-card .ai-block p {
    position: relative;
    animation: ai-text 0.9s calc(1.5s + var(--i) * 0.9s) ease-out backwards;
  }
  .js .ai-card .ai-block p::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(255 255 255 / 8%) 35%, rgb(255 255 255 / 18%) 50%, rgb(255 255 255 / 8%) 65%) 100% 0 / 300% 100%;
    mask: repeating-linear-gradient(transparent 0 0.3lh, #000 0.3lh 0.75lh, transparent 0.75lh 1lh);
    opacity: 0;
    animation: ai-skeleton calc(1.7s + var(--i) * 0.9s) linear backwards;
    pointer-events: none;
  }
  .js .ai-card:not(.play),
  .js .ai-card:not(.play) :is(header .icon, .ai-block p),
  .js .ai-card:not(.play) .ai-block p::after {
    animation-play-state: paused;
  }
}
@keyframes ai-spark {
  50% {
    transform: scale(1.35) rotate(20deg);
  }
}
@keyframes ai-text {
  from {
    color: transparent;
    text-shadow: 0 0 8px rgb(198 210 221 / 70%);
  }
}
@keyframes ai-skeleton {
  from {
    opacity: 1;
    background-position: 100% 0;
  }
  85% {
    opacity: 1;
  }
  to {
    opacity: 0;
    background-position: -200% 0;
  }
}
.ai-note {
  margin: 1.75rem 0 0;
  color: #8fa2b4;
  font-size: 0.9375rem;
}

/* ── Portal ─────────────────────────────────────────────── */
.phone {
  width: 280px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 38px;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  color: #0b1b2b;
  font-size: 0.8125rem;
}
.phone-screen .mock-band {
  padding: 1.6rem 1rem 0.9rem;
}
.phone-screen .avatar {
  width: 44px;
  height: 44px;
}
.phone-screen .player-head {
  gap: 0.65rem;
}
.phone-screen .ring {
  width: 50px;
  height: 50px;
}
.phone-screen .ring span {
  font-size: 0.9375rem;
}
.phone-screen .mock-tabs {
  gap: 0.9rem;
  padding: 0 1rem;
  font-size: 0.6875rem;
}
.phone-body {
  padding: 0.85rem 1rem 1.25rem;
}
/* The eyebrow of the band (the app shows the club's name there) */
.phone-tag {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--green);
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.75rem;
  text-align: center;
}
.stat-row div {
  padding: 0.5rem 0.25rem;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  background: #fff;
}
.stat-row b {
  display: block;
  font: 800 1.1rem var(--font-head);
}
.stat-row small {
  color: #6b7885;
  font-size: 0.6875rem;
}
/* The phone builds itself up once it is in view (site.js adds .play), like the hero mock; the end state is the normal
   state. Only with JS and without reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .portal .phone {
    animation: mock-rise 0.8s ease-out backwards;
  }
  .js .portal .phone .section-row .bar b {
    transform-origin: left;
    animation: bar-grow 0.8s calc(0.65s + var(--i) * 0.15s) ease-out backwards;
  }
  .js .portal .phone .section-row .score {
    animation: mock-fade 0.4s calc(0.65s + var(--i) * 0.15s) backwards;
  }
  .js .portal .phone .ring {
    animation: ring-fill 1.3s 0.5s cubic-bezier(0.33, 1, 0.68, 1) backwards;
  }
  .js .portal .phone .stat-row div {
    animation: mock-fade 0.6s 1.3s backwards;
  }
  .js .portal .phone:not(.play),
  .js .portal .phone:not(.play) :is(.ring, .bar b, .score, .stat-row div) {
    animation-play-state: paused;
  }
}

/* ── Real screens (Gitea #37) ───────────────────────────── */
.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.screen-tabs button {
  padding: 0.45em 1.1em;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}
.screen-tabs button:hover {
  border-color: var(--lime);
}
.screen-tabs button[aria-selected='true'] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}
.screen {
  margin: 0;
}
.screen-frame {
  max-width: 1100px;
  margin-inline: auto;
}
.screen-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.screen figcaption {
  max-width: 62ch;
  margin: 1.25rem auto 0;
  text-align: center;
  color: #b6c2cc;
}
.screen figcaption strong {
  color: #fff;
}
/* With JS the tabs show one screen; without JS they are all shown, one below the other */
.js .screen:not(.on) {
  display: none;
}
/* The screen rises once it is in view (site.js adds .play), and again when another tab is chosen */
@media (prefers-reduced-motion: no-preference) {
  .js .screens .screen-frame {
    animation: mock-rise 0.8s ease-out backwards;
  }
  .js .screens:not(.play) .screen-frame {
    animation-play-state: paused;
  }
}
/* Small screens: no tabs, the screens side by side to swipe through */
@media (max-width: 860px) {
  .screen-tabs {
    display: none;
  }
  .screen-track {
    display: flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .js .screen:not(.on) {
    display: block;
  }
  .screen {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }
  .screen figcaption {
    text-align: left;
  }
}

/* ── Feature grid ───────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feature {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature .icon-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--lime);
}
.feature h3 {
  font-size: 1.075rem;
  margin-bottom: 0.35rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
/* Cards lift a little under the mouse (not on touch screens, nor in the list of features on small screens) */
@media (hover: hover) and (min-width: 561px) and (prefers-reduced-motion: no-preference) {
  .feature,
  .pain-list li,
  .start-steps li {
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .feature:hover,
  .pain-list li:hover,
  .start-steps li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
  .feature .icon-wrap {
    transition: background 0.2s, color 0.2s;
  }
  .feature:hover .icon-wrap {
    background: var(--green);
    color: var(--ink);
  }
}

/* ── Getting started ────────────────────────────────────── */
.start-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: start;
}
.start-steps li {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.start-steps li::before {
  counter-increment: start;
  content: counter(start);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-weight: 700;
}
.start-steps h3 {
  font-size: 1.075rem;
  margin-bottom: 0.35rem;
}
.start-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
.start-steps a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.75rem;
  font-weight: 600;
}

/* ── Pricing ────────────────────────────────────────────── */
.ai-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-weight: 600;
}
.ai-toggle > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.ai-toggle .icon {
  color: var(--green-ink);
}
.switch {
  position: relative;
  width: 52px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s;
}
.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(11 27 43 / 25%);
  transition: transform 0.2s;
}
.switch[aria-checked='true'] {
  background: var(--green);
}
.switch[aria-checked='true'] span {
  transform: translateX(22px);
}
.calc {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  max-width: 980px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.calc-input {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.calc-label {
  display: block;
  font-weight: 600;
}
.calc-count {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-weight: 500;
}
.calc-count output {
  color: var(--text);
  font: 800 2.75rem/1 var(--font-head);
  letter-spacing: -0.02em;
}
.calc input[type='range'] {
  --fill: 8%;
  width: 100%;
  height: 8px;
  margin: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green) var(--fill), var(--line) var(--fill));
  appearance: none;
  cursor: pointer;
}
.calc input[type='range']::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  border: 4px solid var(--green);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(11 27 43 / 25%);
  appearance: none;
}
.calc input[type='range']::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 4px solid var(--green);
  border-radius: 50%;
  background: #fff;
}
.calc-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.8125rem;
}
.calc-hint {
  margin: 1rem 0 1.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.calc .ai-toggle {
  justify-content: flex-start;
  margin: 0;
}
.calc-result {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  color: #c6d2dd;
}
.calc-result-label {
  color: var(--lime);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.calc-result .price {
  margin: 0.5rem 0 1.25rem;
  color: #fff;
  font: 800 3rem/1 var(--font-head);
  letter-spacing: -0.02em;
}
.calc-result .price small {
  color: #a9b8c6;
  font: 500 1rem var(--font-body);
  letter-spacing: 0;
}
.calc-lines {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  list-style: none;
  font-size: 0.9375rem;
}
.calc-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
/* The AI line keeps its space when AI is off, so the card does not change height (and nothing below shifts) */
.calc-lines li[hidden] {
  display: flex;
  visibility: hidden;
}
.calc-vat {
  margin: 0.75rem 0 1.5rem;
  color: #8fa2b4;
  font-size: 0.875rem;
}
.calc-ctas {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
}
.calc-ctas .btn {
  justify-content: center;
}
.calc-more {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 760px) {
  .calc {
    grid-template-columns: 1fr;
  }
}
.included {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.included h3 {
  margin-bottom: 1rem;
}
.included .check-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}
.included-ai {
  margin-top: 1.5rem;
}
.included-ai h3 {
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.included-ai h3 .icon {
  color: var(--green-ink);
}
.included-ai > p {
  color: var(--muted);
}
.included-ai .note,
.included-ai .section-link {
  max-width: none;
  text-align: left;
}
.calc-ai-hint {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.price-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 3rem;
  margin-top: 2.5rem;
}
.price-faq h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.price-faq p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 900px) {
  .included .check-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .price-faq,
  .included .check-list {
    grid-template-columns: 1fr;
  }
}
.draft-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq {
  max-width: 800px;
  margin-inline: auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1.075rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: 0 0 1em;
  align-self: flex-start;
  height: 1em;
  color: var(--green-ink);
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--muted);
  padding-bottom: 0.5rem;
}
.faq-group {
  margin: 2.5rem 0 0.25rem;
  color: var(--green-ink);
  font: 700 0.8125rem/1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.faq-group:first-child {
  margin-top: 0;
}
.faq-body {
  padding-bottom: 1rem;
}
.ai-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.25rem 0 1rem;
}
.ai-data > div {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.ai-data h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}
.ai-data ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.ai-data li + li {
  margin-top: 0.3rem;
}
@media (max-width: 640px) {
  .ai-data {
    grid-template-columns: 1fr;
  }
}
.ai-note a {
  color: var(--lime);
}

/* ── CTA band ───────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #c6d2dd;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -50% 20% auto;
  height: 100%;
  background: radial-gradient(closest-side, rgb(212 245 90 / 16%), transparent);
}
.cta-band > * {
  position: relative;
}
.cta-band h2 {
  color: #fff;
}
.cta-band .lead {
  max-width: 38em;
  margin-inline: auto;
}
.cta-band .hero-ctas {
  justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding: 4rem 0 2.5rem;
  background: var(--ink);
  color: #8fa2b4;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.site-footer .logo {
  color: #fff;
  margin-bottom: 1rem;
}
.site-footer h4 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 0.9375rem;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.site-footer a {
  color: #8fa2b4;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.875rem;
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Small screens ──────────────────────────────────────── */
@media (max-width: 860px) {
  .portal > .phone {
    order: 1;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }
  .lead {
    font-size: 1.0625rem;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .section-head {
    margin-bottom: 2.25rem;
  }
  .step-visual {
    height: auto;
  }
  .included {
    padding: 1.5rem;
  }
  .features {
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
  }
  .feature {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    padding: 1.1rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .feature:last-child {
    border-bottom: 0;
  }
  .feature .icon-wrap {
    grid-row: span 2;
    width: 40px;
    height: 40px;
    margin: 0;
  }
  .cta-band {
    padding: 2.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

/* ── Simple pages (placeholder, 404) ────────────────────── */
.page-simple {
  min-height: 50vh;
}
.page-simple .container {
  max-width: 720px;
}

/* ── Page hero (subpages) ───────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--ink);
  color: #e8eef3;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto 40%;
  height: 140%;
  background: radial-gradient(closest-side, rgb(22 196 127 / 18%), transparent);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
}
.page-hero h1 {
  max-width: 18em;
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}
.page-hero .lead {
  max-width: 40em;
  margin-bottom: 0;
}
/* The theme bar continues the page hero and then stays below the site header (73px, 65px up to 900px wide). The
   theme in view lights up (site.js); themes that do not fit on one line scroll sideways. */
.page-hero:has(+ .theme-bar) {
  padding-bottom: 1.25rem;
}
.theme-bar {
  --bar-top: 73px;
  position: sticky;
  top: var(--bar-top);
  z-index: 40;
  padding: 0.75rem 0;
  background: var(--ink);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}
@media (max-width: 900px) {
  .theme-bar {
    --bar-top: 65px;
  }
}
.theme-nav {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.theme-nav li {
  flex: none;
}
.theme-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 0.95em;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}
.theme-nav a:hover {
  border-color: var(--lime);
}
.theme-nav a[aria-current] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}
.theme-nav a[aria-current] .icon {
  color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  .theme-nav a,
  .theme-nav .icon {
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
}
.theme-nav .icon {
  color: var(--lime);
  width: 1.05em;
  height: 1.05em;
}

/* ── Feature themes ─────────────────────────────────────── */
.theme {
  padding: clamp(3rem, 7vw, 5rem) 0;
  scroll-margin-top: calc(73px + 4rem); /* site header + theme bar */
}
.theme:nth-child(even) {
  background: var(--bg-soft);
}
.theme .container {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.theme-head {
  position: sticky;
  top: 96px;
}
.theme-head .icon-wrap {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--icon-bg);
  color: var(--lime);
}
.theme-head .icon-wrap .icon {
  width: 1.5em;
  height: 1.5em;
}
.theme-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.theme-head p {
  color: var(--muted);
}
.theme-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.theme-items li {
  padding: 1.35rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.theme-items h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.theme-items h3 .icon {
  color: var(--green-ink);
}
.theme-items p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (max-width: 900px) {
  .theme .container {
    grid-template-columns: 1fr;
  }
  .theme-head {
    position: static;
  }
}
@media (max-width: 600px) {
  .theme-items {
    grid-template-columns: 1fr;
  }
}

/* ── Pricing page ───────────────────────────────────────── */
.price-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.price-table th,
.price-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.price-table th:first-child,
.price-table td:first-child {
  text-align: left;
}
.price-table thead th {
  background: var(--bg-soft);
  font-size: 0.875rem;
}
.price-table tbody tr:last-child td {
  border-bottom: 0;
}
.section-link {
  margin: 1.75rem 0 0;
  text-align: center;
  font-weight: 600;
}
.section-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.note {
  margin: 1.25rem auto 0;
  max-width: 44em;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ── Forms ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-side {
    order: 1;
  }
}
.contact-side {
  display: grid;
  gap: 2rem;
}
.contact-side h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}
.contact-side h2 .icon {
  color: var(--green-ink);
}
.contact-side p {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.975rem;
}
.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}
.field label,
.field legend {
  padding: 0;
  font-weight: 600;
  font-size: 0.9375rem;
}
.field legend {
  margin-bottom: 0.4rem;
}
.optional {
  color: var(--muted);
  font-weight: 400;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
}
.field textarea {
  resize: vertical;
  min-height: 9rem;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(22 196 127 / 20%);
}
.field [aria-invalid='true'] {
  border-color: var(--s1);
}
.field-error {
  margin: 0;
  color: var(--s1);
  font-size: 0.875rem;
  font-weight: 600;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
}
.choice span {
  display: inline-block;
  padding: 0.5em 1em;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.choice input:checked + span {
  border-color: var(--green);
  background: rgb(22 196 127 / 12%);
  color: var(--green-ink);
}
.choice input:focus-visible + span {
  outline: 3px solid rgb(22 196 127 / 40%);
}
.alert {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgb(229 72 77 / 10%);
  border: 1px solid rgb(229 72 77 / 35%);
  color: var(--text);
  font-size: 0.9375rem;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.form-sent {
  text-align: center;
  padding: 1.5rem 0;
}
.form-sent .icon-wrap {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgb(22 196 127 / 15%);
  color: var(--green-ink);
}
.form-sent .icon-wrap .icon {
  width: 1.6em;
  height: 1.6em;
}
.form-sent p {
  color: var(--muted);
}

/* ── Sign-up ────────────────────────────────────────────── */
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
@media (max-width: 960px) {
  .signup-grid {
    grid-template-columns: 1fr;
  }
}
.signup-summary {
  position: sticky;
  top: 96px;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #c6d2dd;
}
@media (max-width: 960px) {
  .signup-summary {
    position: static;
    order: -1;
  }
}
.signup-summary .price {
  margin: 0.5rem 0 1.25rem;
  color: #fff;
  font: 800 2.6rem/1 var(--font-head);
}
.signup-summary .price small {
  color: #a9b8c6;
  font: 500 1rem var(--font-body);
}
.summary-list {
  gap: 0.5rem;
  font-size: 0.9375rem;
}
.summary-list .icon {
  color: var(--lime);
}
.form-section {
  margin: 2rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}
.form-card > .form-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
}
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(22 196 127 / 20%);
}
.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 500 !important;
  cursor: pointer;
}
.check input {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  accent-color: var(--green);
}
.check .icon {
  margin-right: 0.3em;
  color: var(--green-ink);
  vertical-align: -0.2em;
}
.next-steps {
  max-width: 34em;
  margin: 0.5rem auto 1.75rem;
  padding-left: 1.25rem;
  color: var(--muted);
  text-align: left;
}
.next-steps li + li {
  margin-top: 0.4rem;
}

/* ── Sign-up wizard (without JavaScript: one long form) ─── */
.wizard-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.wizard-step + .wizard-step {
  margin-top: 2rem;
}
.wizard-step > legend {
  float: left;
  width: 100%;
}
.wizard-step > legend + * {
  clear: both;
}
.form-subsection {
  margin: 1.5rem 0 1rem;
  font-size: 1rem;
}
.wizard-steps,
.review,
html:not(.js) [data-next],
html:not(.js) [data-prev] {
  display: none;
}
.js .wizard-steps {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.wizard-steps li {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 4px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.wizard-steps li span {
  display: none;
}
.wizard-steps li.done {
  border-top-color: var(--green);
}
.wizard-steps li.active {
  border-top-color: var(--green);
  color: var(--text);
}
.js .wizard-step + .wizard-step {
  margin-top: 0;
}
.js .wizard-step > legend {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.wizard-nav [data-next],
.wizard-nav [type='submit'] {
  margin-left: auto;
}
.js .review {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}
.review-group {
  padding: 0.9rem 1.15rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}
.review-head h3 {
  margin: 0;
  font-size: 1rem;
}
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green-ink);
  font: 600 0.875rem var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}
.review dl {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.35rem 1rem;
  margin: 0;
  font-size: 0.9375rem;
}
.review dt {
  color: var(--muted);
}
.review dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}
@media (max-width: 560px) {
  .wizard-steps li {
    font-size: 0;
  }
  .wizard-steps li.active {
    font-size: 0.8125rem;
  }
  .review dl {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .review dd {
    margin-bottom: 0.45rem;
  }
}
.wizard {
  scroll-margin-top: 88px;
}
.wizard-step > legend {
  padding: 0;
  color: var(--text);
  font: 700 1.25rem/1.2 var(--font-head);
  letter-spacing: -0.01em;
}
.check .icon {
  display: inline-block;
}
/* Fields keep their size when a neighbouring field shows an error */
.field {
  align-content: start;
}
.field-narrow {
  max-width: 320px;
}
/* With the wizard active, the progress bar names the step; the legend stays for screen readers */
.js .wizard-step > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Step 1 of the sign-up: stepper for the number of players and a switch for AI */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.field .stepper input {
  width: 7.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  -moz-appearance: textfield;
}
.field .stepper input::-webkit-inner-spin-button,
.field .stepper input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.stepper-btn {
  flex: 0 0 auto;
  width: 2.9rem;
  height: 2.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font: 600 1.35rem/1 var(--font-body);
  cursor: pointer;
}
.stepper-btn:hover {
  border-color: var(--green);
  color: var(--green-ink);
}
.stepper-unit {
  margin-left: 0.25rem;
  color: var(--muted);
  font-weight: 500;
}
html:not(.js) .stepper-btn {
  display: none;
}
.ai-field {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.toggle {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  cursor: pointer;
}
.field .toggle input {
  flex: 0 0 auto;
  position: relative;
  width: 46px;
  height: 26px;
  margin: 0.1rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  appearance: none;
  cursor: pointer;
  transition: background 0.2s;
}
.field .toggle input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(11 27 43 / 25%);
  transition: transform 0.2s;
}
.field .toggle input:checked {
  background: var(--green);
}
.field .toggle input:checked::after {
  transform: translateX(20px);
}
.field .toggle input:focus-visible {
  outline: 3px solid rgb(22 196 127 / 40%);
  outline-offset: 2px;
  box-shadow: none;
}
.toggle-text strong {
  display: block;
  font-size: 1rem;
}
.toggle-text small {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}
@media (max-width: 400px) {
  .stepper-unit {
    display: none;
  }
}

/* ── Legal pages ────────────────────────────────────────── */
.legal {
  max-width: 820px;
}
.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.5rem;
}
.legal h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
}
.legal p,
.legal li {
  color: var(--text);
}
.legal ul,
.legal ol {
  padding-left: 1.4rem;
}
.legal li + li {
  margin-top: 0.3rem;
}
.legal blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1.1rem;
  border-left: 4px solid var(--s3);
  background: var(--bg-soft);
  border-radius: 0 10px 10px 0;
}
.legal blockquote p:last-child {
  margin: 0;
}
.legal code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--bg-soft);
  font-size: 0.9em;
}
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.legal th,
.legal td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--bg-soft);
}
.legal hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.alert-info {
  background: var(--bg-soft);
  border-color: var(--line);
}

/* A field with an error gets a rounded red frame around label, input and message.
   Every field has the same (invisible) frame and padding, cancelled out by a negative margin,
   so showing the frame moves nothing. */
.form-card .field {
  margin: -0.6rem -0.75rem 1rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid transparent;
  border-radius: 12px;
}
.form-card .field-row {
  gap: 0 2.25rem;
}
.form-card .field:has([aria-invalid='true']) {
  border-color: var(--s1);
  background: rgb(229 72 77 / 6%);
}
