/* PassPilot – passportpilot.de
   Same design tokens as the app. Fonts are self-hosted (no Google Fonts connection). */

@font-face { font-family: "Literata"; font-weight: 200 900; font-display: swap; src: url("fonts/literata.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 100 900; font-display: swap; src: url("fonts/public-sans.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #EBEFEC;
  --surface: #FFFFFF;
  --ink: #16233A;
  --muted: #5A6577;
  --line: #D3DAD6;
  --brand: #6B1B2E;
  --brand-tint: #F4E8EA;
  --on-brand: #FFFFFF;
  --passport: #561426;
  --foil: #E7D3A6;
  --ok: #2C6A4C;
  --ok-tint: #E3EFE8;
  --warn: #9A600F;
  --focus: #2F5DA8;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #11161D; --surface: #19212B; --ink: #E6EAEE; --muted: #9AA5B2; --line: #2A3441;
    --brand: #D27A8D; --brand-tint: #2E1B22; --on-brand: #1A0A10;
    --passport: #3F0E1B; --foil: #E3CC97; --ok: #63B48C; --ok-tint: #18291F; --warn: #E1A64C; --focus: #8DB2F0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Public Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: "Literata", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-family: "Literata", serif; font-size: 19px; font-weight: 600; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { color: var(--brand); }
@media (max-width: 640px) { .site-nav .opt { display: none; } }

/* Home header sits on the passport cover */
.home .site-header { color: var(--foil); }
.home .site-nav a:hover { color: #fff; }

/* Hero: the passport cover */
.cover { position: relative; background-color: var(--passport); color: var(--foil); }
.cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image:
    repeating-radial-gradient(circle at 108% -15%, transparent 0 9px, rgba(231,211,166,.16) 9px 10px),
    repeating-radial-gradient(circle at -10% 120%, transparent 0 12px, rgba(231,211,166,.11) 12px 13px); }
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; padding-top: 40px; }
.hero-text { padding-bottom: 96px; }
.hero h1 { font-weight: 500; font-size: clamp(40px, 6.2vw, 72px); line-height: 1.04; color: var(--foil); max-width: 13ch; }
.hero .lead { margin-top: 24px; font-size: 19px; line-height: 1.55; color: rgba(231,211,166,.86); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-foil { background: var(--foil); color: #3A0D19; }
.btn-foil[aria-disabled="true"] { cursor: default; }
.btn-line { color: var(--foil); border: 1.5px solid rgba(231,211,166,.45); }
.btn-line:hover { border-color: var(--foil); }
.btn small { font-weight: 500; font-size: 13px; opacity: .75; }
.hero-phone { align-self: end; justify-self: center; width: min(320px, 100%); margin-bottom: -120px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
  .hero-text { padding-bottom: 40px; }
  .hero-phone { width: min(280px, 78%); }
}

/* Phone frame around screenshots */
.phone { position: relative; border-radius: 38px; padding: 10px; background: #0E141C; box-shadow: 0 30px 60px -28px rgba(10,15,25,.55); }
.phone img { border-radius: 29px; width: 100%; height: auto; }

/* Stamps strip */
.stamps-band { padding: 168px 0 72px; }
@media (max-width: 860px) { .stamps-band { padding-top: 156px; } }
.band-head { max-width: 40em; }
.band-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; }
.band-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.stamps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px 10px; }
.stamp { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.25; }
.stamp .ring { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--brand); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5.5px var(--brand); display: grid; place-items: center; color: var(--brand); transform: rotate(var(--r, -6deg)); }
.stamp .ring svg { width: 28px; height: 28px; }
@media (max-width: 860px) { .stamps { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .stamps { grid-template-columns: repeat(3, 1fr); } .stamp .ring { width: 64px; height: 64px; } }

/* Steps */
.steps-band { padding: 72px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; }
.step + .step { border-top: 1px solid var(--line); }
.step:nth-child(even) .step-text { order: 2; }
.step-num { font-family: "Literata", serif; font-size: 15px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 10px; }
.step-num span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--brand); }
.step h3 { margin-top: 14px; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; }
.step p { margin-top: 12px; color: var(--muted); max-width: 30em; }
.step ul { margin: 16px 0 0; padding: 0; list-style: none; }
.step li { position: relative; padding-left: 26px; margin-top: 8px; }
.step li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.step .phone { width: min(300px, 100%); justify-self: center; }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .step:nth-child(even) .step-text { order: 0; }
  .step .phone { width: min(260px, 80%); }
}

/* Split feature blocks */
.duo { padding: 80px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border-radius: 22px; padding: 32px; background: var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: 28px; line-height: 1.2; }
.panel p { margin-top: 12px; color: var(--muted); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.langs span { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; }
.langs span.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.panel.dark { background: var(--passport); color: var(--foil); border-color: transparent; }
.panel.dark p { color: rgba(231,211,166,.82); }
.panel.dark a { color: var(--foil); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; padding: 56px 0; } }

/* FAQ */
.faq { padding: 8px 0 88px; }
.faq h2 { font-size: clamp(28px, 3.6vw, 40px); }
.faq-list { margin-top: 24px; border-top: 1px solid var(--line); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 650; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 44em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; align-content: start; font-weight: 600; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--brand); }
.site-footer .note { max-width: 40em; }
.site-footer .copy { margin-top: 10px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer nav { justify-content: flex-start; } }

/* Legal and support pages */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.1; overflow-wrap: anywhere; hyphens: auto; }
.page-head p { margin-top: 12px; color: var(--muted); }
.legal { padding: 24px 0 88px; overflow-wrap: break-word; hyphens: auto; }
.legal h2, .legal h3 { overflow-wrap: anywhere; }
.legal .text { max-width: 44em; }
.legal h2 { font-size: 24px; line-height: 1.25; margin: 44px 0 10px; }
.legal h3 { font-size: 18px; margin: 28px 0 6px; }
.legal p, .legal ul { margin: 10px 0 0; }
.legal ul { padding-left: 22px; }
.legal li { margin-top: 6px; }
.legal address { font-style: normal; margin-top: 10px; }
.summary-box { margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: var(--ok-tint); }
.summary-box h2 { margin: 0 0 6px; font-size: 20px; }
.summary-box ul { margin-top: 6px; }
.toc { margin-top: 24px; padding: 18px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.toc li { margin-top: 4px; }
.contact-card { margin-top: 24px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.contact-card .btn { margin-top: 14px; background: var(--brand); color: var(--on-brand); }
.legal .faq-list { margin-top: 12px; }
