/* Everybody Needs a Mom — warm, neutral, editorial */
:root {
  --bg: #F6F2EC;
  --paper: #FFFDF9;
  --sand: #EEE7DC;
  --line: #E2D9CC;
  --ink: #1F1C19;
  --ink-2: #5F574E;
  --ink-3: #8A8177;
  --clay: #A65A3A;
  --clay-dark: #8C4A2E;
  --focus: rgba(166, 90, 58, 0.32);
  --radius: 6px;
  --font: "Futura PT", Futura, "Jost", "Century Gothic", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
b, strong { font-weight: 500; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }
::selection { background: var(--sand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 760px; }
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.small { font-size: 0.92rem; }
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 16px;
}
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 34em; }

/* ---------- Header & footer ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 28px; min-height: 76px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.nav a, .nav-btn {
  font-family: var(--font); font-size: 0.95rem; text-decoration: none; color: var(--ink-2);
  padding: 2px 0; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer;
}
.nav a:hover, .nav a[aria-current="page"], .nav-btn:hover { color: var(--ink); border-bottom-color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.9rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 10px 24px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-size: 1rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); color: var(--paper); }
.btn:disabled { opacity: .3; cursor: not-allowed; background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-big { padding: 17px 32px; font-size: 1.05rem; }
.btn.full { width: 100%; }
.link-arrow { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-arrow:hover { border-bottom-color: var(--clay); }

/* ---------- Home ---------- */
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 72px; align-items: end; }
.hero-actions { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; margin-top: 34px; }
.portrait { margin: 0; }
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); background: var(--sand);
}
.portrait figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--ink-3); letter-spacing: 0.06em; }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.step { padding: 34px 32px 30px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step-num { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; color: var(--clay); }
.step h3 { margin: 12px 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }

.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.note { font-size: 0.95rem; color: var(--ink-2); border-left: 2px solid var(--clay); padding: 2px 0 2px 16px; margin: 24px 0; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 1.02rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); background: var(--paper); box-shadow: 0 0 0 3px var(--focus);
}
.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.request-grid .field { max-width: none; }

.choice { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.choice legend { font-size: 0.92rem; font-weight: 500; padding: 0; margin-bottom: 8px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-opt { position: relative; cursor: pointer; }
.choice-opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice-opt span {
  display: block; height: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px;
  background: var(--bg); font-weight: 500; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.choice-opt small { display: block; font-weight: 400; font-size: 0.88rem; color: var(--ink-2); margin-top: 2px; }
.choice-opt input:checked + span { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus); }

.checks { margin: 0 0 26px; border-bottom: 1px solid var(--line); }
.check {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 0;
  border-top: 1px solid var(--line); cursor: pointer; font-size: 0.97rem; line-height: 1.6;
}
.checks .check:first-child { border-top: 0; padding-top: 0; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 3px 0 0;
  border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); cursor: pointer;
  display: grid; place-content: center;
}
.check input::before {
  content: ""; width: 11px; height: 11px; transform: scale(0); transition: transform .12s ease;
  background: var(--paper); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.check input:checked { background: var(--ink); }
.check input:checked::before { transform: scale(1); }
.small-check { border-top: 0; padding: 4px 0 22px; }
#request-form .btn { width: 100%; }
.error { color: var(--clay-dark); font-weight: 500; min-height: 1.6em; margin: 12px 0 0; font-size: 0.95rem; }

.setup-note { background: var(--sand); border-radius: var(--radius); padding: 22px 24px; }
.setup-note h3 { margin-bottom: 6px; }
.setup-note p:last-of-type { margin-bottom: 12px; }
#rq-done { margin-top: 18px; }
.mono {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.88rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; word-break: break-all;
}
textarea.out { width: 100%; resize: vertical; line-height: 1.55; color: var(--ink); word-break: normal; overflow-wrap: anywhere; }
.copied { color: var(--clay); font-weight: 500; margin-left: 14px; font-size: 0.95rem; }
.tabs { display: flex; gap: 8px; margin: 4px 0 12px; }
.tab {
  font-family: var(--font); font-size: 0.92rem; font-weight: 500; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); cursor: pointer;
}
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Video ---------- */
.video-head { margin: 56px 0 20px; }
.video-box {
  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 380px;
  background: #1B1916; border-radius: var(--radius); overflow: hidden;
}
.video-box iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: #D9D0C3; padding: 28px;
}
.video-placeholder h3 { color: #FFFDF9; }
.video-placeholder a { color: #F0C2AC; }
#cal-inline { width: 100%; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; padding: 80px 0 96px; }
.about-grid h3 { margin-top: 32px; }
.tag-list { list-style: none; padding: 0; margin: 12px 0 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
  font-size: 0.95rem; color: var(--ink-2); background: var(--paper);
}
.signoff { margin-top: 30px; color: var(--ink-2); }

/* ---------- Agreement ---------- */
.terms { padding: 80px 0 96px; }
.terms h1 { font-size: clamp(2.1rem, 4.2vw, 3rem); }
.terms h2 { font-size: 1.2rem; margin: 2.2em 0 0.6em; letter-spacing: 0; }
.terms h2 span { color: var(--clay); font-size: 0.8rem; letter-spacing: 0.16em; margin-right: 12px; }
.terms ul { padding-left: 1.2em; }
.terms li { margin-bottom: 0.6em; }

/* ---------- Mentor sign-in & dashboard ---------- */
.signin-wrap { display: grid; place-items: center; padding: 88px 0 112px; }
.signin-card {
  width: 100%; max-width: 460px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 44px 40px;
}
.signin-card h1 { font-size: 2.1rem; }
.pw-row { display: flex; gap: 8px; }
.pw-row input { flex: 1; min-width: 0; }
.pw-toggle {
  font-family: var(--font); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); border-radius: 4px; padding: 0 14px; cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.dash-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 64px 0 28px; }
.dash-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin: 0; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; align-items: start; }
.big-code { font-size: 1.9rem; font-weight: 500; letter-spacing: 0.14em; margin: 2px 0 14px; }
.stack { display: grid; gap: 12px; margin: 8px 0 16px; }
.advanced { margin: 0 0 96px; }
.advanced summary { cursor: pointer; font-weight: 500; }
.advanced[open] summary { margin-bottom: 20px; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .about-grid, .dash-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-grid .portrait, .about-grid .portrait { max-width: 380px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 26px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 72px 0; }
  .panel { padding: 26px 20px; }
  .request-grid, .choice-row { grid-template-columns: 1fr; }
  .video-box { aspect-ratio: 3 / 4; min-height: 0; }
  .btn-big { width: 100%; }
  .signin-card { padding: 34px 24px; }
  .signin-wrap { padding: 48px 0 72px; }
}
