@import url("https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap");

:root {
  /* neutral neumorphic base — everything derives from one canvas tone */
  --bg: #e9ebf1;
  --bg-2: #e4e7ee;
  --sh-d: #c4c8d2;          /* shadow (dark side) */
  --sh-l: #ffffff;          /* highlight (light side) */

  --ink: #2f333b;           /* headings — kept high-contrast on purpose */
  --ink-soft: #545a66;      /* body */
  --muted: #868c99;         /* tertiary / labels */
  --faint: #a3a8b4;
  --graphite: #34373f;      /* the one "dark" — primary actions */
  --graphite-2: #3f434c;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;

  --font: "General Sans", -apple-system, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move: cubic-bezier(0.33, 0, 0.2, 1);

  /* neumorphic primitives */
  --neu: 9px 9px 20px var(--sh-d), -9px -9px 20px var(--sh-l);
  --neu-sm: 6px 6px 13px var(--sh-d), -6px -6px 13px var(--sh-l);
  --neu-lg: 16px 16px 34px var(--sh-d), -14px -14px 30px var(--sh-l);
  --neu-inset: inset 5px 5px 11px var(--sh-d), inset -5px -5px 11px var(--sh-l);
  --neu-inset-sm: inset 3px 3px 7px var(--sh-d), inset -3px -3px 7px var(--sh-l);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; max-width: 100%; overflow-x: clip; }
body {
  background: var(--bg); color: var(--ink-soft);
  font-family: var(--font); line-height: 1.62; font-size: 16px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--ink); font-weight: 500; }

.nav-in, .section, .hero, .footer { max-width: 1140px; margin: 0 auto; padding-left: clamp(22px, 5vw, 56px); padding-right: clamp(22px, 5vw, 56px); }

/* soft neutral background depth — no color, just light */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -8%, rgba(255,255,255,0.7), transparent 70%),
    radial-gradient(50% 50% at 88% 96%, rgba(196,200,210,0.28), transparent 72%),
    var(--bg);
}

/* ── neumorphic primitives ── */
.neu { background: var(--bg); box-shadow: var(--neu); }
.neu-inset { background: var(--bg); box-shadow: var(--neu-inset); }
.neu-btn { background: var(--bg); box-shadow: var(--neu-sm); transition: box-shadow .2s var(--ease-move), transform .16s var(--ease-move), color .16s ease; }
.neu-btn:hover { box-shadow: var(--neu); transform: translateY(-1px); color: var(--ink); }
.neu-btn:active { box-shadow: var(--neu-inset-sm); transform: translateY(0); }

/* ── motion: gentle scroll-reveal only (calm + professional) ── */
.fx-ready [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.fx-ready [data-reveal].in { opacity: 1; transform: none; }
.hero-copy [data-reveal]:nth-child(2){transition-delay:.06s}
.hero-copy [data-reveal]:nth-child(3){transition-delay:.12s}
.hero-copy [data-reveal]:nth-child(4){transition-delay:.18s}
.hero-copy [data-reveal]:nth-child(5){transition-delay:.24s}

/* ── nav ── */
.nav { position: sticky; top: 18px; z-index: 40; padding: 0 clamp(22px, 5vw, 56px); max-width: 1140px; margin: 18px auto 0; }
.nav-in { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 22px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.02em; color: var(--ink); }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); box-shadow: var(--neu-sm); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--graphite); }
.nav-right { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.nav-right > a:not(.nav-cta) { color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: color .14s ease; }
.nav-right > a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta { color: var(--ink); padding: 9px 18px; border-radius: 999px; font-weight: 600; }

/* hamburger (mobile only) */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; background: var(--bg); box-shadow: var(--neu-sm); flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .22s var(--ease-move), opacity .16s ease; }
.nav-toggle:active { box-shadow: var(--neu-inset-sm); }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; font-weight: 600; font-size: 15.5px; padding: 14px 24px; border-radius: 14px; transition: transform .16s var(--ease-move), box-shadow .2s var(--ease-move), background .16s ease; }
.btn-primary { background: linear-gradient(145deg, var(--graphite-2), var(--graphite)); color: #f3f4f7;
  box-shadow: 6px 6px 14px var(--sh-d), -6px -6px 14px var(--sh-l); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 8px 8px 20px var(--sh-d), -7px -7px 16px var(--sh-l); }
.btn-primary:active { transform: translateY(0); box-shadow: inset 3px 3px 8px rgba(0,0,0,0.35); }
.btn-soft { color: var(--ink); padding: 14px 22px; }

/* ── hero ── */
.hero { display: grid; grid-template-columns: 1.06fr 0.94fr; align-items: center; gap: 64px; padding-top: 96px; padding-bottom: 104px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); padding: 9px 16px; border-radius: 999px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(33px, 5vw, 57px); line-height: 1.06; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); }
.sig { position: relative; color: var(--ink); }
.sig::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 6px; height: 8px; border-radius: 4px;
  background: var(--bg); box-shadow: var(--neu-inset-sm); z-index: -1; }
.sub { font-size: 18px; line-height: 1.62; color: var(--ink-soft); max-width: 46ch; margin: 24px 0 30px; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 13px; color: var(--faint); }

/* hero visual */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.orb { position: absolute; width: 132px; height: 132px; border-radius: 50%; top: 0; right: 4%; z-index: 1; box-shadow: var(--neu-lg); }
.panel { position: relative; z-index: 2; width: 360px; max-width: 92%; border-radius: var(--radius-lg); padding: 26px 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.panel-status { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); padding: 5px 11px; border-radius: 999px; }
.panel-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(196,200,210,0.4); }
.panel-row:nth-child(2) { border-top: none; }
.row-icon { width: 34px; height: 34px; border-radius: 11px; flex: none; }
.row-name { flex: 1; font-size: 15px; font-weight: 500; color: var(--ink); }
.row-tag { font-size: 11px; font-weight: 600; color: var(--muted); padding: 5px 12px; border-radius: 999px; }

/* ── sections ── */
.section { padding-top: 84px; padding-bottom: 84px; }
.section-head { margin-bottom: 42px; max-width: 640px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.14; color: var(--ink); }
.lead { color: var(--ink-soft); font-size: 17px; line-height: 1.62; margin-top: 14px; max-width: 60ch; }

/* build grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tile { display: block; border-radius: var(--radius); padding: 30px 28px; transition: transform .34s var(--ease-move), box-shadow .34s var(--ease-move); }
a.tile:hover { transform: translateY(-5px); box-shadow: var(--neu-lg); }
.tile-k { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.tile-h { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
.tile p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.62; }
.tile-link { display: inline-block; margin-top: 20px; font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* guide card */
.guide-card { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; border-radius: var(--radius-lg); padding: 52px clamp(30px, 4.5vw, 56px); }
.guide-badge { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.guide-copy h2 { margin-bottom: 8px; }
.guide-copy .btn { margin-top: 28px; }
.guide-visual { display: flex; align-items: center; justify-content: center; }
.doc { width: 280px; max-width: 100%; border-radius: var(--radius); padding: 26px 24px; }
.doc-bar { display: flex; gap: 8px; margin-bottom: 22px; }
.doc-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: var(--neu-inset-sm); }
.doc-line { height: 12px; border-radius: 6px; background: var(--bg); box-shadow: var(--neu-inset-sm); margin-bottom: 15px; }
.doc-line.w70{width:70%} .doc-line.w90{width:90%} .doc-line.w50{width:50%} .doc-line.w80{width:80%} .doc-line.w40{width:40%}

/* connect */
.connect { text-align: center; }
.connect-in { max-width: 620px; margin: 0 auto; }
.connect .lead { margin: 14px auto 32px; }
.connect-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.clink { padding: 12px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }

/* footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 46px; padding-bottom: 56px; margin-top: 30px; color: var(--faint); font-size: 13.5px; }
.footer .brand { color: var(--ink-soft); }
.footer-tag { font-style: italic; }

/* ── guides grid (home) ── */
.guides-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }

/* ── guide landing page ── */
.guide-hero { max-width: 1140px; margin: 0 auto; padding: 120px clamp(22px,5vw,56px) 90px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; min-height: 70vh; }
.back-link { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 20px; transition: color .14s ease; }
.back-link:hover { color: var(--ink); }
.guide-pitch h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.07; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); margin-top: 6px; }
.guide-pitch .lead { margin-top: 18px; }
.whats-in { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.whats-in li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.whats-in li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 7px; background: var(--bg); box-shadow: var(--neu-inset-sm); }
.whats-in li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--graphite); }

.gate-card { border-radius: var(--radius-lg); padding: 38px 34px; align-self: start; }
.gate-card h2 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px; }
.gate-sub { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.gate-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.gate-submit { width: 100%; justify-content: center; border: none; cursor: pointer; font-family: var(--font); }
.gate-submit:disabled { opacity: .7; cursor: default; }
.gate-note { margin-top: 14px; font-size: 12.5px; color: var(--faint); text-align: center; }
.gate-card [data-pane="success"] { text-align: center; }
.gate-card .check { margin: 0 auto 16px; }
.gate-card [data-pane="success"] a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── email gate modal ── */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }   /* beats the base .modal display:flex so the scrim doesn't eat clicks */
.modal-scrim { position: absolute; inset: 0; background: rgba(58,62,72,0.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s ease; }
.modal.open .modal-scrim { opacity: 1; }
.modal-card { position: relative; width: 440px; max-width: 100%; border-radius: var(--radius-lg); padding: 38px 36px; text-align: left;
  opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity .24s var(--ease-out), transform .24s var(--ease-out); }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; font-size: 19px; line-height: 1; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.modal-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 8px; }
.modal-p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; max-width: 38ch; }
.modal-card .guide-badge { margin-bottom: 18px; }
#gate-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.field { width: 100%; border: none; outline: none; background: var(--bg); border-radius: 14px; padding: 15px 18px; font-family: var(--font); font-size: 15px; color: var(--ink); }
.field::placeholder { color: var(--faint); }
.field:focus { box-shadow: var(--neu-inset), 0 0 0 2px rgba(52,55,63,0.14); }
.modal-submit { width: 100%; justify-content: center; border: none; cursor: pointer; font-family: var(--font); }
.modal-submit:disabled { opacity: 0.7; cursor: default; }
.form-err { font-size: 13px; color: #b4453b; padding: 2px 2px 0; }
[data-pane="success"] { text-align: center; padding: 6px 0; }
.check { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--graphite); }
[data-pane="success"] .modal-p { margin: 0 auto; }
[data-pane="success"] a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── responsive ── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .hero-visual { min-height: 300px; }
  .grid { grid-template-columns: 1fr; }
  .guides-grid { max-width: none; }
  .guide-card { grid-template-columns: 1fr; gap: 38px; }
  .guide-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 96px; min-height: 0; }

  /* mobile nav: hamburger + dropdown panel */
  .nav-toggle { display: flex; }
  .nav-right {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--bg); border-radius: 22px; padding: 14px; box-shadow: var(--neu);
    opacity: 0; transform: translateY(-8px); transform-origin: top; pointer-events: none;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  }
  .nav.open .nav-right { opacity: 1; transform: none; pointer-events: auto; }
  .nav-right > a { padding: 13px 16px; border-radius: 12px; font-size: 16px; color: var(--ink-soft); }
  .nav-right > a:not(.nav-cta):active { box-shadow: var(--neu-inset-sm); }
  .nav-cta { margin-top: 4px; justify-content: center; text-align: center; }
}

/* ── accessibility ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}
