:root {
  --ink: #17201d;
  --muted: #596862;
  --paper: #fbfcf7;
  --surface: #ffffff;
  --line: #dce6df;
  --green: #2f8d62;
  --teal: #147e8a;
  --coral: #dc654f;
  --yellow: #e4b43b;
  --blue: #3562a6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.hero-shell {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  padding: 24px clamp(18px, 4vw, 64px) 56px;
  background:
    linear-gradient(135deg, rgba(47, 141, 98, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(220, 101, 79, 0.13), transparent 34%),
    var(--paper);
}

.topbar,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  min-height: 52px;
}

.brand,
.nav-links,
.hero-actions,
.badge-row,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  font-size: 1.04rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.nav-links a,
.footer-links a {
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

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

.hero-grid {
  position: relative;
  display: block;
  max-width: 1180px;
  min-height: calc(92vh - 92px);
  margin: 0 auto;
  padding-top: 24px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(58px, 12vh, 118px) 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
td,
th {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 13vw, 8.7rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.18;
}

.lead {
  max-width: 650px;
  margin: 26px 0 18px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.42rem);
  line-height: 1.48;
}

.badge-row {
  margin: 0 0 30px;
}

.badge-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 760;
  line-height: 1.1;
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.phone-visual {
  position: absolute;
  z-index: 1;
  top: 44px;
  right: 0;
  bottom: 0;
  width: min(42vw, 470px);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.phone-shell {
  width: min(100%, 390px);
  min-height: 640px;
  border: 10px solid #1e2925;
  border-radius: 34px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf5 100%);
  box-shadow: 0 28px 70px rgba(23, 32, 29, 0.2);
}

.phone-top,
.meal-card,
.shopping-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.phone-top {
  align-items: center;
  padding: 14px;
}

.phone-top span,
.meal-card span,
.shopping-strip span,
.fact-label,
.step-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 680;
}

.macro-ring {
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  margin: 34px auto;
  border: 18px solid rgba(47, 141, 98, 0.18);
  border-top-color: var(--green);
  border-right-color: var(--teal);
  border-bottom-color: var(--yellow);
  border-radius: 50%;
  background: #fff;
}

.macro-ring span {
  color: var(--muted);
  font-weight: 760;
}

.macro-ring strong {
  font-size: 3rem;
  line-height: 1;
}

.meal-card {
  flex-direction: column;
  padding: 16px;
  margin-top: 12px;
  border-left: 6px solid var(--green);
}

.meal-card.accent-coral {
  border-left-color: var(--coral);
}

.shopping-strip {
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  color: #fff;
  border-color: #1f5f67;
  background: var(--teal);
}

.shopping-strip span {
  color: rgba(255, 255, 255, 0.78);
}

.content-band,
.preview-band,
.privacy-band,
.legal-page {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 64px);
}

.content-band {
  background: #fff;
}

.preview-band {
  background: #f7faf5;
}

.section-heading,
.preview-layout,
.workflow-layout,
.pillar-grid,
.metric-grid,
.privacy-panel,
.legal-layout,
.site-footer,
.roadmap-grid,
.note-panel {
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading,
.preview-layout,
.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.preview-layout {
  align-items: center;
  margin-bottom: 0;
}

.preview-layout p {
  color: var(--muted);
  line-height: 1.65;
}

.preview-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(23, 32, 29, 0.13);
}

.pillar-grid,
.roadmap-grid,
.workflow-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

.pillar-grid,
.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid,
.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.step-card,
.metric-card,
.note-panel,
.fact-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.info-card,
.step-card {
  min-height: 210px;
  padding: 24px;
}

.step-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--teal);
}

.metric-card {
  min-height: 170px;
  padding: 20px;
}

.metric-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.9;
}

.metric-card span {
  color: var(--muted);
  line-height: 1.45;
}

.note-panel {
  margin-top: 16px;
  padding: 22px 24px;
  border-left: 6px solid var(--teal);
}

.info-card p,
.step-card p,
.note-panel p,
.privacy-panel p,
.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.65;
}

.privacy-band {
  background: #edf6f2;
}

.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: 32px;
}

.privacy-panel .button {
  justify-self: start;
}

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

.check-list li {
  border-left: 4px solid var(--green);
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  padding: 26px clamp(18px, 4vw, 64px) 36px;
  color: var(--muted);
}

.site-footer span {
  font-weight: 800;
  color: var(--ink);
}

.legal-hero {
  padding: 24px clamp(18px, 4vw, 64px) 46px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

.legal-aside {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.fact-box {
  padding: 18px;
}

.fact-box strong {
  display: block;
  margin-top: 4px;
}

.legal-content {
  display: grid;
  gap: 28px;
}

.legal-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6rem);
}

.legal-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
}

.legal-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.data-table th {
  color: var(--ink);
  background: #f4f8f5;
  font-size: 0.9rem;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.notice {
  border: 1px solid rgba(220, 101, 79, 0.35);
  border-left: 6px solid var(--coral);
  border-radius: 8px;
  padding: 18px;
  background: #fff7f4;
  color: var(--muted);
  line-height: 1.65;
}

.delete-steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.delete-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.delete-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

@media (max-width: 1020px) {
  .workflow-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .section-heading,
  .preview-layout,
  .workflow-layout,
  .privacy-panel,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 52px;
  }

  .pillar-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .phone-visual {
    position: static;
    width: 100%;
    margin-top: 8px;
    pointer-events: auto;
  }

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

  .legal-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero-shell {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.8rem);
  }

  .hero-actions,
  .nav-links,
  .footer-links {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .phone-shell {
    border-width: 8px;
    border-radius: 28px;
    min-height: 500px;
    padding: 16px;
  }

  .macro-ring {
    width: 188px;
    height: 188px;
  }

  .workflow-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }
}
