/* Cipher & Spirit — landing page styles
   Brand: Art Deco gold on near-black. Cinzel display, Josefin Sans body. */

:root {
  --gold: #D4AF37;
  --gold-dim: #A68A2E;
  --green: #74A38C;
  --bg: #1E1E1E;
  --bg-deep: #121212;
  --surface: #252525;
  --surface-hi: #2c2c2c;
  --line: #323232;
  --text: #E0E0E0;
  --text-dim: #A0A0A0;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Josefin Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* The app name "Cipher & Spirit" — Cinzel Decorative wherever it appears. */
.brandname {
  font-family: "Cinzel Decorative", "Cinzel", Georgia, serif;
  font-weight: 700;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #e8c659; }

img { max-width: 100%; display: block; }

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

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 32px; width: 32px; }
.brand span { font-family: "Cinzel Decorative", "Cinzel", serif; font-weight: 700; font-size: 1.02rem; letter-spacing: 0.1em; color: var(--gold); }
.nav-cta {
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--gold-dim); color: var(--gold);
  padding: 8px 18px; border-radius: 999px; transition: all .2s ease;
}
.nav-cta:hover { background: var(--gold); color: var(--bg-deep); }

/* ---- hero ---- */
.hero {
  position: relative;
  text-align: center;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  padding: 96px 0 80px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(212,175,55,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero #map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .logo { height: 124px; width: 124px; margin: 0 auto 28px; filter: drop-shadow(0 8px 30px rgba(0,0,0,0.55)); }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); color: var(--gold); margin-bottom: 18px; }
.hero .wordmark { max-width: 440px; margin: 0 auto 18px; }
.hero .wordmark img { width: 100%; height: auto; filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5)); }
.hero .tagline { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--text); max-width: 620px; margin: 0 auto 14px; }
.hero .sub { color: var(--text-dim); max-width: 560px; margin: 0 auto 38px; }

.deco-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 32px; color: var(--gold-dim); }
.deco-rule::before, .deco-rule::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.deco-rule::after { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.deco-rule .diamond { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold); }

/* ---- store badges ---- */
.badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 22px; min-width: 200px;
  transition: all .2s ease; color: var(--text);
}
.badge:hover { border-color: var(--gold-dim); transform: translateY(-2px); color: var(--text); }
.badge svg { width: 28px; height: 28px; fill: var(--text); flex: 0 0 auto; }
.badge .b-small { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); display: block; }
.badge .b-big { font-family: "Cinzel", serif; font-size: 1.05rem; line-height: 1.1; }
.badge.is-soon { position: relative; opacity: 0.5; cursor: default; pointer-events: none; }
.badge.is-soon svg { fill: var(--text-dim); }
.badge.is-soon .b-big { color: var(--text-dim); }
.badge-soon {
  position: absolute; top: -10px; right: -10px;
  background: var(--gold); color: var(--bg-deep);
  font-family: "Cinzel", serif; font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* ---- sections ---- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--gold); margin-bottom: 14px; }
.section-head p { color: var(--text-dim); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px;
  transition: all .25s ease;
}
.card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.card .ic { font-size: 1.6rem; margin-bottom: 16px; }
.card .ic-array { display: flex; align-items: center; justify-content: flex-start; gap: 6px; margin-bottom: 16px; height: 40px; }
.card .ic-array img { width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); transition: transform .2s ease; }
.card:hover .ic-array img { transform: translateY(-2px); }
.card h3 { font-size: 1.15rem; color: var(--gold); margin-bottom: 10px; letter-spacing: 0.06em; }
.card p { color: var(--text-dim); font-size: 0.98rem; }
.card.green h3 { color: var(--green); }

/* ---- reserve band ---- */
.band {
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(212,175,55,0.08), transparent 55%),
    var(--bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.band .wrap { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.band img { width: 140px; height: 140px; flex: 0 0 auto; filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5)); }
.band .copy { flex: 1; min-width: 280px; }
.band h2 { color: var(--gold); font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: 12px; }
.band p { color: var(--text-dim); max-width: 540px; }

/* ---- footer ---- */
footer { background: var(--bg-deep); padding: 56px 0 40px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
footer .links a { color: var(--text-dim); font-size: 0.9rem; letter-spacing: 0.04em; }
footer .links a:hover { color: var(--gold); }
footer .fine { color: #6a6a6a; font-size: 0.8rem; }

/* ---- recipe fallback page ---- */
.recipe-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.recipe-card {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--gold-dim); border-radius: 20px;
  padding: 36px 32px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}
.recipe-card .kicker { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 10px; }
.recipe-card h1 { font-size: 1.9rem; color: var(--gold); margin-bottom: 8px; }
.recipe-card .desc { color: var(--text-dim); margin-bottom: 24px; font-style: italic; }
.recipe-card .meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.pill { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.pill.af { color: var(--green); border-color: var(--green); }
.ingredients { text-align: left; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 24px; }
.ingredients h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 14px; font-family: "Josefin Sans", sans-serif; }
.ingredients li { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid rgba(50,50,50,0.5); }
.ingredients li:last-child { border-bottom: none; }
.ingredients .amt { color: var(--gold); flex: 0 0 auto; }
.ingredients .name { color: var(--text); }
.ingredients .note { display: block; color: var(--text-dim); font-size: 0.82rem; font-style: italic; }
.btn {
  display: block; width: 100%; padding: 15px; border-radius: 12px;
  font-family: "Cinzel", serif; font-size: 0.95rem; letter-spacing: 0.08em;
  cursor: pointer; border: none; margin-bottom: 12px; transition: all .2s ease;
}
.btn-primary { background: var(--gold); color: var(--bg-deep); }
.btn-primary:hover { background: #e8c659; }
.btn-ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold-dim); }
.btn-ghost:hover { background: var(--surface-hi); }
.recipe-card .fine { color: #6a6a6a; font-size: 0.78rem; margin-top: 8px; }
.error-state h1 { color: var(--text); }

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 60px 0 52px; }
  .band .wrap { flex-direction: column; text-align: center; }
  .band .copy { text-align: center; }
}

/* ---- legal / content pages (privacy, terms, accessibility, support) ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px 88px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--gold); text-align: center; margin-bottom: 18px; }
.legal .deco-rule { margin-bottom: 18px; }
.legal .docbrand { text-align: center; color: var(--text); font-weight: 600; }
.legal .docmeta { text-align: center; color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; margin-bottom: 32px; }
.legal .intro { color: var(--text-dim); line-height: 1.8; max-width: 700px; margin: 0 auto 40px; }
.legal .lsection {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid rgba(212,175,55,0.15); border-radius: 16px;
  padding: 28px 30px; margin-bottom: 22px;
}
.legal .lsection h2 { font-size: 1.2rem; color: var(--gold); letter-spacing: 0.04em; margin-bottom: 14px; }
.legal .lsection h2 .lnum { color: var(--gold-dim); margin-right: 6px; }
.legal .lsection h3 { font-size: 0.98rem; color: var(--text); font-weight: 700; margin: 16px 0 6px; font-family: "Josefin Sans", sans-serif; letter-spacing: 0.02em; }
.legal .lsection p { color: var(--text-dim); line-height: 1.75; margin-bottom: 10px; }
.legal .lsection p:last-child { margin-bottom: 0; }
.legal .lsection ul { list-style: none; margin: 8px 0; }
.legal .lsection li { position: relative; color: var(--text-dim); line-height: 1.7; padding-left: 20px; margin-bottom: 8px; }
.legal .lsection li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.legal .companion { text-align: center; margin-top: 36px; }
.legal .companion a { font-family: "Cinzel", serif; letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .legal { padding: 44px 20px 64px; }
  .legal .lsection { padding: 22px 20px; }
}
