/* Present Dad landing page – same design tokens as the app (mobile/src/theme.ts):
   night-green base, dark glass, layered shadows with a light top edge, one accent (pine), no glow.
   Fonts are self-hosted (no requests to Google: GDPR). */

@font-face { font-family: 'Barlow SC'; src: url('/assets/fonts/BarlowSemiCondensed_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow SC'; src: url('/assets/fonts/BarlowSemiCondensed_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --paper: #0e1311;
  --card: #19211e;
  --glass: rgba(29, 38, 35, 0.72);
  --ink: #eef2f0;
  --muted: #9aa6a1;
  --faint: #68746f;
  --line: #26302c;
  --pine: #4e9a80;
  --pine-fill: #33695a;
  --mint: #9fe0c3;
  --night: #0a0d0c;
  --radius: 22px;
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.55), 0 6px 14px rgba(0, 0, 0, 0.35), 0 18px 36px rgba(0, 0, 0, 0.3);
  --shadow-pine: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.55), 0 8px 18px rgba(0, 0, 0, 0.4), 0 20px 36px rgba(0, 0, 0, 0.3);
  --shadow-well: inset 0 2px 4px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  background-image: linear-gradient(180deg, #18211e 0, var(--paper) 520px);
  color: var(--ink);
  font: 400 17px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .display { font-family: 'Barlow SC', 'Barlow Semi Condensed', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.3px; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(42px, 8.5vw, 72px); }
h2 { font-size: clamp(32px, 5.5vw, 46px); }
h3 { font-size: 23px; letter-spacing: 0; }
p { margin: 0; }
.eyebrow { font: 600 12px/1.3 Inter, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.eyebrow.pine { color: var(--pine); }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.accent { color: #7cc8a9; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; padding: 12px 0; backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); background: rgba(14, 19, 17, 0.72); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 600 21px/1 'Barlow SC', sans-serif; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 14px rgba(0, 0, 0, 0.35); }
.lang { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); box-shadow: var(--shadow-well); }
.lang a { min-width: 44px; min-height: 36px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); font: 600 13px/1 Inter, sans-serif; }
.lang a:hover { text-decoration: none; color: var(--ink); }
.lang a[aria-current='page'] { background: linear-gradient(180deg, #4a8c77, #336a5a); color: #fff; box-shadow: var(--shadow-pine); }

/* Sections */
section { padding: 56px 0; }
.hero { padding: 44px 0 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 20px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }
.badge-link { display: inline-block; border-radius: 10px; transition: transform 0.15s ease; }
.badge-link:hover { transform: translateY(-1px); text-decoration: none; }
.badge-link:active { transform: translateY(1px); }
.badge-link img { height: 54px; width: auto; }
.cta-note { font-size: 14px; color: var(--muted); }
.soon { font-size: 13px; color: var(--mint); }
.soon[hidden] { display: none; }

/* Waiting list: glass field + raised button, like the app */
.waitlist { display: grid; gap: 10px; max-width: 520px; scroll-margin-top: 90px; }
.wl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-row input {
  flex: 1 1 220px; min-height: 54px; padding: 0 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28); color: var(--ink); font: 500 17px/1 Inter, sans-serif; box-shadow: var(--shadow-well);
}
.wl-row input::placeholder { color: var(--faint); }
.wl-row input:focus { outline: 2px solid var(--mint); outline-offset: 2px; }
.wl-row button, .join {
  min-height: 54px; padding: 0 22px; border: 0; border-radius: 16px; cursor: pointer; color: #fff;
  font: 600 16px/1 Inter, sans-serif; background: linear-gradient(180deg, #4a8c77, #336a5a); box-shadow: var(--shadow-pine);
  display: inline-flex; align-items: center; justify-content: center; transition: transform 0.15s ease;
}
.wl-row button:hover, .join:hover { transform: translateY(-1px); text-decoration: none; }
.wl-row button:active, .join:active { transform: translateY(1px); }
.wl-row button[disabled] { opacity: 0.6; cursor: default; }
.join { justify-self: start; }
.wl-note { font-size: 13px; color: var(--muted); }
.wl-msg { font-size: 15px; font-weight: 600; min-height: 1.4em; color: var(--mint); }
.wl-msg.err { color: #e07a6a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Phone mockup: raised object with a lit frame */
.phone {
  position: relative;
  width: min(300px, 78vw);
  margin: 0 auto;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(180deg, #3a4541, #1d2522);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.6), 0 24px 48px rgba(0, 0, 0, 0.5), 0 60px 90px rgba(0, 0, 0, 0.35);
}
.phone img { border-radius: 37px; aspect-ratio: 640 / 1444; object-fit: cover; object-position: top; width: 100%; height: auto; background: var(--paper); }
.phone.small { width: min(250px, 70vw); }

/* Cards */
.grid { display: grid; gap: 14px; }
.card {
  border-radius: var(--radius);
  padding: 22px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  display: grid;
  gap: 10px;
  align-content: start;
}
.card p { color: var(--muted); font-size: 15px; }
.icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, #43846f, #2a574b);
  box-shadow: var(--shadow-pine);
}
.icon.night { background: linear-gradient(180deg, #2c3632, #171d1b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.5), 0 6px 14px rgba(0, 0, 0, 0.3); }
.icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.panel {
  border-radius: 28px;
  padding: 28px 22px;
  background: linear-gradient(135deg, #25322d, #19221f 55%, #131a17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -2px 0 rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.6), 0 8px 18px rgba(0, 0, 0, 0.45), 0 20px 36px rgba(0, 0, 0, 0.35);
  display: grid; gap: 28px; align-items: center; overflow: hidden; position: relative;
}
.panel::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 50%); pointer-events: none; }
.panel > * { position: relative; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 8px; background: var(--mint); color: #0e1311; font: 700 11px/1.4 Inter, sans-serif; letter-spacing: 0.6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.3); vertical-align: middle; }

/* Bars (Life Balance preview) */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; gap: 8px; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--muted); font-size: 14px; }
.bar-head b { font: 700 26px/1 'Barlow SC', sans-serif; color: var(--ink); }
.bar-head b.mint { color: var(--mint); }
.track { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); box-shadow: var(--shadow-well); overflow: hidden; }
.fill { height: 100%; border-radius: 6px; width: var(--w); background: linear-gradient(90deg, #e7ecea, #aeb9b5); transform-origin: left; }
.fill.mint { background: linear-gradient(90deg, #b6ebd3, #6fbf9f); }

/* Quote band */
.quote { font: 600 clamp(28px, 5vw, 40px)/1.15 'Barlow SC', sans-serif; max-width: 22em; }
.quote-by { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* Pricing */
.plans { display: grid; gap: 12px; }
.plan { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--glass); border: 2px solid var(--line); box-shadow: var(--shadow-card); }
.plan.best { border-color: var(--pine); }
.plan .name { font: 700 21px/1.1 'Barlow SC', sans-serif; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan .note { color: var(--muted); font-size: 13px; }
.plan .price { margin-left: auto; text-align: right; font: 700 22px/1.1 'Barlow SC', sans-serif; white-space: nowrap; }
.plan .per { display: block; color: var(--muted); font: 400 12px/1.4 Inter, sans-serif; }
.save { padding: 2px 8px; border-radius: 8px; background: linear-gradient(180deg, #4a8c77, #336a5a); color: #fff; font: 700 12px/1.5 Inter, sans-serif; box-shadow: var(--shadow-pine); }
s { color: var(--faint); }
.free { color: var(--muted); font-size: 15px; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ''; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--pine-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4); }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink); }

/* Legal pages */
.legal { padding: 40px 0 64px; }
.legal .wrap { max-width: 720px; display: grid; gap: 14px; }
.legal h1 { font-size: clamp(36px, 7vw, 52px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin-top: 18px; }
.legal p, .legal li { color: #c9d2ce; }

/* Reveal on scroll (calm fade-up, like the app); off with reduced motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (min-width: 720px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan { flex-direction: column; align-items: flex-start; }
  .plan .price { margin-left: 0; text-align: left; }
}
@media (min-width: 960px) {
  section { padding: 80px 0; }
  .hero { padding: 72px 0 64px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .panel { grid-template-columns: 1fr 0.8fr; padding: 44px; }
}
