/* ───────────────────────────────────────────────────────────────
   GoodLife — launch page styles
   Subtractive aesthetic · warm-neutral palette · mobile-first
   ─────────────────────────────────────────────────────────────── */

:root {
  /* Palette */
  --paper:  #FAF6F0;    /* warm cream — main background */
  --paper-2:#FFFEFA;    /* near-white — cards on cream */
  --ink:    #1A1410;    /* deep brown-black — primary text */
  --ink-2:  #3A322C;    /* slightly lighter — secondary text */
  --quiet:  #7A6F65;    /* muted — tertiary text, captions */
  --brass:  #B8865A;    /* warm brass — single accent */
  --brass-2:#9A6E47;    /* brass on hover */
  --line:   #E5DDD0;    /* subtle hairlines */
  --line-2: #D6CBB9;    /* slightly stronger lines */

  /* Type */
  --serif: "Fraunces", Cambria, "Hoefler Text", Constantia, Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rhythm */
  --max-w: 1080px;
  --narrow-w: 720px;
  --pad-x: clamp(20px, 5vw, 48px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* Reset (tight) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, button { color: inherit; }
a { color: inherit; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container.narrow { max-width: var(--narrow-w); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden;
  white-space: nowrap;
}

/* ─── Top bar ──────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mark__glyph { width: 24px; height: 24px; color: var(--ink); }
.mark__word {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.005em;
}
.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--quiet);
  letter-spacing: 0.02em;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--brass) 55%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brass) 55%, transparent); }
  70%  { box-shadow: 0 0 0 10px color-mix(in oklab, var(--brass) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brass) 0%, transparent); }
}

/* ─── Common section atoms ────────────────────────────────── */
section { padding: clamp(72px, 12vw, 144px) 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-lede {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 58ch;
  margin-bottom: 48px;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero { padding-top: clamp(56px, 10vw, 112px); padding-bottom: clamp(80px, 12vw, 144px); }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 32px;
}
.hero__title .line { display: block; }
.hero__title .line--quiet {
  color: var(--quiet);
  font-style: italic;
  font-weight: 300;
}

.hero__lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  margin-bottom: 44px;
}

/* ─── Waitlist form ──────────────────────────────────────── */
.waitlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 520px;
}
@media (min-width: 540px) {
  .waitlist {
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }
  .waitlist__hint, .waitlist__msg { grid-column: 1 / -1; }
}

.waitlist__input {
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-size: 16px; /* >=16px prevents iOS zoom on focus */
  color: var(--ink);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  min-height: 48px;
}
.waitlist__input::placeholder { color: var(--quiet); }
.waitlist__input:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brass) 18%, transparent);
}

.waitlist__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  min-height: 48px;
  transition: background-color 200ms var(--ease), transform 120ms var(--ease);
}
.waitlist__btn:hover { background: var(--ink-2); }
.waitlist__btn:active { transform: translateY(1px); }
.waitlist__btn:disabled { opacity: 0.55; cursor: progress; }

.waitlist__btn-arrow {
  width: 18px; height: 18px;
  transition: transform 200ms var(--ease);
}
.waitlist__btn:hover .waitlist__btn-arrow { transform: translateX(3px); }

.waitlist__hint {
  font-size: 13px;
  color: var(--quiet);
  letter-spacing: 0.005em;
}
.waitlist__msg {
  font-size: 14px;
  color: var(--ink-2);
  min-height: 1.2em;
}
.waitlist__msg.is-ok    { color: var(--brass-2); }
.waitlist__msg.is-error { color: #B0473A; }

/* ─── PROOF: the QA dialogue + result slate ──────────────── */
.qa {
  display: grid;
  gap: 14px;
  margin-bottom: 56px;
}
@media (min-width: 720px) {
  .qa { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .qa__item:nth-child(5) { grid-column: 1 / -1; max-width: calc(50% - 9px); }
}

.qa__item {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 20px;
  position: relative;
}
.qa__index {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--quiet);
  letter-spacing: 0.05em;
}
.qa__q {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
  padding-right: 36px;
}
.qa__a {
  display: inline-block;
  font-size: 14px;
  color: var(--brass-2);
  background: color-mix(in oklab, var(--brass) 12%, var(--paper-2));
  border: 1px solid color-mix(in oklab, var(--brass) 32%, var(--line));
  border-radius: 999px;
  padding: 6px 12px;
}

/* Result slate */
.result {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px clamp(20px, 4vw, 36px);
}
.result__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.result__label {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.result__count {
  font-size: 13px;
  color: var(--quiet);
  letter-spacing: 0.02em;
}
.result__list li {
  display: grid;
  grid-template-columns: 28px 110px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.result__list li:last-child { border-bottom: 0; }
.result__list .rank {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--quiet);
}
.result__list .kind {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  background: var(--paper);
  text-align: center;
  white-space: nowrap;
}
.kind--curator { color: var(--brass-2); border-color: color-mix(in oklab, var(--brass) 40%, var(--line)); background: color-mix(in oklab, var(--brass) 8%, var(--paper)); }
.kind--anchor  { color: #4F6A4A; border-color: #C9D6BC; background: #F1F4EC; }
.kind--pair    { color: #5B5176; border-color: #CFC7DF; background: #F2EFF7; }
.kind--explore { color: #7A5A3C; border-color: #DCC8AE; background: #F6EEE2; }
.result__list .title {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.result__foot {
  margin-top: 18px;
  font-size: 13px;
  color: var(--quiet);
  font-style: italic;
}
@media (max-width: 500px) {
  .result__list li { grid-template-columns: 22px 96px 1fr; gap: 10px; }
  .result__list .title { font-size: 15px; }
  .result__list .kind { font-size: 10px; padding: 3px 8px; }
}

/* ─── WHY: three negation cards ──────────────────────────── */
.why__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .why__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.why__card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}
.why__num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--brass-2);
  letter-spacing: 0.1em;
}
.why__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.why__p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ─── MODULES / roadmap ──────────────────────────────────── */
.phases {
  display: grid;
  gap: 16px;
  counter-reset: phase;
}
@media (min-width: 800px) {
  .phases { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.phase {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 26px;
}
.phase--first {
  background: color-mix(in oklab, var(--brass) 5%, var(--paper-2));
  border-color: color-mix(in oklab, var(--brass) 32%, var(--line));
}
.phase__tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 14px;
}
.phase--first .phase__tag { color: var(--brass-2); }
.phase__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.phase__p {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 18px;
}
.phase__when {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--quiet);
}
.phase--first .phase__when { color: var(--brass-2); }

/* ─── PRINCIPLES (narrow column) ─────────────────────────── */
.principles__body {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
}
.principles__body p + p { margin-top: 1.1em; }
.principles__body em { color: var(--ink); font-style: italic; }

/* ─── CLOSER ─────────────────────────────────────────────── */
.closer .waitlist--inline { margin: 0 auto; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__line {
  font-size: 13px;
  color: var(--quiet);
  letter-spacing: 0.005em;
}
.footer__line--quiet { max-width: 56ch; }

/* ─── Focus visibility (accessibility) ───────────────────── */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}
input:focus-visible { outline: none; } /* uses border + box-shadow instead */
