/* ============================================================
   PlanYourShaadi — Brand & Component CSS
   Tokens are sourced from the PRD §10 brand guidelines.
   ============================================================ */

:root {
  /* Color */
  --ink: #1B1F4B;          /* Ink Indigo — primary */
  --ink-90: #2A2F58;
  --ink-70: #4A4F76;
  --ink-50: #7A7F9A;
  --ink-30: #B0B4C5;
  --ink-15: #DCDEE6;
  --ink-08: #ECEDF1;
  --ink-04: #F4F5F7;

  --marigold: #F4A12A;     /* Accent 1 — joy, CTA */
  --marigold-deep: #D88815;
  --marigold-soft: #FAE0B0;
  --marigold-wash: #FDF1D9;

  --rose: #D33A4B;         /* Accent 2 — sindoor, sparingly */
  --coral: #FF6B6B;        /* Accent 3 — badges/highlights */
  --mehendi: #3D8B5D;      /* Success */
  --saffron: #E2911E;      /* Warning */
  --crimson: #B23A48;      /* Error */

  --ivory: #FAF7F2;        /* Page bg */
  --ivory-deep: #F2EDE3;
  --paper: #FFFFFF;
  --charcoal: #2A2A2A;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --font-deva: "Noto Sans Devanagari", "Inter", sans-serif;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --section-pad: clamp(72px, 9vw, 120px);

  /* Hairlines */
  --hair: 1px solid rgba(27, 31, 75, 0.10);
  --hair-strong: 1px solid rgba(27, 31, 75, 0.18);
}

/* =========== Reset =========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* =========== Typography =========== */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--marigold);
  margin-right: 10px;
  vertical-align: 2px;
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-70);
  text-wrap: pretty;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.06; color: var(--ink); margin: 0; }
h1 { font-size: clamp(48px, 6.4vw, 84px); }
h2 { font-size: clamp(36px, 4.2vw, 56px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); }
h4 { font-size: 20px; line-height: 1.3; }

.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.deva { font-family: var(--font-deva); }

/* =========== Layout =========== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }

/* =========== Nav =========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: var(--hair);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 36px;
}
.brandmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brandmark .glyph {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--marigold);
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-70);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* =========== Buttons =========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  font-family: var(--font-sans);
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink); color: var(--ivory);
}
.btn-primary:hover { background: #0f1238; }
.btn-marigold {
  background: var(--marigold); color: var(--ink);
}
.btn-marigold:hover { background: var(--marigold-deep); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(27,31,75,0.18);
}
.btn-ghost:hover { background: rgba(27,31,75,0.05); }
.btn-text {
  padding: 12px 6px;
  color: var(--ink);
  font-weight: 600;
}
.btn-text .arr { transition: transform .2s ease; }
.btn-text:hover .arr { transform: translateX(3px); }
.btn-lg { padding: 16px 26px; font-size: 15.5px; }

/* =========== Generic cards =========== */
.card {
  background: var(--paper);
  border: var(--hair);
  border-radius: var(--r-lg);
}
.card-hairline {
  background: transparent;
  border: var(--hair);
  border-radius: var(--r-lg);
}

/* =========== Footer =========== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding-top: 80px;
  padding-bottom: 32px;
}
.footer h5 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 16px;
}
.footer a { display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,0.78); }
.footer a:hover { color: var(--marigold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
}
.footer-lockup {
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 4px;
}
.footer-domain {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--marigold);
  letter-spacing: -0.01em;
}
.footer-tag {
  margin-top: 16px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
  line-height: 1.55;
}
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}
.footer-badges { display: flex; gap: 14px; align-items: center; }
.badge-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.badge-pill.live { color: var(--marigold); border-color: rgba(244,161,42,0.4); }

/* =========== Utility =========== */
.grid { display: grid; gap: 24px; }
.row { display: flex; gap: 24px; align-items: center; }
.spacer { flex: 1; }
.muted { color: var(--ink-70); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink-04);
  color: var(--ink-70);
}
.tag.live { background: rgba(61,139,93,0.12); color: var(--mehendi); }
.tag.warn { background: rgba(226,145,30,0.14); color: #9c5e10; }
.tag.alert { background: rgba(211,58,75,0.12); color: var(--rose); }
.tag.marigold { background: var(--marigold-wash); color: #8a5a09; }
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
}
.dot.green { background: var(--mehendi); }
.dot.amber { background: var(--saffron); }
.dot.red { background: var(--rose); }
.dot.gold { background: var(--marigold); }

/* =========== Mockup chrome (used everywhere) =========== */
.mock {
  background: var(--paper);
  border: var(--hair-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  box-shadow: 0 32px 80px -40px rgba(27,31,75,0.25), 0 8px 24px -16px rgba(27,31,75,0.12);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: var(--hair);
  background: linear-gradient(to bottom, #fff, #fbfaf7);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-15); }
.mock-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-50);
  background: var(--ivory);
  padding: 4px 10px;
  border-radius: 999px;
  border: var(--hair);
}

/* =========== Phone frame =========== */
.phone {
  width: 232px;
  background: var(--ink);
  border-radius: 36px;
  padding: 8px;
  border: 1px solid #0a0c2c;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.45), 0 8px 24px -12px rgba(0,0,0,0.2);
}
.phone-screen {
  background: var(--ivory);
  border-radius: 28px;
  overflow: hidden;
  height: 460px;
  position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 18px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 3;
}

/* =========== Specific helpers =========== */
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--ink-04);
  border: var(--hair);
  border-bottom-width: 2px;
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink-70);
}

/* ==========================================================
   FESTIVE ORNAMENT SYSTEM
   Line-based Indian ornament — never gaudy.
   ========================================================== */

:root {
  /* Festive accents are intentionally locked to marigold + rose so
     they read as celebratory even if the brand palette gets darker. */
  --festive-1: #F4A12A;   /* marigold */
  --festive-2: #D33A4B;   /* rose vermillion */
  --festive-3: #3D8B5D;   /* mehendi green */
  --ornament-opacity: 1;
}
[data-ornament="minimal"] { --ornament-opacity: 0; }
[data-ornament="festive"] { --ornament-opacity: 1; }
[data-ornament="maximal"] { --ornament-opacity: 1; }
[data-ornament="minimal"] .ornament,
[data-ornament="minimal"] .toran-row,
[data-ornament="minimal"] .flourish,
[data-ornament="minimal"] .section-deva,
[data-ornament="minimal"] .ritual-mandala-bg { display: none; }
[data-ornament="maximal"] .ornament,
[data-ornament="maximal"] .flourish { opacity: 1; }

/* TORAN — full-width line-art marigold garland with hanging mango leaves */
.toran-row {
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--ornament-opacity);
}
.toran-row svg { width: 100%; display: block; }
.toran-row .leaf { fill: var(--festive-3); opacity: 0.55; }
.toran-row .floret-c { fill: var(--festive-1); }
.toran-row .floret-p { fill: var(--festive-1); opacity: 0.7; }
.toran-row .string { stroke: var(--festive-1); opacity: 0.5; }
.toran-row .accent { fill: var(--festive-2); }

/* MANDALA FLOURISH — single ornament centred between sections */
.flourish {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 24px 0;
  opacity: var(--ornament-opacity);
}
.flourish::before, .flourish::after {
  content: ""; flex: 1; max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(27,31,75,0.18), transparent);
}
.flourish svg { display: block; }
.flourish .petal { fill: var(--festive-1); }
.flourish .center { fill: var(--festive-2); }
.flourish .ring { fill: none; stroke: var(--festive-1); stroke-width: 1; opacity: 0.6; }
.flourish.on-dark::before, .flourish.on-dark::after {
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.22), transparent);
}

/* DEVANAGARI watermark — script as decoration */
.section-deva {
  font-family: var(--font-deva);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--festive-2);
  margin-top: 8px;
  opacity: 0.85;
}
.section-deva.on-dark { color: var(--festive-1); }
.section-watermark {
  position: absolute;
  font-family: var(--font-deva);
  font-weight: 600;
  font-size: 240px;
  color: var(--ink);
  opacity: 0.025;
  letter-spacing: -0.04em;
  pointer-events: none;
  line-height: 0.9;
  user-select: none;
}
.section-watermark.on-dark {
  color: var(--festive-1);
  opacity: 0.08;
}

/* HERO warm wash */
.hero-warm-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% 18%, rgba(244,161,42,0.10) 0%, transparent 60%),
    radial-gradient(720px 420px at 92% 76%, rgba(211,58,75,0.06) 0%, transparent 65%);
  opacity: var(--ornament-opacity);
}
.hero-dot-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(27,31,75,0.06) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 60%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 60%);
  opacity: calc(0.5 * var(--ornament-opacity));
}

/* RITUAL section mandala line-art bg */
.ritual { position: relative; overflow: hidden; }
.ritual-mandala-bg {
  position: absolute; top: 50%; left: 50%;
  width: 1100px; height: 1100px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
}
.ritual-mandala-bg svg { width: 100%; height: 100%; }
.ritual > .container { position: relative; z-index: 1; }

/* Brand glyph — flower-mark P */
.brandmark .glyph { padding: 0; }
.brandmark .glyph svg { width: 18px; height: 18px; display: block; }

/* Diya glow behind final CTA */
.final-cta .diya-glow {
  position: absolute; left: 50%; top: 50%;
  width: 720px; height: 720px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(244,161,42,0.22) 0%, rgba(244,161,42,0.08) 30%, transparent 60%);
  pointer-events: none;
  opacity: var(--ornament-opacity);
  z-index: 0;
}
.final-cta .container { position: relative; z-index: 1; }

/* Ritual ribbon glyph upgrade — line-art SVGs replace the letter */
.ritual-node .glyph {
  background: var(--ink);
  border: 1.5px solid rgba(255,255,255,0.30);
}
.ritual-node .glyph svg {
  width: 28px; height: 28px;
  stroke: var(--festive-1);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ritual-node .glyph svg .fill { fill: var(--festive-1); stroke: none; }

/* Festive numbers strip — between hero & problem (replaces bland logobar) */
.fest-strip {
  background: linear-gradient(to right, var(--ink) 0%, var(--ink) 100%);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
  padding: 28px 0;
}
.fest-strip .ornament-band {
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background-image: radial-gradient(circle, rgba(244,161,42,0.22) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
  opacity: 0.5;
  pointer-events: none;
}
.fest-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.fest-strip .item { display: flex; align-items: baseline; gap: 10px; }
.fest-strip .num {
  font-family: var(--font-display); font-size: 28px;
  color: var(--festive-1); letter-spacing: -0.02em;
}
.fest-strip .lbl { font-size: 12.5px; color: rgba(255,255,255,0.7); letter-spacing: 0.02em; }
.fest-strip .sep { color: rgba(255,255,255,0.15); }

/* Responsive */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links { display: none; }
  .section-watermark { font-size: 140px; }
}
@media (max-width: 680px) {
  :root { --gutter: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .fest-strip-inner .sep { display: none; }
}
