/* Colours, radii, and the type ramp are the app's own tokens — src/theme.ts.
   Anything added here for the web (shadows, gradients) stays inside that palette. */
:root {
  --screen: #F7F6F2;
  --canvas: #EFEDE8;
  --surface: #ffffff;
  --sheet: #F9F8F5;
  --text: #1a1a1a;
  --text-2: #8A8A8E;
  --text-3: #B8B8BC;
  --body: #55555a;
  --link: #3B72E8;
  --green: #3E9B5F;
  --green-bg: #E8F3EC;
  --amber: #B07C2A;
  --amber-bg: #F9F1E2;
  --divider: rgba(60, 60, 67, 0.12);
  --hairline: rgba(60, 60, 67, 0.2);
  --count-bg: #F0EFEA;
  --bubble-other: #E9E9EB;
  --bubble-mine: #DCE8FB;
  --checkbox: #C9C9CE;

  --r-card: 16px;
  --r-button: 14px;
  --r-panel: 26px;
  --pad: 20px;
  --wide: 1120px;

  --lift: 0 1px 2px rgba(60, 60, 67, 0.05), 0 8px 24px -14px rgba(60, 60, 67, 0.22);
  --lift-2: 0 1px 2px rgba(60, 60, 67, 0.06), 0 18px 40px -18px rgba(60, 60, 67, 0.3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  /* The hero floats overhang their column on purpose. clip, not hidden — hidden
     would break the sticky header. */
  overflow-x: clip;
  color-scheme: light;
  background: var(--screen);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Warm wash + a faint dot field, so the cream isn't flat. */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 12% -6%, rgba(59, 114, 232, 0.07), transparent 70%),
    radial-gradient(680px 420px at 92% 4%, rgba(176, 124, 42, 0.08), transparent 68%),
    radial-gradient(900px 500px at 50% 102%, rgba(62, 155, 95, 0.06), transparent 70%),
    radial-gradient(rgba(60, 60, 67, 0.055) 1px, transparent 1px) 0 0 / 22px 22px;
}

/* ---------- reveals ---------- */

.has-js .reveal { opacity: 0; transform: translateY(16px); }
.has-js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.site-head.is-stuck {
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--divider);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 15px var(--pad);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark:hover { text-decoration: none; }
.mark { width: 28px; height: 28px; display: block; }

.head-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.head-nav a { color: var(--body); }
.head-nav a:hover { color: var(--text); text-decoration: none; }

.head-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.head-cta:hover { opacity: 0.86; }

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  color: var(--body);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-bg);
}
.eyebrow-plain {
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-2);
}

.sec-head { max-width: 34em; }
.sec-head h2 {
  margin-top: 12px;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

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

.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 52px var(--pad) 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(36px, 5.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lede {
  margin-top: 20px;
  max-width: 29em;
  font-size: clamp(17px, 2.1vw, 19px);
  color: var(--body);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-2);
}
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
}

/* ---------- store badges ---------- */

/* Official artwork, unmodified. Apple's SVG fills its viewBox, so 44px tall is 44px of
   badge. Google's PNG is 646x250 with 564x168 of ink — a 41px transparent margin that is
   its required clear space — so 65px tall lands the same ~44px black badge. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 28px; }

.badge { display: inline-flex; transition: transform 0.14s ease, opacity 0.14s ease; }
.badge:hover { transform: translateY(-1px); opacity: 0.86; text-decoration: none; }
.badge img { display: block; height: 44px; width: auto; }
.badge-play img { height: 65px; }

.closer-cta { margin-top: 30px; }
.cta-light {
  display: inline-flex;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.14s ease, opacity 0.14s ease;
}
.cta-light:hover { text-decoration: none; transform: translateY(-1px); opacity: 0.92; }

/* ---------- phone + floats ---------- */

.hero-art { position: relative; display: flex; justify-content: center; }

.art-glow {
  position: absolute;
  inset: -10% -8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 114, 232, 0.16), transparent 72%);
  filter: blur(12px);
}

.phone {
  position: relative;
  width: min(310px, 100%);
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(165deg, #35353a, #1c1c1e 42%, #26262a);
  box-shadow: 0 34px 70px -22px rgba(31, 31, 33, 0.5), 0 3px 8px rgba(31, 31, 33, 0.18);
}

.phone-screen {
  border-radius: 37px;
  background: var(--screen);
  padding: 28px 14px 20px;
  overflow: hidden;
}

.float {
  position: absolute;
  z-index: 2;
  border-radius: var(--r-card);
  box-shadow: var(--lift-2);
  font-size: 13px;
}

.float-push {
  top: -9%;
  left: -22%;
  display: flex;
  gap: 10px;
  width: 268px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.push-icon svg { width: 30px; height: 30px; display: block; border-radius: 8px; }
.push-body { display: flex; flex-direction: column; line-height: 1.35; }
.push-head { display: flex; gap: 8px; font-size: 12px; font-weight: 600; }
.push-head small { font-weight: 400; color: var(--text-2); }

.float-toast {
  bottom: -3%;
  right: -8%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.92);
  color: #fff;
}
.toast-tick {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
}
.toast-tick svg { width: 12px; height: 12px; }

/* screen contents */

.ph-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; }
.ph-title { font-size: 24px; font-weight: 600; letter-spacing: -0.24px; }
.ph-plus { font-size: 24px; color: var(--link); line-height: 1; }

.ph-tabs { display: flex; gap: 8px; margin: 16px 0 12px; padding: 0 2px; }
.ph-tab { font-size: 12px; padding: 5px 11px; border-radius: 999px; color: var(--text-2); background: var(--canvas); }
.ph-tab.is-on { background: var(--text); color: #fff; }

.ph-card { background: var(--surface); border-radius: var(--r-card); padding: 0 14px; box-shadow: 0 1px 2px rgba(60, 60, 67, 0.05); }
.ph-row { display: flex; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--divider); }
.ph-row:first-child { border-top: 0; }

.ph-box { width: 22px; height: 22px; flex: none; border: 1.5px solid var(--checkbox); border-radius: 50%; }
.ph-box.is-checked { border-color: var(--green); background: var(--green); display: grid; place-items: center; }
.ph-box.is-checked svg { width: 14px; height: 14px; }

.ph-text { display: flex; flex-direction: column; font-size: 15px; }
.ph-text small { font-size: 12px; color: var(--text-2); }
.ph-row.is-done .ph-text { color: #A8A8AC; text-decoration: line-through; text-decoration-color: var(--text-3); }
.ph-row.is-done .ph-text small { text-decoration: none; }

.ph-count {
  display: inline-block;
  margin: 12px 0 2px 2px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--count-bg);
  font-size: 12px;
  color: var(--text-2);
}

.ph-bubble { max-width: 78%; padding: 8px 13px; border-radius: 17px; font-size: 14px; line-height: 1.35; }
.ph-them { align-self: flex-start; background: var(--bubble-other); }
.ph-me { align-self: flex-end; background: var(--bubble-mine); }

/* ---------- invite band ---------- */

.band {
  background: linear-gradient(180deg, var(--canvas), #EAE7E1);
  border-block: 1px solid var(--divider);
}
.band-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 64px var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
}
.invited h2 {
  margin-top: 12px;
  font-size: clamp(24px, 3.4vw, 33px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.invited p { margin-top: 14px; max-width: 34em; color: var(--body); }

.sms {
  padding: 18px;
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--lift);
}
.sms-head { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.sms-bubble {
  margin: 12px 0;
  padding: 12px 15px;
  border-radius: 18px 18px 18px 5px;
  background: var(--bubble-other);
  font-size: 15px;
  line-height: 1.4;
}
.sms-foot { font-size: 12px; color: var(--text-2); }

/* ---------- steps ---------- */

.steps, .features, .detail { max-width: var(--wide); margin: 0 auto; padding: 88px var(--pad); }

.step-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
}

.step-list li {
  position: relative;
  padding: 24px;
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--surface), var(--sheet));
  box-shadow: var(--lift);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step-list li:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }

.step-n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.step-list h3, .feature-grid h3 { margin-top: 15px; font-size: 17px; }
.step-list p, .feature-grid p { margin-top: 8px; font-size: 15px; color: var(--body); }
.step-list em { color: var(--text); font-style: normal; }

/* ---------- detail panels ---------- */

.detail { display: grid; gap: 20px; padding-block: 0; }

.detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--divider);
  border-radius: var(--r-panel);
  background: linear-gradient(150deg, var(--surface), var(--sheet) 62%, var(--canvas));
  box-shadow: var(--lift);
}
.detail-copy h2 {
  margin-top: 12px;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.detail-copy p { margin-top: 14px; color: var(--body); font-size: 16px; }

.chat-mock, .cal-mock {
  padding: 16px;
  border-radius: 20px;
  background: var(--screen);
  border: 1px solid var(--divider);
  box-shadow: inset 0 1px 0 #fff;
}

.cm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--surface);
}
.cm-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 4px; }
.cm-photo { display: flex; flex-direction: column; gap: 8px; }
.cm-img {
  display: block;
  height: 62px;
  border-radius: 12px;
  background: linear-gradient(135deg, #DDE6D9, #E9E4F2 55%, #F3E8E2);
}
.cm-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--divider);
  font-size: 14px;
  color: var(--text-3);
}
.cm-input i { width: 22px; height: 22px; border-radius: 50%; background: var(--link); opacity: 0.85; }

.cal-head { font-size: 15px; font-weight: 600; padding: 2px 4px 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-days { font-size: 11px; color: var(--text-3); padding-bottom: 6px; }
.cal-grid span { font-size: 13px; padding: 7px 0; border-radius: 10px; }
.cal-grid .is-mute { color: var(--text-3); }
.cal-grid .is-today { background: var(--count-bg); font-weight: 600; }
.cal-grid .is-pick { background: var(--amber-bg); color: var(--amber); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(176, 124, 42, 0.35); }
.cal-note { margin-top: 14px; padding: 0 4px; font-size: 12px; color: var(--text-2); }

/* ---------- features ---------- */

.feature-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.feature-grid article {
  padding: 24px;
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--lift);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-grid article:hover { transform: translateY(-3px); box-shadow: var(--lift-2); }

.f-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--canvas);
  color: var(--text);
}
.f-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- closer ---------- */

.closer { max-width: var(--wide); margin: 0 auto; padding: 88px var(--pad); }

.closer-panel {
  position: relative;
  overflow: hidden;
  padding: 76px 32px 82px;
  border-radius: 34px;
  background: linear-gradient(158deg, #232326, #17171a 55%, #1f1f22);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 70px -30px rgba(26, 26, 26, 0.6);
}
.closer-panel::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto;
  height: 90%;
  background:
    radial-gradient(closest-side, rgba(59, 114, 232, 0.3), transparent 70%),
    radial-gradient(closest-side at 78% 60%, rgba(62, 155, 95, 0.22), transparent 70%);
  pointer-events: none;
}
.closer-panel > * { position: relative; }
.closer-panel h2 {
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.closer-panel p { margin: 16px auto 0; max-width: 30em; color: rgba(255, 255, 255, 0.66); font-size: 16px; }

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

.site-foot { border-top: 1px solid var(--divider); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 30px var(--pad) 18px;
  font-size: 14px;
  color: var(--text-2);
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-nav a { color: var(--body); }
.foot-copy { font-size: 13px; }

.foot-legal {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad) 36px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-3);
}

/* ---------- narrow ---------- */

@media (max-width: 1000px) {
  .band-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .detail-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px; }
  .detail-flip .detail-copy { order: -1; }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 66px;
    padding: 36px var(--pad) 64px;
    text-align: center;
  }
  .lede { margin-inline: auto; }
  .stores, .hero-points { justify-content: center; }
  .foot-legal { text-align: center; }
  .head-nav a:not(.head-cta) { display: none; }
  .sec-head, .invited p { margin-inline: auto; }
  .band-inner, .steps .sec-head, .features .sec-head { text-align: center; }
  .steps, .features { padding-block: 64px; }
  .closer { padding-block: 64px; }
  .closer-panel { padding: 56px 24px 60px; }
  .hero-art { width: min(100%, 420px); margin-inline: auto; }
  .float-push { top: -8%; left: -5%; width: 232px; }
  .float-toast { right: -4%; }
}

@media (max-width: 420px) {
  .float-push, .float-toast { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
