/* ============================================================================
   Dear Enid — marketing site (dearenid.com)
   A calm, premium, trustworthy look: warm paper palette, Source Serif type,
   generous whitespace, soft shadows, one teal accent. Built to feel like a
   serious, well-funded British business — without stock imagery (photo slots
   are left for real photography). Single stylesheet, no framework.
   ========================================================================== */

:root {
  /* Palette — shared with the app so the brand feels of a piece. */
  --bg: #F7F5F0;            /* warm paper */
  --bg-deep: #233038;       /* deep teal-ink, for the dark trust band */
  --surface: #FFFFFF;
  --surface-warm: #FBF9F4;
  --text: #2A2E33;
  --text-muted: #5E6469;
  --text-soft: #8A8F94;
  --accent-teal: #2F6B7C;
  --accent-teal-hover: #285A69;
  --accent-teal-soft: #E7EFF1;
  --accent-sage: #6B8E6F;
  --accent-warm: #C28A5E;
  --gold: #B8985A;
  --enid-bubble: #ECE9E2;
  --user-bubble: #E3ECEE;
  --border: #E7E2D7;
  --border-strong: #D8D2C4;

  --max: 1120px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 3px rgba(35, 48, 56, 0.05), 0 2px 8px rgba(35, 48, 56, 0.04);
  --shadow-md: 0 4px 16px rgba(35, 48, 56, 0.07), 0 12px 32px rgba(35, 48, 56, 0.06);
  --shadow-lg: 0 8px 28px rgba(35, 48, 56, 0.10), 0 24px 60px rgba(35, 48, 56, 0.10);

  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.015em; margin: 0; font-weight: 600; }
p { margin: 0; }

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

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent-teal); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

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

/* ─────────────────────────── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 18px; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-teal); color: #fff;
  box-shadow: 0 2px 10px rgba(47, 107, 124, 0.28);
}
.btn-primary:hover {
  background: var(--accent-teal-hover); color: #fff;
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47, 107, 124, 0.34);
}
.btn-ghost { background: transparent; color: var(--accent-teal); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent-teal); transform: translateY(-1px); }
.btn-large { font-size: 19px; padding: 17px 34px; }
.btn-sm { font-size: 16px; padding: 10px 20px; }

/* ─────────────────────────── Header ─────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.logo-text { font-size: 23px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.logo-dear { color: var(--accent-teal); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { color: var(--text-muted); font-size: 17px; font-weight: 500; }
.nav-link:hover { color: var(--text); }

/* ─────────────────────────── Layout ─────────────────────────── */
.section { padding: 84px 24px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-narrow { max-width: 680px; margin: 0 auto; }
.section-medium { max-width: 820px; margin: 0 auto; }
.section-soft { background: var(--surface-warm); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.13em; font-size: 13.5px; font-weight: 600;
  color: var(--accent-teal); margin-bottom: 14px;
}

h2 { font-size: clamp(28px, 4.2vw, 40px); margin-bottom: 18px; }
.section-text { font-size: 20px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.section-text:last-child { margin-bottom: 0; }

/* ─────────────────────────── Hero ─────────────────────────── */
.hero { padding: 56px 24px 72px; overflow: hidden; }
.hero-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-text h1 {
  font-size: clamp(36px, 6vw, 60px); font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.lede { font-size: clamp(19px, 2.3vw, 23px); color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { font-size: 16px; color: var(--text-soft); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-note .tick { color: var(--accent-sage); font-weight: 700; }
.hero-note .dot { color: var(--border-strong); }

/* Phone mock-up (CSS-drawn conversation) */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute; inset: -10%; z-index: 0;
  background: radial-gradient(60% 55% at 60% 40%, rgba(47, 107, 124, 0.14), transparent 70%),
              radial-gradient(50% 50% at 30% 80%, rgba(107, 142, 111, 0.12), transparent 70%);
  filter: blur(6px);
}
.phone {
  position: relative; z-index: 1;
  width: 300px; max-width: 80vw; background: #1f2a30; border-radius: 40px;
  padding: 12px; box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,0.2);
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #1f2a30; border-radius: 0 0 14px 14px; z-index: 3; }
.phone-screen { background: var(--bg); border-radius: 30px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 26px 16px 12px; background: var(--surface); border-bottom: 1px solid var(--border); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.chat-head-text { display: flex; flex-direction: column; line-height: 1.25; }
.chat-name { font-weight: 700; font-size: 17px; }
.chat-status { font-size: 12.5px; color: var(--accent-sage); }
.chat-body { padding: 16px 14px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.bubble { font-size: 15px; line-height: 1.5; padding: 11px 14px; border-radius: 16px; max-width: 86%; }
.bubble-enid { background: var(--enid-bubble); color: var(--text); border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble-user { background: var(--accent-teal); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }

/* ─────────────────────── Trust strip ─────────────────────── */
.trust-strip { background: var(--bg-deep); color: #EAF0F2; padding: 26px 24px; }
.trust-strip-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.trust-item { display: flex; flex-direction: column; gap: 3px; }
.trust-item-em { font-size: 19px; font-weight: 700; color: #fff; }
.trust-item-label { font-size: 15px; color: #A9C0C7; line-height: 1.45; }

/* ─────────────────────── Pillars ─────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.pillar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--accent-teal-soft);
  color: var(--accent-teal); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 22px; margin-bottom: 10px; }
.pillar p { font-size: 17.5px; color: var(--text-muted); line-height: 1.6; }

/* ─────────────────────── The gift ─────────────────────── */
.gift-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.gift-list { list-style: none; padding: 0; margin: 24px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.gift-list li { font-size: 18px; color: var(--text-muted); padding-left: 32px; position: relative; line-height: 1.55; }
.gift-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px;
  background: var(--accent-sage); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.gift-list strong { color: var(--text); font-weight: 600; }

/* ─────────────────────── Photo slots ─────────────────────── */
.photo-slot {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--accent-teal-soft), var(--surface-warm));
  border: 1.5px dashed var(--border-strong);
}
.photo-slot-inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 32px; height: 100%;
}
.photo-slot-icon { width: 48px; height: 48px; color: var(--accent-teal); opacity: 0.7; }
.photo-slot-caption { font-size: 15px; color: var(--text-muted); max-width: 320px; line-height: 1.5; }
.photo-portrait { aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); }
.photo-landscape { aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }

/* ─────────────────────── Steps ─────────────────────── */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent-teal); color: #fff;
  font-size: 20px; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { font-size: 17px; color: var(--text-muted); line-height: 1.6; }

/* ─────────────────────── Accessibility section ─────────────────────── */
.accessibility-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 13px; }
.check-list li { font-size: 18.5px; color: var(--text-muted); padding-left: 34px; position: relative; line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px;
  background: var(--accent-teal-soft); border-radius: 50%;
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 9px; width: 12px; height: 12px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  background: var(--accent-teal);
}

/* ─────────────────────── Trust band (dark) ─────────────────────── */
.section-deep { background: var(--bg-deep); color: #EAF0F2; }
.h2-light { color: #fff; }
.section-deep .eyebrow-light { color: #8FB2BC; }
.trust-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.trust-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius); padding: 28px;
}
.trust-card h3 { font-size: 20px; color: #fff; margin-bottom: 10px; }
.trust-card p { font-size: 17px; color: #B9CCD2; line-height: 1.6; }

/* ─────────────────────── Founder ─────────────────────── */
.founder { max-width: 760px; margin: 0 auto; text-align: center; }
.founder-mark { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; box-shadow: var(--shadow-md); }
.founder-quote { margin: 0; }
.founder-quote p { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.5; color: var(--text); font-style: italic; }
.founder-by { margin-top: 22px; font-size: 16px; color: var(--text-muted); font-style: normal; letter-spacing: 0.01em; }

/* ─────────────────────── FAQ ─────────────────────── */
.faq { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 4px 22px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-size: 19px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { width: 12px; height: 12px; border-right: 2.5px solid var(--accent-teal); border-bottom: 2.5px solid var(--accent-teal); transform: rotate(45deg); transition: transform 0.2s var(--ease); flex-shrink: 0; margin-right: 4px; }
.faq-item[open] .faq-chev { transform: rotate(-135deg); }
.faq-item p { font-size: 17.5px; color: var(--text-muted); line-height: 1.65; padding: 0 0 20px; margin: 0; }

/* ─────────────────────── Final CTA + waitlist ─────────────────────── */
.section-cta { background: var(--surface-warm); border-top: 1px solid var(--border); }
.cta-row { margin: 28px 0 8px; }
.waitlist {
  margin-top: 44px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); text-align: center;
}
.waitlist h3 { font-size: 23px; margin-bottom: 10px; }
.waitlist > p { font-size: 17.5px; color: var(--text-muted); margin-bottom: 22px; }
.waitlist-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.waitlist-form input {
  flex: 1; min-width: 220px; font-family: inherit; font-size: 18px; padding: 15px 18px;
  border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--bg); color: var(--text);
}
.waitlist-form input:focus { outline: none; border-color: var(--accent-teal); box-shadow: 0 0 0 3px var(--accent-teal-soft); }
.waitlist-note { font-size: 15px; color: var(--text-soft); margin-top: 16px; }
.waitlist-note.success { color: var(--accent-sage); font-weight: 600; font-size: 18px; }
.waitlist-note.error { color: #B0473A; }

/* ─────────────────────── Footer ─────────────────────── */
.site-footer { background: var(--bg-deep); color: #B9CCD2; padding: 56px 24px 40px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.10); margin-bottom: 24px; }
.site-footer .logo-text { color: #fff; }
.site-footer .logo-dear { color: #8FB2BC; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: #B9CCD2; font-size: 16px; }
.footer-nav a:hover { color: #fff; }
.footer-fineprint { font-size: 14.5px; color: #8DA2A9; line-height: 1.6; max-width: 760px; margin-bottom: 16px; }
.footer-copy { font-size: 14.5px; color: #6F868D; }

/* ─────────────────────── Legal pages (privacy) ─────────────────────── */
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 700; margin-bottom: 20px; }
.legal h2 { font-size: 24px; margin: 36px 0 12px; }
.legal-intro { font-size: 20px; color: var(--text-muted); line-height: 1.65; margin-bottom: 8px; }
.legal p { font-size: 18.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.legal-list { margin: 0 0 14px; padding-left: 22px; }
.legal-list li { font-size: 18.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 8px; }
.legal-foot { font-size: 16px; color: var(--text-soft); margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.legal .btn-ghost { margin-top: 12px; }

/* ─────────────────────── Reveal-on-scroll ─────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ─────────────────────── Responsive ─────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .gift-grid, .accessibility-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .gift-visual, .accessibility-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .accessibility-grid .accessibility-visual { order: 2; }
  .pillars, .trust-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 22px; }
}
@media (max-width: 620px) {
  body { font-size: 18px; }
  .section { padding: 60px 20px; }
  .hero { padding: 40px 20px 56px; }
  .header-inner { padding: 12px 18px; }
  .nav-link { display: none; }                 /* keep header clean on mobile; CTA stays */
  .site-nav { gap: 0; }
  .section-text { font-size: 18.5px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
