/* ============================================================
   LIGHTHOUSE — Global stylesheet
   Twin Flame Group · 2026-05-05
   No frameworks. Hand-rolled tokens. Mobile-first.
   ============================================================ */

:root {
  /* Color tokens */
  --ink:          #0a1628;
  --ink-2:        #15314f;
  --ink-3:        #1f4068;
  --ink-4:        #2c5282;
  --ink-5:        rgba(45, 88, 138, 0.30);
  --beam:         #f6c84c;
  --beam-warm:    #ffb84d;
  --foam:         #7dd3c0;
  --foam-deep:    #3aa893;
  --mist:         #cdd9e5;
  --mist-2:       #8ea4bf;
  --white:        #fdfcf7;
  --ember:        #ef6c4a;

  /* Surface tokens */
  --surface-0:    #060e1c;
  --surface-1:    #0a1628;
  --surface-2:    #15314f;
  --surface-3:    #1f4068;
  --surface-paper:#fdfcf7;

  /* Border tokens */
  --border-soft:  rgba(205, 217, 229, 0.10);
  --border-mid:   rgba(205, 217, 229, 0.18);
  --border-strong:rgba(205, 217, 229, 0.30);

  /* Type scale (fluid) */
  --t-display:    clamp(2.6rem, 6vw, 4.6rem);
  --t-h1:         clamp(2.0rem, 4.4vw, 3.2rem);
  --t-h2:         clamp(1.6rem, 3.2vw, 2.2rem);
  --t-h3:         clamp(1.15rem, 2vw, 1.4rem);
  --t-lede:       clamp(1.05rem, 1.8vw, 1.25rem);
  --t-body:       1rem;
  --t-small:      0.875rem;
  --t-micro:      0.75rem;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10:8rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-1: 0 1px 0 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.32);
  --shadow-2: 0 1px 0 0 rgba(255,255,255,0.05) inset, 0 24px 60px rgba(0,0,0,0.42);
  --glow-beam: 0 0 0 1px rgba(246, 200, 76, 0.45), 0 8px 30px rgba(246, 200, 76, 0.18);

  /* Motion */
  --easing: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset (lightweight) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--mist);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Base background — subtle radial behind everything on dark surfaces */
body.dark::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(70% 60% at 75% -10%, rgba(246, 200, 76, 0.08) 0%, rgba(246, 200, 76, 0) 60%),
    radial-gradient(50% 40% at 10% 10%, rgba(125, 211, 192, 0.08) 0%, rgba(125, 211, 192, 0) 70%),
    linear-gradient(180deg, #0a1628 0%, #060e1c 100%);
  z-index: -1;
  pointer-events: none;
}

/* Display font */
.display, h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--white);
  font-variation-settings: "opsz" 144;
}
h3 { font-variation-settings: "opsz" 36; }
.display {
  font-size: var(--t-display);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 { font-size: var(--t-h1); margin: 0 0 var(--s-4); }
h2 { font-size: var(--t-h2); margin: 0 0 var(--s-4); }
h3 { font-size: var(--t-h3); margin: 0 0 var(--s-3); }
p  { margin: 0 0 var(--s-4); color: var(--mist); }

a { color: var(--beam); text-decoration: none; }
a:hover { color: var(--beam-warm); }

.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Layout */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--s-5); }
.container-tight { max-width: 880px; }
.container-narrow { max-width: 660px; }

/* Sections */
.section { padding: var(--s-9) 0; position: relative; }
.section + .section { border-top: 1px solid var(--border-soft); }
.section-tight { padding: var(--s-7) 0; }
.section-paper { background: var(--surface-paper); color: var(--ink); }
.section-paper h1, .section-paper h2, .section-paper h3 { color: var(--ink); }
.section-paper p { color: rgba(10, 22, 40, 0.78); }

.kicker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beam);
  margin-bottom: var(--s-4);
  padding: var(--s-1) var(--s-3);
  border: 1px solid rgba(246, 200, 76, 0.32);
  border-radius: var(--r-pill);
  background: rgba(246, 200, 76, 0.05);
}

.lede { font-size: var(--t-lede); color: var(--mist); max-width: 60ch; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 22, 40, 0.78);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  max-width: 1240px; margin: 0 auto;
}
.brand-lockup {
  display: flex; align-items: center; gap: var(--s-3);
  text-decoration: none; color: var(--white);
}
.brand-lockup .mark { width: 32px; height: 32px; }
.brand-word {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-size: 1.25rem; letter-spacing: -0.01em;
  color: var(--white);
}
.brand-word .dot { color: var(--beam); }
.brand-tag {
  font-size: var(--t-micro);
  color: var(--mist-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a {
  color: var(--mist);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 200ms var(--easing);
}
.nav a:hover { color: var(--white); }
@media (max-width: 680px) {
  .nav .nav-link-secondary { display: none; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: transform 200ms var(--easing), background 200ms var(--easing), box-shadow 200ms var(--easing), border-color 200ms var(--easing);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--beam);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--glow-beam);
}
.btn-primary:hover {
  background: var(--beam-warm);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--beam);
  color: var(--beam);
  background: rgba(246, 200, 76, 0.04);
}
.btn-foam {
  background: var(--foam);
  color: var(--ink);
  font-weight: 600;
}
.btn-foam:hover { background: var(--foam-deep); color: var(--white); }
.btn-link {
  padding: 0; background: transparent; color: var(--beam);
  text-decoration: underline; text-underline-offset: 4px;
}
.btn-lg { padding: var(--s-4) var(--s-6); font-size: 1.05rem; }
.btn-sm { padding: var(--s-2) var(--s-4); font-size: 0.825rem; }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* === Hero === */
.hero {
  padding: var(--s-9) 0 var(--s-9);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* subtle horizon line below hero */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(246, 200, 76, 0.18) 50%, transparent 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s-7);
  align-items: center;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-9); }
}
.hero-display {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--s-5);
  font-variation-settings: "opsz" 144;
}
.hero-display .accent {
  color: var(--beam);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, var(--beam) 0%, var(--beam-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--mist);
  max-width: 54ch;
  margin-bottom: var(--s-6);
  line-height: 1.55;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.hero-trust {
  display: flex; gap: var(--s-5); flex-wrap: wrap;
  font-size: var(--t-small); color: var(--mist-2);
}
.hero-trust span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-trust .dot { width: 6px; height: 6px; background: var(--foam); border-radius: 50%; box-shadow: 0 0 0 3px rgba(125, 211, 192, 0.16); }

/* Phone mock — visual element on hero (real-device polish) */
.phone-mock {
  width: 100%; max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(155deg, #1a2638 0%, #0a1015 50%, #060b14 100%);
  border-radius: 44px;
  border: 1.5px solid #1a2330;
  box-shadow:
    0 0 0 9px #06090f,
    0 0 0 10px #1d2531,
    0 30px 80px rgba(0,0,0,0.55),
    0 8px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 14px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: rotate(-1.5deg);
  transition: transform 600ms var(--easing);
}
.phone-mock:hover { transform: rotate(0deg) translateY(-4px); }
/* Notch / dynamic island */
.phone-mock::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #000;
  border-radius: 999px;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
/* Side button hint */
.phone-mock::after {
  content: ""; position: absolute; right: -3px; top: 130px;
  width: 4px; height: 60px; background: linear-gradient(180deg, #1d2531, #0d121a);
  border-radius: 0 2px 2px 0;
}
.phone-screen {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 32px;
  padding: 50px 16px 16px;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(246, 200, 76, 0.04) 0%, rgba(246, 200, 76, 0) 60%),
    linear-gradient(180deg, #0c1a2e 0%, #0a1628 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 0 30px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
/* Status bar (iOS-style) */
.phone-screen::before {
  content: "9:41";
  position: absolute; top: 16px; left: 24px;
  font-family: "Inter", sans-serif; font-weight: 600;
  font-size: 13px; color: var(--white);
  letter-spacing: -0.02em;
  z-index: 4;
}
.phone-screen::after {
  content: "";
  position: absolute; top: 18px; right: 22px;
  width: 26px; height: 12px;
  background:
    /* battery body */
    linear-gradient(90deg, var(--white) 0%, var(--white) 80%, transparent 80%, transparent 100%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 3px;
  z-index: 4;
}
.phone-msg {
  padding: 10px 14px;
  border-radius: 18px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 88%;
  animation: msg-in 600ms var(--easing) backwards;
}
.phone-msg:nth-child(1) { animation-delay: 0.1s; }
.phone-msg:nth-child(2) { animation-delay: 0.4s; }
.phone-msg:nth-child(3) { animation-delay: 0.8s; }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.phone-msg.ai { background: rgba(31, 64, 104, 0.85); color: var(--mist); border-bottom-left-radius: 6px; }
.phone-msg.user {
  background: linear-gradient(135deg, var(--beam) 0%, var(--beam-warm) 100%);
  color: var(--ink); margin-left: auto; border-bottom-right-radius: 6px;
  align-self: flex-end; font-weight: 500;
  box-shadow: 0 4px 12px rgba(246, 200, 76, 0.18);
}
.phone-mic {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(180deg, var(--beam) 0%, var(--beam-warm) 100%);
  display: grid; place-items: center;
  margin: 12px auto 8px;
  box-shadow:
    0 0 0 6px rgba(246, 200, 76, 0.14),
    0 0 0 12px rgba(246, 200, 76, 0.06),
    0 8px 20px rgba(246, 200, 76, 0.32);
  animation: pulse-mic 2.4s var(--easing) infinite;
}
@keyframes pulse-mic {
  0%, 100% { box-shadow: 0 0 0 6px rgba(246, 200, 76, 0.14), 0 0 0 12px rgba(246, 200, 76, 0.06), 0 8px 20px rgba(246, 200, 76, 0.32); }
  50%       { box-shadow: 0 0 0 10px rgba(246, 200, 76, 0.08), 0 0 0 18px rgba(246, 200, 76, 0.03), 0 8px 26px rgba(246, 200, 76, 0.42); }
}
.phone-mic svg { width: 24px; height: 24px; fill: var(--ink); }

/* === Cards / problem grid === */
.problem-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (min-width: 720px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }
.problem-card {
  padding: var(--s-6);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  background: rgba(21, 49, 79, 0.42);
  position: relative;
}
.problem-card .num {
  font-family: "Fraunces", serif; font-size: 2.2rem; color: var(--beam);
  display: block; margin-bottom: var(--s-3); line-height: 1;
}
.problem-card h3 { font-size: 1.25rem; margin-bottom: var(--s-3); }
.problem-card p { color: var(--mist-2); margin: 0; }

/* === How it works === */
.steps {
  display: grid; grid-template-columns: 1fr; gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (min-width: 920px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  padding: var(--s-6);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(21,49,79,0.55), rgba(21,49,79,0.20));
  position: relative;
}
.step .step-num {
  position: absolute; top: -14px; left: 22px;
  background: var(--beam); color: var(--ink);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 700;
  font-size: 0.95rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: var(--s-2); }
.step p { font-size: 0.95rem; color: var(--mist-2); margin: 0; }

/* === Demo CTA === */
.demo-cta {
  margin-top: var(--s-8);
  padding: var(--s-7);
  border-radius: var(--r-xl);
  border: 1px solid rgba(246, 200, 76, 0.30);
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(246, 200, 76, 0.14) 0%, rgba(246, 200, 76, 0) 60%),
    linear-gradient(180deg, rgba(21, 49, 79, 0.85), rgba(10, 22, 40, 0.5));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.demo-cta h2 { margin-bottom: var(--s-3); }
.demo-cta p { color: var(--mist); margin-bottom: var(--s-5); max-width: 56ch; margin-left: auto; margin-right: auto; }

/* === Pricing === */
.pricing-toggle {
  display: inline-flex; gap: 0; padding: 4px;
  border: 1px solid var(--border-mid); border-radius: var(--r-pill);
  background: rgba(21, 49, 79, 0.5);
  margin-bottom: var(--s-7);
}
.pricing-toggle button {
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-pill);
  background: transparent; border: 0;
  color: var(--mist-2);
  font-size: 0.875rem;
}
.pricing-toggle button.active {
  background: var(--beam);
  color: var(--ink);
  font-weight: 600;
}

.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s-4);
  margin-top: var(--s-2);
}
@media (min-width: 760px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pricing-grid { grid-template-columns: repeat(5, 1fr); } }

.tier {
  padding: var(--s-6);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  background: rgba(21, 49, 79, 0.42);
  display: flex; flex-direction: column;
}
.tier.featured {
  border-color: var(--beam);
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(246, 200, 76, 0.12) 0%, rgba(246, 200, 76, 0) 60%),
    rgba(21, 49, 79, 0.6);
  box-shadow: 0 0 0 1px var(--beam), 0 24px 60px rgba(246, 200, 76, 0.10);
  position: relative;
}
.tier.featured::before {
  content: "Most popular";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--beam); color: var(--ink);
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tier h3 { font-size: 1.15rem; margin-bottom: var(--s-2); }
.tier .price { font-family: "Fraunces", serif; font-size: 2.2rem; color: var(--white); line-height: 1; margin: var(--s-3) 0 var(--s-2); }
.tier .price small { font-size: 0.85rem; color: var(--mist-2); font-family: "Inter", sans-serif; font-weight: 400; }
.tier .price.custom { font-size: 1.5rem; }
.tier .tier-tag { font-size: var(--t-micro); color: var(--mist-2); letter-spacing: 0.08em; text-transform: uppercase; }
.tier ul { list-style: none; padding: 0; margin: var(--s-4) 0; flex: 1; }
.tier ul li {
  font-size: 0.9rem; color: var(--mist);
  padding: var(--s-2) 0;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: flex-start; gap: var(--s-2);
}
.tier ul li::before { content: "·"; color: var(--beam); font-weight: 700; line-height: 1; flex-shrink: 0; }
.tier ul li:first-child { border-top: 0; }

/* === GTM templates === */
.gtm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (min-width: 760px) { .gtm-grid { grid-template-columns: repeat(2, 1fr); } }
.gtm-card {
  padding: var(--s-6);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(21,49,79,0.55), rgba(21,49,79,0.18));
  display: flex; flex-direction: column; gap: var(--s-4);
}
.gtm-card-tight { gap: var(--s-3); }
.gtm-head {
  display: flex; align-items: center; gap: var(--s-3);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: var(--s-3);
}
.gtm-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(246, 200, 76, 0.14);
  color: var(--beam);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.gtm-meta {
  font-size: var(--t-small);
  color: var(--mist-2);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}
.gtm-block { display: flex; flex-direction: column; gap: var(--s-2); }
.gtm-label {
  font-size: var(--t-micro);
  color: var(--mist-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.gtm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gtm-list li {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  color: var(--mist);
  padding: 8px 12px;
  background: rgba(6, 14, 28, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
}
.gtm-body {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--mist);
  background: rgba(6, 14, 28, 0.7);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
}
.gtm-stats {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.gtm-stats li {
  display: flex; align-items: baseline; gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border-soft);
}
.gtm-stats li:last-child { border-bottom: 0; }
.gtm-stats strong {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--beam);
  flex-shrink: 0;
  min-width: 92px;
}
.gtm-stats span { color: var(--mist-2); font-size: 0.92rem; line-height: 1.5; }
.gtm-tip {
  margin-top: var(--s-3);
  padding: var(--s-4);
  background: rgba(125, 211, 192, 0.07);
  border: 1px solid rgba(125, 211, 192, 0.30);
  border-radius: var(--r-md);
}
.gtm-tip-label {
  display: inline-block;
  font-size: var(--t-micro);
  color: var(--foam);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.gtm-tip p { margin: 0; color: var(--mist); font-size: 0.92rem; line-height: 1.55; }
.gtm-tip strong { color: var(--white); }

/* In-app GTM toolkit panel (lighter than marketing variant) */
.gtm-panel-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s-4);
  margin-top: var(--s-4);
}
@media (min-width: 900px) {
  .gtm-panel-grid { grid-template-columns: 1fr 1fr; }
  .gtm-panel-block:first-child { grid-column: 1 / -1; }
}
.gtm-panel-block {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: var(--s-4);
  background: rgba(6, 14, 28, 0.45);
}
.gtm-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-3); gap: var(--s-3);
}
.gtm-panel-sub {
  font-size: var(--t-micro); color: var(--mist-2);
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; margin-bottom: var(--s-2);
}

/* === Integrations === */
.int-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3);
  margin-top: var(--s-6);
}
@media (min-width: 720px) { .int-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .int-grid { grid-template-columns: repeat(6, 1fr); } }
.int-card {
  padding: var(--s-4);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  background: rgba(21, 49, 79, 0.32);
  text-align: center;
  position: relative;
}
.int-card strong { display: block; color: var(--white); font-weight: 500; margin-bottom: 2px; font-size: 0.95rem; }
.int-card span { font-size: var(--t-micro); color: var(--mist-2); }
.int-card.coming::after {
  content: "Coming"; position: absolute; top: 6px; right: 6px;
  background: rgba(246, 200, 76, 0.16); color: var(--beam);
  padding: 1px 7px; border-radius: var(--r-pill);
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}

/* === Personas === */
.personas {
  display: grid; grid-template-columns: 1fr; gap: var(--s-3);
  margin-top: var(--s-6);
}
@media (min-width: 720px) { .personas { grid-template-columns: repeat(5, 1fr); } }
.persona {
  padding: var(--s-5);
  border: 1px solid var(--border-mid); border-radius: var(--r-md);
  background: rgba(21, 49, 79, 0.32);
  text-align: center;
}
.persona strong { display: block; color: var(--white); margin-bottom: var(--s-1); }
.persona span { font-size: var(--t-small); color: var(--mist-2); }

/* === FAQ === */
.faq-list { margin-top: var(--s-6); }
.faq-item {
  border-top: 1px solid var(--border-mid);
  padding: var(--s-5) 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border-mid); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none;
  font-family: "Fraunces", serif; font-weight: 500;
  font-size: 1.15rem;
  color: var(--white);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+"; font-family: "Inter", sans-serif; font-size: 1.4rem;
  color: var(--beam); transition: transform 250ms var(--easing);
}
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding-top: var(--s-3); color: var(--mist-2); }

/* === Founder note === */
.founder-note {
  padding: var(--s-7);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-mid);
  background: linear-gradient(180deg, rgba(21, 49, 79, 0.55), rgba(10, 22, 40, 0.5));
  max-width: 720px; margin: var(--s-6) auto 0;
}
.founder-note p { font-family: "Fraunces", serif; font-size: 1.2rem; line-height: 1.5; color: var(--white); margin: 0; }
.founder-note .sig { display: block; margin-top: var(--s-4); color: var(--mist-2); font-family: "Inter", sans-serif; font-size: 0.9rem; }

/* === Footer === */
.site-footer {
  padding: var(--s-8) 0 var(--s-7);
  border-top: 1px solid var(--border-soft);
  background: var(--surface-0);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s-5);
  margin-bottom: var(--s-6);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mist-2); margin-bottom: var(--s-3); font-family: "Inter", sans-serif; font-weight: 500; }
.footer-col a { display: block; color: var(--mist); text-decoration: none; padding: 4px 0; font-size: 0.92rem; }
.footer-col a:hover { color: var(--beam); }
.footer-meta {
  border-top: 1px solid var(--border-soft);
  padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4);
  color: var(--mist-2); font-size: var(--t-small);
}

/* === App Dashboard === */
.app-shell {
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.app-main { padding: var(--s-7) 0; flex: 1; }
.app-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-6); flex-wrap: wrap; gap: var(--s-3); }
.empty-state {
  padding: var(--s-9) var(--s-6);
  border: 1px dashed var(--border-mid);
  border-radius: var(--r-lg);
  text-align: center;
  background: rgba(21, 49, 79, 0.22);
}
.empty-state .glyph { font-size: 3rem; margin-bottom: var(--s-3); }
.project-card {
  display: block;
  padding: var(--s-5);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  background: rgba(21, 49, 79, 0.4);
  margin-bottom: var(--s-3);
  text-decoration: none;
  transition: border-color 200ms var(--easing), transform 200ms var(--easing);
}
.project-card:hover { border-color: var(--beam); transform: translateY(-2px); }
.project-card h3 { font-size: 1.1rem; margin-bottom: var(--s-2); color: var(--white); }
.project-card .meta { display: flex; gap: var(--s-4); font-size: var(--t-small); color: var(--mist-2); flex-wrap: wrap; }
.project-card .meta .pill { background: rgba(125, 211, 192, 0.10); color: var(--foam); padding: 2px 10px; border-radius: var(--r-pill); font-size: var(--t-micro); }

/* Forms */
label { display: block; font-size: 0.9rem; color: var(--mist); margin-bottom: var(--s-2); font-weight: 500; }
.input, textarea {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 200ms var(--easing), background 200ms var(--easing);
}
.input:focus, textarea:focus {
  outline: 0;
  border-color: var(--beam);
  background: rgba(10, 22, 40, 0.85);
}
textarea { resize: vertical; min-height: 100px; }
.field { margin-bottom: var(--s-5); }
.help { font-size: var(--t-small); color: var(--mist-2); margin-top: var(--s-2); }

/* Form card */
.card {
  padding: var(--s-7);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  background: rgba(21, 49, 79, 0.42);
}

/* Badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); font-size: var(--t-micro); font-weight: 600; letter-spacing: 0.04em; }
.badge.live { background: rgba(125, 211, 192, 0.16); color: var(--foam); }
.badge.demo { background: rgba(246, 200, 76, 0.16); color: var(--beam); }
.badge.warn { background: rgba(239, 108, 74, 0.16); color: var(--ember); }

/* Toasts */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: var(--s-3) var(--s-5);
  background: var(--ink-2);
  border: 1px solid var(--beam);
  border-radius: var(--r-md);
  color: var(--white);
  z-index: 100;
  box-shadow: var(--shadow-2);
  animation: toast-in 250ms var(--easing);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Quote highlight */
.quote {
  padding: var(--s-5);
  border-left: 3px solid var(--beam);
  background: rgba(246, 200, 76, 0.04);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--white);
  margin: var(--s-4) 0;
}
.quote .src { display: block; margin-top: var(--s-3); font-style: normal; font-family: "Inter", sans-serif; font-size: var(--t-small); color: var(--mist-2); }

/* JTBD Report styling */
.report-section { margin-bottom: var(--s-8); }
.report-section:last-child { margin-bottom: 0; }
.report-section > h3 {
  font-family: "Fraunces", serif;
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--s-4);
  letter-spacing: -0.015em;
  display: flex; align-items: baseline; gap: var(--s-3);
}
.report-section > h3::before {
  content: ""; flex: 0 0 28px; height: 2px; background: var(--beam); border-radius: 2px;
  position: relative; top: -6px;
}
.report-section ul { padding-left: 0; list-style: none; }
.report-section li {
  margin-bottom: var(--s-3);
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-6);
  border-left: 2px solid rgba(246, 200, 76, 0.32);
  background: rgba(10, 22, 40, 0.35);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  position: relative;
  color: var(--mist);
  line-height: 1.55;
}
.report-section li::before {
  content: ""; position: absolute; left: -5px; top: 50%;
  width: 8px; height: 8px;
  background: var(--beam); border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(246, 200, 76, 0.14);
}
.report-section li strong { color: var(--white); font-weight: 600; }

/* The Job — hero block of the report */
.report-job {
  padding: var(--s-6);
  background:
    radial-gradient(60% 100% at 0% 0%, rgba(246, 200, 76, 0.06) 0%, rgba(246, 200, 76, 0) 60%),
    rgba(10, 22, 40, 0.5);
  border: 1px solid var(--border-mid);
  border-left: 3px solid var(--beam);
  border-radius: var(--r-lg);
}
.report-job p:first-of-type {
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

/* Forces of Progress — pull-quote treatment */
.force-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin-top: var(--s-4); }
@media (min-width: 720px) { .force-grid { grid-template-columns: repeat(2, 1fr); } }
.force-card {
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(21, 49, 79, 0.55) 0%, rgba(10, 22, 40, 0.35) 100%);
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--easing), border-color 220ms var(--easing);
}
.force-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 200, 76, 0.32);
}
.force-card::before {
  content: '"';
  position: absolute; top: -12px; right: 14px;
  font-family: "Fraunces", serif;
  font-size: 6rem; line-height: 1;
  color: rgba(246, 200, 76, 0.10);
  pointer-events: none;
  font-weight: 600;
}
.force-card .label {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--foam);
  margin-bottom: var(--s-3);
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(125, 211, 192, 0.08);
  border: 1px solid rgba(125, 211, 192, 0.2);
}
.force-card.push .label    { color: var(--ember); background: rgba(239, 108, 74, 0.08); border-color: rgba(239, 108, 74, 0.22); }
.force-card.pull .label    { color: var(--beam);  background: rgba(246, 200, 76, 0.08); border-color: rgba(246, 200, 76, 0.24); }
.force-card.anxiety .label { color: var(--foam);  background: rgba(125, 211, 192, 0.08); border-color: rgba(125, 211, 192, 0.22); }
.force-card.habit .label   { color: var(--mist-2);background: rgba(142, 164, 191, 0.06); border-color: rgba(142, 164, 191, 0.20); }
.force-card p {
  color: var(--mist);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Persona pills (in interview cards) */
.persona-pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(125, 211, 192, 0.08);
  border: 1px solid rgba(125, 211, 192, 0.20);
  color: var(--foam);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Interview card on /demo (richer than .project-card) */
.iv-card-row {
  padding: var(--s-5);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(21, 49, 79, 0.42) 0%, rgba(21, 49, 79, 0.18) 100%);
  margin-bottom: var(--s-3);
  transition: border-color 220ms var(--easing), transform 220ms var(--easing);
  position: relative;
  overflow: hidden;
}
.iv-card-row:hover { border-color: rgba(246, 200, 76, 0.32); transform: translateY(-1px); }
.iv-card-row .iv-meta-row {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.iv-card-row h3 {
  font-size: 1rem; margin: 0; color: var(--white);
  font-family: "Inter", sans-serif; font-weight: 600;
  letter-spacing: -0.005em;
}
.iv-card-row .iv-quote {
  font-family: "Fraunces", serif;
  font-size: 1.05rem; line-height: 1.45;
  color: var(--mist); margin: 0;
  padding-left: var(--s-4);
  border-left: 2px solid rgba(246, 200, 76, 0.42);
  font-style: italic;
}
.iv-duration {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--mist-2);
  letter-spacing: 0.04em;
}

/* Top-quote cards (the 5 quotes block) */
.quote-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin-top: var(--s-4); }
@media (min-width: 720px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
.quote-grid .quote {
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-left: 0;
  border: 1px solid var(--border-mid);
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(246, 200, 76, 0.05) 0%, rgba(246, 200, 76, 0) 60%),
    rgba(10, 22, 40, 0.5);
  border-radius: var(--r-lg);
  position: relative;
  font-size: 1.05rem;
  line-height: 1.5;
}
.quote-grid .quote::before {
  content: '"';
  position: absolute; top: -8px; left: 14px;
  font-family: "Fraunces", serif;
  font-size: 4rem; line-height: 1;
  color: var(--beam);
  font-weight: 600;
}
.quote-grid .quote .src { color: var(--mist-2); }

/* Sticky bottom CTA (mobile) */
.sticky-cta-mobile {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 80;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10, 22, 40, 0) 0%, rgba(10, 22, 40, 0.96) 30%, rgba(6, 14, 28, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(246, 200, 76, 0.18);
}
.sticky-cta-mobile .btn { width: 100%; }
@media (max-width: 720px) {
  .sticky-cta-mobile { display: block; }
  body.has-sticky-cta { padding-bottom: 80px; }
}

/* Interview surface */
.interview-shell {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--ink) 0%, var(--surface-0) 100%);
}
.interview-header {
  padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}
.interview-header .progress {
  flex: 1; max-width: 220px; margin: 0 var(--s-4);
  height: 4px; background: rgba(255,255,255,0.06); border-radius: var(--r-pill);
  overflow: hidden;
}
.interview-header .progress-bar {
  height: 100%; background: var(--beam);
  width: 0%; transition: width 600ms var(--easing);
}
.interview-stage-label { font-size: var(--t-micro); color: var(--mist-2); letter-spacing: 0.1em; text-transform: uppercase; }

.interview-body {
  flex: 1;
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-4);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 720px; width: 100%; margin: 0 auto;
}
.bubble {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  max-width: 85%;
  line-height: 1.5;
  animation: bubble-in 300ms var(--easing);
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.bubble.ai { background: var(--ink-2); color: var(--mist); border-top-left-radius: 4px; align-self: flex-start; }
.bubble.user { background: var(--beam); color: var(--ink); border-top-right-radius: 4px; align-self: flex-end; font-weight: 500; }
.bubble.user.live { background: rgba(246, 200, 76, 0.12); color: var(--mist); border: 1px dashed var(--beam); }

.interview-control {
  padding: var(--s-5);
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  border-top: 1px solid var(--border-soft);
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(10px);
}
.mic-button {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 0;
  background: var(--beam);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(246, 200, 76, 0.18);
  transition: transform 200ms var(--easing), box-shadow 200ms var(--easing), background 200ms var(--easing);
}
.mic-button:hover { transform: scale(1.04); }
.mic-button:active { transform: scale(0.96); }
.mic-button.recording {
  background: var(--ember);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(239, 108, 74, 0.6);
  animation: rec-pulse 1.6s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 108, 74, 0.5); }
  100% { box-shadow: 0 0 0 24px rgba(239, 108, 74, 0); }
}
.mic-button svg { width: 32px; height: 32px; fill: currentColor; }
.mic-status { font-size: 0.875rem; color: var(--mist-2); text-align: center; min-height: 20px; }

/* Text input fallback */
.text-input-row { display: flex; width: 100%; gap: var(--s-2); max-width: 600px; }
.text-input-row .input { flex: 1; }

/* Loading dots */
.thinking { display: inline-flex; gap: 4px; padding: var(--s-3) var(--s-4); }
.thinking span {
  width: 8px; height: 8px; background: var(--mist-2); border-radius: 50%;
  animation: think-bounce 1.4s ease-in-out infinite;
}
.thinking span:nth-child(2) { animation-delay: 0.2s; }
.thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes think-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* End-of-interview screen */
.end-card {
  margin: var(--s-7) auto;
  max-width: 480px;
  padding: var(--s-7);
  text-align: center;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  background: rgba(21, 49, 79, 0.42);
}
.end-card .checkmark {
  width: 64px; height: 64px; margin: 0 auto var(--s-4);
  border-radius: 50%; background: var(--foam);
  display: grid; place-items: center;
}
.end-card .checkmark svg { width: 32px; height: 32px; fill: var(--ink); }

/* Banner */
.banner {
  padding: var(--s-3) var(--s-5);
  background: rgba(246, 200, 76, 0.08);
  border-bottom: 1px solid rgba(246, 200, 76, 0.20);
  text-align: center;
  font-size: var(--t-small);
  color: var(--beam);
}
.banner a { color: var(--beam); text-decoration: underline; }

/* Utilities */
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s-3); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--s-3); }
.mb-5 { margin-bottom: var(--s-5); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.muted { color: var(--mist-2); }
.small { font-size: var(--t-small); }
.micro { font-size: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist-2); }

/* Mobile-specific tweaks */
@media (max-width: 760px) {
  .hero-grid { gap: var(--s-6); }
  .phone-mock { max-width: 300px; transform: rotate(0deg); }
  .iv-card-row .iv-meta-row { gap: var(--s-2); }
}
@media (max-width: 600px) {
  .hero { padding: var(--s-7) 0 var(--s-7); }
  .section { padding: var(--s-7) 0; }
  .hero-display { font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 1.0; }
  .hero-lede { font-size: 1.05rem; }
  .demo-cta { padding: var(--s-5); }
  .tier { padding: var(--s-5); }
  .phone-mock { max-width: 280px; }
  .nav { gap: var(--s-3); }
  /* Make all tap targets ≥ 48px on mobile */
  .btn { min-height: 44px; }
  .btn-lg { min-height: 48px; }
  .btn-sm { min-height: 36px; }
  /* Card breathing room */
  .card { padding: var(--s-5); }
  .force-card { padding: var(--s-5); }
  .quote-grid .quote { padding: var(--s-5) var(--s-4) var(--s-3); }
  /* Demo page report headline */
  .demo-page-h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
}

/* Safe-area-inset support for notched devices */
@supports (padding: env(safe-area-inset-top)) {
  .interview-shell, .iv-shell {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Accessibility — focus rings */
.btn:focus-visible, a:focus-visible, .input:focus-visible, textarea:focus-visible, .mic-button:focus-visible, .faq-q:focus-visible {
  outline: 2px solid var(--beam);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
