/* =========================================================
   Chai Khana — coming soon
   Design system: "modern chai khana"
   Dark espresso base · gold + saffron + teal accents · cream text
   ========================================================= */

:root {
  --bg-0: #14100D;      /* deepest espresso */
  --bg-1: #1E1712;      /* raised panel */
  --bg-2: #2A2019;      /* hover / border */
  --gold: #D6A24A;      /* amber / gold accent */
  --gold-soft: #E7C77E;
  --saffron: #C65D3B;   /* saffron / terracotta */
  --teal: #4E9A92;      /* muted teal-green (tea) */
  --cream: #F4ECE0;     /* primary text */
  --cream-dim: #C9BCA9; /* secondary text */
  --line: rgba(214, 162, 74, 0.18);
  --maxw: 640px;
}

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

body {
  background-color: var(--bg-0);
  color: var(--cream);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Warm radial glow + deep vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(214, 162, 74, 0.14), transparent 55%),
    radial-gradient(90% 60% at 50% 120%, rgba(78, 154, 146, 0.10), transparent 60%),
    var(--bg-0);
  z-index: -3;
}

/* Girih tile motif — subtle, tiled, low opacity */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23D6A24A' stroke-width='1' opacity='0.5'%3E%3Cpath d='M60 8 L74 34 L102 34 L82 54 L92 82 L60 66 L28 82 L38 54 L18 34 L46 34 Z'/%3E%3Crect x='42' y='42' width='36' height='36' transform='rotate(45 60 60)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.06;
  z-index: -2;
  pointer-events: none;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 56px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: auto;
}
.topbar .mark { width: 26px; height: 26px; }
.topbar .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  padding-left: 0.28em;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  margin: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(214, 162, 74, 0.05);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(78, 154, 146, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(78, 154, 146, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(78, 154, 146, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 154, 146, 0); }
}

.emblem { width: 64px; height: 64px; margin: 28px 0 14px; }

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(52px, 12vw, 84px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--cream);
}
.brand .khana { color: var(--gold); }

.script {
  font-family: 'Amiri', serif;
  font-size: clamp(26px, 6vw, 34px);
  color: var(--gold-soft);
  margin-top: 6px;
  opacity: 0.9;
  direction: rtl;
}

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 20px;
  color: var(--gold);
  opacity: 0.75;
}
.divider span { height: 1px; width: 46px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.divider svg { width: 14px; height: 14px; }

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 4.5vw, 28px);
  color: var(--cream);
  margin: 0 0 18px;
  max-width: 30ch;
}

.blurb {
  color: var(--cream-dim);
  font-size: 15.5px;
  max-width: 46ch;
  margin: 0 auto;
}

/* ---- Region chips ---- */
.regions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 4px;
  list-style: none;
  padding: 0;
}
.regions li {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid var(--bg-2);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---- Waitlist card ---- */
.card {
  background: linear-gradient(180deg, var(--bg-1), rgba(30, 23, 18, 0.6));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  margin: 40px auto 0;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 4px;
  color: var(--cream);
}
.card p.sub { margin: 0 0 20px; color: var(--cream-dim); font-size: 14px; }

form { display: flex; flex-direction: column; gap: 12px; }

.field { text-align: left; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0 0 6px 2px;
}
.field label .opt { text-transform: none; letter-spacing: 0; color: #8a7d6c; }

input[type="text"], input[type="email"] {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--bg-2);
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--cream);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: #6b5f51; }
input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 162, 74, 0.15);
}

.consent {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 12.5px; color: var(--cream-dim); text-align: left;
  margin-top: 2px;
}
.consent input { margin-top: 3px; accent-color: var(--gold); }

/* Turnstile widget spacing */
.cf-turnstile { margin: 2px auto 0; }

button.submit {
  margin-top: 6px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #201810;
  border: none;
  border-radius: 11px;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.12s, filter 0.2s;
}
button.submit:hover { filter: brightness(1.06); }
button.submit:active { transform: translateY(1px); }
button.submit:disabled { opacity: 0.6; cursor: default; }

.form-msg { font-size: 13px; margin-top: 4px; min-height: 18px; }
.form-msg.error { color: var(--saffron); }

/* success state */
.success { display: none; }
.success.show { display: block; animation: fade 0.5s ease; }
.success .check {
  width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.success h2 { color: var(--cream); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Footer ---- */
footer {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
  color: var(--cream-dim);
  font-size: 13px;
}
.socials { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.socials a:hover { color: var(--gold); border-color: var(--line); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

footer .contact a { color: var(--gold-soft); text-decoration: none; }
footer .contact a:hover { text-decoration: underline; }
footer .legal { margin-top: 10px; font-size: 11.5px; color: #6b5f51; letter-spacing: 0.04em; }
.uc { text-transform: uppercase; letter-spacing: 0.18em; font-size: 10.5px; color: var(--gold); opacity: 0.7; margin-bottom: 22px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
