/* ─────────────────────────────────────────
   helpful.app Design System
   Warmer than CallLegend. Friendlier.
   Still part of the HomeSwerv family.
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; width: 100%; }
html { scroll-behavior: smooth; }

body {
  background: #FAFAF7;
  color: #1C1917;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

*:focus-visible {
  outline: 3px solid #2563EB;
  outline-offset: 2px;
  border-radius: 4px;
}

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

:root {
  /* Warm palette — friendliest in the network */
  --cream:     #FAFAF7;
  --cream2:    #F5F0E8;
  --white:     #FFFFFF;
  --navy:      #1E3A5F;
  --navy2:     #0F2A4A;
  --blue:      #2563EB;
  --blue-mid:  #3B82F6;
  --blue-bg:   #EFF6FF;
  --blue-line: #BFDBFE;
  --text:      #1C1917;
  --muted:     #57534E;
  --light:     #78716C;
  --line:      #E7E5E4;
  --gold:      #D4930A;
  --gold-warm: #F59E0B;
  --gold-bg:   #FFFBEB;
  --gold-line: #FDE68A;
  --success:   #059669;
  --lab-green: #16A34A;
  --red:       #DC2626;

  --font-heading: 'Lora', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --max:     1200px;
  --gutter:  1.25rem;
  --section: 3.5rem;
}

/* ── DOT GRID TEXTURE ── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(30,58,95,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-pad { padding: var(--section) 0; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.eyebrow.gold { color: var(--gold); }
.eyebrow.white { color: rgba(255,255,255,0.70); }

h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 em { font-style: italic; color: var(--gold); }

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.875rem;
}

h2.on-dark { color: #fff; }

h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(28,25,23,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.nav-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.nav-wordmark span { color: var(--gold); }

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 36px;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--gold-warm); }

.nav-toggle {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.5rem;
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-drawer a:last-child { border-bottom: none; }

/* ── HERO ── */
.hero {
  background: var(--cream2);
  border-bottom: 2px solid var(--gold-line);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212,147,10,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-bg);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  padding: 0.35rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  width: fit-content;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-style: italic;
  color: var(--gold);
  margin-top: 1rem;
  line-height: 1.55;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 1.25rem 0 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.trust-pill span { color: var(--lab-green); font-size: 0.85rem; }

/* Lab illustration card */
.hero-lab-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(28,25,23,0.08);
  position: relative;
}

.lab-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.lab-card-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.lab-card-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--light);
  letter-spacing: 0.08em;
}

.experiment-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.experiment-item:last-child { border-bottom: none; }

.experiment-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.exp-blue { background: var(--blue-bg); }
.exp-gold { background: var(--gold-bg); }
.exp-green { background: #ECFDF5; }

.experiment-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.experiment-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-live { color: var(--lab-green); }
.status-building { color: var(--blue); }
.status-idea { color: var(--gold); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-align: center;
}

.btn-primary:hover { background: var(--navy2); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.btn-gold:hover { background: var(--gold-warm); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 500;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  transition: all 0.2s;
}

.btn-outline:hover { border-color: var(--navy); color: var(--navy); }

.btn-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── TOOL CARDS ── */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
  position: relative;
}

.tool-card:hover {
  border-color: var(--gold-line);
  box-shadow: 0 4px 16px rgba(212,147,10,0.1);
  transform: translateY(-1px);
}

.tool-card-category {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 0.75rem;
}

.tool-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
  display: block;
}

.tool-card-name {
  font-family: var(--font-heading);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.tool-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.tool-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.badge-new { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-line); }
.badge-wild { background: #F0FDF4; color: var(--lab-green); border: 1px solid #BBF7D0; }
.badge-wl { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-line); }

/* ── CATEGORY TABS ── */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.cat-tab {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 0.4rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.cat-tab:hover, .cat-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step-num {
  width: 52px; height: 52px;
  background: var(--gold-bg);
  border: 2px solid var(--gold-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── IDEAS LAB ── */
.ideas-section {
  background: var(--navy2);
  position: relative;
  overflow: hidden;
}

.ideas-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

.ideas-form-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.ideas-form-hd {
  background: var(--gold);
  padding: 1.25rem 1.5rem;
}

.ideas-form-hd-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.ideas-form-hd-sub {
  font-size: 0.85rem;
  color: rgba(30,58,95,0.75);
}

.ideas-form-bd { padding: 1.25rem 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.875rem; }

.form-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input, .form-textarea {
  background: #FAFAF7;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 0.65rem 0.875rem;
  width: 100%;
  min-height: 44px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,147,10,0.12);
}

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

.form-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-consent input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.form-consent-label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.form-fine {
  text-align: center;
  font-size: 0.75rem;
  color: var(--light);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ── WHITE LABEL ── */
.wl-section {
  background: var(--cream2);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.wl-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.wl-card:hover {
  border-color: var(--gold-line);
  box-shadow: 0 4px 16px rgba(212,147,10,0.08);
}

.wl-icon {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
  display: block;
}

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--gold-bg);
  border-top: 1px solid var(--gold-line);
}

/* ── NETWORK FOOTER ── */
.network-bar {
  background: var(--navy);
  padding: 1.5rem 0;
  border-top: 3px solid var(--gold);
}

.network-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.network-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.network-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: all 0.2s;
}

.network-pill:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.network-pill.current { background: rgba(212,147,10,0.2); border-color: rgba(212,147,10,0.4); color: #FCD34D; }

footer {
  background: #0A1E35;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand span { color: var(--gold); }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  font-style: italic;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.875rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-legal { font-size: 0.76rem; color: rgba(255,255,255,0.5); }
.footer-legal a { color: rgba(255,255,255,0.5); text-decoration: underline; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* ══════════════════════════════════════════
   TABLET: 600px+
══════════════════════════════════════════ */
@media (min-width: 600px) {
  :root { --gutter: 1.75rem; --section: 4.5rem; }

  .hero-actions { flex-direction: row; }
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ══════════════════════════════════════════
   DESKTOP: 960px+
══════════════════════════════════════════ */
@media (min-width: 960px) {
  :root { --gutter: 2.5rem; --section: 6rem; }

  .nav-inner { height: 64px; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }

  .hero { padding: 5rem 0 6rem; }
  .hero-layout { grid-template-columns: 1fr 420px; gap: 5rem; align-items: center; }
  .hero-actions { flex-direction: row; }

  .tool-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }

  .network-bar-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}