/* ==========================================================================
   NAPGYM — Design tokens
   ========================================================================== */
:root {
  --bg: #F7F5EE;
  --surface: #EFEBDF;
  --surface-2: #FFFFFF;
  --ink: #15140F;
  --ink-soft: #6B6A60;
  --line: #E2DDCE;

  --green: #1E3B2C;
  --green-deep: #122318;
  --green-soft: #2F5940;
  --cream-on-green: #EFEAD9;

  --font-display: 'Bricolage Grotesque', 'Instrument Sans', sans-serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }

.h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; }
.h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1.08; max-width: 18ch; }
.h2-invert { color: var(--cream-on-green); }

.body-lg { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
.text-invert-soft { color: rgba(239, 234, 217, 0.78); }

section.section { padding-block: clamp(64px, 10vw, 128px); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  min-height: 52px;
}
.btn:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--green);
  color: var(--cream-on-green);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-small { padding: 11px 20px; font-size: 0.92rem; min-height: 40px; }
.btn-full { width: 100%; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 112px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

.hero-kicker {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.hero-title {
  font-size: clamp(2.3rem, 6.5vw, 3.6rem);
  line-height: 1.06;
  max-width: 15ch;
}

.hero-title-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6.5vw, 3.6rem);
  line-height: 1.06;
  color: var(--green);
  margin: 2px 0 24px;
}

.hero-support {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 32px;
}

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }

.phone {
  width: min(280px, 78vw);
  aspect-ratio: 9 / 18.5;
  background: var(--green-deep);
  border-radius: 42px;
  padding: 14px;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(18, 35, 24, 0.45);
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: var(--green-deep);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  background: linear-gradient(180deg, #1E3B2C 0%, #16301F 100%);
  border-radius: 30px;
  height: 100%;
  padding: 46px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.phone-word {
  color: var(--cream-on-green);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  margin: 0 0 28px;
  opacity: 0.85;
}
.phone-question {
  color: var(--cream-on-green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 26px;
}
.phone-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.phone-option {
  background: rgba(239, 234, 217, 0.08);
  border: 1px solid rgba(239, 234, 217, 0.16);
  color: var(--cream-on-green);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 0.95rem;
  text-align: left;
}
.phone-option.is-active {
  background: var(--cream-on-green);
  color: var(--green-deep);
  font-weight: 600;
  border-color: transparent;
}

/* ==========================================================================
   Problem section
   ========================================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.stack-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
}
.problem-copy .h2 { margin-bottom: 18px; }
.problem-emphasis { color: var(--ink); font-weight: 600; }
.problem-copy .body-lg { margin-top: 10px; margin-bottom: 4px; }

.problem-visual { display: flex; justify-content: center; }
.problem-svg { width: min(340px, 80vw); height: auto; }
.ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.ring-2 { stroke: var(--line); }
.busy-marks line { stroke: var(--ink-soft); stroke-width: 3; stroke-linecap: round; opacity: 0.55; }
.calm-dot { fill: var(--green); }

/* ==========================================================================
   What is NapGym / feature grid
   ========================================================================== */
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-lede { margin-top: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 30px 28px;
}
.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.feature-card p {
  margin: 0;
  color: var(--ink-soft);
}
.feature-card-wide { background: var(--green); }
.feature-card-wide h3, .feature-card-wide p { color: var(--cream-on-green); }
.feature-card-wide p { opacity: 0.85; }

/* ==========================================================================
   Hypnagogia / creative section
   ========================================================================== */
.hypnagogia {
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  margin-inline: var(--gutter);
  padding-inline: 0;
}
.hypnagogia .wrap { padding-block: clamp(56px, 8vw, 96px); }
.hypnagogia-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.hypnagogia-copy p { margin-top: 16px; }
.disclaimer { font-size: 0.88rem; margin-top: 22px; max-width: 40ch; }

.hypnagogia-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.flow-step {
  background: rgba(239, 234, 217, 0.08);
  border: 1px solid rgba(239, 234, 217, 0.18);
  border-radius: 999px;
  padding: 14px 26px;
  color: var(--cream-on-green);
  font-family: var(--font-display);
  font-weight: 600;
}
.flow-step.is-final { background: var(--cream-on-green); color: var(--green-deep); border-color: transparent; }
.flow-arrow {
  width: 26px;
  height: 1px;
  background: rgba(239, 234, 217, 0.35);
}

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: baseline;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-soft);
  min-width: 2.2ch;
}
.step h3 { font-size: 1.3rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-soft); }

/* ==========================================================================
   Idea vault
   ========================================================================== */
.idea-vault-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.idea-vault-copy .body-lg { margin-top: 16px; }
.idea-vault-visual { display: flex; justify-content: center; }
.idea-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  width: min(340px, 84vw);
  box-shadow: 0 24px 48px -28px rgba(21, 20, 15, 0.25);
}
.idea-card-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.idea-card-id { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 10px; }
.idea-card-text { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 22px; }
.idea-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.idea-card-tags span {
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Signup
   ========================================================================== */
.signup {
  background: var(--green);
  color: var(--cream-on-green);
}
.signup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.signup-sub { color: var(--cream-on-green); opacity: 0.9; margin-top: 14px; margin-bottom: 6px; }
.signup-copy p:last-child { margin-top: 14px; }

.signup-form-wrap {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  color: var(--ink);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-row input {
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
}
.form-row input:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);
}
.form-row-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.form-error {
  text-align: center;
  font-size: 0.9rem;
  color: #B3261E;
  margin: 14px 0 0;
}
.form-success {
  text-align: center;
  padding: 12px;
}
.form-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   Thank-you page
   ========================================================================== */
.thankyou { padding-block: clamp(96px, 16vw, 180px); }
.thankyou-inner { text-align: center; max-width: 560px; margin-inline: auto; }
.thankyou-kicker {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.thankyou-sub { margin: 8px auto 20px; max-width: none; }
.thankyou-inner .body-lg { margin-inline: auto; }
.thankyou-motto {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
  margin: 22px 0 34px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer-inner { text-align: center; }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.footer-tag { color: var(--ink-soft); margin: 0 0 14px; }
.footer-meta { font-size: 0.82rem; color: var(--ink-soft); }

/* ==========================================================================
   Responsive — tablet & up
   ========================================================================== */
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .problem-grid { grid-template-columns: 1.1fr 0.9fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-wide { grid-column: span 2; }
  .hypnagogia-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .idea-vault-grid { grid-template-columns: 1fr 1fr; }
  .signup-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-card-wide { grid-column: span 4; }
}
