/* Abendly — abendly.de · Design-System aus der App (GOAL.md) */

:root {
  --cream: #f7f3ed;
  --card: #faf7f2;
  --ink: #1b1714;
  --sek: #4b3a2c;
  --muted: #8a7f75;
  --amber: #e2a72e;
  --cta: #c0451f;
  --cta-hover: #a13c1a;
  --line: #e6dfd5;
  --sage: #8FA97E;
  --terra: #C4674A;
  --butter: #D9A441;
  --blau: #7D9BB0;
  --clay: #C89B8C;
  --olive: #7E8A5A;
  --radius: 24px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--cta); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 237, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 22px; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 17px;
  border: none; border-radius: 999px; cursor: pointer;
  padding: 13px 26px; transition: background .15s ease, transform .1s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--sek); }
.btn-small { padding: 9px 18px; font-size: 15px; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 48px; align-items: center;
}
.kicker {
  display: inline-block; font-size: 13px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--terra);
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.08; font-weight: 800; letter-spacing: -.015em;
  margin-bottom: 20px;
}
h1 .accent { color: var(--cta); }
.lead { font-size: 20px; color: var(--sek); max-width: 34em; margin-bottom: 28px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
.store-badge img { height: 52px; width: auto; }
.launch-note { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--sek); font-weight: 600; }
.trust-row span::before { content: "✓ "; color: var(--olive); font-weight: 800; }

.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone::before {
  content: ""; position: absolute; inset: -8% -12%;
  background:
    radial-gradient(42% 42% at 68% 22%, rgba(226,167,46,.22), transparent 70%),
    radial-gradient(50% 50% at 28% 78%, rgba(143,169,126,.20), transparent 72%);
  z-index: 0; border-radius: 50%;
}
.phone {
  position: relative; z-index: 1;
  width: min(320px, 78vw);
  border: 9px solid var(--ink); border-radius: 46px;
  overflow: hidden; background: var(--cream);
  box-shadow: 0 28px 70px rgba(27, 23, 20, .22);
}
.phone img { width: 100%; height: auto; }

/* ---------- Stats band ---------- */
.stats { padding: 34px 0; }
.stats-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.stat span { font-size: 15px; color: var(--muted); font-weight: 600; }
.stats-foot { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
h2 {
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 800;
  letter-spacing: -.01em; line-height: 1.15; margin-bottom: 12px;
}
.section-lead { font-size: 18px; color: var(--sek); max-width: 38em; margin-bottom: 40px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
}
.step .num {
  display: inline-flex; width: 42px; height: 42px; border-radius: 14px;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px; margin-bottom: 16px;
}
.step:nth-child(1) .num { background: rgba(143,169,126,.20); color: var(--olive); }
.step:nth-child(2) .num { background: rgba(217,164,65,.20); color: #9a7218; }
.step:nth-child(3) .num { background: rgba(125,155,176,.20); color: #4e6d84; }
.step h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 16px; color: var(--sek); }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; padding: 44px 0;
}
.feature .phone { width: min(290px, 74vw); margin: 0 auto; box-shadow: 0 20px 50px rgba(27,23,20,.16); }
.feature h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.feature p { font-size: 17.5px; color: var(--sek); max-width: 30em; }
.feature .tag {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
}
.tag-sage { background: rgba(143,169,126,.20); color: var(--olive); }
.tag-butter { background: rgba(217,164,65,.20); color: #9a7218; }
.tag-blau { background: rgba(125,155,176,.20); color: #4e6d84; }
.tag-clay { background: rgba(200,155,140,.24); color: #96604e; }

/* Savings band */
.savings-band {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 32px; text-align: center;
}
.savings-band .big { font-size: clamp(44px, 6vw, 64px); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.savings-band .big small { font-size: .45em; font-weight: 800; color: var(--sek); }
.savings-band p { color: var(--sek); font-size: 18px; max-width: 30em; margin: 10px auto 0; }
.savings-band .foot { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Retailers */
.retailers { text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 14px; }
.chip {
  padding: 8px 18px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--sek);
}
.retailers .foot { font-size: 13px; color: var(--muted); max-width: 46em; margin: 0 auto; }

/* ---------- Waitlist ---------- */
.waitlist { padding: 64px 0; }
.waitlist-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 48px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.waitlist-card h2 { margin-bottom: 10px; }
.waitlist-card .section-lead { margin-bottom: 0; }
.wl-form { display: grid; gap: 14px; }
.seg { display: flex; gap: 10px; }
.seg label {
  flex: 1; text-align: center; padding: 11px 10px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 700; font-size: 15.5px;
  cursor: pointer; background: #fff; color: var(--sek);
  transition: all .12s ease;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { }
.seg label:has(input:checked) {
  background: var(--terra); border-color: var(--terra); color: #fff;
}
.seg label:has(input:checked) span::before { content: "✓ "; }
.wl-form input[type=email], .wl-form input[type=tel] {
  font-family: inherit; font-size: 17px; color: var(--ink);
  padding: 14px 18px; border-radius: 16px; border: 1.5px solid var(--line);
  background: #fff; width: 100%; outline: none;
}
.wl-form input:focus { border-color: var(--sek); }
.wl-form .hint { font-size: 13px; color: var(--muted); margin-top: -8px; padding-left: 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--sek); }
.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--cta); flex-shrink: 0; }
.wl-success {
  display: none; background: rgba(143,169,126,.18); border: 1px solid var(--sage);
  color: #3d4f31; border-radius: 16px; padding: 18px 20px; font-weight: 700;
}
.wl-error { display: none; color: var(--cta); font-size: 14.5px; font-weight: 700; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 760px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 22px;
}
.faq-list summary {
  font-weight: 800; font-size: 17.5px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 10px; color: var(--sek); font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.footer-links a { color: var(--sek); font-weight: 600; }
.site-footer .fine { font-size: 13px; color: var(--muted); margin-top: 26px; max-width: 56em; }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 36px; margin: 8px 0 24px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--sek); font-size: 16.5px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal .card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; white-space: pre-line; font-weight: 600; color: var(--ink);
}
.legal .stand { color: var(--muted); font-size: 14px; margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 44px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .stats-inner { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 30px; padding: 32px 0; }
  .feature.flip .feature-media { order: 0; }
  .waitlist-card { grid-template-columns: 1fr; padding: 34px 24px; gap: 30px; }
  section { padding: 40px 0; }
}
@media (min-width: 861px) {
  .feature.flip .feature-media { order: -1; }
}
