/* tortipp.app: static page next to the app (docs/decisions/0046, 0047).
   Tokens copied from docs/design/tokens.css; fonts are self-hosted so the
   page loads nothing from third parties (no Google Fonts, no tracking).
   Start page in full-width bands (Luis, 15.10.2026: clearer structure
   instead of white cards on grey); the other pages use .s-wrap below. */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2"); }

:root {
  --surface: #f4f6f8;
  --raised: #ffffff;
  --sunken: #eceff3;
  --line: #e3e7ec;
  --ink: #0e1216;
  --muted: #5b6573;
  --lime: #d7f542;
  --on-lime: #10140a;
  --lime-soft: #eefbc2;
  --lime-ink: #4d6600;
  --pitch: #12161b;
  --on-pitch: #eef1f4;
  --on-pitch-muted: #9aa4b1;
  --band-dark: #12161b;
  --info: #2458d6;
  --info-soft: #e6eeff;
  --down: #c8323a;
  --device: #0b0d10;
  --device-edge: #323a44;
  --shadow: 0 1px 2px #0e12160a;
  --shadow-phone: 0 28px 56px -22px #0e121680;
  --focus: 0 0 0 2px #ffffff, 0 0 0 4px #2458d6;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  /* Light only (Luis, 15.10.2026): the page looks like the approved design
     on every device, whatever the device is set to. */
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button { font-family: var(--font); color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: none; box-shadow: var(--focus); }
h1, h2, h3 { text-wrap: balance; }
/* Headings get focus when a state changes (screen readers), without a ring. */
[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------ shared */
.mark { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark i { display: inline-block; width: 6px; height: 6px; background: var(--lime-ink); margin-left: 3px; }
.mark svg { width: 34px; height: 34px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: var(--on-lime); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 9999px; text-decoration: none; white-space: nowrap; }
.pill b { width: 8px; height: 8px; border-radius: 50%; background: var(--on-lime); animation: blink 1.6s ease-in-out infinite; flex: none; }
@keyframes blink { 50% { opacity: .25; } }

.btn { display: inline-grid; place-items: center; height: 50px; border: 0; border-radius: 12px; background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 16px; padding: 0 20px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(.96); }
.btn[disabled] { opacity: .7; cursor: default; }
.btn.ghost { background: none; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; font-weight: 600; font-size: 14px; text-decoration: underline; cursor: pointer; justify-self: start; }
.msg-err { color: var(--down); font-size: 14px; font-weight: 600; }
.fine { font-size: 13px; color: var(--muted); }
.fine a { color: var(--ink); font-weight: 600; }
.done { display: grid; gap: 10px; justify-items: start; }
.ok { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.ok svg { width: 22px; height: 22px; }

/* Waitlist form */
.wl { position: relative; background: var(--raised); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 12px; box-shadow: var(--shadow); min-width: 0; color: var(--ink); }
.wl-form, .wl-busy { display: grid; gap: 12px; }
.wl h2 { font-size: 20px; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.wl p { margin: 0; }
.wl .sub { color: var(--muted); font-size: 15px; margin-top: -4px; }
.lbl { font-size: 13px; font-weight: 600; }
.field { display: grid; gap: 6px; }
.wl-row { display: grid; gap: 10px; }
.wl input[type="email"] { width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 16px var(--font); padding: 0 14px; }
.wl input[type="email"]:focus { border-color: var(--ink); outline: none; box-shadow: none; }
.wl.err input[type="email"] { border-color: var(--down); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done h2 { font-size: 21px; }

/* iPhone frame */
.phone { --pw: 230px; position: relative; width: var(--pw); max-width: 100%; padding: calc(var(--pw) * .032); border-radius: calc(var(--pw) * .165); background: var(--device); box-shadow: inset 0 0 0 1.5px var(--device-edge), var(--shadow-phone); }
.screen { position: relative; aspect-ratio: 390 / 844; border-radius: calc(var(--pw) * .135); overflow: hidden; background: #f4f6f8; }
.screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; top: 1.4%; left: 50%; width: 29%; height: 3.5%; transform: translateX(-50%); background: #000; border-radius: 9999px; }

/* ------------------------------------------------------- start page */
.in { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.band { padding: 64px 0; scroll-margin-top: 0; }
.band.white { background: var(--raised); }
.band.dark { background: var(--band-dark); color: var(--on-pitch); }
.band.lime { background: var(--lime); color: var(--on-lime); }

.head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 40em; }
.head h2 { font-size: 32px; line-height: 1.08; letter-spacing: -0.03em; margin: 0; }
.head p { margin: 0; color: var(--muted); font-size: 17px; }
.head.center { text-align: center; justify-items: center; margin-left: auto; margin-right: auto; }
.dark .head p { color: var(--on-pitch-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--lime-ink); flex: none; }
.dark .eyebrow { color: var(--on-pitch-muted); }
.dark .eyebrow::before { background: var(--lime); }
.lime .eyebrow { color: var(--on-lime); }
.lime .eyebrow::before { background: var(--on-lime); }

/* Header and hero */
.top { padding-top: 20px; }
.top .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-band { padding: 36px 0 64px; }
.hero { display: grid; gap: 44px; }
.hero-text { display: grid; gap: 20px; align-content: start; min-width: 0; }
.hero h1 { font-size: 38px; line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; margin: 0; }
.lead { font-size: 18px; color: var(--muted); margin: 0; max-width: 32em; }

/* "Bald als App": loose signs under the form. Own signs without the Apple
   or Google logo: the official badges are only allowed once pre-order or
   pre-registration is open. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stores-l { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 4px; }
@media (max-width: 519px) { .stores-l { width: 100%; } }
.badge { display: inline-flex; align-items: center; gap: 9px; background: var(--device); color: #eef1f4; border-radius: 12px; padding: 7px 14px 7px 10px; box-shadow: inset 0 0 0 1px var(--device-edge); }
.badge svg { width: 22px; height: 22px; flex: none; }
.badge span { display: grid; line-height: 1.1; }
.badge small { font-size: 11px; color: #9aa4b1; font-weight: 600; }
.badge strong { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }

.hero-video { position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #12161b; box-shadow: var(--shadow-phone); }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sound { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 9999px; padding: 9px 14px 9px 11px; background: #12161bcc; color: #eef1f4; font-size: 14px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sound svg { width: 18px; height: 18px; }
.sound[aria-pressed="true"] { background: #d7f542; color: #10140a; }

/* Test phase: steps next to the phone */
.split { display: grid; gap: 44px; align-items: center; }
.split .head { margin-bottom: 0; }
.how { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: h; border-top: 1px solid var(--line); }
.how li { counter-increment: h; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.how li::before { content: counter(h); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--pitch); color: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.how b { font-size: 17px; line-height: 1.3; padding-top: 4px; }
.how span { color: var(--muted); font-size: 15px; }
/* The test version as it looks in the phone's browser: app screen on top,
   Safari's address bar below. */
.testphone { display: grid; justify-items: center; }
.testphone .phone { --pw: 270px; }
.phone.web .screen { display: flex; flex-direction: column; }
.phone.web .screen img { height: auto; flex: none; object-fit: initial; }
.urlbar { flex: 1; display: grid; justify-items: center; align-content: start; padding-top: calc(var(--pw) * .022); background: #f9fafb; border-top: 1px solid #e3e7ec; }
.urlbar span { display: flex; align-items: center; justify-content: center; gap: calc(var(--pw) * .018); width: 88%; height: calc(var(--pw) * .118); border-radius: 9999px; background: #e9ecf0; color: #0e1216; font-size: calc(var(--pw) * .047); font-weight: 600; }
.urlbar svg { width: calc(var(--pw) * .036); height: calc(var(--pw) * .036); color: #5b6573; }

/* Feature slideshow: one phone, the screens cross-fade. On phones the
   caption and arrows sit below; from 960 px the list of features is the
   control, with a progress bar while it plays by itself. */
.show { display: grid; grid-template-areas: "phone" "caption" "controls"; justify-items: center; gap: 20px; }
.stage { grid-area: phone; --pw: 270px; touch-action: pan-y; }
.stage .screen img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.stage .screen img.on { opacity: 1; }
.caption { grid-area: caption; margin: 0; display: grid; gap: 4px; text-align: center; max-width: 32ch; min-height: 78px; align-content: start; }
.caption strong { font-size: 20px; letter-spacing: -0.01em; }
.caption span { color: var(--on-pitch-muted); font-size: 15px; }
.controls { grid-area: controls; display: flex; align-items: center; gap: 10px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #ffffff33; background: none; color: var(--on-pitch); display: grid; place-items: center; cursor: pointer; flex: none; }
.arrow svg { width: 20px; height: 20px; }
.arrow:hover { border-color: #ffffff80; }
.feats { list-style: none; margin: 0; padding: 0; display: flex; }
.feats button { width: 24px; height: 44px; border: 0; padding: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.feats button::before { content: ""; width: 8px; height: 8px; border-radius: 9999px; background: #ffffff40; transition: width .25s, background-color .25s; }
.feats button[aria-current="true"]::before { width: 20px; background: var(--lime); }
.feats .ft, .feats .more { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bar { display: block; height: 3px; margin-top: 12px; border-radius: 2px; background: #ffffff1f; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.show.auto .feats [aria-current="true"] .bar i { animation: fill var(--slide, 4.5s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* Competitions: an open grid with rules instead of boxes */
.comps { display: grid; column-gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.comp { border-top: 2px solid var(--line); padding: 18px 0 26px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.comp.now { border-top-color: var(--ink); }
.comp strong { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.comp p { margin: 0; font-size: 15px; color: var(--muted); }
.when { justify-self: start; font-size: 12px; font-weight: 800; border-radius: 9999px; padding: 3px 10px; margin-bottom: 8px; }
.when.w-now { background: var(--lime); color: var(--on-lime); }
.when.w-start { background: var(--sunken); color: var(--ink); }
.when.w-summer { background: var(--info-soft); color: var(--info); }

/* Points: one coloured tile per rule, colours as in the app's pills */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { border-radius: 20px; padding: 18px; display: grid; gap: 4px; align-content: start; min-height: 184px; min-width: 0; }
.tile strong { font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.tile strong small { font-size: 16px; letter-spacing: 0; margin-left: 4px; }
.tile b { font-size: 17px; line-height: 1.25; }
.tile span { font-size: 14px; opacity: .8; }
.tile.p4 { background: var(--lime); color: var(--on-lime); }
.tile.p3 { background: var(--lime-soft); color: var(--lime-ink); }
.tile.p2 { background: var(--info-soft); color: var(--info); }
.tile.px { background: var(--band-dark); color: var(--on-pitch); }
.tile.px strong { color: var(--lime); }

/* Form again, on lime */
.cta { display: grid; gap: 28px; align-items: center; }
.cta .head { margin-bottom: 0; }
.cta .head h2 { font-size: 36px; }
.lime .head p { color: var(--on-lime); }
.lime .wl { border-color: transparent; box-shadow: 0 24px 48px -24px #10140a66; }

.foot { background: var(--band-dark); color: var(--on-pitch-muted); padding: 36px 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.foot .in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.foot .mark { color: var(--on-pitch); font-size: 20px; margin-right: 8px; }
.foot .mark svg { width: 28px; height: 28px; }
.foot .mark i { background: var(--lime); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot nav a:hover { color: var(--on-pitch); text-decoration: underline; }
.foot .copy { margin-left: auto; }

@media (min-width: 760px) {
  :root { --gutter: 40px; }
  .band { padding: 96px 0; }
  .hero-band { padding: 48px 0 96px; }
  .top { padding-top: 28px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; gap: 56px; }
  .hero h1 { font-size: 50px; }
  .wl { padding: 22px; }
  .wl-row { grid-template-columns: 1fr auto; align-items: start; }
  .head h2 { font-size: 42px; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .testphone .phone { --pw: 300px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .tile { padding: 22px; min-height: 220px; }
  .tile strong { font-size: 72px; }
  .cta { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; }
  .cta .head h2 { font-size: 48px; }
}
@media (min-width: 960px) {
  .show { grid-template-areas: "controls phone"; grid-template-columns: minmax(0, 440px) auto; justify-content: center; align-items: center; column-gap: 96px; }
  .stage { --pw: 300px; }
  .caption, .arrow { display: none; }
  .controls { display: block; justify-self: stretch; }
  .feats { flex-direction: column; gap: 4px; }
  .feats button { width: 100%; height: auto; padding: 14px 18px; border-radius: 14px; place-items: stretch; text-align: left; color: var(--on-pitch-muted); }
  .feats button::before { display: none; }
  .feats button:hover { background: #ffffff0a; }
  .feats button[aria-current="true"] { background: #ffffff12; color: var(--on-pitch); }
  .feats .ft, .feats .more { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  .feats .ft { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
  /* The text of the current feature unfolds smoothly instead of pushing
     the list down in one jump. */
  .feats .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
  .feats .more > span { overflow: hidden; }
  .feats [aria-current="true"] .more { grid-template-rows: 1fr; }
  .feats .fs { display: block; padding-top: 4px; font-size: 15px; color: var(--on-pitch-muted); }
  .bar { visibility: hidden; }
  .show.auto .feats [aria-current="true"] .bar { visibility: visible; }
}
@media (min-width: 1100px) {
  :root { --gutter: 64px; }
  .hero { grid-template-columns: minmax(0, 1fr) 380px; gap: 88px; }
  .hero h1 { font-size: 62px; }
  .lead { font-size: 20px; }
}

/* ------------------------------------------------ confirm, legal, 404 */
.s-wrap {
  container: site / inline-size; display: flex; flex-direction: column; gap: 28px; max-width: 1180px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
}
.s-main { display: flex; flex-direction: column; gap: 56px; flex: 1; min-width: 0; }
.s-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-top .pill { display: none; }

.s-main.result { max-width: 560px; gap: 0; }
.page { background: var(--raised); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; display: grid; gap: 14px; justify-items: start; box-shadow: var(--shadow); margin-top: 8px; }
.page h1 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.page p { margin: 0; }
.page .m { color: var(--muted); font-size: 15px; }
.tbox { background: var(--pitch); color: var(--on-pitch); border-radius: 16px; padding: 16px; display: grid; gap: 10px; justify-self: stretch; }
.tbox p { color: var(--on-pitch-muted); font-size: 15px; }
.tbox a { color: var(--on-pitch); font-weight: 600; }
.pagebtns { display: flex; flex-wrap: wrap; gap: 8px; }

.s-main.legal { display: block; max-width: 720px; }
.legal h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 4px; }
.legal h2 { font-size: 18px; margin: 28px 0 6px; }
.legal h3 { font-size: 16px; margin: 18px 0 4px; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal .stand { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.legal .box { background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 16px 0; }
.legal .box p:last-child, .legal .box ul:last-child { margin-bottom: 0; }
.legal code { font-size: 14px; background: var(--sunken); padding: 1px 5px; border-radius: 5px; }
.back { display: inline-block; padding: 8px 0; font-weight: 600; font-size: 15px; text-decoration: none; }

.s-foot { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.s-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.s-foot a { text-decoration: none; }
.s-foot a:hover { color: var(--ink); text-decoration: underline; }
.s-foot .copy { margin-left: auto; }

@container site (min-width: 760px) {
  .s-wrap { padding: 32px 40px 24px; gap: 36px; }
  .s-top .pill { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .pill b { animation: none; }
  .stage .screen img, .feats .more, .feats button::before { transition: none; }
  .show.auto .feats [aria-current="true"] .bar i { animation: none; }
}
