/* Website & Branding — GTM site shared design system.
   House brand tokens lifted from cardgen/card.html: dark base, gold accent,
   DM Serif Display headings + DM Sans body, off-white text. */

:root {
  --bg1: #1b1d21;
  --bg2: #0c0d0f;
  --bg-panel: #16181c;
  --bg-panel-2: #1f2227;
  --gold: #c8963e;
  --gold-soft: #d9af63;
  --off: #f3efe9;
  --muted: #8b867e;
  --line: rgba(200, 150, 62, 0.18);
  --line-soft: rgba(243, 239, 233, 0.08);
  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--off);
  background:
    radial-gradient(120% 90% at 28% 0%, #23262b 0%, var(--bg1) 38%, var(--bg2) 100%) fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

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

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

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

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- skip link / a11y ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: #1b1410; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 13, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'DM Serif Display', serif; font-size: 1.15rem; color: var(--off); }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--off); }
.nav-cta {
  background: var(--gold); color: #1b1410 !important; font-weight: 700;
  padding: 9px 18px; border-radius: 999px; font-size: 0.9rem;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-cta:hover { background: var(--gold-soft); transform: translateY(-1px); }

/* hamburger — toggled by :target / aria, tap-driven (no hover) */
.nav-toggle { display: none; }
.nav-burger {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--off); width: 42px; height: 42px; border-radius: 10px;
  font-size: 1.4rem; line-height: 1; cursor: pointer; align-items: center; justify-content: center;
}

/* ---------- sections ---------- */
section { padding: 84px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); margin: 18px 0 22px; max-width: 18ch; }
.hero .lede { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: #d7d2ca; max-width: 56ch; }
.hero .diff {
  margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--gold);
  background: rgba(200, 150, 62, 0.06); border-radius: 0 10px 10px 0; max-width: 60ch;
  color: #e6e1d9;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn-primary { background: var(--gold); color: #1b1410; }
.btn-primary:hover { background: var(--gold-soft); color: #1b1410; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--off); }
.btn-ghost:hover { border-color: var(--gold); color: var(--off); transform: translateY(-2px); }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tier {
  background: linear-gradient(180deg, var(--bg-panel-2) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tier:hover { transform: translateY(-4px); border-color: var(--line); }
.tier.featured { border-color: var(--gold); box-shadow: var(--shadow); }
.tier .tag { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tier h3 { font-size: 1.7rem; margin: 6px 0 4px; }
.tier .price { font-size: 1.05rem; color: var(--off); font-weight: 700; margin: 12px 0 2px; }
.tier .price .from { color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.tier .recurring { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 8px 0 22px; }
.tier li { position: relative; padding-left: 26px; color: #d7d2ca; font-size: 0.95rem; }
.tier li::before { content: "›"; position: absolute; left: 6px; color: var(--gold); font-weight: 700; }
.tier .meta { color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: auto; }
.tier .meta strong { color: var(--off); font-weight: 600; }
.tier .btn { margin-top: 18px; justify-content: center; }
.price-note { color: var(--muted); font-size: 0.9rem; margin-top: 26px; max-width: 70ch; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step-card {
  background: var(--bg-panel); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 24px 22px; position: relative;
}
.step-card .num {
  font-family: 'DM Serif Display', serif; color: var(--gold);
  font-size: 1.5rem; display: block; margin-bottom: 8px;
}
.step-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- proof ---------- */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.demo-card {
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 30px 28px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.demo-card:hover { transform: translateY(-3px); border-color: var(--line); }
.demo-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.demo-card p { color: var(--muted); margin-bottom: 16px; }
.demo-card .link { font-weight: 700; }
.demo-card .link::after { content: " →"; }

.casestudy-teaser {
  margin-top: 22px; background: rgba(200, 150, 62, 0.05);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px;
}
.casestudy-teaser .eyebrow { margin-bottom: 12px; display: block; }
.casestudy-teaser h3 { font-size: 1.6rem; margin-bottom: 12px; max-width: 26ch; }
.casestudy-teaser p { color: #d7d2ca; max-width: 70ch; margin-bottom: 18px; }

/* ---------- honesty ---------- */
.honesty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.honesty-item {
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 22px;
  background: var(--bg-panel);
}
.honesty-item .icon { color: var(--gold); font-size: 1.4rem; line-height: 1; margin-bottom: 10px; }
.honesty-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.honesty-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- named IP lines ---------- */
.ip-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.ip-item {
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 22px;
  background: var(--bg-panel);
}
.ip-item h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--gold); }
.ip-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- final CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, rgba(200,150,62,0.10), rgba(200,150,62,0.02));
  border: 1px solid var(--line); border-radius: 18px; padding: 54px 40px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: #d7d2ca; max-width: 52ch; margin: 0 auto 26px; }
.cta-band .cta-row { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 40px 0; color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot-inner .brand { font-size: 1rem; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 0.9rem; }
.foot-links a:hover { color: var(--off); }
.foot-note { font-size: 0.82rem; margin-top: 6px; }

/* ---------- case study page ---------- */
.cs-hero { padding: 86px 0 40px; }
.cs-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 22ch; margin: 16px 0 18px; }
.cs-hero .lede { color: #d7d2ca; font-size: 1.15rem; max-width: 62ch; }
.cs-body { max-width: 760px; }
.cs-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 14px 0 14px; }
.cs-body h3 { font-size: 1.3rem; margin: 26px 0 8px; color: var(--off); }
.cs-body p { color: #d7d2ca; margin-bottom: 18px; font-size: 1.05rem; }
.cs-block { margin-bottom: 56px; }
.cs-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
.cs-list li { position: relative; padding-left: 30px; color: #d7d2ca; }
.cs-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px;
  border: 2px solid var(--gold); border-radius: 3px;
}
.method { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.method-item {
  border-left: 3px solid var(--gold); padding: 4px 0 4px 20px;
  background: rgba(200,150,62,0.04); border-radius: 0 8px 8px 0; padding-right: 18px; padding-top: 16px; padding-bottom: 16px;
}
.method-item h3 { margin: 0 0 6px; font-size: 1.15rem; }
.method-item p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* rendered illustration frame (anonymized, labeled) */
.figure {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--bg-panel); margin: 22px 0;
}
.figure .frame { padding: 28px; display: grid; gap: 18px; }
.fig-cap { padding: 12px 18px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.85rem; }
.fig-cap .render { color: var(--gold); font-weight: 700; }

/* before/after illustrative mock */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba-tile { border-radius: 10px; padding: 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.ba-stock {
  background: repeating-linear-gradient(45deg, #2a2c30, #2a2c30 12px, #25272b 12px, #25272b 24px);
  border: 1px dashed var(--muted); color: var(--muted);
}
.ba-real {
  background: radial-gradient(120% 100% at 30% 20%, #2b2f36, #16181c);
  border: 1px solid var(--gold); color: var(--off);
}
.ba-tile .lbl { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.ba-tile .ba-head { font-family: 'DM Serif Display', serif; font-size: 1.25rem; }

/* anonymized stage-card illustration */
.stagecard {
  background: radial-gradient(120% 90% at 28% 22%, #23262b 0%, var(--bg1) 38%, var(--bg2) 100%);
  border-radius: 10px; padding: 30px; position: relative; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  background-image:
    linear-gradient(rgba(200,150,62,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,150,62,0.06) 1px, transparent 1px),
    radial-gradient(120% 90% at 28% 22%, #23262b 0%, var(--bg1) 38%, var(--bg2) 100%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
}
.stagecard .sc-head { font-family: 'DM Serif Display', serif; font-size: 1.6rem; color: var(--off); }
.sc-track { display: flex; gap: 0; margin-top: 18px; }
.sc-step { flex: 1; position: relative; }
.sc-step .node { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); }
.sc-step.done .node, .sc-step.active .node { background: var(--gold); border-color: var(--gold); }
.sc-step.active .node { box-shadow: 0 0 0 5px rgba(200,150,62,0.2); }
.sc-step .bar { position: absolute; top: 7px; left: 8px; right: -8px; height: 2px; background: var(--muted); opacity: 0.4; }
.sc-step.done .bar { background: var(--gold); opacity: 1; }
.sc-step:last-child .bar { display: none; }
.sc-step .lbl { margin-top: 12px; font-size: 0.78rem; color: var(--muted); }
.sc-step.active .lbl { color: var(--off); font-weight: 700; }

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 22px 0;
  background: rgba(200,150,62,0.04);
}
.callout .badge { flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(200,150,62,0.12); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.callout h3 { margin: 0 0 4px; font-size: 1.1rem; }
.callout p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.back-link { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.back-link::before { content: "← "; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tiers, .steps, .honesty, .ip-lines { grid-template-columns: 1fr; }
  .proof-grid, .ba { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  /* tap-driven mobile menu via checkbox toggle (no :hover dependency) */
  .nav-toggle:checked ~ .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 64px; right: 0; left: 0;
    background: rgba(12,13,15,0.97); border-bottom: 1px solid var(--line);
    padding: 18px 24px; gap: 16px; align-items: flex-start;
  }
  .nav-toggle:checked ~ .nav-links a { font-size: 1.05rem; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 48px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .cta-band { padding: 38px 22px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- P1-2: lead-capture form (quote section) ---------- */
.quote-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 680px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--off);
}

.form-field label span[aria-hidden="true"] {
  color: var(--gold);
  margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--off);
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  transition: border-color 0.15s var(--ease);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field select option {
  background: var(--bg-panel-2);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-privacy {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.noscript-fallback {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.quote-confirm {
  margin-top: 1.5rem;
  padding: 1.1rem 1.4rem;
  background: rgba(200, 150, 62, 0.08);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--off);
}

.quote-confirm[hidden] { display: none; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
