/* blby.com.au. The app's Gum leaf look (design/feature/blby-redesign.md):
   Gum for actions and headings, Leaf for savings and good news (always
   with ink text), Mist for the page, Bricolage Grotesque for display and
   Figtree for everything else. No build step: this file is served as is. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/assets/fonts/BricolageGrotesque-Bold.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/assets/fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Figtree-Regular.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("/assets/fonts/Figtree-Medium.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Figtree-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Figtree-Bold.woff2") format("woff2"); }

:root {
  --gum: #1E5B45;
  --gum-deep: #164635;
  --gum-tint: #DDEBE2;
  --leaf: #C9EA73;
  --blush: #F6B3A8;
  --mist: #F3F5EE;
  --paper: #FFFFFF;
  --ink: #15241C;
  --ink2: #3D4C43;
  --ink3: #5E6D63;
  --hair: #DDE3D8;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
  --card: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gum); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gum); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--paper); padding: 10px 14px; border-radius: 10px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-gum { background: var(--gum); color: #fff; }
.btn-gum:hover { background: var(--gum-deep); }
.btn-line { border-color: var(--gum); color: var(--gum); background: transparent; }
.btn-line:hover { background: var(--gum-tint); }
.btn-leaf { background: var(--leaf); color: var(--ink); }
.btn-leaf:hover { filter: brightness(0.96); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ── header ── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 245, 238, 0.92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
/* The icon and the name (design/brand/logo/icon.py writes lockup.svg). */
.wordmark { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.wordmark img { height: 39px; width: auto; display: block; }
.foot .wordmark img { height: 33px; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 0; }
.top nav a:hover { color: var(--gum); }

/* ── hero ── */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--leaf); color: var(--ink); border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 14px;
}
.hero h1 { font-weight: 800; font-size: clamp(44px, 6.4vw, 84px); margin: 20px 0 20px; }
.hero h1 em { font-style: normal; color: var(--gum); }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink2); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-note { margin-top: 14px; font-size: 14.5px; color: var(--ink3); }
.stat {
  display: none; margin-top: 26px; align-items: baseline; gap: 10px;
  padding: 14px 18px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--card);
  width: fit-content;
}
.stat.on { display: inline-flex; }
.stat b { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--gum); letter-spacing: -0.02em; }
.stat span { color: var(--ink2); font-weight: 600; font-size: 15.5px; }

/* ── a phone, drawn ── */
.phone {
  position: relative; width: min(100%, 330px); margin: 0 auto;
  background: var(--ink); border-radius: 48px; padding: 10px;
  box-shadow: 0 30px 60px -24px rgba(21, 36, 28, 0.45), 0 2px 0 rgba(255, 255, 255, 0.06) inset;
}
.phone img { border-radius: 39px; width: 100%; height: auto; aspect-ratio: 640 / 1391; background: var(--mist); }
.hero .phone { transform: rotate(2.5deg); }
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% -6% 4% 6%;
  background: var(--leaf); border-radius: 48px; transform: rotate(-4deg); z-index: -1;
}

/* ── stores ── */
.stores { padding: 18px 0 8px; }
.stores-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; color: var(--ink3); font-weight: 600; font-size: 15px; }
.chip { background: var(--paper); border: 1px solid var(--hair); border-radius: 999px; padding: 8px 16px; color: var(--ink); font-weight: 700; }

/* ── sections ── */
section { scroll-margin-top: 84px; }
.block { padding: 72px 0; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gum); }
.block h2 { font-weight: 800; font-size: clamp(32px, 4vw, 50px); margin: 12px 0 16px; }
.block .intro { color: var(--ink2); font-size: 19px; max-width: 36em; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 44px 0; }
.feature + .feature { border-top: 1px solid var(--hair); }
.feature:nth-of-type(even) .feature-art { order: 2; }
.feature-art { background: var(--gum-tint); border-radius: 36px; padding: 40px 24px 0; overflow: hidden; }
.feature-art .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; margin-bottom: -180px; box-shadow: 0 24px 50px -24px rgba(21, 36, 28, 0.4); }
.feature-art .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.feature:nth-of-type(2) .feature-art { background: #FBE3DE; }
.feature:nth-of-type(3) .feature-art { background: #EAF5C9; }
.feature h3 { font-weight: 800; font-size: clamp(27px, 3vw, 38px); margin: 10px 0 14px; }
.feature p { color: var(--ink2); font-size: 18px; max-width: 30em; }
.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.ticks li::before {
  content: "\2713"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--leaf); color: var(--ink); font-size: 14px; font-weight: 700;
  display: grid; place-items: center; margin-top: 1px;
}
.plus-tag { display: inline-block; margin-left: 6px; background: var(--gum); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; vertical-align: 2px; }

/* ── free and Plus ── */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.plan { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--card); padding: 30px; }
.plan h3 { font-weight: 800; font-size: 30px; }
.plan .sub { color: var(--ink3); margin-top: 6px; font-weight: 500; }
.plan .ticks { margin-top: 22px; }
.plan-plus { background: var(--gum); border-color: var(--gum); color: #fff; }
.plan-plus h3 { color: #fff; }
.plan-plus .sub { color: var(--gum-tint); }
.plan-plus .ticks li { color: #fff; }
.plans-note { margin-top: 18px; color: var(--ink3); font-size: 15.5px; }

/* ── questions ── */
.faq { max-width: 780px; margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--hair); border-radius: 18px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-weight: 700; font-size: 18px; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 26px; font-weight: 500; color: var(--gum); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--ink2); }

/* ── get the app ── */
.get { background: var(--gum); color: #fff; border-radius: 36px; padding: 56px 40px; text-align: center; }
.get h2 { color: #fff; font-weight: 800; font-size: clamp(32px, 4.4vw, 54px); }
.get p { color: var(--gum-tint); margin-top: 14px; font-size: 19px; }
.get .cta { justify-content: center; }
.get .cta-note { color: var(--gum-tint); }

/* ── footer ── */
.foot { padding: 44px 0 56px; color: var(--ink3); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.foot a { color: var(--ink2); text-decoration: none; font-weight: 600; padding: 10px 0; display: inline-block; }
.foot a:hover { color: var(--gum); text-decoration: underline; }
.foot .small { margin-top: 18px; max-width: 60em; line-height: 1.5; }

/* ── plain pages: legal, help, not found ── */
.page { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 40px; }
.page h1 { font-weight: 800; font-size: clamp(36px, 5vw, 54px); }
.page .date { display: block; color: var(--ink3); margin-top: 10px; font-weight: 500; }
.page h2 { font-weight: 700; font-size: 25px; margin: 38px 0 10px; letter-spacing: -0.01em; line-height: 1.2; }
.page h3 { font-weight: 700; font-size: 20px; margin: 26px 0 8px; letter-spacing: 0; line-height: 1.25; }
.page p, .page li { color: var(--ink2); }
.page p { margin: 14px 0; }
.page ul, .page ol { margin: 12px 0; padding-left: 22px; list-style: disc; }
.page ol { list-style: decimal; }
.page li { margin: 6px 0; }
.page table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.page th, .page td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.page .note { background: var(--paper); border: 1px solid var(--hair); border-left: 5px solid var(--leaf); border-radius: 14px; padding: 14px 18px; color: var(--ink); }
.page .card { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--card); padding: 24px; margin: 18px 0; }
.page .card h2 { margin-top: 0; }

/* ── share pages (/p, /r, /l, /g), drawn by server.js ── */
.responder { max-width: 560px; margin: 0 auto; padding: 28px 20px 64px; }
.responder .crumb { font-size: 13px; font-weight: 700; color: var(--gum); letter-spacing: 0.08em; text-transform: uppercase; }
.responder h1 { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.1; margin: 8px 0 12px; }
.responder .hero-img { width: 100%; max-width: 360px; aspect-ratio: 1 / 1; object-fit: contain; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--card); display: block; margin: 16px auto; }
.responder .price-row { display: flex; align-items: baseline; gap: 14px; margin: 12px 0; }
.responder .price-now { font-family: var(--display); font-size: 38px; font-weight: 800; color: var(--gum); }
.responder .price-was { font-size: 18px; text-decoration: line-through; color: var(--ink3); }
.responder .save-pill { display: inline-block; background: var(--leaf); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.responder .meta { font-size: 15px; color: var(--ink3); margin: 6px 0; }
.responder .open-cta { display: block; text-align: center; background: var(--gum); color: #fff; padding: 16px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; margin: 24px 0 12px; }
.responder .stores { display: flex; gap: 10px; justify-content: center; margin-top: 14px; padding: 0; }
.responder .stores a { flex: 1; text-align: center; padding: 14px; border-radius: 999px; text-decoration: none; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.responder .footer-note { text-align: center; font-size: 13px; color: var(--ink3); margin-top: 32px; }
.responder .ingredients { padding: 0; list-style: none; margin: 16px 0; }
.responder .ingredients li { padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.responder .ingredients li:last-child { border-bottom: none; }

/* ── narrow screens ── */
@media (max-width: 880px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { padding: 36px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .phone { width: min(78%, 300px); }
  .block { padding: 52px 0; }
  .feature { grid-template-columns: 1fr; gap: 26px; padding: 36px 0; }
  .feature:nth-of-type(even) .feature-art { order: 0; }
  .feature-art { padding: 30px 20px 0; }
  .feature-art .phone { width: min(74%, 280px); margin-bottom: -150px; }
  .plans { grid-template-columns: 1fr; }
  .get { padding: 44px 22px; border-radius: 28px; }
  .foot nav { margin-left: 0; }
}
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .cta .btn { flex: 1 1 100%; }
  .plan { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* A shared list's first few items. */
.responder .shared-list { list-style: none; padding: 0; margin: 16px 0; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--card); }
.responder .list-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--hair); font-size: 15px; }
.responder .list-item:last-child { border-bottom: none; }
.responder .list-item img { border-radius: 10px; object-fit: contain; background: var(--mist); flex: none; }
.responder .list-item span { flex: 1; min-width: 0; }
.responder .list-item strong { font-family: var(--display); }
