/* Dear Dates — deardates.app
   Tokens mirror the app design: warm sand/cream/ink palette, Bricolage
   Grotesque for display, Manrope for text, Caveat for handwritten notes,
   and one flood colour per kind of date. */

:root {
  --sand: #EFEAE3;
  --cream: #FFF8F1;
  --cream-2: #FBF6F0;
  --white: #FFFFFF;
  --ink: #17110E;
  --ink-2: #211A15;
  --text: #3F342C;
  --text-2: #5C5147;
  --muted: #6B5A4D;
  --muted-2: #7C6A5C;
  --muted-3: #9A8B7E;
  --muted-4: #A2958A;
  --light: #E9E2DA;
  --violet: #5B3BE0;
  --violet-light: #7A5CFF;
  --violet-deep: #4E2FC9;
  --lime: #EEFF6A;
  --teal: #2BB3C0;
  --teal-deep: #0C616A;
  --birthday: #FF3B5C;
  --birthday-deep: #A81034;
  --concert: #FF2D9B;
  --home: #FFA51E;
  --home-deep: #8A4F00;
  --pet: #FF7A1A;
  --pet-deep: #9A4100;
  --streak: #7BC61A;
  --streak-deep: #426C0A;
  --trip: #00B87C;
  --appointment: #8A7C70;
  --appointment-deep: #5C5147;
  --ink-on-colour: rgba(23,17,14,.88);
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
  --container: 1160px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-light); }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; }
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { left: 8px; color: var(--cream); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { color: var(--cream); background: #2A211B; }
.btn-cream { background: var(--cream); border: 1px solid rgba(23,17,14,.12); color: var(--ink); }
.btn-cream:hover { color: var(--ink); background: var(--white); }
.btn-cream-solid { background: var(--cream); color: var(--ink); }
.btn-cream-solid:hover { color: var(--ink); background: var(--white); }
.btn-ghost-light { background: rgba(255,248,241,.1); border: 1px solid rgba(255,248,241,.22); color: var(--cream); }
.btn-ghost-light:hover { color: var(--cream); background: rgba(255,248,241,.16); }

.btn-pill { padding: 10px 16px; border-radius: 999px; font-size: 12px; }
.btn-pill.btn-ghost { background: rgba(23,17,14,.07); color: var(--text-2); }
.btn-pill.btn-ghost:hover { color: var(--ink); background: rgba(23,17,14,.11); }

.store-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Type helpers ---------- */

.eyebrow {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow.lime { color: var(--lime); }
.eyebrow.on-colour { color: var(--ink-on-colour); letter-spacing: 1.6px; }

.h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 22ch;
  text-wrap: pretty;
}
.lede {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
  padding: 26px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 9px; display: block; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.6px;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 60px) var(--gutter) clamp(56px, 7vw, 96px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { flex: 1 1 440px; min-width: 0; }
.hero-phone { flex: 0 1 402px; min-width: 0; display: flex; justify-content: center; }

.kind-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(23,17,14,.06);
}
.kind-pill .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--kind, var(--birthday)); transition: background 380ms ease; }
.kind-pill .label {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-2);
}

.hero-rotor { min-height: clamp(150px, 16vw, 230px); margin-top: 20px; }
.rotor-item { transition: opacity 380ms ease, transform 380ms ease; opacity: 1; transform: translateY(0); }
.rotor-item.is-out { opacity: 0; transform: translateY(10px); }

.hero h1 {
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: .98;
  letter-spacing: -0.045em;
  text-wrap: pretty;
}
.hero h1 .emph { color: var(--kind-deep, var(--birthday-deep)); transition: color 380ms ease; }
.hero-meta { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 44ch; }
.hero-pitch {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  max-width: 48ch;
  text-wrap: pretty;
}
.hero-fine { margin-top: 16px; font-size: 12.5px; color: var(--muted-2); }

/* ---------- How it counts (ink) ---------- */

.section-ink { background: var(--ink); color: var(--cream); }
.section-ink .container { padding-block: clamp(56px, 8vw, 110px); }
.section-ink .h2 { max-width: 24ch; font-size: clamp(28px, 3.5vw, 46px); }
.section-ink .lede { color: var(--muted-3); max-width: 56ch; font-size: 15px; }

.count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 4vw, 56px);
}
.count-card { padding: 24px; border-radius: 24px; color: var(--ink); }
.count-card .kind {
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-on-colour);
}
.count-card .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.6px;
  margin-top: 16px;
}
.count-card p { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-on-colour); }
.count-card.birthday { background: var(--birthday); }
.count-card.anniversary { background: var(--violet); color: var(--white); }
.count-card.anniversary .kind, .count-card.anniversary p { color: rgba(255,255,255,.95); }
.count-card.remembrance { background: var(--teal); }
.count-card.streak { background: var(--streak); }

.milestone-card {
  margin-top: 14px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 26px;
  background: var(--ink-2);
}
.milestone-card .inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.milestone-card .copy { flex: 1 1 300px; min-width: 0; }
.milestone-card .tag {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--lime);
}
.milestone-card h3 {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.9px;
  margin-top: 12px;
  color: var(--cream);
}
.milestone-card p { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--muted-3); }
.milestone-chips { flex: 0 1 320px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,248,241,.1);
  color: var(--light);
  font-weight: 700;
  font-size: 11.5px;
}
.chip.lit { background: var(--lime); color: var(--ink); font-weight: 800; }

/* ---------- Feature sections (text + phone) ---------- */

.feature {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature-copy { flex: 1 1 380px; min-width: 0; }
.feature-phone { flex: 0 1 402px; min-width: 0; display: flex; justify-content: center; }
.feature.phone-first .feature-phone { order: 1; }
.feature.phone-first .feature-copy { order: 2; }

.section-cream {
  background: var(--cream);
  border-top: 1px solid rgba(23,17,14,.07);
  border-bottom: 1px solid rgba(23,17,14,.07);
}

.bullets { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 0; padding: 0; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.bullets .dot { width: 9px; height: 9px; border-radius: 3px; margin-top: 7px; flex: 0 0 auto; }
.bullets span:last-child { font-size: 14.5px; line-height: 1.55; color: var(--text); }
.bullets strong { font-weight: 800; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.mini-card { padding: 20px; border-radius: 20px; background: var(--sand); }
.mini-card h3 { font-size: 17px; letter-spacing: -0.4px; }
.mini-card p { margin-top: 7px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- On this day (teal) ---------- */

.section-teal { background: var(--teal-deep); color: var(--cream); }
.section-teal .feature .lede { margin-top: 22px; color: var(--white); }
.memory-rotor { min-height: 108px; margin-top: 22px; }
.memory-rotor .rotor-item { transition-duration: 500ms; }
.memory-line {
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
  color: var(--cream);
}
.memory-year { font-weight: 600; font-size: 12.5px; color: var(--white); margin-top: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-row .chip { padding: 10px 15px; background: rgba(23,17,14,.28); font-size: 12.5px; color: var(--cream); }

/* ---------- Gentle by default ---------- */

.section-sand { background: var(--sand); }
.section-sand .container { padding-block: clamp(56px, 8vw, 110px); }
.gentle-head { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: flex-end; }
.gentle-head .copy { flex: 1 1 420px; min-width: 0; }
.gentle-head .h2 { max-width: 26ch; }
.gentle-head .lede { flex: 1 1 300px; margin-top: 0; max-width: 44ch; }

.gentle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
}
.gentle-card {
  padding: 26px;
  border-radius: 24px;
  background: var(--cream);
  border: 1px solid rgba(23,17,14,.08);
}
.gentle-card .badge {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
}
.badge.teal { background: var(--teal); }
.badge.lime { background: var(--lime); }
.badge.stone { background: var(--appointment); color: var(--cream); }
.badge.orange { background: var(--pet); }
.gentle-card h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.6px; margin-top: 16px; }
.gentle-card p { margin-top: 9px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.gentle-card .hand {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
  color: var(--text-2);
}

.calm-card {
  margin-top: 14px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 26px;
  background: var(--teal);
  color: var(--ink);
}
.calm-rotor { min-height: clamp(100px, 12vw, 140px); margin-top: 18px; }
.calm-rotor .rotor-item { transition: opacity 700ms ease; transform: none; }
.calm-line {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.9vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  max-width: 30ch;
  text-wrap: pretty;
}
.calm-meta { font-size: 13.5px; line-height: 1.5; color: var(--ink-on-colour); margin-top: 14px; max-width: 46ch; }

/* ---------- Pricing / privacy (violet) ---------- */

.section-violet { background: var(--violet); color: var(--white); }
.section-violet .container { padding-block: clamp(56px, 8vw, 110px); }
.section-violet .inner { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 64px); }
.section-violet .copy { flex: 1 1 380px; min-width: 0; }
.section-violet .lede { color: var(--white); }
.section-violet .lede + .lede { margin-top: 14px; }
.plans { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.plan { padding: 26px; border-radius: 24px; }
.plan.free { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); }
.plan.paid { background: var(--ink); }
.plan .price-row { display: flex; align-items: baseline; gap: 10px; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: -1.6px; }
.plan.paid .price { color: var(--lime); }
.plan .per { font-weight: 600; font-size: 13px; color: var(--white); }
.plan.paid .per { color: var(--muted-3); }
.plan p { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--white); }
.plan.paid p { color: var(--light); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--cream); }
.site-footer .container { padding-block: clamp(48px, 6vw, 80px); }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; }
.footer-cta { flex: 1 1 320px; min-width: 0; }
.footer-cta h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 20ch;
  text-wrap: pretty;
}
.footer-links { flex: 0 1 240px; display: flex; flex-direction: column; gap: 9px; font-weight: 600; font-size: 13px; }
.footer-links a { color: var(--light); }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,248,241,.14);
  font-size: 12px;
  color: var(--muted-3);
}
.footer-bottom.plain { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-bottom .footer-links { flex-direction: row; gap: 18px; flex: 0 1 auto; }

/* ---------- Legal / support pages ---------- */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(64px, 8vw, 110px);
}
.page h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.02; letter-spacing: -0.04em; margin-top: 12px; }
.page .updated { margin-top: 14px; font-size: 13px; color: var(--muted-2); }
.page h2 { font-size: 21px; letter-spacing: -0.5px; margin-top: 40px; }
.page h2.sub { font-size: 17px; margin-top: 28px; }
.page p, .page li { font-size: 15.5px; line-height: 1.6; color: var(--text); }
.page p { margin-top: 14px; }
.page ul { margin: 12px 0 0; padding-left: 22px; }
.page li + li { margin-top: 6px; }
.page a { font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }

/* ---------- Phone mockup ----------
   402×874 iOS frame from the design, scaled to its wrapper with
   --phone-scale, which site.js keeps in sync via a ResizeObserver. */

.phone-wrap {
  width: 100%;
  max-width: 402px;
  aspect-ratio: 402 / 874;
  position: relative;
}
.phone {
  --phone-scale: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 402px;
  height: 874px;
  border-radius: 48px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.12);
  transform: scale(var(--phone-scale));
  transform-origin: top left;
  font-family: var(--body);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.phone.dark { background: var(--ink); color: var(--cream); }

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 154px;
  align-items: center;
  justify-content: center;
  padding: 21px 24px 19px;
  color: #000;
}
.phone.dark .status-bar, .phone.hdr-dark .status-bar { color: #fff; }
.status-bar .time, .status-bar .icons { flex: 1; height: 22px; display: flex; align-items: center; justify-content: center; }
.status-bar .time { font-family: -apple-system, 'SF Pro', system-ui, sans-serif; font-weight: 590; font-size: 17px; padding-top: 1.5px; }
.status-bar .icons { gap: 7px; padding-top: 1px; padding-right: 1px; }
.status-bar svg { display: block; }
.home-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 8px;
  pointer-events: none;
}
.home-bar span { width: 139px; height: 5px; border-radius: 100px; background: rgba(0,0,0,0.25); }
.phone.dark .home-bar span { background: rgba(255,255,255,0.7); }

.screen { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.status-space { height: 52px; flex: none; }

/* Timeline */
.tl-hero { background: var(--violet); color: #fff; position: relative; overflow: hidden; flex: none; }
.tl-hero .blob { position: absolute; right: -60px; top: -70px; width: 230px; height: 230px; border-radius: 50%; background: rgba(255,255,255,.13); }
.tl-bar { padding: 22px 22px 0; position: relative; display: flex; justify-content: space-between; align-items: center; }
.tl-bar .app { font-weight: 800; font-size: 10px; line-height: 1; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,.95); }
.tl-bar .btns { display: flex; gap: 8px; }
.tl-bar .btns span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.tl-body { padding: 26px 22px 58px; position: relative; }
.tl-body .kicker { font-weight: 800; font-size: 11px; line-height: 1; letter-spacing: 1.8px; text-transform: uppercase; white-space: nowrap; color: var(--lime); }
.tl-body .title { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: .96; letter-spacing: -2.2px; margin-top: 12px; }
.tl-body .badge { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; margin-top: 8px; }
.tl-body .meta { font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,.95); margin-top: 10px; }
.tl-body .pills { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.tl-body .pills span {
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: .9px;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  color: #fff;
}
.tl-body .pills span.lit { background: var(--lime); color: var(--ink); }
.tl-body .actions { display: flex; gap: 8px; margin-top: 20px; }
.tl-body .actions span { flex: 1; text-align: center; font-weight: 800; font-size: 12.5px; padding: 14px; border-radius: 16px; background: rgba(0,0,0,.28); color: #fff; }
.tl-body .actions span.primary { background: var(--cream); color: var(--ink); }

.tl-sheet {
  flex: 1;
  background: var(--cream);
  border-radius: 30px 30px 0 0;
  margin-top: -30px;
  position: relative;
  padding: 22px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}
.otd-banner { display: flex; align-items: center; gap: 12px; background: var(--ink); border-radius: 20px; padding: 14px 16px; }
.otd-banner .copy { flex: 1; }
.otd-banner .eyebrow { font-size: 9.5px; letter-spacing: 1.6px; color: var(--lime); }
.otd-banner .title { font-weight: 700; font-size: 15px; color: var(--cream); margin-top: 4px; }
.otd-banner .chev { font-weight: 700; font-size: 18px; color: var(--lime); }

.month-head { display: flex; align-items: center; gap: 10px; }
.month-head .label { font-weight: 800; font-size: 10px; line-height: 1; letter-spacing: 1.7px; text-transform: uppercase; color: var(--muted-2); }
.month-head .rule { flex: 1; height: 1px; background: rgba(23,17,14,.12); }
.month-head .count { font-weight: 700; font-size: 10px; color: var(--muted-2); }
.phone.dark .month-head .label { color: var(--muted-3); }
.phone.dark .month-head .rule { background: rgba(244,245,247,.14); }
.rows { display: flex; flex-direction: column; gap: 8px; }

.event-row { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 13px 15px; background: var(--tint); }
.event-row .date {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--flood);
  color: var(--on, var(--ink));
}
.event-row .date .d { font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1; }
.event-row .date .w { font-weight: 800; font-size: 7px; line-height: 1; letter-spacing: .6px; margin-top: 2px; opacity: .8; }
.event-row .text { flex: 1; min-width: 0; }
.event-row .name { font-weight: 700; font-size: 14px; color: var(--ink); }
.event-row .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.event-row .num { font-family: var(--display); font-weight: 800; font-size: 17px; white-space: nowrap; color: var(--deep); }

/* Calendar */
.cal { background: var(--cream); flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.cal-head { padding: 22px 20px 10px; display: flex; justify-content: space-between; align-items: flex-end; }
.cal-head .year { font-weight: 800; font-size: 10px; line-height: 1; letter-spacing: 1.7px; text-transform: uppercase; color: var(--muted-2); }
.cal-head .month { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -1.5px; margin-top: 6px; }
.cal-head .nav { display: flex; gap: 6px; }
.cal-head .nav span {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(23,17,14,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-weight: 600;
  font-size: 16px;
}
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px 14px; border-bottom: 1px solid rgba(23,17,14,.10); }
.cal-dow span { text-align: center; font-weight: 800; font-size: 9.5px; letter-spacing: 1px; color: var(--muted-2); }
.cal-dow span.we { color: var(--muted-4); }
.cal-weeks { padding: 0 14px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 7px 0; border-bottom: 1px solid rgba(23,17,14,.07); }
.cal-cell { min-height: 54px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
.cal-cell .n {
  text-align: center;
  border-radius: 8px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  margin: 0 auto;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
}
.cal-cell.out .n { color: var(--muted-2); }
.cal-cell.sel .n { font-weight: 800; color: var(--cream); background: var(--ink); }
.cal-cell .ev {
  height: 15px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 7.5px;
  line-height: 15px;
  text-align: center;
  overflow: hidden;
  padding: 0 2px;
  white-space: nowrap;
  background: var(--flood);
  color: var(--on, var(--ink));
}
.cal-day { padding: 14px 20px 10px; }
.cal-day .rows { margin-top: 10px; }
.flood-row { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 14px 15px; background: var(--flood); color: var(--on, var(--ink)); }
.flood-row .text { flex: 1; }
.flood-row .name { font-weight: 700; font-size: 14.5px; }
.flood-row .sub { font-size: 12px; margin-top: 2px; opacity: .95; }
.flood-row .num { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -1px; }

/* Recap */
.recap { background: var(--ink); flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.recap-head { padding: 22px 22px 0; }
.recap-head .eyebrow { color: var(--lime); }
.recap-head .title { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.02; letter-spacing: -1.6px; color: var(--cream); margin-top: 10px; }
.recap-head .hint { font-size: 13px; line-height: 1.5; color: var(--muted-3); margin-top: 10px; }
.recap-cards { display: flex; gap: 14px; padding: 20px 22px; overflow: hidden; }
.recap-card { width: 250px; flex: none; border-radius: 24px; overflow: hidden; background: var(--ink-2); }
.recap-card .cover { height: 132px; display: flex; align-items: flex-end; padding: 14px; background: var(--flood); color: var(--on, var(--ink)); }
.recap-card .cover .big { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -1.4px; }
.recap-card .cover .ago { font-weight: 700; font-size: 12px; margin-left: 8px; padding-bottom: 3px; opacity: .95; }
.recap-card .body { padding: 16px; }
.recap-card .name { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--cream); }
.recap-card .badge { font-weight: 700; font-size: 13px; margin-top: 5px; color: var(--accent); }
.recap-card .note { font-family: var(--hand); font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--muted-3); margin-top: 10px; }
.recap-week { padding: 4px 22px 20px; }
.recap-week .item { display: flex; gap: 14px; align-items: center; padding: 12px 0; }
.recap-week .yr { font-family: var(--display); font-weight: 800; font-size: 17px; width: 48px; color: var(--accent); }
.recap-week .name { font-weight: 700; font-size: 13.5px; color: var(--light); }
.recap-week .sub { font-size: 11.5px; color: var(--muted-3); margin-top: 2px; }

/* Add a date — step two */
.add { background: var(--cream); flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.add-nav { padding: 18px 20px 0; display: flex; align-items: center; gap: 12px; flex: none; font-weight: 700; font-size: 13px; color: var(--muted-2); }
.add-nav .progress { flex: 1; display: flex; gap: 5px; }
.add-nav .progress span { flex: 1; height: 4px; border-radius: 2px; background: rgba(23,17,14,.14); }
.add-nav .progress span.done { background: var(--ink); }
.add-head { padding: 18px 20px 0; flex: none; }
.add-head .title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -1.4px; margin-top: 8px; }
.add-scroll { flex: 1; overflow: hidden; padding: 0 20px; min-height: 0; }
.add-scroll .inner { margin-top: -196px; }
.add-stack { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--white); border: 1px solid rgba(23,17,14,.08); border-radius: 20px; padding: 16px; }
.card .row { display: flex; align-items: baseline; justify-content: space-between; }
.card .label { font-weight: 800; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); }
.card .value { font-weight: 700; font-size: 11.5px; color: var(--ink); }
.card .help { font-size: 11.5px; line-height: 1.4; color: var(--muted-2); margin-top: 4px; }
.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.month-grid span { font-weight: 700; font-size: 11.5px; padding: 11px 0; border-radius: 12px; text-align: center; background: rgba(23,17,14,.06); color: var(--muted); }
.month-grid span.on { background: var(--ink); color: var(--cream); }
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.day-grid span { padding: 8px 0; border-radius: 10px; text-align: center; font-weight: 600; font-size: 11.5px; background: rgba(23,17,14,.06); color: var(--muted); }
.day-grid span.on { background: var(--ink); color: var(--cream); font-weight: 800; }
.year-box {
  width: 120px;
  margin-top: 10px;
  padding: 13px;
  border-radius: 14px;
  background: var(--cream-2);
  border: 1px solid rgba(23,17,14,.10);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}
.preview-card { background: var(--birthday); border-radius: 22px; padding: 18px; color: var(--ink); }
.preview-card .label { font-weight: 800; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-on-colour); }
.preview-card .big { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -1.4px; margin-top: 10px; }
.preview-card .name { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.2; margin-top: 10px; }
.preview-card .badge { font-weight: 700; font-size: 14px; margin-top: 4px; }
.preview-card .next { font-size: 12px; color: var(--ink-on-colour); margin-top: 4px; }
.add-footer { padding: 12px 20px 18px; background: var(--cream); flex: none; }
.add-footer .cta { width: 100%; text-align: center; background: var(--ink); color: var(--cream); font-weight: 800; font-size: 14px; padding: 16px; border-radius: 18px; }
.add-space { height: 24px; flex: none; }

/* Tab bar */
.tab-bar {
  flex: none;
  display: flex;
  align-items: flex-start;
  padding: 11px 16px 10px;
  background: var(--cream);
  border-top: 1px solid rgba(23,17,14,.10);
}
.phone.dark .tab-bar { background: var(--ink); border-top-color: rgba(255,248,241,.12); }
.tab-bar .tab { flex: 1; text-align: center; }
.tab-bar .tab i { display: block; width: 22px; height: 22px; border-radius: 8px; margin: 0 auto; background: rgba(23,17,14,.16); }
.tab-bar .tab span { display: block; font-weight: 700; font-size: 9.5px; margin-top: 6px; color: var(--muted-2); }
.tab-bar .tab.on i { background: var(--ink); }
.tab-bar .tab.on span { color: var(--ink); }
.phone.dark .tab-bar .tab i { background: rgba(255,248,241,.25); }
.phone.dark .tab-bar .tab span { color: #8B7F73; }
.phone.dark .tab-bar .tab.on i { background: var(--cream); }
.phone.dark .tab-bar .tab.on span { color: var(--cream); }
.tab-bar .fab {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--birthday);
  margin: -12px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 10px 20px -8px rgba(255,59,92,.85);
}
.tab-space { height: 22px; flex: none; background: var(--cream); }
.phone.dark .tab-space { background: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rotor-item, .kind-pill .dot, .hero h1 .emph, .btn { transition: none; }
}
