/* Magic Engine — Marketing Site
   Design tokens: Gold #BE8A2E | Ink #16181D | Paper #FBFAF7 | Green #1F7A55
   Fonts: Fraunces (serif titles) + Inter (body)
*/
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
  --gold:       #BE8A2E;
  --gold-light: #D4A94B;
  --gold-dark:  #9A6F1E;
  --gold-bg:    #FBF5E8;
  --ink:        #16181D;
  --ink-light:  rgba(22,24,29,.70);
  --ink-muted:  rgba(22,24,29,.45);
  --paper:      #FBFAF7;
  --paper-dim:  #F0EFE9;
  --green:      #1F7A55;
  --green-bg:   #EAF3EE;
  --red:        #C0392B;
  --white:      #FFFFFF;

  --ff-serif: 'Fraunces', Georgia, serif;
  --ff-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w:  1120px;
  --nav-h:  64px;

  --r-sm: 6px;  --r-md: 12px;  --r-lg: 18px;  --r-xl: 28px;  --r-full: 9999px;

  --sh-xs: 0 1px 3px rgba(22,24,29,.07);
  --sh-sm: 0 2px 8px rgba(22,24,29,.09);
  --sh-md: 0 6px 24px rgba(22,24,29,.11);
  --sh-lg: 0 16px 56px rgba(22,24,29,.12);

  --t: 180ms ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ── Typography ── */
.serif { font-family: var(--ff-serif); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
h1.serif { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2.serif { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3.serif { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.muted  { color: var(--ink-light); }
.small  { font-size: .875rem; }
.tiny   { font-size: .75rem; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(251,250,247,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(22,24,29,.07);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 700; font-size: 1rem; color: var(--ink);
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.nav-links a {
  text-decoration: none; font-size: .88rem; font-weight: 500;
  color: var(--ink-light); transition: color var(--t);
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-lang {
  font-size: .75rem; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-full);
  border: 1px solid rgba(22,24,29,.15);
  color: var(--ink-muted); letter-spacing: .3px;
  transition: all var(--t); cursor: pointer;
}
.btn-lang:hover { border-color: var(--gold); color: var(--gold); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 22px;
  background: var(--gold); color: var(--white);
  font-weight: 600; font-size: .92rem;
  border-radius: var(--r-md); text-decoration: none;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  border: none; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(190,138,46,.30);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px;
  background: transparent; color: var(--ink);
  font-weight: 500; font-size: .88rem;
  border-radius: var(--r-md); border: 1.5px solid rgba(22,24,29,.2);
  text-decoration: none; transition: all var(--t);
  cursor: pointer; font-family: inherit;
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(22,24,29,.04); }

.btn-portal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: var(--ink); color: var(--white);
  font-weight: 500; font-size: .82rem;
  border-radius: var(--r-md); text-decoration: none;
  transition: background var(--t);
}
.btn-portal:hover { background: #2a2d35; }

.btn-register {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: var(--gold); color: var(--white);
  font-weight: 600; font-size: .82rem;
  border-radius: var(--r-md); text-decoration: none;
  transition: background var(--t);
}
.btn-register:hover { background: var(--gold-light); }

.portal-signin-link {
  font-size: .82rem; color: var(--ink-light); text-decoration: none;
  transition: color var(--t); white-space: nowrap;
}
.portal-signin-link:hover { color: var(--ink); text-decoration: underline; }

/* ── Inputs ── */
.input-field {
  width: 100%; padding: 13px 18px;
  border: 1.5px solid rgba(22,24,29,.14);
  border-radius: var(--r-md); background: var(--white);
  color: var(--ink); font-size: 1rem; font-family: inherit; outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.input-field::placeholder { color: var(--ink-muted); }
.input-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(190,138,46,.12);
}

/* ── Section labels ── */
.section-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 12px;
}
.section-sub {
  color: var(--ink-light); font-size: 1.05rem; line-height: 1.65;
  margin-bottom: 48px;
}
.center { text-align: center; }
.center .section-sub { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Hero ── */
.hero {
  padding: 72px 0 80px;
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=75');
  background-size: cover;
  background-position: center 65%;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(251,250,247,.88);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

/* ── Identity strip ── */
.identity-strip {
  padding: 52px 24px;
  text-align: center;
  background: linear-gradient(135deg, #16181d 0%, #242830 55%, #1d2b22 100%);
  position: relative;
  overflow: hidden;
}
.identity-strip::before {
  content: '';
  position: absolute;
  width: 640px; height: 640px;
  top: -220px; right: -60px;
  background: radial-gradient(circle, rgba(190,138,46,.09) 0%, transparent 65%);
  pointer-events: none;
}
.identity-strip::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  bottom: -160px; left: -40px;
  background: radial-gradient(circle, rgba(31,122,85,.08) 0%, transparent 65%);
  pointer-events: none;
}
.identity-strip p {
  position: relative;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  letter-spacing: .3px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--gold-bg); color: var(--gold-dark);
  font-size: .72rem; font-weight: 700;
  border-radius: var(--r-full); letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 { max-width: 700px; margin-bottom: 20px; }
.hero-sub {
  font-size: 1.12rem; color: var(--ink-light);
  max-width: 560px; margin-bottom: 36px; line-height: 1.68;
}
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

/* Inline URL form */
.url-bar {
  display: flex; gap: 8px;
  background: var(--white);
  border: 1.5px solid rgba(22,24,29,.13);
  border-radius: var(--r-xl);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--sh-md);
  max-width: 500px;
}
.url-bar input {
  flex: 1; min-width: 0; border: none; outline: none;
  font-size: .95rem; color: var(--ink);
  background: transparent; font-family: inherit;
}
.url-bar input::placeholder { color: var(--ink-muted); }
.url-bar .btn-primary { border-radius: calc(var(--r-xl) - 4px); }
.url-hint { font-size: .76rem; color: var(--ink-muted); margin-top: 8px; }

/* ── Three cards ── */
.three-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 32px; box-shadow: var(--sh-sm);
  border: 1px solid rgba(22,24,29,.06);
  transition: box-shadow var(--t), transform var(--t);
}
.card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); margin-bottom: 18px; font-size: 1.3rem;
}
.ci-gold  { background: var(--gold-bg); }
.ci-green { background: var(--green-bg); }
.ci-ink   { background: rgba(22,24,29,.06); }
.card h3  { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.card p   { color: var(--ink-light); font-size: .88rem; line-height: 1.62; }

/* ── Local section ── */
.local-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.local-checks { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.local-check {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; background: var(--white);
  border-radius: var(--r-md); border: 1px solid rgba(22,24,29,.06);
}
.chk-icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800;
}
.chk-text strong { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 2px; }
.chk-text span   { font-size: .8rem; color: var(--ink-muted); }

/* ── How it works ── */
.how-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 36px;
  counter-reset: step;
}
.how-step { position: relative; }
.how-step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-bg); color: var(--gold-dark);
  font-weight: 700; font-family: var(--ff-serif); font-size: 1.1rem;
  margin-bottom: 18px;
}
.how-step h3 { font-size: .98rem; font-weight: 600; margin-bottom: 8px; }
.how-step p  { font-size: .86rem; color: var(--ink-light); line-height: 1.62; }

/* ── Testimonials ── */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi {
  background: var(--white); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-sm);
  border: 1px solid rgba(22,24,29,.06);
}
.testi-quote { font-size: .9rem; line-height: 1.68; color: var(--ink-light); font-style: italic; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper-dim);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .88rem; color: var(--ink-muted);
}
.t-name { font-weight: 600; font-size: .86rem; }
.t-biz  { font-size: .76rem; color: var(--ink-muted); }

/* ── CTA block ── */
.cta-block {
  background: var(--ink); border-radius: var(--r-xl);
  padding: 64px 48px; text-align: center; color: var(--white);
}
.cta-block h2 { color: var(--white); margin-bottom: 14px; }
.cta-block p  { color: rgba(255,255,255,.62); max-width: 480px; margin: 0 auto 32px; font-size: 1rem; }

/* ── CTA photo section ── */
.cta-photo {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1542744173-05336fcc7ad4?auto=format&fit=crop&w=1600&q=75');
  background-size: cover;
  background-position: center;
}
.cta-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22,24,29,.76);
  z-index: 0;
}
.cta-photo .container { position: relative; z-index: 1; }
.cta-photo .cta-block {
  background: none;
  border-radius: 0;
  padding: 80px 24px;
}
.cta-photo .cta-block p { color: rgba(255,255,255,.72); }

/* ── Footer ── */
.site-footer { background: var(--ink); color: rgba(255,255,255,.58); padding: 56px 0 32px; }
.footer-inner {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: .84rem; line-height: 1.68; max-width: 250px; margin-top: 12px; }
.footer-col h4 {
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.32); margin-bottom: 16px;
}
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a   { text-decoration: none; font-size: .86rem; color: rgba(255,255,255,.55); transition: color var(--t); }
.footer-col a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
}
.footer-entity { font-size: .76rem; color: rgba(255,255,255,.28); line-height: 1.72; }
.footer-copy   { font-size: .76rem; color: rgba(255,255,255,.24); }

/* ── Discover page ── */
.discover-state        { display: none; }
.discover-state.active { display: block; }
.disc-hero { padding: 64px 0 48px; text-align: center; }
.disc-hero h1 { margin-bottom: 14px; }
.disc-hero p  { color: var(--ink-light); max-width: 460px; margin: 0 auto 40px; }

.disc-form-wrap { max-width: 520px; margin: 0 auto; }
.disc-url-bar {
  display: flex; gap: 8px;
  background: var(--white);
  border: 1.5px solid rgba(22,24,29,.14);
  border-radius: var(--r-xl);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--sh-md); margin-bottom: 14px;
}
.disc-url-bar input {
  flex: 1; min-width: 0; border: none; outline: none;
  font-size: 1rem; color: var(--ink); background: transparent; font-family: inherit;
}
.disc-url-bar input::placeholder { color: var(--ink-muted); }
.disc-url-bar .btn-primary { border-radius: calc(var(--r-xl) - 4px); }

.nw-toggle {
  font-size: .8rem; color: var(--ink-muted);
  cursor: pointer; background: none; border: none; padding: 0;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: inherit; margin-bottom: 20px;
  transition: color var(--t);
}
.nw-toggle:hover { color: var(--ink); }
.nw-panel {
  display: none; background: var(--white);
  border: 1px solid rgba(22,24,29,.1); border-radius: var(--r-md);
  padding: 24px; margin-bottom: 20px;
}
.nw-panel.open { display: block; }
.nw-panel .fld { margin-bottom: 18px; }
.nw-panel label { display: block; font-size: .83rem; font-weight: 500; margin-bottom: 6px; color: var(--ink-light); }
.nw-panel input, .nw-panel textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid rgba(22,24,29,.13); border-radius: var(--r-sm);
  font-size: .9rem; font-family: inherit; color: var(--ink); background: var(--paper); outline: none;
}
.nw-panel input:focus, .nw-panel textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(190,138,46,.1);
}
.nw-panel textarea { resize: vertical; min-height: 68px; }

/* Progress */
.progress-wrap { max-width: 460px; margin: 0 auto; padding: 56px 0; text-align: center; }
.progress-wrap h2 { margin-bottom: 8px; }
.progress-wrap .sub { color: var(--ink-muted); font-size: .88rem; margin-bottom: 36px; }
.spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid rgba(22,24,29,.08);
  border-top-color: var(--gold);
  animation: spin .85s linear infinite;
  margin: 0 auto 32px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-steps { list-style: none; text-align: left; }
.ps {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid rgba(22,24,29,.06);
  font-size: .88rem; color: var(--ink-muted); transition: color var(--t);
}
.ps.done   { color: var(--ink); }
.ps.active { color: var(--gold-dark); font-weight: 500; }
.ps-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: rgba(22,24,29,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; transition: background var(--t), color var(--t);
}
.ps.done   .ps-dot { background: var(--green); color: var(--white); }
.ps.active .ps-dot { background: var(--gold); }

/* Result */
.result-wrap { max-width: 620px; margin: 0 auto; padding: 40px 0 80px; }
.demo-badge {
  display: inline-block;
  padding: 5px 12px; border-radius: var(--r-full);
  background: rgba(190,138,46,.1); color: var(--gold-dark);
  font-size: .76rem; font-weight: 600; margin-bottom: 20px;
}
.result-summary { font-size: .94rem; color: var(--ink-light); margin-bottom: 24px; line-height: 1.65; }
.finding {
  background: var(--white); border-radius: var(--r-lg);
  padding: 24px 26px; border-left: 4px solid;
  margin-bottom: 14px; box-shadow: var(--sh-xs);
}
.finding.NOW  { border-color: #E07B39; }
.finding.GAP  { border-color: var(--gold); }
.finding.GOOD { border-color: var(--green); }
.finding-sev  { font-size: .66rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.finding.NOW  .finding-sev { color: #E07B39; }
.finding.GAP  .finding-sev { color: var(--gold-dark); }
.finding.GOOD .finding-sev { color: var(--green); }
.finding h3   { font-size: .96rem; font-weight: 600; margin-bottom: 6px; }
.finding p    { font-size: .85rem; color: var(--ink-light); line-height: 1.6; }
.finding-fix  {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(22,24,29,.07);
  font-size: .8rem; color: var(--green); font-weight: 500;
}
.more-badge {
  text-align: center; padding: 14px; background: var(--paper-dim);
  border-radius: var(--r-md); font-size: .83rem; color: var(--ink-muted);
  margin-bottom: 32px;
}
.portal-bridge {
  background: var(--white); border-radius: var(--r-lg);
  padding: 24px 28px; border: 1.5px solid rgba(190,138,46,.2);
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.portal-bridge p { font-size: .88rem; color: var(--ink-light); }
.portal-bridge strong { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 4px; }

/* Email capture */
.email-capture {
  background: var(--ink); border-radius: var(--r-xl);
  padding: 36px 40px; color: var(--white); margin-top: 8px;
}
.email-capture h2   { color: var(--white); font-size: 1.4rem; margin-bottom: 8px; }
.email-capture .sub { color: rgba(255,255,255,.55); font-size: .88rem; margin-bottom: 24px; }
.email-bar {
  display: flex; gap: 10px; margin-bottom: 14px;
}
.email-bar input {
  flex: 1; min-width: 0; padding: 12px 16px;
  border: 1.5px solid rgba(255,255,255,.18); border-radius: var(--r-md);
  background: rgba(255,255,255,.07); color: var(--white);
  font-size: .92rem; font-family: inherit; outline: none;
}
.email-bar input::placeholder { color: rgba(255,255,255,.3); }
.email-bar input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(190,138,46,.2); }
.consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .78rem; color: rgba(255,255,255,.48); line-height: 1.55;
  margin-bottom: 20px; cursor: pointer;
}
.consent-row input[type=checkbox] { flex-shrink: 0; margin-top: 2px; accent-color: var(--gold); }
.email-sent {
  display: none; text-align: center; padding: 24px;
  background: var(--green-bg); border-radius: var(--r-md); color: var(--green);
}
.email-sent.show { display: block; }

/* ── Legal pages ── */
.legal-wrap { max-width: 740px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-wrap h1 { margin-bottom: 6px; }
.legal-date  { color: var(--ink-muted); font-size: .86rem; margin-bottom: 44px; }
.legal-wrap h2 { font-size: 1rem; font-weight: 700; margin-top: 36px; margin-bottom: 10px; color: var(--ink); }
.legal-wrap p  { color: var(--ink-light); line-height: 1.78; margin-bottom: 14px; font-size: .92rem; }
.legal-wrap ul { padding-left: 20px; margin-bottom: 14px; }
.legal-wrap li { color: var(--ink-light); line-height: 1.78; margin-bottom: 7px; font-size: .92rem; }
.entity-block  {
  background: var(--paper-dim); border-radius: var(--r-md);
  padding: 16px 20px; margin-top: 36px;
  font-size: .83rem; color: var(--ink-muted); line-height: 1.7;
}

/* ── Features page ── */
.features-hero { padding: 72px 0 56px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.feat-block {
  background: var(--white); border-radius: var(--r-lg);
  padding: 32px; border: 1px solid rgba(22,24,29,.08);
}
.feat-block h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.feat-block p  { font-size: .88rem; color: var(--ink-light); line-height: 1.66; }
.api-notice {
  background: var(--gold-bg);
  border: 1px solid rgba(190,138,46,.22);
  border-radius: var(--r-md);
  padding: 20px 24px; margin-top: 40px;
  font-size: .88rem; color: var(--gold-dark); line-height: 1.68;
}
.api-notice strong { display: block; margin-bottom: 4px; font-size: .9rem; }

/* ── Utilities ── */
.divider { height: 1px; background: rgba(22,24,29,.07); }
.hidden  { display: none !important; }
.gold    { color: var(--gold); }
.green   { color: var(--green); }

/* ── Hamburger button ── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 0; flex-shrink: 0; border-radius: var(--r-sm);
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
.nav-mobile {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--paper); z-index: 99;
  padding: 12px 16px 48px;
  flex-direction: column; gap: 2px;
  overflow-y: auto;
  border-top: 1px solid rgba(22,24,29,.07);
  animation: slideDown 200ms ease;
}
.nav-mobile.open { display: flex; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile a {
  display: block; padding: 16px 18px;
  font-size: 1.02rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-radius: var(--r-md);
  transition: background var(--t);
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile a:active { background: rgba(22,24,29,.07); }
.nav-mobile-divider {
  height: 1px; background: rgba(22,24,29,.08); margin: 10px 0;
}
.nav-mobile-portal {
  margin-top: 4px;
  background: var(--ink) !important;
  color: var(--white) !important;
  text-align: center;
}
.nav-mobile-portal:active { background: #2a2d35 !important; }

.nav-mobile-register {
  margin-top: 4px;
  background: var(--gold) !important;
  color: var(--white) !important;
  text-align: center;
  font-weight: 600 !important;
}
.nav-mobile-register:active { background: var(--gold-light) !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .three-grid    { grid-template-columns: 1fr; }
  .testi-grid    { grid-template-columns: 1fr; }
  .local-grid    { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* Nav */
  .nav-links               { display: none; }
  .nav-actions .btn-portal { display: none; }
  .nav-burger              { display: flex; }

  /* Layout */
  section    { padding: 48px 0; }
  .hero      { padding: 44px 0 48px; background-position: center 55%; }
  .hero::before { background: rgba(251,250,247,.91); }
  .container { padding: 0 16px; }
  .identity-strip { padding: 36px 16px; }
  .identity-strip p { font-size: 1rem; }
  .cta-photo .cta-block { padding: 56px 16px; }

  /* Hero inline URL bar */
  .url-bar {
    flex-direction: column; border-radius: var(--r-md);
    padding: 12px; gap: 10px;
  }
  .url-bar .btn-primary { width: 100%; justify-content: center; border-radius: var(--r-md); }

  /* Grids */
  .how-grid     { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  /* Forms */
  .email-bar { flex-direction: column; }
  .email-bar .btn-primary { width: 100%; justify-content: center; }

  /* CTA */
  .cta-block { padding: 40px 20px; }

  /* Discover page */
  .disc-hero { padding: 40px 0 28px; }
  .disc-url-bar {
    flex-direction: column; border-radius: var(--r-md); padding: 12px;
  }
  .disc-url-bar .btn-primary { border-radius: var(--r-md); width: 100%; justify-content: center; }
  .result-wrap { padding: 24px 0 48px; }
  .portal-bridge { flex-direction: column; }
  .email-capture { padding: 28px 20px; }
  .email-capture h2 { font-size: 1.2rem; }

  /* Features page */
  .features-hero { padding: 48px 0 36px; }
}
