/* Kettlebud website. Tokens follow the Figma file (Colour · Primitives, Layout · Primitives). */
:root {
  --green-50: #f1faf3;
  --green-100: #e3f6e8;
  --green-200: #c8ecd3;
  --green-300: #91d7a7;
  --green-500: #159447;
  --green-600: #0f7f3d;
  --green-700: #0b6834;
  --green-900: #073f22;
  --cream-50: #fffcf7;
  --cream-100: #fbf7f1;
  --cream-200: #f2eee8;
  --line: #e4e2df;
  --ink: #0b1b30;
  --ink-2: #465063;
  --ink-3: #5e6879;
  --sky-300: #a9e3fb;
  --sky-500: #55b8e6;
  --sun-50: #fff8e3;
  --sun-400: #ffcc2f;
  --flower: #f25daa;
  --hw: #1c3a5b;

  --r-12: 12px;
  --r-16: 16px;
  --r-20: 20px;
  --r-24: 24px;
  --r-full: 999px;

  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-card: 0 1px 2px rgba(11, 27, 48, .04), 0 8px 24px rgba(11, 27, 48, .06);
  --shadow-float: 0 2px 4px rgba(11, 27, 48, .06), 0 18px 40px rgba(11, 27, 48, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-12); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 8px; }

.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9em; }
.eyebrow--green { color: var(--green-600); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.small { font-size: .95rem; color: var(--ink-3); }
.fineprint { font-size: .85rem; color: var(--ink-3); margin-top: 1rem; }
.hl { color: var(--green-500); }

/* Buttons: the app's raised pill, with a darker edge below */
.btn {
  --bg: var(--green-500); --edge: var(--green-700); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none;
  color: var(--fg); background: var(--bg);
  border: 0; border-radius: var(--r-full);
  padding: 15px 26px; min-height: 52px;
  box-shadow: 0 4px 0 var(--edge);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn--sm { padding: 10px 18px; min-height: 44px; font-size: .95rem; box-shadow: 0 3px 0 var(--edge); }
.btn--ghost { --bg: #fff; --edge: var(--line); --fg: var(--green-600); border: 2px solid var(--line); }
.btn--sun { --bg: var(--sun-400); --edge: #d9a800; --fg: var(--ink); }
.btn--block { width: 100%; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 14px; padding: 9px 20px 9px 16px; min-height: 56px;
  box-shadow: 0 4px 0 #000;
  transition: transform .12s ease, box-shadow .12s ease;
}
.store-badge:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.store-badge svg { width: 28px; height: 28px; }
.store-badge span { display: flex; flex-direction: column; font-weight: 800; font-size: 1.25rem; line-height: 1.05; }
.store-badge small { font-size: .7rem; font-weight: 600; opacity: .85; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 252, 247, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 1.3rem; color: var(--ink); }
.brand img { width: 40px; height: 40px; margin: -4px 0 -6px -6px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 700; color: var(--ink-2); font-size: .97rem; }
.nav__links a:hover { color: var(--green-600); }

/* Hero */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 520px at 80% 20%, var(--green-100), transparent 60%); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 28px 0 24px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.hero__facts li::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; border-radius: 50%; background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.hero__art { position: relative; min-height: 600px; display: grid; place-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob--sun { width: 120px; height: 120px; background: var(--sun-400); top: 4%; right: 8%; opacity: .9; }
.blob--sky { width: 380px; height: 380px; background: var(--sky-300); opacity: .45; bottom: 6%; left: 2%; }

.phone {
  position: relative; margin: 0;
  width: min(300px, 78vw); aspect-ratio: 402 / 874;
  border-radius: 46px; padding: 10px;
  background: var(--ink);
  box-shadow: var(--shadow-float), inset 0 0 0 2px #2a3a52;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; background: #fff; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: var(--ink); border-radius: var(--r-full); }
.phone--hero { transform: rotate(3deg); width: min(310px, 74vw); }

.float-card {
  position: absolute; background: #fff; border-radius: var(--r-20); padding: 12px 16px;
  box-shadow: var(--shadow-float); display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: var(--ink-2);
  animation: bob 6s ease-in-out infinite;
}
.float-card strong { color: var(--ink); font-size: 1rem; }
.float-card--pr { top: 16%; left: 0; transform: rotate(-4deg); }
.float-card--rest { bottom: 20%; right: 0; flex-direction: row; align-items: center; gap: 12px; animation-delay: -3s; }
.float-card--rest div { display: flex; flex-direction: column; }
.pill { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: var(--r-full); margin-bottom: 4px; }
.pill--sun { background: var(--sun-400); color: var(--ink); }
.ring { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(var(--sky-500) calc(var(--p) * 360deg), var(--cream-200) 0); position: relative; }
.ring::after { content: ""; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.hero__coach { position: absolute; width: 150px; height: 150px; bottom: 4%; left: -2%; animation: hop 3.2s ease-in-out infinite; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes hop { 0%, 100% { translate: 0 0; } 45% { translate: 0 -14px; } 55% { translate: 0 -14px; } }

/* Strip */
.strip { background: var(--green-500); color: #fff; }
.strip__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 16px 0; font-weight: 800; font-size: .95rem; }
.strip__inner span { display: inline-flex; align-items: center; gap: 8px; }
.strip__inner span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun-400); }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--cream-100); }
.section__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.problem__coach { width: 120px; height: 120px; margin: 0 auto 16px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-24); padding: 28px; box-shadow: var(--shadow-card); }
.step__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green-100); color: var(--green-600); font-weight: 900; font-size: 1.3rem; margin-bottom: 18px; }
.step p { color: var(--ink-2); margin: 0; }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature .phone { justify-self: center; }
.feature--flip .phone, .feature--flip .coach-stage { order: 2; }
.feature__copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; }
.feature__copy > p { color: var(--ink-2); font-size: 1.08rem; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%23159447' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ticks strong { color: var(--ink); }
.ticks--light li { color: rgba(255, 255, 255, .88); }
.ticks--light li::before { background-color: rgba(255, 255, 255, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%23ffcc2f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.stages { list-style: none; counter-reset: s; padding: 0; margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stages li { counter-increment: s; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-16); padding: 10px 12px; font-weight: 800; font-size: .95rem; }
.stages li::before { content: counter(s); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font-size: .85rem; }

/* Coach chat */
.coach-stage { position: relative; justify-self: center; width: min(440px, 100%); background: linear-gradient(180deg, var(--sky-300), #d9f1fc 55%, var(--green-100)); border-radius: 32px; padding: 32px 24px 28px; box-shadow: var(--shadow-card); }
.coach-stage__coach { width: 150px; height: 150px; margin: 0 auto 4px; animation: hop 3.6s ease-in-out infinite; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat__bubble { margin: 0; background: #fff; border-radius: 20px 20px 20px 6px; padding: 12px 16px; box-shadow: var(--shadow-card); max-width: 88%; }
.chat__bubble--me { align-self: flex-end; background: var(--green-500); color: #fff; border-radius: 20px 20px 6px 20px; }
.chat__receipt { margin: 2px 0 0; align-self: flex-start; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--green-700); background: var(--green-100); border-radius: var(--r-full); padding: 4px 12px; }

/* Split + chips */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: var(--r-full); padding: 9px 16px; font-weight: 700; color: var(--ink-2); box-shadow: 0 3px 0 var(--line); }
.chip--on { border-color: var(--green-500); color: var(--green-600); background: var(--green-50); box-shadow: 0 3px 0 var(--green-300); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-24); padding: 24px; box-shadow: var(--shadow-card); }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-16); background: var(--c); margin-bottom: 16px; }
.card__icon svg { width: 28px; height: 28px; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin-inline: auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: var(--shadow-card); }
.plan .ticks { flex: 1; margin-bottom: 28px; }
.plan__price { font-size: 2.1rem; font-weight: 900; margin: 4px 0 4px; }
.plan__price span { font-size: .95rem; font-weight: 700; color: var(--ink-3); margin-left: 4px; }
.plan--hw { background: var(--hw); border-color: var(--hw); color: #fff; overflow: hidden; }
.plan--hw .plan__price span { color: rgba(255, 255, 255, .7); }
.plan--hw .plan__price { color: var(--sun-400); }
.plan__coach { position: absolute; top: -6px; right: -4px; width: 120px; height: auto; opacity: .95; }
.plan--hw h3, .plan--hw .plan__price { position: relative; max-width: calc(100% - 96px); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-20); padding: 0 22px; box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 1.08rem; padding: 20px 36px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v10M7 12h10' stroke='%23159447' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* Final CTA */
.final { background: var(--green-500); color: #fff; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--green-600); top: -260px; right: -160px; }
.final__inner { position: relative; text-align: center; max-width: 680px; }
.final .lead { color: rgba(255, 255, 255, .9); }
.final__coach { width: 180px; height: 180px; margin: 0 auto 8px; animation: hop 2.8s ease-in-out infinite; }
.signup { display: flex; gap: 10px; max-width: 520px; margin: 28px auto 0; }
.signup input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 14px 20px; min-height: 54px; border-radius: var(--r-full); border: 2px solid transparent; background: #fff; color: var(--ink); }
.signup input:focus { outline: none; border-color: var(--sun-400); }
.signup__msg { min-height: 1.5em; margin: 12px 0 0; font-weight: 700; }
.final .fineprint { color: rgba(255, 255, 255, .75); }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 48px 0; font-size: .92rem; }
.footer__inner { display: grid; gap: 14px; }
.brand--light { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a { color: #fff; font-weight: 700; text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer p { margin: 0; max-width: 60em; }
.footer__copy { opacity: .7; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Layout below desktop */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__inner .btn { margin-left: auto; }
  .hero__grid, .feature, .split { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta-row, .hero__facts { justify-content: center; }
  .hero__art { min-height: 560px; }
  .feature--flip .phone, .feature--flip .coach-stage { order: 0; }
  .feature__copy { max-width: 620px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand span { font-size: 1.15rem; }
  .hero__art { min-height: 500px; }
  .float-card--pr { left: -4px; top: 8%; }
  .float-card--rest { right: -4px; bottom: 16%; }
  .hero__coach { display: none; }
  .hero__art { min-height: 460px; }
  .blob--sky { width: 260px; height: 260px; }
  .cards { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .plan { padding: 26px 22px; }
  .step, .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
