/* YupYup website: one stylesheet for every page. Colours follow the app
   (navy launch screen, warm parchment board, orange accents). */

:root {
  --navy: #344151;
  --navy-deep: #262f3b;
  --orange: #f5a623;
  --orange-deep: #e0582b;
  --wood: #8a5a2b;
  --bg: #f6f1e8;
  --panel: #fffaf2;
  --text: #2b2420;
  --muted: #6d6157;
  --line: #e2d6c4;
  --radius: 20px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1613;
    --panel: #25201b;
    --text: #efe6da;
    --muted: #a89a8b;
    --line: #3e352d;
    --wood: #d9a46a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-deep); }
@media (prefers-color-scheme: dark) { a { color: var(--orange); } }

img { max-width: 100%; height: auto; }

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

/* ---- Header ---- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 21px; }
.brand img { width: 40px; height: 40px; }
.nav { margin-left: auto; display: flex; gap: 20px; }
.nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--orange); }
@media (max-width: 560px) { .nav { gap: 14px; } .nav .hide-sm { display: none; } }

/* ---- Hero ---- */
.hero {
  background: radial-gradient(circle at 70% 20%, #46566b 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--orange); }
.hero p.lead { font-size: 20px; color: rgba(255, 255, 255, 0.85); margin: 0 0 28px; max-width: 34em; }
.hero-logo { width: 100%; max-width: 380px; justify-self: center; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35)); }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-logo { max-width: 240px; grid-row: 1; }
  .badges { justify-content: center; }
}

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.badge small { display: block; font-weight: 500; font-size: 11px; opacity: 0.75; line-height: 1; }
.badge svg { width: 26px; height: 26px; fill: currentColor; }
.badge.soon { opacity: 0.85; cursor: default; }
.soon-note { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }

/* ---- Sections ---- */
section { padding: 64px 0; }
section h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 12px; letter-spacing: -0.01em; }
section p.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.step { position: relative; padding: 24px 24px 24px 76px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); color: #2b1a05; font-weight: 900;
  display: grid; place-items: center;
}
.step h3 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Legal pages ---- */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--panel); }
.doc .table-scroll { overflow-x: auto; }
.doc .callout { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin-bottom: 28px; }
.toc ol { margin: 6px 0; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); padding: 36px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer .copy { margin-left: auto; }
@media (max-width: 640px) { .site-footer .copy { margin-left: 0; } }

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 14px;
  background: var(--orange); color: #2b1a05; font-weight: 800; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }
