/* =========================================================
   Learn with Leo — Design System
   White ground, green accent, liquid glass surfaces.
   Shared with the Polish site (uczsiezleo.pl): keep in step.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Palette */
  --bg: #f6faf7;
  --white: #ffffff;
  --fg: #0b1a12;
  --fg-2: #33443a;
  --fg-muted: #6a7a70;
  --green: #16a34a;
  --green-2: #22c55e;
  --green-3: #86efac;
  --green-soft: #e8f8ee;
  --green-ink: #117a38;
  --lime: #bef264;
  --mint: #5eead4;

  --hair: rgba(11, 26, 18, 0.09);
  --hair-soft: rgba(11, 26, 18, 0.05);
  --surface: rgba(255, 255, 255, 0.6);

  /* Legacy names still read by legal.css */
  --flame: var(--green);
  --flame-2: var(--green-ink);
  --cream: var(--fg-2);
  --paper-2: var(--fg);

  /* Glass */
  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.42));
  --glass-blur: blur(22px) saturate(180%);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(11, 26, 18, 0.04),
    0 18px 48px -18px rgba(21, 101, 52, 0.22);

  /* Type */
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-display: clamp(2.5rem, 5.2vw, 4.4rem);
  --fs-h2: clamp(2.2rem, 5vw, 4rem);
  --fs-lead: clamp(1.05rem, 1.35vw, 1.22rem);
  --fs-label: 0.74rem;

  /* Space and shape */
  --gutter: clamp(18px, 4vw, 48px);
  --band: clamp(88px, 12vw, 160px);
  --maxw: 1240px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 40px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

::selection { background: var(--green-3); color: var(--fg); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Kept only so the legal pages' markup stays valid */
.grain { display: none; }

/* ---------- Ambient background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(rgba(11, 26, 18, 0.06) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--bg);
  -webkit-mask-image: linear-gradient(#000, #000);
}

.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246, 250, 247, 0) 0%, rgba(246, 250, 247, 0.6) 70%, var(--bg) 100%);
}

.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 26s var(--ease) infinite alternate;
}

.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -14vw; background: var(--green-3); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -8vw; top: 6vh; background: var(--lime); opacity: 0.38; animation-duration: 32s; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 30vw; top: 48vh; background: var(--mint); opacity: 0.3; animation-duration: 38s; }

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, 3vh, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, 6vh, 0) scale(0.96); }
}

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}

/* Specular highlight that follows the pointer (script sets --mx / --my) */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(420px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.75), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 38%);
  opacity: 0.8;
  transition: opacity 0.4s var(--ease);
}

/* Refractive rim: bright top-left edge fading into a faint green bottom edge */
.glass::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.1) 40%, rgba(34, 197, 94, 0.28) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.glass--tint {
  background: linear-gradient(145deg, rgba(232, 248, 238, 0.85), rgba(255, 255, 255, 0.5));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.94); }
}

/* ---------- Type helpers ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
}

.label::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-2);
}

.h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.04em;
}

.h2 em, .display em { color: var(--green); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 34em;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px 60px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head > div { display: grid; gap: 20px; }

.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.section-head--center .lead { margin-inline: auto; }

.band { padding-block: var(--band) 0; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg.btn__arrow { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }

.btn--green {
  color: #fff;
  background: linear-gradient(180deg, #2fd46a 0%, var(--green) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 6px rgba(9, 80, 36, 0.25),
    0 10px 28px -10px rgba(22, 163, 74, 0.7);
}

.btn--green:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 6px rgba(9, 80, 36, 0.25),
    0 16px 36px -10px rgba(22, 163, 74, 0.8);
}

.btn--glass {
  color: var(--fg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.5));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 1px 0 #fff, 0 6px 20px -8px rgba(11, 26, 18, 0.2);
}

.btn--glass:hover { background: #fff; }

/* PL: the app is not out yet, so its download buttons say so */
.btn--soon {
  color: var(--green-ink);
  background: linear-gradient(180deg, rgba(232, 248, 238, 0.95), rgba(220, 245, 229, 0.7));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35), inset 0 1px 0 #fff;
  cursor: default;
}

.btn--soon .btn__tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn--sm { --h: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--green-ink);
  text-decoration: none;
}

.tlink svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.masthead {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  transition: transform 0.5s var(--ease);
}

.masthead__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin-inline: auto;
  width: calc(100% - 2 * var(--gutter));
  height: 64px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 #fff, 0 10px 34px -16px rgba(11, 26, 18, 0.22);
  transition: box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.scrolled .masthead__inner {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  box-shadow: inset 0 1px 0 #fff, 0 14px 40px -14px rgba(11, 26, 18, 0.28);
}

.hide-head .masthead { transform: translateY(-140%); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.wordmark__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(11, 26, 18, 0.06), 0 6px 16px -6px rgba(22, 101, 52, 0.55);
}

.wordmark__sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.navlinks { display: flex; gap: 4px; }

.navlinks a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.navlinks a:hover { background: rgba(255, 255, 255, 0.85); color: var(--fg); }

.masthead__cta { display: flex; align-items: center; gap: 8px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px var(--hair);
  cursor: pointer;
  position: relative;
}

.burger i {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.burger i:first-child { top: 17px; }
.burger i:last-child { top: 25px; }
.nav-open .burger i:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger i:last-child { top: 21px; transform: rotate(-45deg); }

/* Mobile sheet */
.sheet {
  position: fixed;
  top: 90px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 49;
  padding: 18px;
  border-radius: var(--r-lg);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}

.nav-open .sheet { opacity: 1; transform: none; pointer-events: auto; }

.sheet__nav { display: grid; gap: 2px; }

.sheet__nav a {
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.sheet__nav a:hover { background: rgba(255, 255, 255, 0.8); }
.sheet__nav a.is-cta { margin-top: 8px; color: #fff; background: var(--green); text-align: center; }
.sheet__nav a.is-soon { margin-top: 8px; color: var(--green-ink); background: var(--green-soft); text-align: center; }

.sheet__foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px 0;
  border-top: 1px solid var(--hair);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green-2), var(--lime));
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(104px, 9vw, 124px);
}

.hero__copy { display: grid; gap: 20px; justify-items: start; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--fg-2);
}

.pill b { color: var(--green-ink); font-weight: 600; }

.pill__dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
}

.pill__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: ping 2.2s var(--ease) infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
}

.display {
  font-size: var(--fs-display);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.display em { display: inline-block; padding-right: 0.06em; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

.hero__proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero__proof svg { width: 16px; height: 16px; color: var(--green); }

/* ---------- Qualify form (UK hero) ---------- */
.qualify {
  width: 100%;
  max-width: 540px;
  padding: 22px;
  border-radius: var(--r-lg);
}

.qualify fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.qualify legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.qualify__hint { font-size: 0.88rem; color: var(--fg-muted); margin-bottom: 16px; }

.choices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.choice { position: relative; }

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: grid;
  place-items: center;
  height: 50px;
  padding: 0 10px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.15;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 #fff;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--spring);
}

.choice--other span { font-size: 0.84rem; font-weight: 500; color: var(--fg-2); }

.choice input:hover + span { background: #fff; }
.choice input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--green), inset 0 1px 0 #fff; }

.choice input:checked + span {
  color: var(--green-ink);
  background: linear-gradient(180deg, #f3fdf6, var(--green-soft));
  box-shadow: inset 0 0 0 2px var(--green-2), inset 0 1px 0 #fff, 0 8px 20px -10px rgba(22, 163, 74, 0.55);
  transform: translateY(-1px);
}

.qualify__result {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  animation: rise 0.55s var(--ease) both;
}

.qualify__result p { color: var(--fg-2); font-size: 0.95rem; }
.qualify__result strong { color: var(--fg); }
.qualify__small { font-size: 0.8rem !important; color: var(--fg-muted) !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero visual ---------- */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.hero__halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35), rgba(190, 242, 100, 0.2) 45%, transparent 70%);
  filter: blur(30px);
}

.phone {
  position: relative;
  width: min(270px, 64vw);
  padding: 10px;
  border-radius: 48px;
  transform: rotate(-3deg);
  transition: transform 0.8s var(--ease);
}

.phone:hover { transform: rotate(0deg) translateY(-6px); }

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 346 / 750;
  object-fit: cover;
  object-position: top;
  border-radius: 38px;
  box-shadow: 0 0 0 1px rgba(11, 26, 18, 0.06);
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  font-size: 0.86rem;
  line-height: 1.25;
  animation: bob 7s ease-in-out infinite;
}

.float b { display: block; font-size: 1.05rem; letter-spacing: -0.02em; }
.float small { color: var(--fg-muted); font-size: 0.78rem; }

.float__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--green-ink);
  background: var(--green-soft);
  box-shadow: inset 0 1px 0 #fff;
}

.float__icon svg { width: 20px; height: 20px; }

.float--a { top: 12%; left: -2%; }
.float--b { top: 46%; right: -4%; animation-delay: -2.4s; }
.float--c { bottom: 9%; left: 4%; animation-delay: -4.6s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ring {
  --p: 86;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #fff 72%, transparent 73% 100%),
    conic-gradient(var(--green-2) calc(var(--p) * 1%), var(--green-soft) 0);
}

/* ---------- Marquee ---------- */
.marquee {
  margin-top: clamp(40px, 7vw, 90px);
  padding-block: 22px;
  overflow: hidden;
  border-block: 1px solid var(--hair-soft);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--fg-2);
}

.marquee__item em { color: var(--green); }

.marquee__item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-3), var(--green));
}

@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  padding: 26px 24px;
  border-radius: var(--r-md);
}

.stat__num {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__num sup { font-size: 0.36em; font-weight: 600; margin-left: 4px; color: var(--green); vertical-align: super; letter-spacing: 0; }
.stat__label { margin-top: 12px; font-size: 0.9rem; color: var(--fg-muted); }

/* ---------- Bento features ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.tile--wide { grid-column: span 4; }
.tile--half { grid-column: span 3; }

.tile h3 { font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.15; }
.tile p { color: var(--fg-2); font-size: 0.97rem; }

.tile__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(160deg, #3ddc78, var(--green));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 18px -8px rgba(22, 163, 74, 0.7);
}

.tile__icon svg { width: 22px; height: 22px; }

.tile__demo { margin-top: auto; padding-top: 10px; }

/* Flashcard demo */
.card-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-demo__face {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px var(--hair-soft), 0 10px 26px -16px rgba(11, 26, 18, 0.3);
  font-weight: 600;
  line-height: 1.35;
}

.card-demo__face small {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.card-demo__face--answer {
  color: var(--green-ink);
  background: linear-gradient(160deg, #f3fdf6, var(--green-soft));
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.3), 0 10px 26px -16px rgba(22, 163, 74, 0.5);
}

/* Review demo: bars getting further apart */
.intervals { display: flex; align-items: flex-end; gap: 8px; height: 90px; }

.intervals span {
  flex: 1;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--green-3), var(--green-2));
  opacity: 0.9;
}

.intervals-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green-ink);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.formula {
  padding: 16px 18px;
  border-radius: 16px;
  font-family: var(--mono);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px var(--hair-soft);
}

.formula b { color: var(--green-ink); font-weight: 500; }

/* ---------- Qualification cards ---------- */
.quals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quals--four { grid-template-columns: repeat(4, 1fr); }

.qual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.qual:hover { transform: translateY(-6px); }

.qual__top { display: flex; justify-content: space-between; align-items: center; }

.qual__badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.qual__num {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--green-ink);
  background: var(--green-soft);
}

.qual h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -0.045em; }
.qual h3 em { color: var(--green); }
.qual__sub { font-weight: 600; color: var(--fg); }
.qual p { color: var(--fg-2); font-size: 0.96rem; }

.qual__meter { margin-top: auto; display: grid; gap: 8px; }

.qual__meter-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(11, 26, 18, 0.06);
  overflow: hidden;
}

.qual__meter-bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-3), var(--green-2));
}

.qual__meter span { font-size: 0.8rem; color: var(--fg-muted); }

/* ---------- Screenshots ---------- */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 280px);
  gap: 22px;
  overflow-x: auto;
  padding: 16px var(--gutter) 34px;
  margin-inline: calc(-1 * var(--gutter));
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--green-3) transparent;
}

.shot {
  margin: 0;
  scroll-snap-align: start;
  display: grid;
  gap: 14px;
}

.shot__frame {
  padding: 8px;
  border-radius: 38px;
  transition: transform 0.6s var(--ease);
}

.shot:hover .shot__frame { transform: translateY(-8px); }

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 346 / 750;
  object-fit: cover;
  object-position: top;
  border-radius: 30px;
  background: #fff;
}

.shot figcaption { font-size: 0.88rem; color: var(--fg-muted); padding-inline: 8px; }
.shot figcaption b { color: var(--fg); font-weight: 600; }

/* ---------- Routine steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 30px 28px 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.step__idx {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--green-ink);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25);
}

.step h3 { font-size: 1.4rem; letter-spacing: -0.025em; }
.step p { color: var(--fg-2); font-size: 0.97rem; }

.step__ghost {
  position: absolute;
  right: -6px;
  bottom: -30px;
  font-size: 9rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(34, 197, 94, 0.08);
  pointer-events: none;
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: 18px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 32px;
  border-radius: var(--r-xl);
}

.plan__name {
  font-family: var(--mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price span { font-size: clamp(3rem, 6vw, 4.2rem); font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.plan__price sup { font-size: 1rem; color: var(--fg-muted); vertical-align: baseline; }
.plan__note { margin-top: -8px; font-size: 0.9rem; color: var(--green-ink); font-weight: 500; }

.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.plan__list li {
  position: relative;
  padding-left: 30px;
  color: var(--fg-2);
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23117a38' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--green-soft);
}

.plan .btn { margin-top: auto; }

.plan--featured {
  background: linear-gradient(155deg, rgba(232, 248, 238, 0.95), rgba(255, 255, 255, 0.55) 60%);
  box-shadow: var(--glass-shadow), 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.plan__flag {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  background: var(--green);
}

.fineprint {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--fg-muted);
}

.fineprint a { color: var(--green-ink); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-inline: auto;
}

.faq details {
  border-radius: 22px;
  padding: 0 24px;
  transition: background 0.3s var(--ease);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary i {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-soft);
  transition: transform 0.45s var(--ease), background 0.3s var(--ease);
}

.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-ink);
}

.faq summary i::after { transform: rotate(90deg); transition: transform 0.45s var(--ease); }
.faq details[open] summary i { transform: rotate(180deg); background: var(--green-3); }
.faq details[open] summary i::after { transform: rotate(0deg); }

.faq details p { padding-bottom: 22px; color: var(--fg-2); max-width: 64ch; }
.faq details a { color: var(--green-ink); }

/* ---------- CTA ---------- */
.cta {
  margin-top: var(--band);
}

.cta__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(56px, 8vw, 104px) clamp(22px, 5vw, 64px);
  border-radius: var(--r-xl);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(190, 242, 100, 0.55), transparent 55%),
    radial-gradient(90% 80% at 100% 100%, rgba(94, 234, 212, 0.45), transparent 60%),
    linear-gradient(150deg, #22c55e, #15803d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 40px 80px -40px rgba(21, 128, 61, 0.7);
}

.cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 70%);
  pointer-events: none;
}

.cta__panel > * { position: relative; }

.cta__panel .label { color: rgba(255, 255, 255, 0.9); }
.cta__panel .label::before { background: rgba(255, 255, 255, 0.8); }

.cta__title { font-size: clamp(2.8rem, 7vw, 5.6rem); letter-spacing: -0.05em; line-height: 0.98; }
.cta__title em { color: #eaffd0; }

.cta__panel .lead { color: rgba(255, 255, 255, 0.88); margin-inline: auto; }
.cta__panel .btn-row { justify-content: center; }

.cta__panel .btn--glass {
  color: var(--green-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.75));
}

.cta__panel .btn--ghost-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cta__panel .btn--ghost-light:hover { background: rgba(255, 255, 255, 0.24); }

.cta__mail { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }

.orb {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -10px 30px rgba(255, 255, 255, 0.12);
  animation: bob 9s ease-in-out infinite;
  pointer-events: none;
}

.orb--a { width: 160px; height: 160px; left: -40px; top: 30px; }
.orb--b { width: 90px; height: 90px; right: 8%; top: 18%; animation-delay: -3s; }
.orb--c { width: 220px; height: 220px; right: -70px; bottom: -80px; animation-delay: -6s; }

/* ---------- Footer ---------- */
.footer {
  margin-top: var(--band);
  padding-block: 64px 36px;
  border-top: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
}

.footer__col h4 {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer__brand h4 {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--fg);
}

.footer__brand p { max-width: 30em; color: var(--fg-2); font-size: 0.95rem; }

.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.footer__col a {
  font-size: 0.93rem;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer__col a:hover { color: var(--green-ink); }

.footer__mark {
  display: block;
  margin-block: 48px 20px;
  font-size: clamp(3.2rem, 13vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  white-space: nowrap;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.footer__legal a { color: inherit; text-decoration: none; }
.footer__legal a:hover { color: var(--green-ink); }

/* ---------- Back to top, toast ---------- */
.totop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.totop svg { width: 20px; height: 20px; color: var(--green-ink); }
.scrolled-deep .totop { opacity: 1; transform: none; pointer-events: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.93rem;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--spring);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease) calc(var(--d, 0) * 1ms),
    transform 1s var(--ease) calc(var(--d, 0) * 1ms),
    filter 0.9s var(--ease) calc(var(--d, 0) * 1ms);
}

.js [data-reveal="scale"] { transform: translateY(20px) scale(0.95); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .navlinks { display: none; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { min-height: 480px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--half { grid-column: span 1; }
  .tile--wide { grid-column: span 2; }
  .quals--four { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .quals, .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .masthead__cta .btn { display: none; }
  .masthead__inner { height: 58px; }
  .sheet { top: 84px; }
  .choices { grid-template-columns: repeat(3, 1fr); }
  .choice--other { grid-column: 1 / -1; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--half, .tile--wide { grid-column: span 1; }
  .quals--four { grid-template-columns: 1fr; }
  .card-demo { grid-template-columns: 1fr; }
  .hero__visual { min-height: 460px; }
  .float--a { left: -4px; }
  .float--b { right: -4px; }
  .footer__grid { grid-template-columns: 1fr; }
  .stat { padding: 20px 18px; }
  .plan { padding: 28px 22px; }
  .faq details { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
