/* WEDDI pre-launch — the app's design system on the web.
   Tokens mirror app/lib/core/theme/weddi_colors.dart exactly. */

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --canvas: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #2D1B16;
  --muted: #968169;
  --accent: #D67951;
  --accent-ink: #A54D27;
  --accent-soft: #FAEFEA;
  --fill: #EEE8E2;
  --hairline: #E4DED7;
  --night: #1A120F;
  --night-ink: #F0EBE6;
  --night-muted: #9D8D7B;
  --shadow: 0 8px 20px rgba(138,114,102,.08), 0 2px 6px rgba(138,114,102,.10);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1A120F;
    --surface: #251C18;
    --ink: #F0EBE6;
    --muted: #9D8D7B;
    --accent: #CB734D;
    --accent-ink: #D79275;
    --accent-soft: #3E271E;
    --fill: #372925;
    --hairline: #3C2E2A;
    --shadow: 0 8px 20px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.is-hidden { display: none !important; }

/* Honeypot lives off-screen, not display:none — smarter bots check. */
#website { position: absolute; left: -5000px; opacity: 0; height: 0; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(20px, 5vw, 48px);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(10px);
}
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: .06em; }
.wordmark--small { font-size: 16px; }

/* ── Pills ───────────────────────────────────────────── */
.pill {
  display: inline-block; border: 0; cursor: pointer;
  font: 600 16px/1 'DM Sans', sans-serif;
  padding: 15px 28px; border-radius: 999px;
  text-decoration: none; text-align: center;
  transition: transform .2s ease-out, box-shadow .2s ease-out, background .2s ease-out;
}
.pill--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.pill--accent:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(138,114,102,.18); }
.pill--accent:active { transform: translateY(0); }
.pill--quiet { background: var(--fill); color: var(--ink); }
.pill--quiet:hover { background: var(--hairline); }
.pill:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; }

/* ── Type helpers ───────────────────────────────────── */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow--light { color: rgba(240,235,230,.75); }
.sub { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.whisper { color: var(--muted); font-size: 14px; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 86svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 18px;
  padding: 48px clamp(20px, 6vw, 48px) 72px;
}
.hero h1 {
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.06;
  max-width: 15ch; text-wrap: balance;
}
.hero .sub { max-width: 34ch; text-wrap: balance; }
.hero .pill { margin-top: 10px; }

/* The Open button the visitor hasn't met yet. */
.halo {
  position: absolute; z-index: -1;
  width: min(72vw, 560px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--accent) 26%, transparent) 0%,
    color-mix(in srgb, var(--accent) 12%, transparent) 45%,
    transparent 70%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* ── Night riddles ───────────────────────────────────── */
.night {
  background: var(--night); color: var(--night-ink);
  padding: clamp(72px, 12vw, 140px) clamp(24px, 8vw, 120px);
}
.riddles { list-style: none; display: grid; gap: clamp(28px, 5vw, 48px); }
.riddles li {
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 700; letter-spacing: -.015em; line-height: 1.15;
  max-width: 22ch;
}
.riddles em { font-style: normal; color: var(--accent); }
@media (prefers-color-scheme: dark) { .riddles em { color: #CB734D; } }
.night__kicker {
  margin-top: clamp(40px, 6vw, 64px);
  color: var(--night-muted); font-size: 15px;
}

/* Scroll reveal — JS adds .is-seen; without JS everything is visible. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px);
    transition: opacity .6s ease-out, transform .6s ease-out; }
  .js .reveal.is-seen { opacity: 1; transform: none; }
}

/* ── Places ─────────────────────────────────────────── */
.places { position: relative; color: #F6EFE7; overflow: hidden; }
.places__scene {
  position: absolute; inset: 0; z-index: 0;
  /* A Dubai terrace at dusk, painted in CSS: sky → skyline glow → candle warmth. */
  background:
    radial-gradient(120% 90% at 82% 100%, rgba(214,121,81,.55) 0%, transparent 52%),
    radial-gradient(90% 60% at 15% 96%, rgba(255,196,128,.32) 0%, transparent 45%),
    linear-gradient(180deg, #241820 0%, #3A2230 34%, #6C3A33 66%, #A0522D 88%, #C06840 100%);
}
.places__scene::after {
  /* city bokeh */
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(3px 3px at 12% 78%, rgba(255,214,165,.9) 40%, transparent 60%),
    radial-gradient(2px 2px at 22% 84%, rgba(255,193,132,.7) 40%, transparent 60%),
    radial-gradient(4px 4px at 33% 80%, rgba(255,226,178,.8) 40%, transparent 60%),
    radial-gradient(2px 2px at 47% 86%, rgba(255,200,140,.6) 40%, transparent 60%),
    radial-gradient(3px 3px at 58% 79%, rgba(255,220,170,.85) 40%, transparent 60%),
    radial-gradient(2px 2px at 71% 83%, rgba(255,205,150,.7) 40%, transparent 60%),
    radial-gradient(4px 4px at 84% 77%, rgba(255,228,180,.9) 40%, transparent 60%),
    radial-gradient(2px 2px at 93% 85%, rgba(255,210,155,.65) 40%, transparent 60%);
  filter: blur(1.5px);
}
.places__inner {
  position: relative; z-index: 1;
  padding: clamp(80px, 14vw, 160px) clamp(24px, 8vw, 120px);
  display: flex; flex-direction: column; gap: 10px;
}
.places h2 { font-size: clamp(44px, 8vw, 88px); font-weight: 700; letter-spacing: -.02em; }
.places__venues { font-size: 15px; letter-spacing: .04em; color: rgba(246,239,231,.85); }
.redact {
  background: rgba(246,239,231,.28); color: transparent;
  border-radius: 4px; user-select: none;
}

/* ── Told / FAQ ─────────────────────────────────────── */
.told {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 48px);
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px;
}
.faq { display: grid; gap: 16px; }
.faq__item {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px;
}
.faq__item dt { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.faq__item dd { color: var(--muted); }

/* ── Waitlist ───────────────────────────────────────── */
.line {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 6vw, 48px) clamp(96px, 12vw, 150px);
  display: flex; flex-direction: column; align-items: center;
}
.halo--stage { width: min(90vw, 720px); top: 50%; left: 50%; translate: -50% -50%; position: absolute; }
.line h2 { font-size: clamp(34px, 6vw, 56px); font-weight: 700; letter-spacing: -.02em; }
.line .sub { margin-top: 8px; }
#waitlist-form { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#waitlist-form input[type=email],
#waitlist-form input[type=text]:not(#website),
#waitlist-form select {
  font: 500 16px 'DM Sans', sans-serif; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 15px 22px; min-width: 260px;
  box-shadow: var(--shadow);
}
#waitlist-form select { min-width: 160px; cursor: pointer; }
#waitlist-form input:focus-visible, #waitlist-form select:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.form-note { color: var(--muted); font-size: 13px; }
.form-note.is-error { color: #C2402E; font-weight: 600; }

/* Joined state */
.line__joined { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.position {
  font-size: clamp(72px, 15vw, 128px); font-weight: 700;
  letter-spacing: -.03em; color: var(--accent);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.move-up { margin-top: 10px; font-weight: 600; }
.share-row { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }

/* ── Footer ─────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--hairline);
  padding: 36px clamp(20px, 5vw, 48px) 44px;
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
}
.foot__tag { color: var(--muted); font-size: 14px; }
.foot__links { display: flex; gap: 20px; }
.foot__links a { color: var(--accent-ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.foot__links a:hover { text-decoration: underline; }
.foot__copy { color: var(--muted); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .halo { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Multi-page additions ───────────────────────────── */
.nav__links { display: flex; gap: clamp(10px, 2.5vw, 26px); align-items: center; flex-wrap: wrap; }
.nav__links a:not(.pill) {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav__links a:not(.pill):hover { color: var(--accent-ink); }
.nav .wordmark { text-decoration: none; color: inherit; }

/* Small page hero for subpages */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 6vw, 48px) clamp(40px, 6vw, 72px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.page-hero h1 {
  font-size: clamp(32px, 5.4vw, 56px); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.08; max-width: 18ch; text-wrap: balance;
}
.page-hero .halo { width: min(60vw, 420px); }
.page-hero .sub { max-width: 52ch; text-wrap: balance; }

/* Prose sections */
.prose {
  max-width: 680px; margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 6vw, 48px) clamp(64px, 8vw, 96px);
  display: flex; flex-direction: column; gap: 18px;
}
.prose h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -.015em; margin-top: 18px; }
.prose h3 { font-size: 19px; font-weight: 700; margin-top: 8px; }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--accent-ink); }
.prose .lead { font-size: 19px; color: var(--ink); }

/* Numbered step cards (a genuine sequence) */
.steps {
  max-width: 980px; margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 48px) clamp(56px, 8vw, 88px);
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.step { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; }
.step__num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 700; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Audience chips */
.audience {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 720px; margin: 0 auto; padding: 0 20px clamp(56px, 8vw, 88px);
}
.audience span {
  background: var(--fill); border-radius: 999px; padding: 10px 18px;
  font-size: 15px; font-weight: 500; color: var(--ink);
}

/* CTA banner for subpages */
.cta-banner {
  text-align: center; padding: clamp(56px, 9vw, 96px) 24px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.cta-banner h2 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 700; letter-spacing: -.02em; }

/* Section heading block on home */
.section-head { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(56px, 8vw, 88px) 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 700; letter-spacing: -.02em; }

/* Breadcrumbs */
.crumbs { max-width: 680px; margin: 0 auto; padding: 18px clamp(20px, 6vw, 48px) 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }

/* Footer columns */
.foot--full { align-items: stretch; text-align: left; gap: 24px; }
.foot__grid { display: flex; flex-wrap: wrap; gap: clamp(24px, 6vw, 72px); justify-content: space-between; max-width: 980px; margin: 0 auto; width: 100%; }
.foot__col { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.foot__col h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.foot__col a { color: var(--ink); text-decoration: none; font-size: 14px; }
.foot__col a:hover { color: var(--accent-ink); }
.foot__base { text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }

/* ── Mobile nav (CSS-only hamburger) ───────────────── */
.nav { flex-wrap: wrap; }
.nav__actions { display: none; align-items: center; gap: 12px; }
.nav__cta { padding: 11px 18px; font-size: 14px; }

/* The checkbox IS the tap/keyboard target; it sits invisibly over the burger. */
.nav__check { display: none; }

.nav__burger { display: none; width: 26px; height: 20px; position: relative; }
.nav__burger span {
  position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px;
  background: var(--ink); transition: transform .2s ease-out, opacity .2s ease-out;
}
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 8.5px; }
.nav__burger span:nth-child(3) { top: 17px; }

@media (max-width: 740px) {
  .nav__actions { display: flex; }
  .nav__burger { display: block; }
  .nav__check {
    display: block; appearance: none; -webkit-appearance: none;
    position: absolute; right: 14px; top: 18px; width: 38px; height: 34px;
    margin: 0; opacity: 0; z-index: 3; cursor: pointer;
  }
  .nav__check:focus-visible ~ .nav__actions .nav__burger {
    outline: 3px solid var(--accent-ink); outline-offset: 4px; border-radius: 4px;
  }

  /* The panel */
  .nav__links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 16px 30px rgba(138,114,102,.14);
    padding: 6px 0 10px;
  }
  .nav__check:checked ~ .nav__links { display: flex; }
  .nav__links a:not(.pill) {
    padding: 14px clamp(20px, 5vw, 48px);
    font-size: 17px; font-weight: 600;
  }
  .nav__links a:not(.pill):active { background: var(--accent-soft); }
  /* The bar already shows the CTA on mobile — no duplicate in the panel. */
  .nav__links-cta { display: none; }

  /* Burger → X when open */
  .nav__check:checked ~ .nav__actions .nav__burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .nav__check:checked ~ .nav__actions .nav__burger span:nth-child(2) { opacity: 0; }
  .nav__check:checked ~ .nav__actions .nav__burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
}

/* Blog */
.post-list {
  max-width: 760px; margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 6vw, 48px) clamp(64px, 8vw, 96px);
  display: grid; gap: 18px;
}
.post-card {
  display: block; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 28px; text-decoration: none;
  transition: transform .15s ease;
}
.post-card:hover { transform: translateY(-2px); }
.post-card h2 { font-size: clamp(20px, 3vw, 24px); font-weight: 700; letter-spacing: -.015em; color: var(--ink); margin: 4px 0 8px; }
.post-card p { color: var(--muted); font-size: 15.5px; }
.post-card .go { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--accent-ink); font-size: 14.5px; }
.post-meta { font-size: 13.5px; color: var(--muted); }
