/*
 * The landing pages of oborka.app (/ and /de/) and the 404 page. The legal pages keep style.css;
 * both share the app's colours: primary #525A92 / #BBC3FF and background #FBF8FF / #131318
 * (androidApp/.../theme/Color.kt), plus the brand's blue and peach from the app icon
 * (design/app-icon/3a-o-dach-fein.svg). System fonts only, no scripts but /app-mode.js, nothing
 * from third parties - the privacy policy promises exactly that. The CSP in firebase.json forbids
 * inline styles, so every style lives here.
 */
:root {
  --bg: #fbf8ff;
  --surface: #ffffff;
  --text: #1b1b21;
  --muted: #46464f;
  --primary: #525a92;
  --line: #dad9e3;
  --soft: #eeeefa;
  /* The icon's stage: its blue gradient and its peach. */
  --stage-top: #2e55ff;
  --stage: #0030d6;
  --peach: #ffd8b8;
  --peach-soft: #fff0e3;
  --on-stage: #ffffff;
  --on-stage-muted: #dfe5ff;
  --radius: 20px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131318;
    --surface: #1b1b21;
    --text: #e4e1e9;
    --muted: #c7c5d0;
    --primary: #bbc3ff;
    --line: #34343c;
    --soft: #1f1f26;
    /* The icon's dark variant. */
    --stage-top: #1a1f3d;
    --stage: #0b0e1f;
    --peach-soft: #2a211b;
    --on-stage-muted: #c9cde6;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- Stage: top bar and hero on the icon's blue ---------- */
.stage {
  background: linear-gradient(180deg, var(--stage-top), var(--stage));
  color: var(--on-stage);
  overflow: hidden;
}
.stage a { color: inherit; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 216, 184, 0.35); }
.topnav { display: flex; align-items: center; gap: 4px; font-size: 0.95rem; }
.topnav a { text-decoration: none; padding: 8px 10px; border-radius: 999px; color: var(--on-stage-muted); }
.topnav a:hover, .topnav a:focus-visible { color: var(--on-stage); background: rgba(255, 255, 255, 0.12); }
.topnav .lang-switch { color: var(--peach); font-weight: 600; border: 1px solid rgba(255, 216, 184, 0.5); padding: 6px 12px; margin-left: 6px; }
@media (max-width: 760px) { .topnav .section-link { display: none; } }

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 0;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 40px; }
}
.eyebrow { color: var(--peach); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 3.8rem); font-weight: 800; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--peach); }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--on-stage-muted); margin-top: 20px; max-width: 34em; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 8px 16px 8px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 0.98rem;
}
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 4px rgba(255, 216, 184, 0.25); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}
.btn-peach { background: var(--peach); color: #1a1f3d !important; }
.btn-peach:hover { background: #ffe6d1; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.45); color: var(--on-stage); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-primary { background: var(--primary); color: var(--bg) !important; }

.hero-visual { display: flex; justify-content: center; align-self: end; }
/* The phone rises out of the stage: its lower part is cut by the stage's edge. */
.hero-visual { max-height: 520px; overflow: hidden; }
.hero-visual .phone { width: min(78vw, 330px); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (min-width: 900px) { .hero-visual { max-height: 600px; } .hero-visual .phone { width: 340px; } }

/* A screenshot in a phone's outline. */
.phone {
  display: block;
  border-radius: 44px;
  padding: 10px;
  background: #0b0e1f;
  box-shadow: 0 30px 60px -20px rgba(11, 14, 31, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.phone img { display: block; width: 100%; border-radius: 34px; aspect-ratio: 1206 / 2622; }

/* ---------- Content sections ---------- */
.section { padding: 48px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }
.kicker { color: var(--primary); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.first { padding-top: 40px; }
@media (min-width: 900px) { .first { padding-top: 64px; } }

/* The 2027 deadline: the one surface in peach. */
.deadline {
  background: var(--peach-soft);
  border-radius: 28px;
  padding: 28px 24px;
  display: grid;
  gap: 18px;
  align-items: center;
}
@media (min-width: 760px) { .deadline { grid-template-columns: auto 1fr; gap: 36px; padding: 40px 44px; } }
.deadline .date {
  font-weight: 800;
  font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem);
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.deadline .date small { display: block; font-size: 0.32em; letter-spacing: 0.02em; font-weight: 700; margin-top: 8px; color: var(--muted); }
.deadline h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.deadline p { color: var(--muted); margin-top: 10px; }

/* Report kinds: the code is what a keeper knows them by. */
.reports { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .reports { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.reports li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.code {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  background: var(--soft);
  border-radius: 8px;
  padding: 4px 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.reports strong { display: block; font-size: 1.06rem; }
.reports span { color: var(--muted); font-size: 0.97rem; }

.features { display: grid; gap: 36px 40px; margin-top: 56px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.feature h3 svg { width: 26px; height: 26px; flex: none; color: var(--primary); }
.feature p { color: var(--muted); }

/* Three screens side by side, scrolling sideways on a phone. */
.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(66vw, 260px);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 24px;
  margin: 0 -16px;
}
@media (min-width: 900px) {
  .screens { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 8px 40px 0; gap: 48px; }
}
.screens figure { margin: 0; scroll-snap-align: center; }
.screens figcaption { text-align: center; margin-top: 16px; font-weight: 600; }
.screens figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }

.alt { background: var(--soft); }
.points { display: grid; gap: 28px; }
@media (min-width: 860px) { .points { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.points h3 { margin-bottom: 8px; }
.points p { color: var(--muted); }
.fineprint { margin-top: 32px; color: var(--muted); font-size: 0.95rem; }

/* Price */
.price-box {
  display: grid;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px;
}
@media (min-width: 760px) { .price-box { grid-template-columns: 1fr 1fr; padding: 40px 44px; gap: 48px; } }
.price-box h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.amount { font-size: clamp(2.6rem, 2rem + 2.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.amount small { font-size: 0.4em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}

/* Pilot farms */
.pilot {
  background: linear-gradient(180deg, var(--stage-top), var(--stage));
  color: var(--on-stage);
  border-radius: 28px;
  padding: 36px 24px;
  display: grid;
  gap: 24px;
}
@media (min-width: 760px) { .pilot { grid-template-columns: 1.2fr 1fr; padding: 48px 48px; align-items: center; gap: 48px; } }
.pilot h2 { color: var(--on-stage); }
.pilot p { color: var(--on-stage-muted); margin-top: 14px; }
.mailcard {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 216, 184, 0.35);
  border-radius: 20px;
  padding: 22px;
}
.mailcard .label { color: var(--on-stage-muted); font-size: 0.92rem; }
.mail { display: block; color: var(--peach); font-weight: 700; font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); margin: 4px 0 16px; overflow-wrap: anywhere; text-decoration: none; }
.mail:hover { text-decoration: underline; }

/* FAQ: details/summary, no script. */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 650;
  font-size: 1.08rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 46em; }
.faq details p + p { margin-top: -8px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 0.95rem; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.foot .brand { color: var(--text); font-size: 1.1rem; }
.foot .brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: none; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--text); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin-top: 12px; max-width: 40em; }

/* ---------- 404 ---------- */
.notfound { padding-top: 40px; padding-bottom: 88px; }
.notfound h1 { font-size: clamp(2rem, 1.5rem + 3vw, 3rem); font-weight: 800; }
.notfound .lead { margin-top: 16px; }

/* Opened from the app (?app=1, /app-mode.js): leave out what advertises the app. */
.in-app .ad { display: none !important; }

:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }
.section :focus-visible, .foot :focus-visible { outline-color: var(--primary); }
