/* =========================================================================
   Evening In — marketing site
   Design language mirrors the app: editorial serif headlines (Newsreader,
   standing in for Apple's New York), SF-style system sans for everything
   else, warm cream ground, amber used surgically, indigo as the anchor.
   ========================================================================= */

/* ---------- fonts ----------
   Newsreader is self-hosted rather than pulled from Google Fonts. The site
   tells visitors we load nothing from third parties and set no cookies; a
   font request to fonts.gstatic.com would hand a third party every visitor's
   IP and make that claim untrue. It also keeps the CSP at default-src 'self'.
   Newsreader is variable, so one file per style covers weights 400–500. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin-ext-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand seeds + semantic roles (from EveningIn-Brand/02-identity/palette.md) */
  --indigo:        #2A3A5E;
  --indigo-deep:   #14203A;
  --amber:         #E8A03D;
  --amber-deep:    #C97B2C;
  --peach:         #E8B58A;
  --cream:         #FBF6EE;
  --cream-2:       #F1EADD;
  --sage:          #5E8B6A;
  --sage-text:     #3F6A4E;
  --clay:          #9A6A4F;

  --surface:       #FFFFFF;
  --on-surface:    #2A3A5E;
  --muted:         #5A6478;
  --outline:       #DED5C4;
  --hairline:      rgba(42, 58, 94, 0.10);

  --radius-card:   20px;
  --radius-lg:     28px;
  --radius-pill:   999px;

  --shadow-whisper: 0 1px 2px rgba(42,58,94,.04), 0 8px 24px rgba(42,58,94,.05);
  --shadow-lift:    0 2px 6px rgba(42,58,94,.06), 0 24px 60px rgba(42,58,94,.12);

  --max:  1120px;
  --gap:  clamp(20px, 4vw, 40px);

  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--on-surface);
  background: var(--cream);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-deep); margin-bottom: 16px;
}
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); line-height: 1.55; }
.center { text-align: center; }
.center .lead { margin-inline: auto; max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--amber); color: var(--indigo); box-shadow: 0 6px 18px rgba(232,160,61,.30); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(232,160,61,.38); }
.btn-ghost { background: transparent; color: var(--indigo); border-color: var(--outline); }
.btn-ghost:hover { background: rgba(255,255,255,.6); }

/* App Store badge (inline svg lives in markup; this sizes it) */
.appstore { display: inline-flex; }
.appstore svg { height: 54px; width: auto; border-radius: 12px; transition: transform .15s ease; }
.appstore:hover svg { transform: translateY(-1px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(251,246,238,.82);
  border-bottom: 1px solid var(--hairline);
}
.nav { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; }
.brand svg, .brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--indigo); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* Language switcher — a quiet text link, never a competing CTA. It sits in
   the header beside the download button and again in the footer bottom bar,
   so a Spanish visitor who lands deep in the site can always get out of
   English (and back). */
.lang-switch {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--muted); white-space: nowrap;
  padding: 6px 10px; border: 1px solid var(--outline); border-radius: 999px;
  transition: color .15s ease, border-color .15s ease;
}
.lang-switch:hover { color: var(--indigo); border-color: var(--indigo); }
.site-footer .lang-switch {
  color: rgba(251,246,238,.62); border-color: rgba(251,246,238,.22);
}
.site-footer .lang-switch:hover { color: var(--cream); border-color: rgba(251,246,238,.5); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero::before {
  /* soft lamplight glow, upper-right */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 82% 6%, rgba(232,181,138,.38), transparent 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); }
.hero h1 em { font-style: italic; color: var(--amber-deep); }
.hero .lead { margin-top: 22px; max-width: 46ch; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 32px; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 15px; }

/* ---------- iPhone mockup ---------- */
.device {
  --w: 300px;
  width: var(--w); aspect-ratio: 1206 / 2622;
  margin-inline: auto;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #23304e, #111b30);
  box-shadow: var(--shadow-lift);
  position: relative;
}
.device::after { /* side buttons hint */
  content: ""; position: absolute; left: -2px; top: 120px; width: 3px; height: 58px; border-radius: 3px;
  background: rgba(255,255,255,.10);
}
.device .screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative;
  background: var(--cream);
}
.device .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device .island {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 33%; height: 22px; background: #0a1020; border-radius: 14px; z-index: 2;
}
.device.tilt { transform: rotate(2deg); }
.hero .device { --w: clamp(240px, 34vw, 330px); }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--hairline); background: rgba(255,255,255,.4); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px 44px; align-items: center; justify-content: center; padding-block: 22px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.trust-item strong { color: var(--indigo); font-weight: 700; }
.trust-item svg { width: 18px; height: 18px; color: var(--sage); flex: none; }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature.reverse .feature-media { order: 2; }
.feature h2 { font-size: clamp(28px, 3.6vw, 40px); }
.feature p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 42ch; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.feature-list svg { width: 20px; height: 20px; color: var(--sage); flex: none; margin-top: 2px; }
.feature-media { display: flex; justify-content: center; }

/* ---------- section headers ---------- */
.section-head { max-width: 60ch; margin-inline: auto; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); }
.section-head .lead { margin-top: 18px; }

/* ---------- problem / cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 28px; box-shadow: var(--shadow-whisper);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--cream-2); color: var(--amber-deep);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* ---------- the Circle / wedge band ---------- */
.band-wedge { background: var(--cream-2); }
.wedge-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.audit {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 12px; box-shadow: var(--shadow-lift); max-width: 420px;
}
.audit .row { display: flex; align-items: center; gap: 14px; padding: 16px 14px; }
.audit .row + .row { border-top: 1px solid var(--hairline); }
.audit .dot { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.audit .dot.done { background: var(--sage); color: #fff; }
.audit .dot.due  { background: var(--amber); color: var(--indigo); }
.audit .dot svg { width: 15px; height: 15px; }
.audit .meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.audit .meta .name { font-weight: 600; font-size: 15.5px; }
.audit .meta .who { font-size: 13px; color: var(--sage-text); }
.audit .meta .who.pending { color: var(--muted); }
.audit .time { font-size: 13px; color: var(--muted); }

/* ---------- privacy band ---------- */
.band-privacy { background: var(--indigo); color: var(--cream); position: relative; overflow: hidden; }
.band-privacy::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 85% 15%, rgba(232,160,61,.18), transparent 62%);
}
.band-privacy .wrap { position: relative; }
.band-privacy .eyebrow { color: var(--peach); }
.band-privacy h2 { font-size: clamp(30px, 4.4vw, 46px); max-width: 20ch; }
.band-privacy h2 em { font-style: italic; color: var(--amber); }
.band-privacy .lead { color: rgba(251,246,238,.78); max-width: 54ch; margin-top: 20px; }
.privacy-points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.privacy-points li h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--cream); display: flex; gap: 10px; align-items: center; }
.privacy-points li p { color: rgba(251,246,238,.68); font-size: 15px; margin-top: 8px; }
.privacy-points svg { width: 20px; height: 20px; color: var(--amber); flex: none; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.quote {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 28px; box-shadow: var(--shadow-whisper); display: flex; flex-direction: column;
}
.quote .stars { margin-bottom: 14px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.45; color: var(--indigo); }
.quote .by { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 12px; }
.quote .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--peach); color: var(--indigo); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.quote .by .n { font-weight: 600; font-size: 15px; }
.quote .by .r { font-size: 13px; color: var(--muted); }

/* ---------- pricing teaser ---------- */
.price-teaser { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; max-width: 760px; margin-inline: auto; }
.plan {
  border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 32px; background: var(--surface);
  box-shadow: var(--shadow-whisper);
}
.plan.featured { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), var(--shadow-lift); }
.plan .tag { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); }
.plan .amt { font-family: var(--serif); font-size: 40px; margin: 12px 0 4px; }
.plan .amt small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.plan li svg { width: 18px; height: 18px; color: var(--sage); flex: none; margin-top: 3px; }

/* ---------- closing CTA ---------- */
.cta-final { text-align: center; }
.cta-final .card-cta {
  background: linear-gradient(165deg, #2f4064, #1b2a49);
  color: var(--cream); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.cta-final .card-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(45% 65% at 50% -10%, rgba(232,160,61,.28), transparent 60%);
}
.cta-final .card-cta > * { position: relative; }
.cta-final h2 { font-size: clamp(30px, 4.6vw, 50px); }
.cta-final h2 em { font-style: italic; color: var(--amber); }
.cta-final p { color: rgba(251,246,238,.78); margin: 18px auto 30px; max-width: 46ch; }
.cta-final .appstore { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--indigo-deep); color: rgba(251,246,238,.7); padding-block: 64px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand svg { height: 30px; }
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 30ch; color: rgba(251,246,238,.55); }
.footer-col h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); margin: 0 0 16px; font-weight: 700; }
.footer-col a { display: block; font-size: 15px; padding: 5px 0; color: rgba(251,246,238,.72); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(251,246,238,.12); margin-top: 44px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(251,246,238,.5);
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.social { display: flex; gap: 14px; }
.social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(251,246,238,.18); display: grid; place-items: center; color: rgba(251,246,238,.7); }
.social a:hover { color: var(--cream); border-color: rgba(251,246,238,.4); }
.social svg { width: 16px; height: 16px; }

/* ---------- generic page header (sub-pages) ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 4vw, 48px); text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 60% at 50% -10%, rgba(232,181,138,.30), transparent 60%); pointer-events:none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 58px); }
.page-hero .lead { margin: 20px auto 0; max-width: 56ch; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 22px 0; }
.faq summary { list-style: none; cursor: pointer; font-family: var(--serif); font-size: 20px; color: var(--indigo); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 26px; color: var(--amber-deep); transition: transform .2s ease; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--muted); font-size: 16.5px; max-width: 64ch; }

/* ---------- pricing full table ---------- */
.pricing-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }

/* ---------- prose (about / legal) ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-size: 30px; margin-top: 48px; margin-bottom: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 17.5px; margin-top: 16px; line-height: 1.7; }
.prose p strong { color: var(--indigo); }

.prose ul { margin-top: 16px; padding-left: 22px; list-style: disc; }
.prose li { color: var(--muted); font-size: 17.5px; line-height: 1.7; margin-top: 8px; }
.prose li::marker { color: var(--amber-deep); }
.prose a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--amber-deep); }
.prose .article-note {
  margin-top: 40px; padding: 18px 20px; background: var(--cream-2);
  border-radius: var(--radius-card); font-size: 15.5px; line-height: 1.65;
}

/* ---------- articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.article-card {
  display: block; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-whisper);
  color: inherit; text-decoration: none; transition: box-shadow .18s ease, transform .18s ease;
}
.article-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.article-meta {
  display: block; font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 12px;
}
.article-card h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }
.article-card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.article-more { display: inline-block; margin-top: 16px; font-family: var(--sans); font-weight: 600; font-size: 14.5px; color: var(--indigo); }
.article-card:hover .article-more { color: var(--amber-deep); }
.page-hero .eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--hairline); padding: 8px var(--gap) 16px; }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--outline); border-radius: 12px; background: transparent; }
  .nav-cta .btn-ghost, .nav-cta .appstore { display: none; }
  .hero-grid, .feature, .feature.reverse .feature-media, .wedge-grid { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .feature-media { order: -1; }
  .cards, .quotes, .privacy-points, .pricing-cols, .article-grid { grid-template-columns: 1fr; }
  .price-teaser { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .trust .wrap { gap: 12px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } .device.tilt { transform: none; } }
