/* Inch website — the app's look on the web.
   Tokens mirror apps/mobile/src/screens/onboardingV2/kit/tokens.ts and the
   real shield (ShieldConfigurationExtension.swift). Signature element: the
   measuring tape — an inch is a unit of length, progress is measured in them.

   Self-hosted font only: no Google Fonts, no trackers, no cookies — so the
   site needs no cookie banner (TDDDG §25). */
@font-face {
  font-family: "Baloo 2";
  src: url("/assets/Baloo2-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --page: #FBFAF6;
  --page-2: #F3F1EA;
  --card: #FFFFFF;
  --card-border: #ECE8DF;
  --ink: #221F1B;
  --ink-2: #514C45;
  --muted: #837C72;
  --ember: #F2683A;
  --ember-edge: #C24E25;
  --ember-soft: #FDE9E0;
  --ember-ink: #C5471F;
  --shield: #C5471F;
  --cream: #FFF6EF;
  --plan: #6C63E6;
  --plan-soft: #ECEAFC;
  --green: #2FA876;
  --green-soft: #E3F3EC;
  --tape: #FFD45C;
  --radius: 18px;
  --edge: 7px;
  --display: "Baloo 2", ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  /* SF Pro Rounded on Apple devices — the app's own text face. */
  font: 17px/1.55 ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: var(--ember-ink); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Language: both ship in the page, one is shown. */
html[lang="de"] [data-l="en"], html:not([lang="de"]) [data-l="de"] { display: none !important; }

/* ── Header ───────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; padding-top: 4px; }
.lang { display: flex; background: var(--page-2); border-radius: 999px; padding: 4px; }
.lang a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 6px 12px; border-radius: 999px;
}
.lang a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(34, 31, 27, 0.08); }

/* ── Type ─────────────────────────────────────────── */
.display {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.015em;
  font-size: clamp(44px, 9.5vw, 84px); line-height: 0.98; margin: 0;
}
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6.4vw, 54px); line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 20px 0 0; max-width: 32ch; }
/* One word per headline gets a tilted sticker. */
.hl {
  display: inline-block; background: var(--ember); color: #fff; padding: 0 0.18em; margin: 0 0.04em;
  border-radius: 0.2em; transform: rotate(-2.5deg); box-shadow: 0 0.08em 0 var(--ember-edge);
}
.hl.plan { background: var(--plan); box-shadow: 0 0.08em 0 #4F47C4; }
.hl.green { background: var(--green); box-shadow: 0 0.08em 0 #1F8459; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ember-ink); background: var(--ember-soft);
  border-radius: 999px; padding: 6px 12px; margin-bottom: 18px;
}

/* ── The ember 3D button (ObButton: face over a darker edge) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 30px;
  background: var(--ember); color: #fff; border-radius: var(--radius); border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; box-shadow: 0 var(--edge) 0 var(--ember-edge);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:active { transform: translateY(var(--edge)); box-shadow: 0 0 0 var(--ember-edge); }
.btn-note { display: block; margin-top: 18px; color: var(--muted); font-size: 15px; font-weight: 600; }

/* ── Stickers: small tilted chips that overlap edges ── */
.sticker {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--card); color: var(--ink); border: 2px solid var(--card-border); border-radius: 16px;
  padding: 9px 14px; font-weight: 800; font-size: 15px; box-shadow: 0 10px 24px rgba(34, 31, 27, 0.12);
}
.sticker img { width: 22px; height: 22px; border-radius: 6px; }
.sticker.ember { background: var(--ember); color: #fff; border-color: var(--ember-edge); }
.sticker.plan { background: var(--plan); color: #fff; border-color: #4F47C4; }

/* ── Phone mockup ─────────────────────────────────── */
.phone {
  position: relative; z-index: 2; width: 270px; aspect-ratio: 9 / 19; background: #15130F; border-radius: 46px; padding: 9px;
  box-shadow: 0 30px 60px rgba(34, 31, 27, 0.22), inset 0 0 0 2px #2B2822;
}
.phone .scr {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--page);
  display: flex; flex-direction: column; padding: 46px 16px 18px; font-size: 13px; line-height: 1.35;
}
.phone .scr::before { /* dynamic island */
  content: ""; position: absolute; top: 10px; left: 50%; width: 84px; height: 24px; margin-left: -42px;
  background: #15130F; border-radius: 999px;
}
.mini-btn {
  display: block; text-align: center; border-radius: 13px; padding: 12px 0 10px; margin-top: 8px;
  font-family: var(--display); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; font-size: 14px;
  background: var(--ember); color: #fff; box-shadow: 0 4px 0 var(--ember-edge);
}
.caps { font-weight: 800; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }

/* Shield (iOS system screen, Inch's colours) */
.scr.shield { background: var(--shield); color: #fff; text-align: center; justify-content: center; padding-top: 0; }
.scr.shield .app { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px; }
.scr.shield .goal { opacity: 0.72; font-size: 12px; font-weight: 600; }
.scr.shield .act { font-weight: 800; font-size: 19px; line-height: 1.25; margin: 8px 6px 0; }
.scr.shield .cream {
  margin-top: 26px; background: var(--cream); color: #2A0E04; border-radius: 14px; padding: 13px 8px;
  font-weight: 800; font-size: 14px;
}
.scr.shield .close { margin-top: 12px; opacity: 0.7; font-weight: 600; font-size: 13px; }

/* Intercept card */
.scr .ai { align-self: flex-start; background: var(--plan-soft); color: #463BA8; font-weight: 800; font-size: 10.5px; border-radius: 999px; padding: 3px 9px; margin: 8px 0 10px; }
.scr .nudge { font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1.1; }
.scr .why { background: var(--card); border: 1.5px solid var(--card-border); border-radius: 14px; padding: 10px 12px; margin-top: 14px; }
.scr .why p { margin: 4px 0 0; color: var(--ink-2); }
.scr .grow { flex: 1; }
.scr .skip { text-align: center; color: var(--muted); font-weight: 700; margin-top: 12px; }

/* Path */
.scr .stones { display: grid; gap: 9px; margin-top: 12px; }
.scr .st { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--card-border); border-radius: 14px; padding: 9px 10px; font-weight: 700; }
.scr .st i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--page-2); color: var(--muted); flex: none; }
.scr .st.ok i { background: var(--green); color: #fff; }
.scr .st.now { border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }
.scr .st.now i { background: var(--ember); color: #fff; }
.scr .st small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; }
.meter { height: 8px; border-radius: 999px; background: var(--page-2); margin-top: 6px; overflow: hidden; }
.meter b { display: block; height: 100%; width: 57%; background: var(--ember); border-radius: 999px; }

/* Screen time report */
.scr.report { background: #1B1916; color: var(--page); }
.scr.report .caps { color: rgba(251, 250, 246, 0.55); }
.scr.report .big { font-family: var(--display); font-weight: 800; font-size: 31px; white-space: nowrap; line-height: 1; margin: 6px 0 4px; }
.scr.report .delta { align-self: flex-start; background: rgba(47, 168, 118, 0.18); color: #7BD6AE; font-weight: 800; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.bars { display: grid; gap: 12px; margin-top: 22px; }
.bar { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; font-weight: 700; font-size: 12px; }
.bar img { width: 26px; height: 26px; border-radius: 7px; }
.bar .track { height: 10px; border-radius: 999px; background: rgba(251, 250, 246, 0.1); overflow: hidden; }
.bar .track b { display: block; height: 100%; border-radius: 999px; background: var(--ember); }
.scr.report .note { margin-top: auto; background: rgba(251, 250, 246, 0.07); border-radius: 14px; padding: 10px 12px; color: rgba(251, 250, 246, 0.75); }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: 28px 0 40px; }
.hero .grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 860px) { .hero .grid { grid-template-columns: 1.1fr 0.9fr; } }
.stage { position: relative; justify-self: center; padding: 10px 40px 30px; }
.stage .blob {
  position: absolute; inset: 6% -2% 2%; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%;
  background: var(--ember-soft); transform: rotate(-6deg);
}
.stage .peek { position: absolute; z-index: 4; width: 130px; right: -18px; bottom: -6px; transform: rotate(8deg); }
.s-app { top: 70px; left: -6px; transform: rotate(-6deg); }
.s-inch { top: 210px; right: -4px; transform: rotate(5deg); }
.s-streak { bottom: 92px; left: -14px; transform: rotate(-4deg); }

/* ── Measuring tape (signature) ───────────────────── */
.tape {
  position: relative; height: 64px; margin: 24px 0; background-color: var(--tape);
  transform: rotate(-1.4deg); width: 104%; margin-left: -2%;
  box-shadow: 0 6px 0 #E8B93A, 0 14px 30px rgba(34, 31, 27, 0.1);
  background-image:
    repeating-linear-gradient(90deg, #3A2F12 0 2px, transparent 2px 96px),
    repeating-linear-gradient(90deg, #3A2F12 0 1.5px, transparent 1.5px 48px),
    repeating-linear-gradient(90deg, #3A2F12 0 1px, transparent 1px 12px);
  background-size: 100% 26px, 100% 18px, 100% 11px;
  background-repeat: no-repeat;
  overflow: hidden;
}
.tape .track { position: absolute; left: 0; bottom: 8px; display: flex; white-space: nowrap; animation: tape 40s linear infinite; }
.tape span { display: inline-block; width: 96px; font-family: var(--display); font-weight: 800; font-size: 20px; color: #3A2F12; padding-left: 6px; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ── Feature rows ─────────────────────────────────── */
.feature { padding: 56px 0; }
.feature .grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) {
  .feature .grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .panel { order: 2; }
}
.panel {
  position: relative; border-radius: 40px; padding: 44px 20px; display: grid; place-items: center; min-height: 520px;
}
.panel.plan { background: var(--plan); }
.panel.green { background: var(--green-soft); }
.panel.ink { background: var(--ink); }
.panel .sticker { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15); }
.feature p.body { font-size: 19px; color: var(--ink-2); margin: 18px 0 0; max-width: 36ch; }
.feature .points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.feature .points li { display: flex; gap: 10px; align-items: baseline; font-weight: 700; }
.feature .points li::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ── Nudge marquee ────────────────────────────────── */
.marquee { padding: 40px 0 24px; overflow: hidden; }
.marquee h2 { text-align: center; margin-bottom: 28px; padding: 0 16px; }
.row { display: flex; gap: 12px; width: max-content; animation: slide 46s linear infinite; padding: 6px 0; }
.row.rev { animation-direction: reverse; animation-duration: 54s; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 2px solid var(--card-border);
  border-radius: 18px; padding: 12px 18px; font-weight: 800; font-size: 17px; white-space: nowrap;
}
.chip i { font-style: normal; font-size: 22px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .row, .tape .track { animation: none; } }

/* ── Privacy stickers ─────────────────────────────── */
.promise { padding: 56px 0 24px; text-align: center; }
.promise .cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.promise .card {
  width: 300px; background: var(--card); border: 2px solid var(--card-border); border-radius: 26px; padding: 22px; text-align: left;
  box-shadow: 0 12px 30px rgba(34, 31, 27, 0.06);
}
.promise .card:nth-child(1) { transform: rotate(-2deg); }
.promise .card:nth-child(2) { transform: rotate(1.5deg) translateY(10px); }
.promise .card:nth-child(3) { transform: rotate(-1deg); }
.promise .card .ico { font-size: 30px; }
.promise .card b { display: block; font-size: 19px; line-height: 1.25; margin-top: 8px; }
.promise .card span { display: block; color: var(--muted); margin-top: 6px; }

/* ── Final CTA ────────────────────────────────────── */
.final { text-align: center; padding: 88px 0 96px; position: relative; }
.final img { width: 180px; transform: rotate(-4deg); }
.final .h2 { margin: 8px auto 28px; max-width: 14ch; }

/* ── Footer (ember band) ──────────────────────────── */
.foot { background: var(--ember); color: #fff; padding: 56px 0 40px; }
.foot .cols { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot .cols { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot .brand { color: #fff; }
.foot .brand img { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.foot p { margin: 12px 0 0; opacity: 0.85; max-width: 28ch; font-weight: 600; }
.foot h4 { font-family: var(--display); font-weight: 800; font-size: 20px; margin: 0 0 10px; }
.foot nav { display: grid; gap: 6px; }
.foot a { color: #fff; font-weight: 700; text-decoration: none; opacity: 0.92; }
.foot a:hover { opacity: 1; text-decoration: underline; }
.foot .copy { margin-top: 40px; opacity: 0.75; font-size: 14px; font-weight: 600; }

/* ── Legal pages ──────────────────────────────────── */
.doc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 8px; }
.doc-head img { width: 88px; height: 88px; flex: none; }
.doc { max-width: 820px; padding-bottom: 56px; overflow-wrap: break-word; hyphens: auto; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 7vw, 44px); line-height: 1.08; margin: 12px 0; }
.doc .paper { background: var(--card); border: 2px solid var(--card-border); border-radius: 24px; padding: 8px 22px 22px; }
.doc h2 { font-size: 21px; margin: 30px 0 6px; }
.doc h3 { font-size: 17px; margin: 22px 0 4px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--card-border); min-width: 120px; }
/* First column holds the longest text; the table scrolls sideways on phones. */
.doc td:first-child, .doc th:first-child { min-width: 180px; }
.doc th { background: var(--page-2); }
.draft {
  background: var(--ember-soft); color: var(--ember-ink); border-radius: 14px;
  padding: 12px 16px; font-size: 15px; font-weight: 600; margin: 0 0 16px;
}
