/* Happy Broccoli: the app's night garden, on the web. Colors come straight from Theme.swift. */
:root {
  --bg-top: #231e47;
  --bg-bottom: #120f27;
  --card: #252047;
  --card-2: #2f2957;
  --line: #3a3366;
  --ink: #f5f2fb;
  --muted: #a8a2c6;
  --faint: #6f6993;
  --coral: #f2867a;
  --coral-light: #f8a98d;
  --mint: #8fd685;
  --gold: #f6c15b;
  --lavender: #9c8fe0;
  --cloud: #e2daf8;
  --cloud-shade: #a99ddb;
  --earth: #352a4c;
  --earth-rim: #5e4c80;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg-bottom);
  color: var(--ink);
  font: 500 17px/1.55 var(--round);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
p { margin: 0; }

/* The sky behind everything: the app's gradient and a scatter of small stars. */
.sky {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 34%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 58%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 26%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 86%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 92%, #fff4 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 82%, #fff6 50%, transparent 51%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom) 70%);
}

/* Header */
.top {
  max-width: 1160px; margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 34px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; }
.links a:hover { color: var(--ink); }
.soon-pill {
  font-size: 14px; font-weight: 800; color: var(--ink);
  border: 1.5px solid color-mix(in srgb, var(--lavender) 70%, transparent);
  background: color-mix(in srgb, var(--card-2) 90%, transparent);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}

main { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(44px, 6.5vw, 84px) 0; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2, .badges-copy h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head p, .badges-copy p { color: var(--muted); font-size: 18px; margin-top: 12px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  padding-top: clamp(24px, 5vw, 64px);
}
.eyebrow { color: var(--mint); font-weight: 800; font-size: 14px; letter-spacing: 0.02em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 88px); font-weight: 900; letter-spacing: -0.03em; line-height: 0.98; }
.lede { color: var(--muted); font-size: clamp(18px, 1.8vw, 21px); max-width: 30ch; margin-top: 24px; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #120f27;
  padding: 10px 20px 10px 16px; border-radius: 14px;
}
.store span { display: flex; flex-direction: column; font-weight: 800; font-size: 19px; line-height: 1.1; }
.store small { font-weight: 600; font-size: 11.5px; }
.text-link { color: var(--coral-light); font-weight: 800; text-underline-offset: 4px; }

.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.phone {
  margin: 0; width: 78%; margin-left: 4%;
  border-radius: 46px; overflow: hidden;
  border: 8px solid #0b0a19;
  box-shadow: 0 0 0 1.5px var(--line), 0 40px 80px -20px #0009;
  rotate: -3deg;
}
.hero-wave { position: absolute; width: 46%; right: -6%; bottom: -4%; filter: drop-shadow(0 18px 24px #0007); }
.cloud { position: absolute; fill: var(--cloud); opacity: 0.85; filter: drop-shadow(0 0 18px #c9bdf266); }
.cloud.c1 { width: 120px; left: -14%; top: 46%; }
.cloud.c2 { width: 86px; right: 2%; top: 4%; opacity: 0.6; }

/* How a day works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; }
.shot {
  border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--card); border: 1px solid var(--line);
}
.shot img { width: 100%; object-fit: cover; object-position: top; height: 100%; }
.num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--coral); color: #fff; font-weight: 900; margin: 22px 0 12px;
}
.step h3 { font-size: 24px; }
.step p { color: var(--muted); margin-top: 8px; }

/* Broccolis */
.lineup {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 24px);
  padding: 0 0 26px; margin-bottom: 48px;
}
.lineup img { position: relative; z-index: 1; filter: drop-shadow(0 14px 16px #0006); }
.lineup .b-mini { width: clamp(80px, 12vw, 130px); }
.lineup .b-classic { width: clamp(110px, 16vw, 180px); }
.lineup .b-giant { width: clamp(140px, 21vw, 240px); }
.ground {
  position: absolute; left: 4%; right: 4%; bottom: 0; height: 64px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, var(--earth-rim), var(--earth) 70%);
}

.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; }
.rule { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.rule dt { font-weight: 900; color: var(--gold); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.rule dd { margin: 8px 0 0; color: var(--muted); }
.rule b { color: var(--ink); }

.seasons { margin-top: 64px; }
.seasons-note { color: var(--muted); font-size: 18px; max-width: 46ch; margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cards img { border-radius: 20px; border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; width: 100%; }
.cards img:nth-child(even) { translate: 0 22px; }
.cards figure { margin: 0; }

/* Badges */
.badges { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.badge-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 14px; }
.badge-grid li { text-align: center; }
.badge-grid img { width: 96px; margin: 0 auto 10px; filter: drop-shadow(0 8px 12px #0006); }
.badge-grid b { display: block; font-size: 15px; }
.badge-grid span { display: block; color: var(--faint); font-size: 13px; line-height: 1.35; margin-top: 2px; }

/* Broc */
.broc-card {
  display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center;
  background: linear-gradient(180deg, #2e2858, #1c1838);
  border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(24px, 4vw, 48px);
}
.broc-face { width: 180px; }
.broc-card h2 { font-size: clamp(28px, 3.6vw, 38px); }
.broc-card p { color: var(--muted); margin-top: 12px; max-width: 58ch; font-size: 18px; }
.fine { color: var(--faint) !important; font-size: 14px !important; }
.center { text-align: center; margin-top: 18px; }

/* Plus */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 30px; }
.plan h3 { font-size: 22px; }
.price { font-size: 40px; font-weight: 900; margin-top: 10px; letter-spacing: -0.02em; }
.price span { font-size: 17px; color: var(--muted); font-weight: 700; }
.price-alt { color: var(--muted); font-weight: 700; margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.plan li { padding-left: 30px; position: relative; color: var(--muted); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%23163a17' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan-plus { border: 1.5px solid var(--coral); background: linear-gradient(180deg, #33294f, var(--card)); }
.plan-plus h3 { color: var(--coral-light); }
.plans + .fine { max-width: 900px; }

/* Calm promises */
.calm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid var(--line); }
.calm h3 { font-size: 20px; }
.calm p { color: var(--muted); margin-top: 8px; }

/* Last call */
.last { text-align: center; padding-bottom: 72px; }
.last img { width: 190px; margin: 0 auto 18px; filter: drop-shadow(0 18px 24px #0007); }
.last h2 { font-size: clamp(34px, 5vw, 54px); }
.last p { color: var(--muted); font-size: 19px; margin-top: 12px; }

/* Footer */
.foot {
  max-width: 1160px; margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--line); color: var(--faint); font-size: 14px;
}
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 800; }
.foot-brand img { width: 24px; }

/* Tablet */
@media (max-width: 960px) {
  .rules { grid-template-columns: 1fr 1fr; }
  .badges { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards img:nth-child(even) { translate: none; }
}

/* Phone */
@media (max-width: 720px) {
  .links { display: none; }
  .soon-pill { margin-left: auto; font-size: 12.5px; padding: 7px 12px; }
  .soon-pill .long { display: none; }
  .lineup { gap: 0; margin-inline: -8px; }
  .lineup .b-mini { width: 22%; }
  .lineup .b-classic { width: 27%; }
  .lineup .b-giant { width: 33%; }
  .hero-wave { right: -2%; }
  .cloud.c1 { left: -6%; width: 90px; top: 44%; }
  .badge-grid img { width: 80px; }
  .brand span { font-size: 17px; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { width: min(86%, 340px); }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .shot { aspect-ratio: 5 / 4; }
  .rules { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .broc-card { grid-template-columns: 1fr; text-align: left; }
  .broc-face { width: 120px; }
  .plans { grid-template-columns: 1fr; }
  .calm { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
}

