/* daptly.ai — coming-soon page.
 *
 * This file is the only place with raw values, mirroring the app's
 * design-token convention (see CLAUDE.md): parallel light/dark palettes with
 * identical keys, and a *Soft tinted twin for the accent.
 *
 * Unlike the Tall-O site, this carries BOTH schemes. The Daptly app has not
 * committed to a userInterfaceStyle yet — react-native/ is config only — so
 * there is no single palette to copy. When src/constants/theme.ts lands, bring
 * its values here. These are copies, not imports; changing one does not change
 * the other.
 */

:root {
  --bg:          #F7F9FC;
  --bg-glow:     rgba(15, 157, 107, 0.10);
  --surface:     #FFFFFF;
  --border:      #E3E9F1;
  --text:        #0F1620;
  --muted:       #5A6879;
  --accent:      #0B7F57;
  --accent-soft: rgba(15, 157, 107, 0.12);
  --danger:      #B4232A;
  --shadow:      0 1px 2px rgba(15, 22, 32, .04), 0 12px 32px rgba(15, 22, 32, .07);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius: 16px;
  --maxw: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0B0F14;
    --bg-glow:     rgba(91, 227, 168, 0.10);
    --surface:     #121821;
    --border:      #1F2937;
    --text:        #E8EDF4;
    --muted:       #93A1B4;
    --accent:      #5BE3A8;
    --accent-soft: rgba(91, 227, 168, 0.14);
    --danger:      #FF8B8B;
    --shadow:      0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Decorative wash behind the hero. Fixed so it does not scroll with content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60rem 40rem at 18% -12%, var(--bg-glow), transparent 70%),
    radial-gradient(48rem 32rem at 96% 6%, var(--bg-glow), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: clamp(2.5rem, 9vh, 5.5rem);
  color: var(--accent);
}

.site-head .mark { width: 28px; height: 28px; display: block; flex: none; }

.wordmark {
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 640;
  letter-spacing: -0.015em;
}

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

main { flex: 1 0 auto; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

@media (min-width: 62rem) {
  .split { grid-template-columns: 1.05fr .95fr; align-items: center; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3125rem .75rem .3125rem .625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 550;
  letter-spacing: .01em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-soft); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1 {
  margin: 1.5rem 0 0;
  max-width: 16ch;
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 660;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  color: var(--muted);
}

.lede strong { color: var(--text); font-weight: 600; }

/* ---------- points ---------- */

.points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: .875rem;
  max-width: 46ch;
}

.points li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .9375rem;
  color: var(--muted);
}

.points b { color: var(--text); font-weight: 600; }
.points svg { flex: none; margin-top: 3px; color: var(--accent); }

/* ---------- waitlist ---------- */

.waitlist { margin: 2.25rem 0 0; max-width: 30rem; }

.field {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.field input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: .75rem .875rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .9375rem;
}

.field input::placeholder { color: var(--muted); }

.field button {
  flex: 0 0 auto;
  padding: .75rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-size: .9375rem;
  font-weight: 620;
  cursor: pointer;
  transition: opacity .15s ease;
}

.field button:hover { opacity: .88; }
.field button[disabled] { opacity: .55; cursor: default; }

/* Visually hidden, still read by screen readers. Used for the email label. */
.vh,
/* The honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, and off-screen still reads as fillable to them. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.note {
  margin: .75rem 0 0;
  font-size: .8125rem;
  color: var(--muted);
  min-height: 1.2em;
}

.note.is-error { color: var(--danger); }
.note.is-ok    { color: var(--accent); }

/* ---------- the plan card ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  max-width: 24rem;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-title { font-size: .9375rem; font-weight: 600; }

.card-day {
  font-size: .75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Sans, not --mono. A monospace comma occupies a full digit cell, which opens a
   visible gap in "2,340". tabular-nums still holds the width steady as the card
   cycles, so nothing shifts. */
.kcal {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kcal-unit {
  margin-left: .375rem;
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: 1rem;
}

.macro {
  padding: .5rem .625rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.macro-k {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.macro-v {
  margin-top: .125rem;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.train {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .875rem;
  color: var(--muted);
}

.train b { color: var(--text); font-weight: 600; }

/* The "why" line. P0-7 in the PRD: a plan change always states its cause on
   the card. The site leads with it because it is the whole differentiator. */
.why {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: .625rem .75rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: .8125rem;
  line-height: 1.45;
}

.why svg { flex: none; margin-top: 2px; color: var(--accent); }

.fade { animation: fade .45s ease; }

@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

.caption {
  margin: .875rem 0 0;
  max-width: 24rem;
  font-size: .8125rem;
  color: var(--muted);
}

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

.site-foot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .8125rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.foot-row p { margin: 0; }
.disclaimer { max-width: 52ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
