/* Remy's Plan — remysplan.com */

:root {
  color-scheme: dark;
  --night: #0B1026;
  --night-2: #0E1430;
  --night-3: #080C1E;
  --card: #141B3A;
  --line: #2E386A;
  --line-2: #3A4472;
  --ink: #EEF0FA;
  --ink-2: #C9CEE8;
  --ink-3: #A9B0D0;
  --moon: #F4D58D;
  --moon-hi: #FFE7B0;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--moon); }
a:hover { color: var(--moon-hi); }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: 112px var(--gutter); }
.section--alt { background: var(--night-2); }
.center { text-align: center; }
.narrow { max-width: 760px; margin: 0 auto; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 8px; background: var(--moon); color: var(--night);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Type */
.eyebrow {
  margin-bottom: 16px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moon);
}
.display {
  font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04; letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 44px); line-height: 1.15;
}
.lede { margin-top: 24px; font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); }
.body { margin-top: 24px; font-size: 19px; color: var(--ink-2); }
.body + .body { margin-top: 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* Wordmark: the crescent is the apostrophe, so it reads "Remy's Plan" */
.wordmark {
  display: inline-flex; align-items: baseline; font-family: var(--serif); font-weight: 600;
  font-size: 26px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark svg { width: 0.3em; height: 0.3em; margin: 0 0.015em 0 0.03em; transform: translateY(-0.42em); }
.wordmark svg path { fill: var(--moon); }

/* Header */
.site-header { padding: 0 var(--gutter); }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 28px 0;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.nav ul a { color: var(--ink-2); text-decoration: none; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }

/* Starfield */
.sky {
  position: relative; overflow: hidden; background-color: var(--night);
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 22% 30%, #cfd6ff 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 36% 8%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 48% 22%, #fff 60%, transparent 61%),
    radial-gradient(2px 2px at 62% 14%, #fff8e0 60%, transparent 61%),
    radial-gradient(1px 1px at 74% 34%, #cfd6ff 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 86% 9%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 14% 52%, #fff 60%, transparent 61%),
    radial-gradient(1.5px 1.5px at 30% 66%, #cfd6ff 60%, transparent 61%),
    radial-gradient(1px 1px at 55% 58%, #fff 60%, transparent 61%),
    radial-gradient(1px 1px at 4% 82%, #cfd6ff 60%, transparent 61%),
    radial-gradient(1px 1px at 44% 88%, #fff 60%, transparent 61%);
}
@media (prefers-reduced-motion: no-preference) {
  .sky { animation: twinkle 6s ease-in-out infinite alternate; }
  @keyframes twinkle { from { background-color: #0A0F24; } to { background-color: var(--night); } }
}

/* Hero */
.hero { padding: 0 var(--gutter) 120px; }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 64px; }
.hero__copy { flex: 1 1 440px; min-width: 0; }
.hero__media { flex: 1 1 420px; min-width: 0; position: relative; padding-bottom: 40px; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; max-height: 600px; object-fit: cover; border-radius: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }

.live-activity {
  position: absolute; left: -16px; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 999px; background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); font-size: 15px;
}
.live-activity svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 520px) { .live-activity { left: 12px; font-size: 14px; } }

/* Waitlist form */
.waitlist { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; max-width: 520px; }
.waitlist--center { margin-left: auto; margin-right: auto; }
.waitlist input[type="email"] {
  flex: 1 1 260px; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-size: 16px;
}
.waitlist input[type="email"]::placeholder { color: #8A92B8; }
.waitlist .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.button {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; background: var(--moon); color: var(--night); font: inherit; font-size: 16px;
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--moon-hi); color: var(--night); }
.button[disabled] { opacity: 0.7; cursor: progress; }
.button--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.button--ghost:hover { background: var(--card); color: var(--ink); }
.form-note { margin-top: 14px; font-size: 14px; color: var(--ink-3); min-height: 1.6em; }
.form-note[data-state="ok"] { color: var(--moon); }
.form-note[data-state="error"] { color: #FFB4A8; }

/* Origin */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split__media { flex: 0 1 420px; min-width: 0; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.split__copy { flex: 1 1 420px; min-width: 0; }
.signature { margin-top: 24px; font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--ink); }
.more { display: inline-block; margin-top: 20px; font-weight: 600; text-decoration: none; }

/* Cards */
.row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min, 220px)), 1fr));
  gap: 20px; margin: 56px 0 0; padding: 0; list-style: none;
}
.row--wide { --card-min: 280px; }
.card { min-width: 0; padding: 28px; border-radius: 24px; background: var(--card); }
.card--line { background: transparent; border: 1px solid var(--line); }
.card__num { font-family: var(--serif); font-size: 40px; line-height: 1.2; color: var(--moon); }
.card h3 { margin: 8px 0; font-size: 20px; }
.card--line h3 { margin-top: 0; font-size: 19px; }
.card p { color: var(--ink-2); }

/* Review + phone */
.demo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start; gap: 24px; margin-top: 72px;
}
.demo .phone { order: -1; justify-self: center; }
.review {
  min-width: 0; padding: 28px; border-radius: 28px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.35);
}
.review__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-3); }
.review h3 { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.25; }
.review p { margin-top: 12px; color: var(--ink-2); }
.review strong { color: var(--ink); }
.review__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.review__actions .button { height: 48px; padding: 0 24px; }

.phone {
  flex: 0 1 300px; min-width: 0; width: 300px; max-width: 100%; margin: 0 auto; padding: 12px; border-radius: 48px;
  background: #1B2247; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--line);
}
.phone__screen { display: flex; flex-direction: column; gap: 16px; padding: 28px 20px 22px; border-radius: 38px; background: #0F1530; }
.phone__top { display: flex; justify-content: space-between; align-items: baseline; }
.phone__next { padding: 18px 16px; border-radius: 22px; background: #182046; }
.phone__big { margin-top: 4px; font-family: var(--serif); font-size: 28px; line-height: 1.1; white-space: nowrap; }
.phone__list { display: flex; flex-direction: column; gap: 10px; margin: 0; font-size: 14px; }
.phone__list div { display: flex; justify-content: space-between; gap: 12px; }
.phone__list dt { color: var(--ink-3); }
.phone__list dd { margin: 0; }
.phone__list .projected dt, .phone__list .projected dd { color: #8FA8FF; }
.phone__buttons { display: flex; gap: 10px; }
.phone__buttons span {
  flex: 1; display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 16px;
  font-weight: 600; background: var(--moon); color: var(--night);
}
.phone__buttons span + span { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }

.wide-photo { margin-top: 48px; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 62%; border-radius: 28px; }

/* Privacy list */
.promise { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.promise li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { margin-top: 32px; }
.faq details { padding: 20px 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 19px; font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 12px; color: var(--ink-2); }

/* Long-form pages */
.page-head { padding: 0 var(--gutter) 72px; }
.page-head__inner { max-width: 760px; margin: 0 auto; padding-top: 72px; }
.prose { max-width: 680px; margin: 0 auto; font-size: 19px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 24px; }
.prose h2 { margin-top: 56px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.25; color: var(--ink); }
.prose h3 { margin-top: 36px; font-size: 20px; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose blockquote {
  margin: 48px 0; padding-left: 28px; border-left: 3px solid var(--moon);
  font-family: var(--serif); font-size: 28px; line-height: 1.35; color: var(--ink);
}
.prose .callout { font-family: var(--serif); font-size: 26px; line-height: 1.4; color: var(--ink); }
.prose--legal { font-size: 17px; }
.prose--legal h2 { font-size: 26px; margin-top: 48px; }
.story-photo { max-width: 1000px; width: 100%; margin: 0 auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; border-radius: 28px; }
.story-photo--portrait { max-width: 520px; aspect-ratio: 4 / 5; object-position: 50% 15%; }

@media (max-width: 720px) {
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero { padding-bottom: 56px; }
  .hero__grid { padding-top: 32px; gap: 40px; }
  .split { gap: 40px; }
  .demo { margin-top: 48px; }
  .page-head__inner { padding-top: 32px; }
  .page-head { padding-bottom: 48px; }
}

/* Footer */
.site-footer { padding: 56px var(--gutter); background: var(--night-3); font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer__note { flex: 1 1 420px; min-width: 0; }
.site-footer__note p + p { margin-top: 8px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
