:root {
  color-scheme: light;
  --ink: #111816;
  --muted: #5f6d67;
  --soft: #eef5ef;
  --paper: #fbfdf9;
  --panel: #ffffff;
  --line: #dbe7dc;
  --accent: #2f7d4f;
  --accent-dark: #195c36;
  --calorie: #ff7a45;
  --protein: #4d76ff;
  --carb: #f0bd3d;
  --fat: #9b6be8;
  --shadow: 0 24px 80px rgba(32, 56, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(238, 245, 239, 0.84), rgba(251, 253, 249, 0.96) 38%),
    var(--paper);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 231, 220, 0.78);
  background: rgba(251, 253, 249, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 10px 22px rgba(25, 92, 54, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 64px;
  align-items: center;
  min-height: calc(100dvh - 72px);
  padding: 68px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 21px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button:hover {
  border-color: var(--accent);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.phone-wrap {
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(360px, 100%);
  border: 12px solid #18221d;
  border-radius: 44px;
  background: #f7fbf5;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone::before {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 86px;
  height: 23px;
  border-radius: 999px;
  background: #18221d;
  transform: translateX(-50%);
  content: "";
  z-index: 2;
}

.phone-screen {
  min-height: 680px;
  padding: 48px 20px 22px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent);
}

.streak {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff2db;
  color: #895111;
  font-size: 0.82rem;
  font-weight: 800;
}

.ring-card,
.meal-card,
.mini-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.ring-card {
  display: grid;
  place-items: center;
  padding: 28px 20px;
}

.ring {
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
    conic-gradient(var(--calorie) 0 72%, #e6eee6 72% 100%);
}

.ring strong {
  display: block;
  font-size: 2.45rem;
  line-height: 1;
}

.ring span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
}

.macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.mini-card {
  padding: 12px;
}

.mini-card b {
  display: block;
}

.bar {
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e7eee7;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.meal-card {
  padding: 16px;
}

.meal-image {
  height: 150px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 48%, #7eb76a 0 18%, transparent 19%),
    radial-gradient(circle at 55% 44%, #f3c75f 0 15%, transparent 16%),
    radial-gradient(circle at 66% 61%, #ff8b5a 0 12%, transparent 13%),
    #f2ead5;
}

.meal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.meal-meta p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.pill {
  border-radius: 999px;
  padding: 7px 10px;
  background: #ebf5ed;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section h2 {
  max-width: 660px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.6vw, 4.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.feature {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: var(--panel);
}

.feature:nth-child(2) {
  transform: translateY(26px);
}

.feature:nth-child(3) {
  transform: translateY(-10px);
}

.feature-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.feature h3 {
  margin: 22px 0 10px;
  font-size: 1.2rem;
}

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

.legal-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: #102018;
  color: #ffffff;
}

.legal-strip p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.legal-strip .button {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.site-footer {
  padding: 34px 0 46px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.legal-page {
  padding: 64px 0 96px;
}

html.webview .topbar,
html.webview .site-footer,
html.webview footer {
  display: none;
}

html.webview .legal-page {
  padding-top: 24px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
  gap: 54px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 104px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: var(--panel);
}

.legal-aside p {
  color: var(--muted);
}

.legal-doc {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 54px);
  background: var(--panel);
}

.legal-doc h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
}

.legal-doc h2 {
  margin-top: 42px;
  font-size: 1.42rem;
}

.legal-doc p,
.legal-doc li {
  color: #405049;
}

.legal-doc ul {
  padding-left: 1.2rem;
}

.notice {
  border-left: 4px solid var(--accent);
  margin: 28px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--soft);
}

.energy-guide .energy-equation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 30px 0;
}

.energy-guide .energy-equation span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--soft);
  font-weight: 850;
}

.energy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 34px 0;
}

.energy-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: #fbfdf9;
}

.energy-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 1.02rem;
}

.energy-card p {
  margin-bottom: 0;
}

.balance-visual {
  display: grid;
  gap: 18px;
  margin: 26px 0 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  background:
    linear-gradient(90deg, transparent 0 calc(50% - 1px), var(--line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    var(--soft);
}

.balance-visual div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
}

.balance-visual span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.balance-visual i {
  display: block;
  width: var(--width);
  height: 18px;
  margin-left: var(--offset);
  border-radius: 999px;
  background: var(--color);
}

.faq-toc {
  display: grid;
  gap: 6px;
  margin: 18px 0 22px;
}

.faq-toc a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.faq-toc a:hover {
  color: var(--accent-dark);
}

.faq-group {
  margin-top: 44px;
}

.faq-group:first-of-type {
  margin-top: 28px;
}

.faq-group > h2 {
  margin-bottom: 4px;
  scroll-margin-top: 96px;
}

.faq-item {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  flex: none;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 1.2rem;
  line-height: 1;
  content: "+";
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item summary:hover {
  color: var(--accent-dark);
}

.faq-item .faq-body {
  padding: 0 20px 18px;
}

.faq-item .faq-body p {
  margin-bottom: 0;
  color: #405049;
}

@media (max-width: 900px) {
  .hero,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    padding-top: 44px;
  }

  .phone-screen {
    min-height: 610px;
  }

  .section-head,
  .legal-strip,
  .footer-inner {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .feature:nth-child(2),
  .feature:nth-child(3) {
    transform: none;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 64px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.84rem;
  }

  .nav-links a[href="#features"] {
    display: none;
  }

  h1 {
    font-size: clamp(2.9rem, 16vw, 4.2rem);
  }

  .feature-grid,
  .macro-row {
    grid-template-columns: 1fr;
  }

  .legal-doc {
    border-radius: 22px;
  }

  .balance-visual div {
    grid-template-columns: 1fr;
  }
}
