/* The homepage of the launch site (index.html), on top of site.css and landing.css. It lives in assets/home/ with the
   homepage's iOS screens, so it stays closed until the launch like they do (campaign/phases.mjs, LAUNCH_ONLY). */

/* ── hero: one wide warm panel that fills the screen; the iPhone rises into it from below ── */
.hero { padding: 8px max(12px, env(safe-area-inset-left, 0px)) 0; }
.hero-panel { position: relative; overflow: hidden; max-width: 1680px; margin: 0 auto; border-radius: 44px; min-height: clamp(620px, calc(100svh - 84px), 900px); display: grid;
  background:
    radial-gradient(60% 70% at 78% 100%, color-mix(in srgb, var(--butter) 55%, transparent) 0%, transparent 70%),
    radial-gradient(70% 80% at 0% 0%, #FFFFFF 0%, transparent 60%),
    linear-gradient(160deg, #FFF0E8 0%, var(--peach) 100%); }
.hero-grid { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: clamp(24px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 72px); }
.hero-copy { display: grid; gap: 26px; justify-items: start; align-content: center; padding-block: 64px 72px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(50px, 6.6vw, 96px); letter-spacing: -0.048em; line-height: .92; }
.hero h1 .h1-line { display: block; }
.hero-hands { position: relative; display: inline-block; white-space: nowrap; }
.swash { position: absolute; left: 0; bottom: -.12em; width: 100%; height: .26em; overflow: visible; z-index: -1; }
.swash path { fill: none; stroke: var(--coral); stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero .lead { max-width: 31em; font-size: clamp(18px, 1.6vw, 21px); }
.hero .stores { margin-block: 2px; }

/* LAUNCH: the launch note */
.launch-note { margin: 0; display: inline-flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 18px 6px 7px; box-shadow: var(--shadow); font-size: 15.5px; line-height: 1.25; }
.launch-note b { font-family: var(--f-display); font-weight: 900; font-size: 18px; letter-spacing: -0.02em; margin-right: 3px; }
.launch-house { width: 32px; height: 32px; flex: none; animation: hop 2.6s ease-in-out infinite; }

/* the iPhone (Release Studio's iPhone 18 Pro bezel, baked into the images in assets/home/), bottom cut off by the panel */
.stage { position: relative; display: grid; justify-items: center; align-items: end; }
.stage::before { content: ""; position: absolute; width: min(560px, 115%); aspect-ratio: 1; border-radius: 50%; left: 50%; bottom: 8%; translate: -50% 0; background: radial-gradient(closest-side, rgba(255,255,255,.75), rgba(255,255,255,0)); }
.device { position: relative; display: block; width: clamp(290px, 29vw, 420px); margin-bottom: -26%; translate: 0 0; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both;
  filter: drop-shadow(0 40px 60px rgba(46,24,56,.20)) drop-shadow(0 6px 14px rgba(46,24,56,.10)); }
.device img { display: block; width: 100%; height: auto; }
@keyframes rise { from { translate: 0 60px; opacity: 0; } to { translate: 0 0; opacity: 1; } }

@media (prefers-color-scheme: dark) {
  .hero-panel { background:
    radial-gradient(60% 70% at 78% 100%, rgba(255,224,138,.16) 0%, transparent 70%),
    radial-gradient(70% 80% at 0% 0%, #3B2147 0%, transparent 60%),
    linear-gradient(160deg, #2A1A31 0%, #24142B 100%); }
  .stage::before { background: radial-gradient(closest-side, rgba(255,241,232,.10), rgba(255,241,232,0)); }
  .device { filter: drop-shadow(0 40px 70px rgba(0,0,0,.55)); }
}

/* ── the framed iOS screens below the hero (same bezel as the hero; the panel around them cuts off the bottom) ── */
.shot { display: block; filter: drop-shadow(0 30px 44px rgba(46,24,56,.18)) drop-shadow(0 4px 10px rgba(46,24,56,.08)); }
.shot img { display: block; width: 100%; height: auto; }

/* before and after: the real guide on the "after" side, on a soft blob, no panel */
.ba .after { rotate: 0deg; justify-items: center; }
.after-stage { position: relative; isolation: isolate; display: grid; justify-items: center; padding-block: 8px 16px; width: 100%; }
.after-stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; translate: -50% -50%; width: min(440px, 96%); aspect-ratio: 1.05;
  border-radius: 52% 48% 46% 54% / 56% 50% 50% 44%; background: var(--peach); }
.after-stage .shot { width: min(270px, 64%); }

/* a closer look: open rows on the page itself, copy and iPhone side by side (alternating), a soft blob of colour behind each phone */
.look { padding-block: 72px 40px; }
.look-wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: clamp(56px, 8vw, 120px); }
.look .section-head { margin-bottom: 0; }
.feat { --tint: var(--mint); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feat-code { --tint: var(--butter); }
.feat-ask { --tint: #FFD3C4; }
.feat-sos { --tint: var(--siren-soft); }
.feat.flip .feat-copy { order: 2; }
.feat-copy { display: grid; gap: 18px; justify-items: start; max-width: 30em; }
.feat-copy h3 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.035em; line-height: 1; }
.feat-copy p { font-size: clamp(17px, 1.4vw, 19.5px); color: var(--muted); }
.feat-tag { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); border-radius: 999px; padding: 7px 15px 7px 11px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: var(--shadow); }
.feat-tag svg { width: 18px; height: 18px; flex: none; }
.feat-sos .feat-tag { color: var(--siren-text); }
.feat-stage { position: relative; isolation: isolate; display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2vw, 28px); }
.feat-stage::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; translate: -50% -50%; width: min(520px, 104%); aspect-ratio: 1.05;
  border-radius: 52% 48% 46% 54% / 56% 50% 50% 44%; background: var(--tint); }
.feat-code .feat-stage::before { border-radius: 46% 54% 58% 42% / 48% 56% 44% 52%; }
.feat-ask .feat-stage::before { border-radius: 58% 42% 50% 50% / 44% 52% 48% 56%; }
.feat-sos .feat-stage::before { border-radius: 50% 50% 42% 58% / 54% 44% 56% 46%; }
.feat-stage .shot { width: clamp(250px, 24vw, 320px); }
.feat-code .shot { width: clamp(190px, 18.5vw, 250px); }
.feat-code .shot.back { margin-top: 56px; }

@media (prefers-color-scheme: dark) {
  .shot { filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
  .after-stage::before { background: #2E1E35; }
  .feat { --tint: color-mix(in srgb, var(--mint) 16%, var(--bg)); }
  .feat-code { --tint: color-mix(in srgb, var(--butter) 14%, var(--bg)); }
  .feat-ask { --tint: color-mix(in srgb, var(--coral) 16%, var(--bg)); }
  .feat-sos { --tint: var(--siren-soft); }
}

/* ── Havely Pro: always the Pro night (as on /pro/), whatever the light/dark setting. Gold is for Pro only. ── */
.pro-band { padding-block: 40px 8px; --gold-1: #FFF1BF; --gold-2: #FFDD80; --gold-3: #F4BF4F; --on-night: #FFF6F0; --night-muted: #D6C6DA; }
.pb-panel { position: relative; overflow: hidden; isolation: isolate; max-width: 1320px; margin: 0 auto; border-radius: 44px; color: var(--on-night); color-scheme: dark;
  margin-inline: max(16px, env(safe-area-inset-left, 0px)); padding: clamp(36px, 5.5vw, 80px) clamp(24px, 6vw, 96px) clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px clamp(32px, 6vw, 96px); align-items: center;
  background:
    radial-gradient(42% 60% at 12% 0%, rgba(255, 214, 120, .20), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, rgba(255, 190, 90, .08), transparent 70%),
    linear-gradient(160deg, #3E2649 0%, #26162E 60%, #1B1022 100%);
  box-shadow: var(--shadow-lg); }
@media (min-width: 1368px) { .pb-panel { margin-inline: auto; } }
.pb-copy { display: grid; gap: 22px; justify-items: start; }
.pb-mark { margin: 0; display: flex; align-items: center; gap: 14px; line-height: 0; }
.pb-icon { width: 60px; height: 60px; border-radius: 23%; box-shadow: 0 0 0 1px rgba(255, 224, 138, .35), 0 0 44px rgba(255, 210, 110, .30); }
.pb-word { height: 40px; width: auto; }
.pro-band h2 { font-size: clamp(36px, 4.6vw, 62px); letter-spacing: -0.04em; line-height: .98; color: var(--on-night); }
.pro-band h2 span { display: block; }
.pro-band h2 em { display: block; font-style: normal; padding-bottom: .06em;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 50%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@supports not (background-clip: text) { .pro-band h2 em { color: var(--gold-2); } }
.pb-lead { font-size: clamp(17px, 1.45vw, 19.5px); color: var(--night-muted); max-width: 30em; }
.pb-prices { list-style: none; margin: 0; padding: 6px; display: inline-flex; gap: 6px; border-radius: 24px; background: rgba(255, 246, 240, .06); border: 1px solid rgba(255, 246, 240, .14); }
.pb-prices li { display: grid; justify-items: center; gap: 3px; padding: 10px 20px 12px; border-radius: 18px; min-width: 146px; }
.pb-prices li.yearly { background: rgba(255, 221, 128, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 221, 128, .55); }
.pb-chip { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--night-muted); }
.yearly .pb-chip { color: var(--gold-2); }
.pb-amount { font-size: 15px; color: var(--night-muted); }
.pb-amount b { font-family: var(--f-display); font-weight: 900; font-size: 28px; letter-spacing: -0.02em; color: var(--on-night); }
.yearly .pb-amount b { color: var(--gold-2); }
.pb-actions { margin: 2px 0 0; }
.pb-btn { background: var(--gold-2); color: #2E1838; box-shadow: 0 10px 30px rgba(255, 200, 90, .22); }
.pb-btn:hover { transform: translateY(-1px); }
.pro-band :focus-visible { outline-color: var(--on-night); }
.pb-list { list-style: none; margin: 0; padding: 8px 0; display: grid; gap: 4px; }
.pb-list li { display: grid; grid-template-columns: 36px 1fr; gap: 2px 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid rgba(255, 246, 240, .10); }
.pb-list li:last-child { border-bottom: 0; }
.pb-list i { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #2E1838;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-3)); box-shadow: 0 0 22px rgba(255, 210, 110, .25); }
.pb-list i svg { width: 19px; height: 19px; }
.pb-list b { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; color: var(--on-night); }
.pb-list span { font-size: 15.5px; color: var(--night-muted); }
.pb-fine { grid-column: 1 / -1; font-size: 13.5px; color: var(--night-muted); opacity: .85; border-top: 1px solid rgba(255, 246, 240, .10); padding-top: 18px; }

/* ── the waitlist offer (LAUNCH OFFER): one slim strip ─────────────── */
.offer-band { padding-block: 24px 8px; }
.offer-band .wrap { max-width: 1352px; }
.offer-strip { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 40px; align-items: center; background: var(--butter); color: var(--on-butter); border-radius: 32px; padding: 26px clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow); }
.offer-head { display: grid; gap: 6px; }
.offer-head h2 { font-size: clamp(25px, 2.8vw, 32px); letter-spacing: -0.03em; color: var(--on-butter); }
.offer-head p { color: var(--on-butter); font-size: 15px; }
.offer-tag { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--butter-label); }
.offer-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: offer; }
.offer-steps li { counter-increment: offer; display: grid; gap: 8px; align-content: start; background: rgba(255,255,255,.55); border-radius: 20px; padding: 14px 16px 16px; font-size: 15px; line-height: 1.4; color: var(--on-butter); }
.offer-steps li::before { content: counter(offer); width: 28px; height: 28px; border-radius: 50%; background: #2E1838; color: #FFF6F0; font-family: var(--f-display); font-weight: 900; font-size: 15px; display: grid; place-items: center; }

/* ── the rest of the page: the same wide rounded panels as above ── */
/* the blobs keep their light colours in dark mode, so the plum icons on them stay visible (Peach turns dark otherwise) */
@media (prefers-color-scheme: dark) { .blobby.peach { background: #FFE7DC; } }

/* sitters: open and centred, no panel */
.sitter-card { background: none; padding: 0; max-width: 640px; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.sitter-copy { justify-items: center; gap: 14px; }

/* final call to action: as wide as the panels above */
.cta .wrap { max-width: 1352px; }
.cta-panel { border-radius: 44px; padding-inline: clamp(28px, 6vw, 96px); }

/* ── smaller screens ──────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 48px 8px; }
  .device { width: min(340px, 70vw); margin-bottom: -40%; }
  .offer-strip { grid-template-columns: 1fr; }
  .pb-panel { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 1fr; gap: 36px; }
  .feat.flip .feat-copy { order: 0; }
  /* on smaller screens the phones fade out halfway, so the page stays short */
  .feat-stage, .after-stage { max-height: clamp(400px, 72vw, 560px); }
  .feat-stage, .after-stage { overflow-x: visible; overflow-y: clip; -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); mask-image: linear-gradient(to bottom, #000 68%, transparent 100%); }
  .feat-stage .shot { width: min(320px, 66vw); }
  .feat-code .shot { width: min(250px, 44vw); }
  .feat-code .shot.back { margin-top: 40px; }
  .feat-stage::before { top: 50%; width: min(420px, 90%); }
  .after-stage::before { width: min(400px, 100%); }
}
@media (max-width: 640px) {
  .hero { padding-top: 4px; }
  .hero-panel { border-radius: 32px; min-height: 0; }
  .hero-copy { gap: 20px; padding-block: 36px 4px; }
  .launch-note { font-size: 14px; padding: 5px 14px 5px 5px; }
  .launch-note b { font-size: 16.5px; }
  .launch-house { width: 28px; height: 28px; }
  .device { width: min(300px, 76vw); margin-bottom: -58%; }
  .offer-steps { grid-template-columns: 1fr; gap: 8px; }
  .offer-steps li { grid-template-columns: 28px 1fr; align-items: center; padding: 10px 14px; }
  .look { padding-top: 48px; }
  .look-wrap { gap: 64px; }
  .feat { gap: 28px; }
  .feat-copy { gap: 14px; }
  .feat-stage .shot { width: min(270px, 70vw); }
  .feat-code .shot { width: auto; flex: 0 1 46%; }
  .feat-stage, .after-stage { max-height: 380px; }
  .pro-band { padding-top: 24px; }
  main > section { padding-block: 44px; }
  /* shorter on a phone: the three steps and who it's for as compact rows */
  .three { max-width: none; gap: 14px; }
  .three li { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 2px; }
  .three li::before { top: -4px; left: 44px; width: 26px; height: 26px; font-size: 14px; }
  .three .blobby { grid-row: span 2; width: 64px; height: 60px; margin: 0; }
  .three .blobby svg { width: 30px; height: 30px; }
  .three h3 { font-size: 19px; }
  .three p { font-size: 15.5px; }
  .more-link { margin-top: 24px; }
  .who-list { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .who-list .blobby { width: 96px; height: 88px; margin-bottom: 4px; }
  .who-list .blobby svg { width: 44px; height: 44px; }
  .who-list b { font-size: 17px; }
  .who-list span { font-size: 14px; }
  .sleepy-house { width: 150px; }
  .promises { gap: 10px; }
  .promises li { padding: 16px 18px; border-radius: 20px; }
  .sitter-strip { padding-block: 24px; }
  .cta .wrap { padding-inline: max(12px, env(safe-area-inset-left, 0px)); }
  .cta-panel { border-radius: 32px; padding: 32px 22px; }
  .pb-panel { border-radius: 32px; margin-inline: max(12px, env(safe-area-inset-left, 0px)); padding: 36px 22px 24px; }
  .pb-copy { gap: 18px; }
  .pb-icon { width: 50px; height: 50px; }
  .pb-word { height: 33px; }
  .pb-prices { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .pb-prices li { min-width: 0; padding-inline: 8px; }
  .pb-amount b { font-size: 24px; }
  .pb-list b { font-size: 18px; }
}
