/* Wired & Well — shared styles for every page */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --tide:    #0f2e2c;   /* deep Steady teal, near-black */
  --steady:  #0e9a8a;   /* Steady brand teal */
  --steady-d:#0a766a;   /* teal for text on light */
  --fog:     #eef3f1;   /* page background */
  --mist:    #d6e4e0;   /* panels, borders */
  --paper:   #ffffff;
  --ink:     #15211f;
  --quiet:   #4d5f5b;
  --amber:   #e8b44c;   /* warm signal */
  --amber-l: #fbefd2;
  --anchor:  #4a7a9a;
  --spark:   #c46f12;

  --body-size: 18px;
  --body-lh: 1.6;
  --body-ls: 0;
  --measure: 64ch;
  --radius-s: 8px;
  --radius-l: 22px;
}

/* Easier reading mode (toggle in nav) */
html.easy {
  --body-size: 21px;
  --body-lh: 1.85;
  --body-ls: 0.02em;
  --measure: 58ch;
}
html.easy *, html.easy *::before, html.easy *::after {
  animation: none !important; transition: none !important;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: var(--body-size);
  line-height: var(--body-lh);
  letter-spacing: var(--body-ls);
  background: var(--fog);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-weight: 700;
}

a { color: var(--steady-d); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1em; }
.lede { font-size: 1.15em; color: var(--quiet); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 200; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 17px;
  padding: 13px 22px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-steady { background: var(--steady); color: #fff; }
.btn-steady:hover { background: var(--steady-d); }
.btn-line { background: transparent; color: var(--tide); border-color: var(--tide); }
.btn-line:hover { background: var(--tide); color: #fff; }
.btn-small { font-size: 15px; padding: 9px 16px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238,243,241,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { white-space: nowrap; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 21px; color: var(--tide); text-decoration: none; letter-spacing: -0.02em; }
.brand b { color: var(--steady); font-weight: 800; }
.nav ul { display: flex; gap: 24px; list-style: none; margin-left: auto; }
.nav ul a { color: var(--quiet); text-decoration: none; font-size: 16px; font-weight: 700; }
.nav ul a:hover { color: var(--tide); }
.easy-toggle {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); color: var(--tide); border: 1.5px solid var(--mist);
  border-radius: 999px; padding: 7px 14px;
}
.easy-toggle .dot { width: 30px; height: 18px; border-radius: 999px; background: var(--mist); position: relative; }
.easy-toggle .dot::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.easy-toggle[aria-pressed="true"] .dot { background: var(--steady); }
.easy-toggle[aria-pressed="true"] .dot::after { left: 14px; }

/* HERO */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; color: var(--tide); letter-spacing: -0.035em; line-height: .98; }
.hero h1 .line2 { display: block; color: var(--steady-d); }
.hero .lede { margin: 26px 0 32px; max-width: 34ch; font-size: 1.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--quiet); }

/* The memorable thing: "what's your brain doing?" */
.now {
  background: var(--tide); color: #e6f2ef;
  border-radius: var(--radius-l); padding: 30px 30px 28px;
  box-shadow: 0 30px 60px -30px rgba(15,46,44,.55);
}
.now h2 { font-size: 26px; color: #fff; margin-bottom: 4px; }
.now .sub { font-size: 15px; color: #9fc4bd; margin-bottom: 18px; }
.states { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.state {
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  background: transparent; color: #cfe6e1;
  border: 1.5px solid rgba(207,230,225,.28); border-radius: 999px; padding: 8px 14px;
}
.state:hover { border-color: #cfe6e1; color: #fff; }
.state[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--tide); }
.now-out { min-height: 238px; border-top: 1px solid rgba(207,230,225,.16); padding-top: 20px; }
.now-out .name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 30px; font-weight: 700; color: #fff; line-height: 1.1; }
.now-out .means { margin: 8px 0 14px; color: #cfe6e1; }
.now-out ol { padding-left: 1.2em; color: #e6f2ef; }
.now-out ol li + li { margin-top: 4px; }
.now-out .tool { margin-top: 16px; font-size: 15px; color: #9fc4bd; }
.now-out .tool a { color: var(--amber); font-weight: 700; }
.now-empty { color: #9fc4bd; font-size: 16px; padding-top: 8px; }
.now-out.show > * { animation: rise .28s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* SECTIONS */
section { scroll-margin-top: 76px; }
.band { padding: 96px 0; }
.band-paper { background: var(--paper); }
.band-tide { background: var(--tide); color: #dcebe7; }
.band-tide h2, .band-tide h3 { color: #fff; }
.band-tide .lede { color: #a9cbc4; }
.sec-head { margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 52px); color: var(--tide); margin-bottom: 14px; max-width: 20ch; }
.band-tide .sec-head h2 { color: #fff; }

/* UNDERSTANDING */
.understand-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.umbrella { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.umbrella li { background: var(--fog); border: 1px solid var(--mist); border-radius: var(--radius-s); padding: 6px 12px; font-size: 16px; font-weight: 700; color: var(--tide); }
.small { font-size: 15px; color: var(--quiet); }
.myths { display: flex; flex-direction: column; gap: 10px; }
.myth { border: 1.5px solid var(--mist); border-radius: 14px; background: var(--fog); overflow: hidden; }
.myth button {
  width: 100%; text-align: left; font: inherit; cursor: pointer; background: none; border: 0;
  padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; color: var(--ink);
}
.myth .tag { flex-shrink: 0; font-size: 13px; font-weight: 700; background: var(--mist); color: var(--quiet); border-radius: 6px; padding: 2px 8px; margin-top: 3px; }
.myth .q { font-weight: 700; }
.myth .a { display: none; padding: 0 18px 18px 18px; color: var(--ink); }
.myth .a .tag { background: var(--steady); color: #fff; margin-right: 10px; display: inline-block; }
.myth.open { border-color: var(--steady); background: var(--paper); }
.myth.open .a { display: block; }
.myth .chev { margin-left: auto; flex-shrink: 0; color: var(--quiet); transition: transform .15s; }
.myth.open .chev { transform: rotate(180deg); }

/* NAMES EXPLORER */
.names { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
.name-list { display: flex; flex-wrap: wrap; gap: 8px; }
.name-btn {
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.06); color: #dcebe7; border: 1.5px solid rgba(220,235,231,.2);
  border-radius: 10px; padding: 9px 13px;
}
.name-btn:hover { border-color: #dcebe7; color: #fff; }
.name-btn[aria-pressed="true"] { background: var(--amber); color: var(--tide); border-color: var(--amber); }
.name-card {
  background: var(--fog); color: var(--ink); border-radius: var(--radius-l);
  padding: 36px 38px; min-height: 320px;
}
.name-card h3 { font-size: clamp(30px, 3.4vw, 42px); color: var(--tide); margin-bottom: 14px; }
.name-card .feels { font-size: 1.12em; margin-bottom: 18px; }
.name-card .why { color: var(--quiet); margin-bottom: 22px; }
.name-card .try { background: var(--paper); border-left: 4px solid var(--steady); border-radius: 0 10px 10px 0; padding: 14px 18px; }
.name-card .try strong { color: var(--steady-d); }

/* TRY IT */
.tabs { display: inline-flex; background: var(--mist); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 26px; }
.tab { font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; border: 0; background: none; color: var(--quiet); padding: 9px 18px; border-radius: 999px; }
.tab[aria-selected="true"] { background: var(--paper); color: var(--tide); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.panel[hidden] { display: none; }
.tool-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius-l); padding: 36px; }
.slider-row + .slider-row { margin-top: 18px; }
.slider-row label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.slider-row label span { color: var(--quiet); font-weight: 400; font-size: 15px; }
input[type=range] { width: 100%; accent-color: var(--steady); height: 28px; }
.meter { height: 14px; border-radius: 999px; background: var(--mist); overflow: hidden; margin: 6px 0 18px; }
.meter i { display: block; height: 100%; width: 0; background: var(--steady); transition: width .25s, background .25s; }
.result h3 { font-size: 28px; color: var(--tide); }
.result ul { padding-left: 1.2em; margin-top: 12px; }
.result ul li + li { margin-top: 6px; }
.result .crisis { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--amber-l); font-size: 16px; }

.timer-face { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(64px, 9vw, 112px); color: var(--tide); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.timer-bar { height: 10px; background: var(--mist); border-radius: 999px; overflow: hidden; margin: 18px 0 22px; }
.timer-bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width 1s linear; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--mist); background: var(--fog); color: var(--tide); border-radius: 999px; padding: 7px 14px; }
.chip[aria-pressed="true"] { background: var(--tide); color: #fff; border-color: var(--tide); }
.timer-done { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--amber-l); }
.timer-done[hidden] { display: none; }
.task-in { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--mist); border-radius: 10px; background: var(--fog); margin-bottom: 18px; }

/* WORK */
.work-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.acc { border-top: 1.5px solid var(--mist); }
.acc:last-child { border-bottom: 1.5px solid var(--mist); }
.acc button { width: 100%; font: inherit; font-weight: 700; font-size: 1.05em; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; color: var(--tide); }
.acc .plus { font-size: 24px; line-height: 1; color: var(--steady-d); transition: transform .15s; }
.acc.open .plus { transform: rotate(45deg); }
.acc .body { display: none; padding: 0 0 20px; color: var(--ink); }
.acc.open .body { display: block; }
.acc .body p + p, .acc .body p + ul, .acc .body ul + p { margin-top: .7em; }
.acc .body ul { padding-left: 1.2em; }

.builder { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius-l); padding: 32px; }
.builder h3 { font-size: 26px; color: var(--tide); margin-bottom: 6px; }
.builder .chips { margin: 18px 0 22px; }
.ideas { list-style: none; }
.ideas li { padding: 10px 0; border-top: 1px dashed var(--mist); }
.ideas li b { color: var(--steady-d); }
.email { margin-top: 20px; }
.email textarea { width: 100%; min-height: 320px; font: inherit; font-size: 16px; line-height: 1.55; padding: 14px; border-radius: 12px; border: 1.5px solid var(--mist); background: var(--fog); color: var(--ink); resize: vertical; }
.email-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.copied { font-size: 15px; color: var(--steady-d); font-weight: 700; }

.employers { margin-top: 64px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; background: var(--tide); color: #dcebe7; border-radius: var(--radius-l); padding: 40px; }
.employers h3 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.employers ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.employers li b { display: block; color: var(--amber); margin-bottom: 2px; }
.employers .btn-line { color: #fff; border-color: #fff; margin-top: 18px; }
.employers .btn-line:hover { background: #fff; color: var(--tide); }

/* STEADY FEATURES */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--mist); }
.feat { padding: 28px 28px 30px 0; border-bottom: 1.5px solid var(--mist); }
.feat:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1.5px solid var(--mist); }
.feat h3 { font-size: 22px; color: var(--tide); margin-bottom: 8px; }
.feat p { color: var(--quiet); font-size: 16.5px; }
.steady-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* STORY */
.story { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.story blockquote { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; color: #fff; font-weight: 500; }
.story .prose { color: #c3dbd5; }
.story .sig { margin-top: 28px; font-weight: 700; color: #fff; }
.story .sig span { display: block; font-weight: 400; font-size: 15px; color: #9fc4bd; }

/* FAMILY */
.family { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius-l); padding: 30px; display: flex; flex-direction: column; }
.app .kind { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.app h3 { font-size: 30px; color: var(--tide); margin-bottom: 10px; }
.app p { color: var(--quiet); flex: 1; }
.app p.kind { flex: none; }
.app a { margin-top: 18px; font-weight: 700; align-self: flex-start; }
.app.anchor .kind, .app.anchor a { color: var(--anchor); }
.app.spark .kind, .app.spark a { color: var(--spark); }

/* PRICING */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.tier { border-radius: var(--radius-l); padding: 32px; border: 1.5px solid var(--mist); background: var(--fog); }
.tier.soon { background: var(--paper); border-style: dashed; }
.tier .label { font-size: 15px; font-weight: 700; color: var(--quiet); }
.tier h3 { font-size: 34px; color: var(--tide); margin: 4px 0 12px; }
.tier h3 small { font-size: 17px; font-weight: 500; color: var(--quiet); font-family: 'Atkinson Hyperlegible', sans-serif; }
.tier ul { padding-left: 1.2em; }
.tier ul li + li { margin-top: 4px; }
.promise { margin-top: 28px; font-size: 1.1em; color: var(--tide); max-width: 52ch; }

/* CONTACT */
.contact-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-list a { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--mist); border-radius: 14px; padding: 20px; color: var(--ink); }
.contact-list a:hover { border-color: var(--steady); }
.contact-list b { display: block; color: var(--tide); font-size: 18px; margin-bottom: 4px; }
.contact-list span { font-size: 15px; color: var(--quiet); word-break: break-word; }

/* FOOTER */
footer { background: var(--tide); color: #a9cbc4; padding: 56px 0 40px; font-size: 16px; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
footer .brand { color: #fff; display: inline-block; margin-bottom: 8px; }
footer h4 { color: #fff; font-size: 17px; margin-bottom: 10px; }
footer ul { list-style: none; }
footer li + li { margin-top: 6px; }
footer a { color: #cfe6e1; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.help-now { background: rgba(232,180,76,.12); border: 1px solid rgba(232,180,76,.35); border-radius: 12px; padding: 14px 16px; color: #f3dfb4; }
.help-now b { color: var(--amber); }
.legal { grid-column: 1 / -1; border-top: 1px solid rgba(220,235,231,.14); padding-top: 22px; font-size: 14px; color: #84aba3; }


/* MULTI-PAGE */
.nav ul a[aria-current="page"] { color: var(--tide); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--steady); }
.menu-btn { display: none; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; background: var(--tide); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; }
.page-head { padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(42px, 5.8vw, 76px); font-weight: 800; letter-spacing: -0.03em; color: var(--tide); max-width: 16ch; line-height: 1; }
.page-head .lede { margin-top: 20px; max-width: 46ch; font-size: 1.2em; }
.band-first { padding-top: 40px; }

.intro-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 8px; }
.door { display: block; text-decoration: none; color: var(--ink); padding: 28px 28px 30px 0; border-top: 6px solid var(--steady); }
.door + .door { padding-left: 28px; border-left: 1.5px solid var(--mist); }
.door:nth-child(2) { border-top-color: var(--amber); }
.door:nth-child(3) { border-top-color: var(--tide); }
.door h3 { font-size: 30px; color: var(--tide); margin-bottom: 10px; }
.door p { color: var(--quiet); margin-bottom: 16px; }
.door .go { font-weight: 700; color: var(--steady-d); text-decoration: underline; text-underline-offset: 4px; }
.door:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.next { padding: 56px 0; border-top: 1px solid var(--mist); }
.next .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.next p { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--tide); }

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero .wrap, .understand-grid, .names, .tool-box, .work-grid, .story, .employers { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat, .feat:not(:nth-child(3n+1)) { padding: 24px 20px 26px 0; border-left: 0; }
  .feat:nth-child(2n) { padding-left: 20px; border-left: 1.5px solid var(--mist); }
  .contact-list { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > :first-child { grid-column: 1 / -1; }
  .menu-btn { display: inline-flex; }
  .easy-toggle { margin-left: auto; }
  .nav ul { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--fog); border-bottom: 1px solid var(--mist); padding: 8px 16px 16px; margin: 0; }
  .nav.open ul { display: flex; }
  .nav ul a { display: block; padding: 12px 4px; font-size: 18px; border-bottom: 1px solid var(--mist); }
  .doors { grid-template-columns: 1fr; }
  .door + .door { border-left: 0; padding-left: 0; }
  .intro-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --body-size: 17px; }
  html.easy { --body-size: 19px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .band { padding: 64px 0; }
  .now, .name-card, .tool-box, .builder, .employers, .app, .tier { padding: 24px 20px; }
  .feat-grid, .family, .price, .contact-list, .employers ul { grid-template-columns: 1fr; }
  .feat:nth-child(2n) { padding-left: 0; border-left: 0; }
  .easy-toggle .lbl-long { display: none; }
  .nav .wrap { gap: 10px; }
  .brand { font-size: 19px; }
  footer .wrap { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
