/* vuco landing page — Story 13.3
 * Self-contained: self-hosted fonts, zero third-party requests (AC-3), no framework runtime (AC-6).
 * Brand: petrol-deep #0A544C on cream #F3EFE6 (13.2 session); orange only where money is shown.
 * Shared by /de/ and /en/ and the legal pages. */

/* ---- Self-hosted Plus Jakarta Sans (reused from the Hosted Page, AD-14 discipline) ---- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --petrol: #0A544C;
  --petrol-deep: #073F39;
  --petrol-line: #1C6A61;
  --cream: #F3EFE6;
  --cream-raised: #FBF9F4;
  --cream-sunken: #E7E2D5;
  --cream-muted: #C9D6D2;      /* secondary text on petrol */
  --ink: #15181D;
  --ink-secondary: #49515B;
  --orange: #EA580C;           /* money + primary CTA only */
  --orange-ink: #1A1005;       /* text on orange (matches product --color-on-accent) */
  --white: #FFFFFF;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 48px);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(7, 63, 57, .06), 0 12px 32px rgba(7, 63, 57, .10);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.eyebrow {
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.on-petrol .eyebrow { color: #F6B98E; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--petrol);
  border-bottom: 1px solid var(--petrol-line);
}
.site-header .container {
  display: flex; align-items: center;
  gap: 18px; padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; }
.brand__word {
  font-weight: 800; font-size: 22px; letter-spacing: -0.03em; color: var(--cream);
}
/* Section nav — inline on desktop, a toggle dropdown on mobile */
.site-nav { display: none; }
.site-nav a {
  color: var(--cream); text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  white-space: nowrap; padding: 8px 13px; border-radius: 10px;
  transition: background-color .16s ease, color .16s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(255, 255, 255, .09); color: var(--white); outline: none; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid var(--petrol-line); color: var(--cream); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.header-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
@media (min-width: 920px) {
  .site-nav { display: flex; gap: 4px; margin-left: 12px; }
  .nav-toggle { display: none; }
}
.site-nav.open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--petrol); border-bottom: 1px solid var(--petrol-line);
  padding: 4px var(--pad) 14px;
}
.site-nav.open a { padding: 13px 2px; border-radius: 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 16px; }
.site-nav.open a:hover, .site-nav.open a:focus-visible { background: transparent; color: var(--white); }
.lang-switch { position: relative; display: inline-flex; align-items: center; }
.lang-switch select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  color: var(--cream); background: transparent;
  border: 1px solid var(--petrol-line); border-radius: 999px;
  padding: 8px 34px 8px 14px; cursor: pointer;
}
.lang-switch::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--cream-muted); border-bottom: 2px solid var(--cream-muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.lang-switch select option { color: var(--ink); }
.header-cta {
  display: none; text-decoration: none; font-weight: 700; font-size: 14px;
  color: var(--orange-ink); background: var(--orange);
  padding: 9px 18px; border-radius: 999px;
}
@media (min-width: 620px) { .header-cta { display: inline-block; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--orange-ink); box-shadow: 0 8px 22px rgba(234, 88, 12, .28); }
.btn--primary:hover { background: #f2650f; }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid var(--petrol-line); }
.btn--ghost:hover { background: rgba(255,255,255,.06); }
.btn--block { width: 100%; }

/* ---- Hero ---- */
.hero { background: var(--petrol); color: var(--cream); overflow: hidden; }
.hero .container { display: grid; gap: 40px; align-items: center; }
.hero__claim { font-size: clamp(38px, 8vw, 68px); color: var(--white); }
.hero__slogan {
  margin-top: 18px; font-size: clamp(19px, 2.6vw, 26px); font-weight: 600; color: #EAF3F0;
  max-width: 20ch;
}
.hero__sub { margin-top: 18px; font-size: 17px; color: var(--cream-muted); max-width: 46ch; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 16px; font-size: 13px; color: var(--cream-muted); }
/* Phone frame for the hero capture; the 30-sec recording drops in here (Task 6).
   🚨 The frame must NOT impose its own aspect-ratio. It used to be 300/610, which after the
   12px bezel left an inner box of 276x586 = 0.471 — NARROWER than the screenshot's own
   1080/2000 = 0.540. `object-fit: cover` then scaled to height and threw away ~20px off EACH
   SIDE, which is why the German hero read "OKUMENT", "ECHNUNG AN", "OSITIONEN" and cut
   "Kunde ändern" (founder report, 2026-08-07, both languages).
   The rule, for whoever swaps the capture next: any box ratio ABOVE 0.540 crops the BOTTOM
   (harmless — the screen is meant to run off the frame); anything BELOW it eats the UI's left
   and right edges. Here the frame simply hugs the image, so nothing is cropped at all. */
.demo {
  justify-self: center; width: min(300px, 78vw);
  border-radius: 40px; padding: 12px; background: #06322D;
  border: 1px solid var(--petrol-line); box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.demo__screen {
  display: block; width: 100%; height: auto; aspect-ratio: 1080 / 2000;
  border-radius: 30px; background: #06322D;
}
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.1fr .9fr; }
  .hero__actions { margin-top: 34px; }
}

/* ---- Steps (how it works) ---- */
.steps { display: grid; gap: 20px; margin-top: 40px; }
.step {
  background: var(--cream-raised); border: 1px solid var(--cream-sunken);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
}
.step__n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--petrol); color: var(--cream); font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-secondary); font-size: 15.5px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---- Pricing ---- */
.pricing { background: var(--cream-sunken); }
.plans { display: grid; gap: 22px; margin-top: 40px; }
.plan {
  background: var(--cream-raised); border: 1px solid var(--cream-sunken);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.plan--paid { border: 2px solid var(--petrol); position: relative; }
.plan__tag {
  position: absolute; top: -13px; left: 32px; background: var(--petrol); color: var(--cream);
  font-weight: 700; font-size: 12px; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px;
}
.plan h3 { font-size: 22px; }
.plan__price { margin: 14px 0 4px; font-size: 40px; font-weight: 800; color: var(--ink); }
.plan__price span { font-size: 16px; font-weight: 600; color: var(--ink-secondary); }
.plan__price--free { color: var(--orange); }
.plan__year { font-size: 14px; color: var(--ink-secondary); min-height: 20px; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink-secondary); }
.plan li::before {
  content: ""; flex: 0 0 20px; height: 20px; margin-top: 1px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A544C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.plan .btn { margin-top: auto; }
.plan .btn--ghost { color: var(--petrol); border-color: var(--cream-sunken); }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }

/* ---- FAQ / E-Rechnung ---- */
.faq { background: var(--petrol); color: var(--cream); }
.faq__intro { max-width: 62ch; }
.faq__list { margin-top: 36px; display: grid; gap: 12px; }
.faq details {
  background: #0C5C53; border: 1px solid var(--petrol-line); border-radius: var(--radius);
  padding: 4px 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 24px; font-weight: 600; color: var(--cream-muted); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 20px; color: var(--cream-muted); font-size: 15.5px; }

/* ---- Footer (cream, so the lockup-cream master sits seamlessly) ---- */
.site-footer { background: var(--cream); color: var(--ink-secondary); border-top: 1px solid var(--cream-sunken); }
.site-footer .container { padding-block: 48px; }
.footer-top { display: grid; gap: 28px; }
.footer-lockup { width: 200px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--petrol); text-decoration: none; font-weight: 600; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--cream-sunken); font-size: 13px; }
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---- Legal pages (Impressum / Datenschutz) ---- */
.legal { background: var(--cream); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 6vw, 44px); margin-bottom: 8px; }
.legal .lead { color: var(--ink-secondary); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-secondary); font-size: 16px; }
.legal ul { padding-left: 20px; }
.legal address { font-style: normal; color: var(--ink-secondary); font-size: 16px; line-height: 1.6; }
.legal .backlink { display: inline-block; margin-bottom: 28px; color: var(--petrol); font-weight: 600; text-decoration: none; }

/* ---- How-to (visual app tour — real app captures) ----
   🚨 SIZE IS THE WHOLE PROBLEM HERE, not resolution. These are real 1080x2000 captures of a
   412dp screen (~2.6 device px per dp), so the app's own ~15dp UI text is ~39 source px. The
   card width alone decides whether a reader can read it:
     4 columns in the 1080px container -> (1080 - 96 pad - 66 gaps) / 4 = 229px -> ~8 CSS px. Unreadable.
     2 columns                         -> (1080 - 96 - 22) / 2       = 481px -> ~17 CSS px. Comfortable.
     1 column on a 375px phone         ->                              335px -> ~12 CSS px. Fine.
   That is exactly the founder's report (2026-08-07, both languages): "at 100% zoom text is
   unreadable, but if zoom it - it looks good" — the assets were always fine, the display size
   was not. Cropping does NOT help: text spans the full width, so only width buys legibility.
   Hence two columns maximum. */
.howto { background: var(--cream-raised); }
.howto__grid { display: grid; gap: 22px; margin-top: 40px; }
.howto__card { display: flex; flex-direction: column; }
.howto__shot {
  /* 2/3 = 0.667, comfortably above the capture's own 0.540, so only the BOTTOM is trimmed and
     the UI's left/right edges always survive (same rule as .demo above). At 481px wide this
     shows the top ~81% of the screen — checked against the captures, which put every meaningful
     element above ~82%: step 4's "Erinnerung senden" card, the punchline of "get paid", sits at
     55-73%. Do not tighten this past ~3/4 without re-checking that card. */
  aspect-ratio: 2 / 3; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--cream-sunken); background: var(--cream); box-shadow: var(--shadow);
  /* The caption now leads and the shot follows (founder, 2026-08-09 — read the label first,
     then look). Captions run one or two lines and differ between DE and EN, so `auto` eats the
     slack and keeps every shot in a row starting and ending on the same line; without it the
     images stagger by a line-height wherever a caption wraps. */
  margin-top: auto;
}
.howto__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.howto__step {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  /* No top margin: the badge is the card's first child now, not a divider under the image. */
  background: var(--petrol); color: var(--cream); font-weight: 800; font-size: 14px; margin: 0 0 8px;
}
.howto__card h3 { font-size: 17px; margin-bottom: 4px; }
/* Guarantees a gap above the shot even when `margin-top: auto` collapses to zero (a caption
   tall enough to leave no slack — long strings, or a large browser font size). */
.howto__card p { font-size: 14px; color: var(--ink-secondary); margin-bottom: 16px; }
/* 760px, not 640px: at 640 the two columns are only ~277px each (~10 CSS px) — barely better
   than the 4-up desktop bug we just fixed. Holding one full-width column until 760 keeps every
   tablet at ~331px or more, and a narrow screen simply gets one large readable card. */
@media (min-width: 760px) { .howto__grid { grid-template-columns: repeat(2, 1fr); } }
/* Deliberately NO 4-up rule at >=1000px — see the legibility arithmetic above. Two columns is
   the ceiling; adding a third takes the card to ~313px (~11 CSS px) and a fourth to ~229px (~8). */

/* ---- Write-us (MVP signup: a mailto, no form/backend) ---- */
.writeus { background: var(--petrol-deep); color: var(--cream); }
.writeus .container { max-width: 640px; text-align: center; }
.writeus h2 { font-size: clamp(28px, 5vw, 40px); color: var(--white); }
.writeus p { margin-top: 14px; color: var(--cream-muted); }
.writeus .writeus__note { margin-top: 16px; font-size: 12.5px; color: var(--cream-muted); }
.writeus__badge img { height: 64px; width: auto; display: block; margin: 28px auto 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
