/* Everynook marketing site — tokens from docs/Everynook-build-spec.md §1 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f4f2ee;
  --border: #e7e3dd;
  --text: #1c1a17;
  --text-2: #6b655c;
  --text-3: #9a938a;
  --accent: #c65d3b;
  --accent-pressed: #b14e2f;
  --accent-wash: #f7e9e2;
  --positive: #3f7d5b;
  --shadow-rest: 0 1px 2px rgba(28, 26, 23, 0.04);
  --shadow-raised: 0 1px 2px rgba(28, 26, 23, 0.04), 0 6px 20px rgba(28, 26, 23, 0.06);
  --shadow-cta: 0 5px 14px rgba(198, 93, 59, 0.32);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1714;
    --surface: #242019;
    --surface-2: #211d17;
    --border: #38322a;
    --text: #f5f1ea;
    --text-2: #a39a8d;
    --text-3: #756c60;
    --accent: #db7350;
    --accent-pressed: #c65d3b;
    --accent-wash: #3a2a22;
    --shadow-rest: none;
    --shadow-raised: none;
    --shadow-cta: none;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- type ---------- */

.overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-3);
}

h1 {
  font-size: clamp(34px, 5.4vw, 52px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.08;
}

h2 {
  font-size: clamp(26px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.lede {
  font-size: 17px;
  color: var(--text-2);
  max-width: 34em;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a:not(.btn) {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 720px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}

/* ---------- buttons + form ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-pressed);
  text-decoration: none;
}

.btn-sm {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 12px;
}

.waitlist-form {
  max-width: 460px;
}

.field-row {
  display: flex;
  gap: 10px;
}

.field-row input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 16px;
}

.field-row input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: transparent;
}

.field-row input[type="email"]::placeholder {
  color: var(--text-3);
}

@media (max-width: 540px) {
  .field-row {
    flex-direction: column;
  }
}

/* Honeypot: visually gone, still fillable by naive bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
}

.form-msg {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.form-msg.ok {
  color: var(--positive);
}

.form-msg.err {
  color: var(--accent);
}

.turnstile-slot {
  margin-top: 12px;
  min-height: 0;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}

.hero-copy .overline {
  margin-bottom: 14px;
}

.hero-copy h1 {
  margin-bottom: 18px;
}

.hero-copy .lede {
  margin-bottom: 30px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 36px 0 56px;
  }
}

/* ---------- phone mock ---------- */

.phone {
  width: min(330px, 88vw);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 42px;
  padding: 14px;
  box-shadow: var(--shadow-raised);
}

.phone-screen {
  background: var(--bg);
  border-radius: 30px;
  padding: 22px 16px 26px;
  overflow: hidden;
}

.mock-prop {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 16px;
}

.mock-prop svg {
  width: 12px;
  height: 12px;
}

.mock-overline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

.mock-value {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 4px;
}

.mock-count {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 18px;
}

.mock-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.mock-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.mock-chip.active {
  color: var(--accent);
  background: var(--accent-wash);
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-rest);
}

.mock-thumb {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--text-3);
}

.mock-thumb svg {
  width: 18px;
  height: 18px;
}

.mock-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.mock-item-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.mock-item-sub {
  display: inline-block;
  max-width: 100%;
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-item-value {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- sections ---------- */

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 40px;
}

.section-head .overline {
  margin-bottom: 12px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-2);
}

/* moments cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: var(--shadow-rest);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-wash);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--text-2);
}

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: var(--shadow-rest);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-2);
}

/* trust band */

.trust {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}

@media (max-width: 820px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.trust-item h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.trust-item h3 svg {
  width: 18px;
  height: 18px;
  color: var(--positive);
  flex: none;
}

.trust-item p {
  font-size: 14px;
  color: var(--text-2);
}

/* faq */

.faq {
  max-width: 680px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-3);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 18px;
  color: var(--text-2);
  max-width: 56ch;
}

/* closing cta */

.closing {
  text-align: center;
  padding: 88px 0;
}

.closing h2 {
  margin-bottom: 12px;
}

.closing p {
  color: var(--text-2);
  margin-bottom: 28px;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-row .brand {
  font-size: 17px;
}

.footer-row .brand img {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-2);
}

.footer-copy {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- prose pages (terms / privacy) ---------- */

.prose {
  max-width: 680px;
  padding: 40px 0 80px;
}

.prose h1 {
  font-size: clamp(30px, 4.5vw, 40px);
  margin-bottom: 8px;
}

.prose .effective {
  color: var(--text-3);
  font-size: 14px;
  margin-bottom: 36px;
}

.prose h2 {
  font-size: 21px;
  letter-spacing: -0.3px;
  margin: 36px 0 12px;
}

.prose p,
.prose ul {
  margin-bottom: 14px;
  color: var(--text-2);
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--text);
}

.summary-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.summary-box p {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.summary-box ul {
  margin-bottom: 0;
}

/* ---------- result pages ---------- */

.result-wrap {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.result-card {
  max-width: 420px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 44px 36px;
  box-shadow: var(--shadow-raised);
}

.result-card img {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
}

.result-card h1 {
  font-size: 26px;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}

.result-card p {
  color: var(--text-2);
  margin-bottom: 22px;
}
