:root {
  --green: #4caf50;
  --green-deep: #43a047;
  --muted: #8e8e93;
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #2d3436;
  --ink-soft: #636e72;
  --line: #e5e5ea;
  --wash: #f7f7f7;
  --select: rgba(76, 175, 80, 0.14);
  --highlight: #c8e6c9;
  --danger: #ff7675;
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --radius-card: 24px;
  --slide-ms: 5.5s;
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-edge: rgba(255, 255, 255, 0.82);
  --p: 0;
  --arc-x: 0vw;
  --arc-y: 0vh;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  scrollbar-color: var(--green) var(--paper);
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: color-mix(in srgb, var(--green) calc(var(--p) * 16%), var(--paper));
  line-height: 1.47;
}

::selection {
  background: var(--highlight);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: saturate(1.6) blur(22px);
  -webkit-backdrop-filter: saturate(1.6) blur(22px);
  border: 1px solid var(--glass-edge);
  box-shadow:
    0 10px 36px rgba(45, 52, 54, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--green);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus { top: 0.65rem; }

.scroll-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scroll-wash-arc {
  position: absolute;
  width: 140vmax;
  height: 140vmax;
  left: -70vmax;
  bottom: -70vmax;
  border-radius: 50%;
  transform: translate3d(var(--arc-x), calc(var(--arc-y) * -1), 0);
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--green) calc(var(--p) * 38%), transparent) 0%,
    color-mix(in srgb, var(--green) calc(var(--p) * 16%), transparent) 42%,
    transparent 66%
  );
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: saturate(1.8) blur(22px);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  border-bottom: 1px solid rgba(229, 229, 234, 0.65);
}

.site-header.is-stuck {
  box-shadow: 0 10px 28px -20px rgba(45, 52, 54, 0.35);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.15rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: none;
  gap: 1.1rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 0.12rem;
  transition: color 160ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.42rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease-out);
}

.nav-links a:hover,
.nav-links a[aria-current="location"] { color: var(--ink); }

.nav-links a:hover::after,
.nav-links a[aria-current="location"]::after { transform: scaleX(1); }

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-edge);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 600 0.85rem/1 var(--sans);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font: 600 1.05rem/1 var(--sans);
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, filter 160ms ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover { filter: brightness(0.96); }

.recipe-card {
  background: var(--glass-bg);
  backdrop-filter: saturate(1.5) blur(20px);
  -webkit-backdrop-filter: saturate(1.5) blur(20px);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(45, 52, 54, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.recipe-band {
  background: rgba(76, 175, 80, 0.14);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.recipe-band small {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--green);
}

.hero { padding: 2rem 0 3.4rem; overflow: visible; position: relative; z-index: 1; }

.hero .wrap { overflow: visible; }

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  order: 1;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  order: 2;
}

.hero-rule {
  height: 1px;
  width: 100%;
  background: var(--line);
  border: 0;
  order: 3;
}

.deck-main {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  position: relative;
  z-index: 2;
  order: 4;
}

.plan-body .lede {
  margin-top: 0.45rem;
}

.hero-intro .display {
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 7.2vw, 5.15rem);
  margin: 0;
}

.display {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: clamp(2rem, 5.4vw, 3.35rem);
  margin: 0;
}

.display-lg {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.note-spaced {
  margin-top: 1.1rem;
}

.lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
}

.note {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-cta .note { margin: 0; }

.deck {
  display: grid;
  gap: 1.1rem;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 0.4rem;
}

.thesis-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.thesis {
  appearance: none;
  position: relative;
  overflow: hidden;
  width: auto;
  min-width: 3.35rem;
  min-height: 3.1rem;
  padding: 0.42rem 0.52rem 0.58rem;
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  font: 600 0.72rem/1.1 var(--sans);
  display: grid;
  justify-items: center;
  gap: 0.22rem;
  flex: 0 0 auto;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}

.thesis:active { transform: scale(0.985); }

@media (hover: hover) and (pointer: fine) {
  .thesis:hover:not(.is-active) {
    color: var(--green);
    background: var(--highlight);
    border-color: rgba(76, 175, 80, 0.28);
  }
}

.thesis.is-active {
  color: var(--green);
  background: var(--select);
  border-color: rgba(76, 175, 80, 0.35);
}

.thesis-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.thesis-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 32px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thesis-name { letter-spacing: -0.01em; }

.thesis-bar {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 4px;
}

.thesis.is-active .thesis-bar {
  animation: thesis-fill var(--slide-ms) linear forwards;
}

@keyframes thesis-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.copy-stage,
.phone-stage {
  display: grid;
}

.copy-stage {
  position: relative;
  z-index: 2;
}

.phone-stage {
  justify-self: center;
  justify-items: center;
  padding: 0.35rem 1.25rem 4.25rem;
  overflow: visible;
  position: relative;
  z-index: 1;
  order: 5;
}

.slide {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out);
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slide-copy.glass {
  padding: 1rem 1.05rem;
  border-radius: 24px;
  max-width: 36rem;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  border: 1px solid var(--green);
}

@media (min-width: 860px) {
  .slide-copy.glass {
    border: 1px solid var(--glass-edge);
    box-shadow:
      0 10px 36px rgba(45, 52, 54, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

.slide-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.slide-lead {
  margin-bottom: 0.4rem !important;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 1.12rem !important;
  letter-spacing: -0.02em;
}

.slide-phone {
  margin: 0;
}

.slide-phone img {
  width: min(18.5rem, 100%);
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: 0 36px 56px -10px rgba(45, 52, 54, 0.32);
}

.field { margin-bottom: 0.85rem; }

#contact-form { position: relative; }
#form-status.is-error { color: #d32f2f; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.download-cta {
  justify-content: center;
  margin-top: 1.6rem;
}

.section { padding: 2.4rem 0; }

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 0.45rem;
}

.section-lead {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
  max-width: 38rem;
  font-size: 1.02rem;
}

.plans {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.plans .recipe-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.plan-price {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0.15rem 0 0.35rem;
}

.plan-body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(229, 229, 234, 0.9);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  font: 1rem/1.4 var(--sans);
  color: var(--ink);
  caret-color: var(--green);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  background: #fff;
}

.site-footer {
  border-top: 1px solid rgba(229, 229, 234, 0.8);
  padding: 0.35rem 0;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 1rem;
  min-height: 2.2rem;
  overflow-x: auto;
}

.site-footer .brand {
  font-size: 0.98rem;
}

.site-footer .note {
  margin: 0;
  font-size: 0.82rem;
  white-space: nowrap;
}

.site-footer .cookie-note {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0.2rem auto 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft);
  white-space: normal;
}

.site-footer .cookie-note a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .cookie-note a:hover {
  color: var(--ink);
}

.legal-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
}

.legal-nav a { color: var(--ink-soft); text-decoration: none; }
.legal-nav a:hover { color: var(--ink); }

.legal-page {
  padding: 2rem 0 3.5rem;
  width: min(760px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.back-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 480px) {
  .site-footer .wrap { gap: 0.4rem 0.55rem; }
  .site-footer .brand,
  .legal-nav,
  .site-footer .note { font-size: 0.78rem; }
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .deck {
    width: max-content;
    grid-template-columns: minmax(20rem, 34rem) 19.5rem;
    grid-template-rows: auto auto auto;
    column-gap: 2rem;
    row-gap: 1.7rem;
    justify-content: center;
    align-items: start;
  }
  .hero-intro {
    grid-column: 1;
    grid-row: 1;
  }
  .hero-cta {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    align-self: center;
    min-height: 0;
  }
  .hero-rule {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .deck-main {
    grid-column: 1;
    grid-row: 3;
  }
  .phone-stage {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    justify-self: stretch;
    justify-items: center;
    padding: 0.15rem 0 4.25rem;
  }
  .slide-phone img { width: min(19rem, 100%); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .thesis,
  .nav-links a,
  .nav-links a::after,
  .slide,
  .lang-btn,
  .site-header {
    transition: none;
  }
  .thesis.is-active .thesis-bar,
  .thesis-bar { animation: none; }
  .scroll-wash-arc { transform: none; }
}
