/* Repetta website (draft). Colours come from the app:
   Look.swift (ground, scoreboard, lime/mint/cyan) and AccentColor. */

:root {
  /* Light mode is softened (Nov 7 2026: "the white is REALLY white"):
     no pure white, the ground a shade deeper than the app's #F3F5F2. */
  --ground: #ECEFE9;
  --band: #F4F6F2;
  --surface: #FBFCFA;
  --ink: #0E1411;
  --ink-2: #4A544E;
  --ink-3: #6B756F;
  --line: rgba(14, 20, 17, 0.09);
  --accent: #177F47;
  --accent-ink: #FFFFFF;
  --board: #0E1411;
  --board-2: #161D19;
  --board-ink: #F2F6F3;
  --board-ink-2: #A9B5AE;
  --lime: #A8F26A;
  --mint: #4CE0A8;
  --cyan: #12CDCC;
  --grad: linear-gradient(100deg, #C8FA55 0%, #89F9A1 35%, #37F3CF 70%, #00E9EE 100%);
  /* closest-side: each glow fades out before it reaches its box's edge, so
     the box never shows as a hard line. */
  --glow: radial-gradient(closest-side at 38% 45%, rgba(168, 242, 106, 0.35), transparent),
          radial-gradient(closest-side at 66% 55%, rgba(18, 205, 204, 0.28), transparent);
  --radius: 24px;
  --shadow: 0 1px 2px rgba(14, 20, 17, 0.04), 0 8px 24px rgba(14, 20, 17, 0.06);
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #070B09;
    --surface: #121915;
  --band: #0D1310;
    --band: #0D1310;
    --ink: #F2F6F3;
    --ink-2: #B9C3BD;
    --ink-3: #8E9A93;
    --line: rgba(242, 246, 243, 0.09);
    --accent: #3BCB77;
    --accent-ink: #06130B;
    --board: #121915;
    --board-2: #1A231E;
    --shadow: 0 0 0 1px rgba(242, 246, 243, 0.06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #070B09;
  --surface: #121915;
  --band: #0D1310;
  --ink: #F2F6F3;
  --ink-2: #B9C3BD;
  --ink-3: #8E9A93;
  --line: rgba(242, 246, 243, 0.09);
  --accent: #3BCB77;
  --accent-ink: #06130B;
  --board: #121915;
  --board-2: #1A231E;
  --shadow: 0 0 0 1px rgba(242, 246, 243, 0.06);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--rounded); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Draft ribbon */
.draft {
  background: var(--board); color: var(--board-ink-2);
  font-size: 13px; text-align: center; padding: 7px 16px;
}
.draft b { color: var(--lime); font-weight: 600; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 21px var(--rounded); letter-spacing: -0.02em; }
.brand .tile { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(#16243A, #0B1320); display: grid; place-items: center; }
.brand .tile img { width: 26px; }
nav.main { display: flex; gap: 22px; margin-left: auto; }
nav.main a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.main a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--ground);
  font: 600 15px var(--text); text-decoration: none;
  padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
}
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
header.top .actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { nav.main { display: none; } header.top .actions { margin-left: auto; } }

/* Light / dark switch: a moon in light mode, a sun in dark mode. */
.theme-toggle {
  appearance: none; cursor: pointer; padding: 0; flex: none;
  width: 38px; height: 38px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Sections */
section { padding: 96px 0; }
.eyebrow {
  font: 700 13px var(--text); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: 19px; color: var(--ink-2); max-width: 620px; margin-top: 18px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.grad-text { white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -10% -20% auto auto; width: 70%; height: 110%; background: var(--glow); filter: blur(10px); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pill { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink-2); }
.hero h1 .line2 { display: block; }
.hero .lede { font-size: 20px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.fine { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Phone demo */
.phone {
  width: min(330px, 100%); aspect-ratio: 9 / 19; margin-inline: auto;
  border-radius: 52px; padding: 11px; background: #050806;
  box-shadow: 0 30px 80px -20px rgba(14, 20, 17, 0.45), inset 0 0 0 1.5px #2a332e;
  position: relative;
}
.phone .screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; position: relative; background: #0b100d; display: flex; flex-direction: column; }
.phone .island { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 27px; background: #000; border-radius: 20px; z-index: 3; }
.cam { flex: 1; position: relative; background:
  radial-gradient(80% 60% at 50% 30%, #2b3530 0%, #141a17 60%, #0b100d 100%); }
.cam::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(transparent, rgba(0,0,0,0.25)); }
.cam svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam .angle { position: absolute; top: 58px; left: 16px; font: 600 12px var(--text); color: var(--board-ink-2); background: rgba(0,0,0,0.35); padding: 5px 9px; border-radius: 99px; }
.cam .live { position: absolute; top: 58px; right: 16px; font: 600 12px var(--text); color: var(--board-ink); background: rgba(0,0,0,0.35); padding: 5px 9px; border-radius: 99px; display: flex; gap: 6px; align-items: center; }
.cam .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.board { background: var(--board); color: var(--board-ink); padding: 16px 18px 22px; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.dial { position: relative; width: 112px; height: 112px; }
.dial svg { width: 100%; height: 100%; }
.dial .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.dial .num b { font: 800 40px/1 var(--rounded); letter-spacing: -0.03em; display: block; }
.dial .num span { font-size: 11px; color: var(--board-ink-2); }
.board .what { font: 700 17px var(--rounded); }
.board .sub { font-size: 12.5px; color: var(--board-ink-2); margin-top: 3px; }
.board .finish { margin-top: 10px; display: inline-block; background: #fff; color: #0E1411; font: 700 13px var(--text); padding: 7px 14px; border-radius: 99px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--board); color: var(--lime); display: grid; place-items: center; font: 800 16px var(--rounded); margin-bottom: 18px; }
.step p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.feats { display: grid; gap: 22px; margin-top: 32px; }
.feat { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.feat .ic { width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: grid; place-items: center; }
.feat .ic svg { width: 16px; height: 16px; }
.feat p { color: var(--ink-2); font-size: 15.5px; margin-top: 3px; }
.tag { display: inline-block; font: 700 11px var(--text); letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; vertical-align: 2px; margin-left: 6px; }
.tag.free { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.tag.unl { background: var(--board); color: var(--lime); }
.note { margin-top: 26px; padding: 14px 16px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 0 12px 12px 0; font-size: 15px; color: var(--ink-2); }

/* Scoreboard card (dark, like the app's Today) */
.scorecard { background: var(--board); color: var(--board-ink); border-radius: 32px; padding: 32px; position: relative; overflow: hidden; }
.scorecard::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 90%; height: 120%; background: var(--glow); opacity: 0.9; pointer-events: none; }
.scorecard > * { position: relative; }
.scorecard .lbl { font-size: 13px; color: var(--board-ink-2); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.big2 { display: flex; gap: 36px; margin-top: 12px; }
.big2 b { font: 800 46px/1 var(--rounded); letter-spacing: -0.03em; }
.big2 span { display: block; font-size: 13px; color: var(--board-ink-2); margin-top: 6px; }
.weeks { display: flex; gap: 6px; align-items: flex-end; height: 92px; margin-top: 28px; }
.weeks i { flex: 1; border-radius: 6px 6px 3px 3px; background: rgba(242, 246, 243, 0.13); }
.weeks i.on { background: var(--grad); }
.medals { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 26px; }
.medal { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #0E1411; background: var(--grad); }
.medal.off { background: rgba(242, 246, 243, 0.08); color: var(--board-ink-2); box-shadow: inset 0 0 0 1.5px rgba(242, 246, 243, 0.12); }

/* Exercises */
.ex-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
@media (max-width: 1000px) { .ex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ex { background: var(--surface); border-radius: 20px; padding: 18px 16px 16px; box-shadow: var(--shadow); position: relative; }
.ex .icon { width: 64px; height: 64px; background: var(--ink); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.ex h3 { font-size: 16px; margin-top: 12px; }
.ex .kind { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.ex .tag { position: absolute; top: 14px; right: 12px; margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 14px; color: var(--ink-3); }

/* Repetta library */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tabs button { font: 600 15px var(--text); padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 26px; }
.rcard { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rcard .meta { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.rcard .new { font: 700 11px var(--text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.rcard ol { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 10px; }
.rcard li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; font-size: 15px; }
.rcard li .mi { width: 30px; height: 30px; background: var(--ink-2); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.rcard li b { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 14px; }
.rcard .acts { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.rcard .qr { display: none; margin-top: 16px; text-align: center; }
.rcard .qr.open { display: block; }
.rcard .qr .code { width: 180px; margin: 0 auto; background: #fff; padding: 10px; border-radius: 14px; }
.rcard .qr .code svg { width: 100%; height: auto; display: block; }
.rcard .qr p { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* Challenges */
.ch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 40px; }
.ch { background: var(--surface); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.ch .segs { display: flex; gap: 2px; width: 70px; flex: none; }
.ch .segs i { flex: 1; height: 8px; border-radius: 2px; background: var(--line); }
.ch .segs i.on { background: var(--accent); }
.ch h3 { font-size: 15.5px; }
.ch p { font-size: 13px; color: var(--ink-3); }
.ramps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.ramp { background: var(--surface); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.ramp svg { width: 100%; height: 72px; display: block; margin-bottom: 10px; }
.ramp p { font-size: 14px; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 700px) { .ramps { grid-template-columns: 1fr; } }

/* Watch */
.watch { width: 210px; height: 254px; margin-inline: auto; border-radius: 58px; background: #050806; padding: 14px; box-shadow: 0 30px 70px -20px rgba(14,20,17,0.5), inset 0 0 0 1.5px #2a332e; position: relative; }
.watch::after { content: ""; position: absolute; right: -9px; top: 70px; width: 9px; height: 46px; border-radius: 0 6px 6px 0; background: #1b221e; }
.watch .face { width: 100%; height: 100%; border-radius: 46px; background: #000; color: var(--board-ink); display: grid; place-items: center; text-align: center; }
.watch .dial { width: 128px; height: 128px; }
.watch .hr { font: 700 15px var(--rounded); color: #FF5A6E; margin-top: 4px; }

/* Principles */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.trio > div { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.trio .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--board); color: var(--lime); display: grid; place-items: center; margin-bottom: 18px; }
.trio .ic svg { width: 22px; height: 22px; }
.trio p { color: var(--ink-2); font-size: 15.5px; margin-top: 8px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* Safety */
.safety { background: var(--surface); border-radius: 32px; padding: 44px; box-shadow: var(--shadow); }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px 36px; margin-top: 32px; }
.safety-grid h3 { font-size: 17px; }
.safety-grid p { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; }
@media (max-width: 600px) { .safety { padding: 28px 22px; } }

/* Pricing */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; max-width: 900px; margin-inline: auto; text-align: left; }
.price { background: var(--surface); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
/* Unlimited: the scoreboard surface with a hairline in the brand gradient and
   the paywall's dial (one tick per exercise, the paid ones lit). */
.price.unl {
  color: var(--board-ink); position: relative;
  border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, rgba(168, 242, 106, 0.07), transparent 45%) padding-box,
    linear-gradient(var(--board), var(--board)) padding-box,
    linear-gradient(135deg, rgba(200, 250, 85, 0.75), rgba(55, 243, 207, 0.55) 45%, rgba(242, 246, 243, 0.08) 75%) border-box;
}
.price .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.price .unl-dial { width: 76px; height: 76px; flex: none; margin: -6px -6px 0 0; position: relative; }
.price .unl-dial svg { width: 100%; height: 100%; display: block; }
.price .unl-dial span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 17px var(--rounded); }
.price .amt { font: 800 44px/1 var(--rounded); letter-spacing: -0.03em; margin: 14px 0 4px; }
.price .per { font-size: 14px; color: var(--ink-3); }
.price.unl .per { color: var(--board-ink-2); }
.price ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 11px; font-size: 15.5px; }
.price li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.price li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23177F47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.price.unl li::before { background: rgba(168, 242, 106, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23A8F26A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (max-width: 760px) { .prices { grid-template-columns: minmax(0, 1fr); } }
/* Small phones: room for a long price (29,99 lei) beside the dial. */
@media (max-width: 400px) {
  .price { padding: 26px 22px; }
  .price .unl-dial { width: 60px; height: 60px; }
  .price .amt { font-size: 40px; }
}

/* FAQ */
.faq { max-width: 780px; margin: 44px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font: 700 17px var(--rounded); padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-3); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-2); padding: 0 0 18px; font-size: 16px; }

/* Final CTA + footer */
.final { text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 900px; height: 500px; background: var(--glow); pointer-events: none; }
.final > * { position: relative; }
.final img.mark { width: 92px; margin: 0 auto 26px; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-top: 6px; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); font-size: 16.5px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin: 12px 0; }
.legal .summary { background: var(--board); color: var(--board-ink); border-radius: 24px; padding: 26px 28px; margin-top: 30px; }
.legal .summary p { color: var(--board-ink); }
.legal .summary p + p { color: var(--board-ink-2); }
.legal .note { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-top: 26px; }
.legal .note p { font-size: 15.5px; }
.legal li b, .legal p b { color: var(--ink); font-weight: 600; }
.legal .summary b { color: var(--board-ink); }
.legal address { font-style: normal; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.legal .todo { background: color-mix(in srgb, #F2B01E 16%, transparent); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; color: var(--ink); margin-top: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Full-width bands and the free price card */
.band { background: var(--band); }
.price.free { background: var(--ground); }

/* Language menu (as on circloop.app) */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: 600 14px var(--text);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--accent); }
.lang-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-menu .lang-short { display: none; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 210px;
  display: grid; padding: 6px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -12px rgba(14, 20, 17, 0.3);
}
.lang-item { padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
a.lang-item:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.lang-item.current { color: var(--accent); font-weight: 700; }
@media (max-width: 860px) {
  .lang-menu .lang-long { display: none; }
  .lang-menu .lang-short { display: inline; }
}
@media (max-width: 480px) { header.top .btn.get { display: none; } }

/* Long words (Wiederholungen, Oberschenkelrückseiten) break instead of
   widening the page; each page sets its lang, so hyphenation is right. */
h1, h2, h3, p, li, .kind, summary { overflow-wrap: break-word; }
@media (max-width: 600px) { h1, h2, h3, p, li, .kind { hyphens: auto; } }
