:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --paper: #ffffff;
  --paper-soft: #fbfaf6;
  --ink: #17211c;
  --muted: #5c6861;
  --line: #ded8ca;
  --green: #26724a;
  --green-dark: #194d34;
  --blue: #2d5f8f;
  --teal: #247079;
  --amber: #a65f1d;
  --rose: #9c4f5f;
  --shadow: 0 24px 70px rgba(31, 39, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue);
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(246, 244, 238, 0.94);
  border-bottom: 1px solid rgba(222, 216, 202, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: clamp(0.9rem, 2.2vw, 1.8rem);
  font-size: 0.92rem;
  font-weight: 750;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.86fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(3.2rem, 7vw, 6.5rem) 5vw;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.status,
.tiny-label,
.panel-kicker {
  margin: 0 0 0.75rem;
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.1rem, 6.4vw, 6.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.25vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-text,
.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.65vw, 1.36rem);
}

.hero-actions,
.links,
.footer-links,
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.18rem;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(230px, 0.72fr);
  gap: 1rem;
  align-items: center;
}

.phone-shell {
  min-height: 520px;
  padding: 1.1rem;
  border: 1px solid rgba(23, 33, 28, 0.16);
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  box-shadow: var(--shadow);
}

.phone-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phone-topbar {
  width: 88px;
  height: 7px;
  margin: 0 auto 2rem;
  border-radius: 999px;
  background: #d7ddd8;
}

.app-hero-card,
.mini-product,
.product,
.proof-item,
.support-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.app-hero-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.app-hero-card img,
.product-title img,
.mini-product img {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
}

.app-hero-card strong,
.mini-product strong {
  display: block;
  font-size: 1.25rem;
}

.metric-row,
.panel-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  color: var(--muted);
}

.metric-row strong,
.panel-stat b {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.progress-track {
  overflow: hidden;
  height: 12px;
  margin: 1rem 0;
  border-radius: 999px;
  background: #e5e9e3;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.kcal-fill {
  width: 74%;
  background: linear-gradient(90deg, var(--green), var(--teal));
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.mini-grid span {
  min-height: 84px;
  padding: 0.8rem;
  border: 1px solid #e4e7df;
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 0.86rem;
}

.mini-grid strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.side-stack {
  display: grid;
  gap: 1rem;
}

.mini-product {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(31, 39, 35, 0.08);
}

.mini-product p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tiny-label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--green-dark);
  font-size: 0.68rem;
}

.tiny-label.testing,
.status.testing {
  color: var(--amber);
}

.section {
  padding: clamp(3.25rem, 7vw, 6.5rem) 5vw;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading.wide {
  max-width: 980px;
}

.app-section {
  background: #fbfaf6;
}

.product {
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.product-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: 1rem;
  border-color: rgba(38, 114, 74, 0.34);
  box-shadow: 0 18px 60px rgba(31, 39, 35, 0.09);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-title {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.product-copy {
  max-width: 760px;
}

.feature-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.35rem 0;
}

.feature-list span {
  position: relative;
  padding-left: 1.35rem;
  color: #334139;
  font-weight: 650;
}

.feature-list span::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--green);
}

.product-panel {
  min-height: 330px;
  padding: 1.35rem;
  border-radius: 8px;
  background: #eef7f1;
  border: 1px solid #cde3d4;
}

.product-panel strong {
  display: block;
  max-width: 380px;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.04;
}

.compact-product p {
  color: var(--muted);
}

.links {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 800;
}

.status {
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
}

.status.live {
  color: var(--green-dark);
}

.proof-section {
  background: var(--bg);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-item {
  min-height: 220px;
  padding: 1.4rem;
}

.proof-item strong {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.proof-item p,
.trust-copy,
.support-card p {
  color: var(--muted);
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  background: #edf4f0;
}

.policy-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid #c8d9d0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  font-weight: 800;
  text-decoration: none;
}

.support-section {
  background: #f9f1e8;
}

.support-card {
  max-width: 900px;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  background: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 5vw;
  color: var(--muted);
  font-size: 0.94rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(3.2rem, 7vw, 6.5rem) 5vw;
  border-bottom: 1px solid var(--line);
}

.kcal-detail {
  background: #f8fbf4;
}

.bristol-detail {
  background: #edf8f5;
}

.puzzle-detail {
  background: #f7f1fb;
}

.detail-copy {
  max-width: 860px;
}

.detail-icon {
  width: 112px;
  height: 112px;
  margin-bottom: 1.2rem;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(31, 39, 35, 0.16);
}

.detail-panel {
  min-height: 380px;
  padding: clamp(1.25rem, 2.8vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.detail-panel strong {
  display: block;
  max-width: 520px;
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3.5vw, 3.25rem);
  line-height: 1.02;
}

.detail-panel p {
  color: var(--muted);
  font-size: 1.06rem;
}

.bristol-card {
  background: #e7fbf4;
  border-color: #bdebd9;
}

.puzzle-card {
  background: #f6edff;
  border-color: #decaf3;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.conversion-band {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  background: #fffaf1;
}

.feature-list.large {
  margin-top: 0;
}

.feature-list.large span {
  font-size: 1.08rem;
}

.puzzle-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.puzzle-list span {
  display: grid;
  min-height: 72px;
  place-items: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
  text-align: center;
}

@media (max-width: 1060px) {
  .hero,
  .showcase,
  .product-featured,
  .trust-band,
  .detail-hero,
  .conversion-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .phone-shell {
    min-height: 420px;
  }

  .product-grid,
  .proof-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .puzzle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.84rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .app-hero-card,
  .mini-product,
  .product-title {
    grid-template-columns: 62px 1fr;
  }

  .app-hero-card img,
  .product-title img,
  .mini-product img {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .detail-icon {
    width: 92px;
    height: 92px;
    border-radius: 20px;
  }

  .puzzle-list {
    grid-template-columns: 1fr;
  }
}
