/* ============================================================================
   WedGen — marketing + legal site
   Brand system (mirrors PRODUCT.md + the app's theme tokens).
   Premium wedding-invitation mood: warm gold-on-dark, unhurried, regal.
   Single shared stylesheet, linked absolute (/assets/styles.css) so it
   resolves from every route folder when deployed at the domain root.
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg: #110608;          /* deep maroon-black */
  --surface: #1C0D10;     /* raised surface */
  --surface-2: #241216;   /* cards / hover */
  --line: #3A2228;        /* hairline borders */

  /* Brand + accents */
  --gold: #C9882A;        /* marigold — primary accent */
  --gold-soft: #E0A84E;   /* lighter gold for hover */
  --ruby: #B5293E;
  --saffron: #E07A2B;
  --teal: #2A8B7A;

  /* Text */
  --ink: #F5EDE0;         /* ivory — primary text */
  --muted: #C8B89A;       /* muted gold — secondary text */
  --dim: #9A8B78;         /* tertiary / captions */

  --maxw: 760px;
  --radius: 16px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(201, 136, 42, 0.10), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 2em 0 0.5em; }
h3 { font-size: 1.25rem; margin: 1.6em 0 0.4em; color: var(--muted); }

p { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); text-decoration: underline; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin: 0.35em 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---- Layout -------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---- Site header (wordmark) --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(17, 6, 8, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 32px; width: auto; display: block; flex-shrink: 0; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.5px; line-height: 1;
}
.brand .byline {
  font-family: "DM Sans", sans-serif; font-size: 0.6rem; color: var(--dim);
  letter-spacing: 0.2px; margin-top: 3px;
}
@media (max-width: 420px) { .brand .byline { display: none; } }
.nav-links { display: flex; gap: 20px; font-size: 0.9rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--gold); text-decoration: none; }
@media (max-width: 560px) { .nav-links { display: none; } }

/* ---- Hero (landing) ------------------------------------------------------ */
.hero { text-align: center; padding: clamp(56px, 12vw, 120px) 0 40px; }
.hero .eyebrow {
  font-size: 0.82rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4em;
}
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero .lead {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: var(--muted);
  max-width: 52ch; margin: 1.2em auto 2em;
}
.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 0.92rem;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---- Feature grid -------------------------------------------------------- */
.features { padding: 20px 0 40px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 1.8em;
}
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.feature h3 { margin: 0 0 0.4em; color: var(--ink); font-family: inherit;
  font-size: 1.05rem; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }
.feature .icon { color: var(--gold); font-size: 1.3rem; margin-bottom: 10px; display: block; }

/* ---- Buttons / CTA ------------------------------------------------------- */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 2em 0 1.6em; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #1a0d06; }
.btn-primary:hover { background: var(--gold-soft); color: #1a0d06; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Generic content sections (landing) --------------------------------- */
.section { padding: 60px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto; }
.section-head .eyebrow {
  font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin: 0 0 0.8em;
}
.section-head h2 { margin: 0 0 0.3em; }
.section-head .sub { color: var(--muted); margin: 0.4em auto 0; font-size: 1.05rem; }

/* Persona / role cards + how-it-works steps */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 2.2em; }
.persona {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.section.alt .persona { background: var(--bg); }
.persona h3 { margin: 0 0 0.5em; color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 1.4rem; }
.persona p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 2.4em; }
.step { text-align: center; padding: 8px; }
.step .num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: "Cormorant Garamond", serif; font-size: 1.6rem; font-weight: 600;
}
.step h3 { margin: 0 0 0.4em; color: var(--ink); font-family: inherit; font-size: 1.05rem; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Trust / privacy list */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 2.2em; text-align: left; }
.trust-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
}
.section.alt .trust-item { background: var(--bg); }
.trust-item .tick { color: var(--gold); font-size: 1.1rem; line-height: 1.5; flex-shrink: 0; }
.trust-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.trust-item strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { color: var(--muted); max-width: 48ch; margin-inline: auto; }

/* ---- Legal / content pages ---------------------------------------------- */
.doc { padding: 44px 0 20px; }
.doc .meta {
  color: var(--dim); font-size: 0.9rem; margin: 0 0 1.6em;
  padding-bottom: 1.4em; border-bottom: 1px solid var(--line);
}
.doc .meta strong { color: var(--muted); }
.summary {
  background: var(--surface); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 16px 20px; margin: 0 0 2em; color: var(--muted);
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 24px; margin: 18px 0;
}

/* Loud placeholder for legal fields that MUST be filled before go-live. */
.todo {
  background: #F2C94C; color: #3A2600; font-weight: 700;
  padding: 1px 8px; border-radius: 5px; font-size: 0.9em;
  white-space: nowrap;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  margin-top: 64px; border-top: 1px solid var(--line);
  background: var(--surface); padding: 44px 0 36px;
}
.site-footer .wrap { text-align: center; }
.footer-logo { height: 48px; width: auto; display: block; margin: 0 auto 12px; }
.footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem; font-weight: 600; color: var(--gold);
  margin: 0;
}
.footer-by { color: var(--dim); font-size: 0.86rem; margin: 4px 0 0; }
.footer-contact {
  color: var(--muted); font-size: 0.9rem; line-height: 1.7;
  margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-contact .label {
  display: block; text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.7rem; color: var(--dim); margin-bottom: 6px;
}
.footer-contact a { color: var(--gold); }
.footer-links {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  margin: 0 0 18px; font-size: 0.92rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.copyright { color: var(--dim); font-size: 0.85rem; margin: 0; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
