:root {
  --paper: #fffdf8;
  --warm: #f8f2e8;
  --warm-2: #efe8dc;
  --ink: #171a16;
  --muted: #697167;
  --line: rgba(27, 31, 25, 0.12);
  --line-strong: rgba(27, 31, 25, 0.18);
  --green: #219764;
  --green-2: #27c578;
  --mint: #e8f7ef;
  --blue: #377de8;
  --violet: #8f5de8;
  --gold: #b9954f;
  --danger: #bd3d36;
  --shadow: 0 26px 80px rgba(40, 47, 36, 0.13);
  --soft-shadow: 0 16px 45px rgba(40, 47, 36, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 6%, rgba(33, 151, 100, 0.11), transparent 31rem),
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.94), transparent 34rem),
    linear-gradient(180deg, #fcfbf7 0%, #f8f4ea 52%, #f5efe4 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: absolute;
  top: 52px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(1360px, calc(100% - 112px));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-50%);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-elevated {
  background: transparent;
  box-shadow: none;
}

.brand,
.site-header nav,
.hero-actions,
.signal-row,
.proof-band,
.form-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 2rem;
  font-weight: 900;
}

.brand img {
  width: auto;
  height: 40px;
}

.brand span {
  letter-spacing: 0;
}

.site-header nav {
  display: none;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
}

.site-header nav a:hover,
.footer-links a:hover,
.footer-col a:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.nav-cta,
.primary-cta,
.secondary-cta,
.danger-cta {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.nav-cta {
  display: none;
  justify-self: end;
  min-height: 40px;
  width: fit-content;
  padding: 0 18px;
  background: var(--ink);
  color: white;
}

.primary-cta {
  padding: 0 24px;
  background: var(--green);
  color: white;
  box-shadow: 0 16px 34px rgba(33, 151, 100, 0.26);
}

.secondary-cta {
  padding: 0 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.danger-cta {
  padding: 0 22px;
  background: var(--danger);
  color: white;
}

.hero {
  width: 100%;
  margin: 0 auto;
}

.hero-map > *,
.split-feature > *,
.account-hero-card > *,
.legal-body article {
  min-width: 0;
}

.hero-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.34fr) minmax(480px, 0.48fr) minmax(230px, 0.22fr);
  gap: clamp(20px, 3vw, 56px);
  align-items: center;
  width: min(1487px, 100%);
  min-height: 746px;
  padding: 74px 58px 46px;
  background:
    radial-gradient(circle at 55% 22%, rgba(255, 255, 255, 0.92), transparent 22rem),
    radial-gradient(circle at 49% 55%, rgba(225, 218, 205, 0.38), transparent 27rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(246, 242, 233, 0.68));
  isolation: isolate;
  overflow: hidden;
}

.hero-map::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 44%, rgba(210, 205, 195, 0.25) 44.15%, transparent 44.4%),
    linear-gradient(24deg, transparent 0 63%, rgba(210, 205, 195, 0.18) 63.1%, transparent 63.35%);
  content: "";
  opacity: 0.48;
}

.eyebrow,
.mini-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

/* Rounded geometric display face to match the Nuvora AI brand type. Renders as
   SF Pro Rounded on Apple devices; falls back gracefully elsewhere. */
h1,
h2,
h3,
.proof-title,
.map-card,
.phone-cta,
.primary-cta,
.nav-cta {
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Segoe UI Variable", Inter, system-ui, sans-serif;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-map h1 {
  max-width: 420px;
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 4.6vw, 4.9rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4.8vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 1.75vw, 1.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lede,
.section-heading p,
.section-copy p,
.workflow-grid p,
.commerce-card p,
.trust-grid p,
.legal-body p,
.legal-body li,
.account-hero-card p,
.cta-section p {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.62;
}

.hero-copy {
  align-self: center;
  padding-top: 88px;
}

.hero-copy .hero-lede {
  max-width: 350px;
  color: #68706b;
  font-size: clamp(1.35rem, 1.7vw, 1.62rem);
  line-height: 1.42;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 58px 0 0;
}

.hero-join {
  min-height: 74px;
  gap: 34px;
  padding: 0 22px 0 40px;
  border-radius: 999px;
  font-size: clamp(1.35rem, 2vw, 1.86rem);
  box-shadow: 0 22px 48px rgba(33, 151, 100, 0.26);
}

.hero-join span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
  font-size: 1.25rem;
}

.signal-row {
  flex-wrap: wrap;
  gap: 8px;
}

.signal-row span,
.mini-label,
.map-card,
.proof-band article,
.workflow-grid article,
.commerce-card,
.trust-grid article,
.legal-body article,
.account-hero-card,
.cta-section {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--soft-shadow);
}

.signal-row span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

/* Hero food map: a single square stage. Everything inside is positioned in
   percentages of this stage, so the composition scales as one unit and never
   drifts out of alignment at any viewport width. */
.meal-map {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: visible;
}

.meal-plate {
  position: absolute;
  inset: 4%;
  z-index: 1;
  overflow: hidden;
  border-radius: 999px;
  box-shadow: 0 34px 90px rgba(66, 57, 38, 0.18);
}

.meal-plate img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 49%;
}

.orbit-ring {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.orbit-ring::before,
.orbit-ring::after {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: white;
  content: "";
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.orbit-one {
  inset: 3%;
}

.orbit-one::before {
  left: 50%;
  top: -5px;
}

.orbit-one::after {
  left: 72%;
  bottom: 8%;
}

.orbit-two {
  inset: 10%;
  border-color: rgba(255, 255, 255, 0.42);
}

.orbit-two::before {
  left: 26%;
  top: 6%;
}

.orbit-two::after {
  right: 12%;
  top: 9%;
}

.map-card {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 132px;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(41, 46, 38, 0.1);
}

.map-card span,
.map-card small {
  color: var(--muted);
  font-weight: 850;
}

.map-card strong {
  color: var(--green);
  font-size: 2.5rem;
  line-height: 1;
}

.map-card.protein strong {
  color: var(--blue);
}

.map-card.sugar strong {
  color: var(--violet);
}

.map-card.fit {
  top: 8%;
  left: -9%;
  justify-items: center;
  text-align: center;
}

.map-card.protein {
  top: 1%;
  right: 3%;
}

.map-card.sugar {
  left: -9%;
  bottom: 15%;
}

.map-card.risk {
  right: 3%;
  bottom: 4%;
}

.fit-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: conic-gradient(var(--green) 0 82%, rgba(33, 151, 100, 0.16) 82% 100%);
}

.fit-ring::before {
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(33, 151, 100, 0.08);
  content: "";
}

.fit-ring strong {
  position: relative;
  font-size: 1.95rem;
}

.fit-ring small {
  position: relative;
  color: var(--muted);
  font-weight: 850;
}

.mini-bars,
.risk-scale {
  display: flex;
  gap: 6px;
  align-items: end;
  min-height: 27px;
}

.mini-bars i {
  display: block;
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background: var(--blue);
}

.mini-bars i:nth-child(2) {
  height: 18px;
}

.mini-bars i:nth-child(3) {
  height: 25px;
}

.mini-bars i:nth-child(4) {
  height: 31px;
}

.mini-bars i:nth-child(5) {
  height: 36px;
}

.violet-bars i {
  background: var(--violet);
}

.risk-scale i {
  width: 23px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.risk-scale i:nth-child(2) {
  background: #bdd26a;
}

.risk-scale i:nth-child(3) {
  background: #f0bd55;
}

.risk-scale i:nth-child(4) {
  background: #d64d51;
}

/* Connector lines live in the same 0-100 coordinate space as the cards, drawn
   in an SVG overlay so they always join the plate to each card. */
.meal-connectors {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.meal-connectors polyline {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.meal-connectors circle {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.conn-fit polyline,
.conn-fit circle {
  stroke: #45c86f;
}

.conn-fit circle {
  fill: #45c86f;
}

.conn-protein polyline,
.conn-protein circle {
  stroke: var(--blue);
}

.conn-protein circle {
  fill: var(--blue);
}

.conn-sugar polyline,
.conn-sugar circle {
  stroke: var(--violet);
}

.conn-sugar circle {
  fill: var(--violet);
}

.conn-risk polyline,
.conn-risk circle {
  stroke: #55c07f;
}

.conn-risk circle {
  fill: #55c07f;
}

.hero-phone {
  position: relative;
  z-index: 3;
  justify-self: end;
  padding-top: 54px;
}

.phone-shell {
  position: relative;
  overflow: hidden;
  width: min(276px, 20vw);
  min-width: 236px;
  padding: 6px;
  border: 6px solid #111;
  border-radius: 46px;
  background: #111;
  box-shadow: var(--shadow);
}

.phone-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 40px;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 1487px;
  min-height: 312px;
  margin: 0 auto 58px;
  padding: 28px clamp(16px, 4vw, 60px) 24px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background:
    radial-gradient(circle at 96% 35%, rgba(33, 151, 100, 0.07) 0 1px, transparent 1.6px) 0 0 / 12px 12px,
    rgba(255, 255, 255, 0.78);
}

.proof-band article,
.proof-card {
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
  padding: 0 clamp(14px, 3.5vw, 54px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.proof-card + .proof-card {
  border-left: 1px solid var(--line);
}

.proof-title {
  display: flex;
  gap: 26px;
  align-items: center;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 950;
}

.proof-title span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--green);
}

.proof-band strong {
  color: var(--ink);
  font-size: inherit;
  line-height: 1;
}

.proof-band span {
  color: inherit;
  font-weight: 850;
}

.radar-card {
  position: relative;
  width: 300px;
  max-width: 100%;
  height: 222px;
}

.radar-svg {
  position: absolute;
  left: 4px;
  top: 10px;
  width: 168px;
  height: 168px;
  overflow: visible;
}

.radar-grid {
  fill: none;
  stroke: rgba(23, 26, 22, 0.13);
  stroke-width: 1;
}

.radar-axis line {
  stroke: rgba(23, 26, 22, 0.1);
  stroke-width: 1;
}

.radar-leaders polyline {
  fill: none;
  stroke: rgba(23, 26, 22, 0.32);
  stroke-width: 1;
  stroke-linejoin: round;
}

.radar-data {
  fill: rgba(33, 151, 100, 0.22);
  stroke: var(--green);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.radar-dots circle {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 1.6;
}

.radar-label {
  position: absolute;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.18;
}

.radar-label em {
  color: var(--green);
  font-style: normal;
  font-weight: 850;
}

.calories {
  left: 186px;
  top: 24px;
}

.protein-label {
  left: 190px;
  top: 80px;
}

.sugar-label {
  left: 186px;
  top: 132px;
}

.sodium-label {
  left: 104px;
  top: 184px;
}

.sodium-label .moderate {
  color: var(--gold);
}

.fiber-label {
  left: 2px;
  top: 180px;
}

.week-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(28px, 42px));
  max-width: 360px;
  gap: clamp(4px, 1vw, 10px);
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  text-align: center;
}

.week-track i {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border: 2px solid rgba(23, 26, 22, 0.22);
  border-radius: 999px;
  color: var(--green);
  font-style: normal;
  font-weight: 950;
}

.week-track .done {
  border-color: var(--green);
}

.week-track .current {
  border-color: var(--blue);
}

.runway-stats {
  display: flex;
  justify-content: space-between;
  width: min(300px, 100%);
  margin-top: 24px;
}

.runway-stats p {
  display: flex;
  gap: 10px;
  align-items: end;
  margin: 0;
}

.runway-stats strong {
  color: var(--green);
  font-size: 3.25rem;
  line-height: 0.88;
}

.runway-stats span {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.05;
}

.privacy-visual {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px 22px;
  align-items: center;
  max-width: 320px;
  margin-top: 8px;
}

.privacy-visual p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.32;
}

.privacy-icon {
  width: 60px;
  height: 60px;
  justify-self: center;
}

.shield-icon {
  color: var(--green);
}

.lock-icon {
  width: 50px;
  height: 50px;
  color: #94a09b;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 7vw, 82px);
  align-items: center;
}

.split-feature.reverse {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 0.92fr);
}

.decision-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.decision-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}

.decision-list span,
.suite-number {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--ink);
  color: white;
  font-weight: 950;
}

.decision-list p {
  margin-bottom: 0;
}

.app-showcase img,
.app-pair img {
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.app-showcase img {
  width: 100%;
  height: auto;
}

.app-pair {
  position: relative;
  min-height: 745px;
}

/* App screenshots keep their natural aspect ratio — never crop UI content. */
.app-pair img {
  position: absolute;
  width: min(330px, 48%);
  height: auto;
}

.app-pair img:first-child {
  left: 0;
  top: 0;
}

.app-pair img:last-child {
  right: 0;
  bottom: 0;
}

.workflow-grid,
.commerce-grid,
.trust-grid {
  display: grid;
  gap: 18px;
}

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

.workflow-grid article {
  min-height: 248px;
  padding: 24px;
  border-radius: 28px;
}

.workflow-grid span,
.commerce-card strong {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 28px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 950;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-weight: 800;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  content: "✓";
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 20px;
  text-align: center;
}

.commerce-section {
  padding-top: 44px;
}

.commerce-grid {
  grid-template-columns: 1.1fr repeat(2, minmax(0, 0.95fr));
}

.commerce-card {
  min-height: 252px;
  padding: 24px;
  border-radius: 28px;
}

.commerce-card.lead {
  grid-row: span 2;
  min-height: 522px;
  background:
    linear-gradient(180deg, rgba(33, 151, 100, 0.14), rgba(255, 253, 248, 0.9)),
    rgba(255, 253, 248, 0.9);
}

.commerce-card p {
  font-size: 1rem;
}

.commerce-card.lead .suite-number {
  background: var(--green);
}

.commerce-card strong {
  margin-top: 10px;
  margin-bottom: 0;
}

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

.trust-grid article {
  min-height: 270px;
  padding: 24px;
  border-radius: 28px;
}

.trust-grid a,
.legal-body a {
  color: var(--green);
  font-weight: 950;
}

.path-line {
  display: block;
  margin: 8px 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.path-line span {
  display: block;
}

.cta-section {
  width: min(900px, calc(100% - 36px));
  margin: 48px auto 88px;
  padding: clamp(34px, 7vw, 68px);
  border-radius: 34px;
  text-align: center;
}

.cta-section img {
  margin: 0 auto 18px;
  border-radius: 22px;
}

.cta-section .primary-cta {
  margin-top: 16px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--ink);
  font-weight: 950;
}

/* Full site footer (homepage) */
footer.site-footer {
  display: block;
  padding: 0 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(140px, 0.8fr));
  gap: 28px;
  padding: 40px 0 34px;
  border-top: 1px solid var(--line);
}

.footer-brand p {
  max-width: 260px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 750;
}

.legal-page {
  width: min(980px, calc(100% - 36px));
  margin: 52px auto 88px;
}

.legal-hero {
  padding: clamp(42px, 7vw, 76px) 0 34px;
}

.legal-hero h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
}

.legal-hero p:last-child {
  color: var(--muted);
  font-weight: 850;
}

.legal-body {
  display: grid;
  gap: 18px;
}

.legal-body article {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
}

.legal-body h2,
.account-hero-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.legal-body ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.account-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 30px;
}

.account-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.account-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.account-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: white;
  color: var(--ink);
}

.checkbox-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--muted) !important;
  font-weight: 750 !important;
}

.checkbox-row input {
  margin-top: 4px;
}

.form-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.form-status {
  display: block;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 800;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--danger);
}

/* In-between desktops: the 3-column hero needs ~1200px, so drop the phone
   column first and keep copy + plate side by side. */
@media (max-width: 1279px) {
  .hero-map {
    grid-template-columns: minmax(280px, 0.44fr) minmax(0, 0.56fr);
    min-height: auto;
    padding: 64px clamp(24px, 4vw, 58px) 42px;
  }

  .meal-map {
    max-width: 520px;
  }

  .hero-phone {
    display: none;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--soft-shadow);
  }

  .site-header.nav-open nav {
    display: flex;
  }

  .nav-cta {
    justify-self: end;
  }

  .hero-map {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .meal-map {
    max-width: 460px;
  }

  .split-feature,
  .split-feature.reverse {
    grid-template-columns: 1fr;
  }

  /* Tablets keep two columns instead of collapsing to one. */
  .workflow-grid,
  .trust-grid,
  .commerce-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .commerce-card.lead {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 260px;
  }

  .proof-band {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 0;
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  /* The third promise card drops to its own full-width row. */
  .proof-card.privacy-proof {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .app-showcase {
    max-width: 560px;
    margin: 0 auto;
  }

  .app-pair {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
  }

  .app-pair img {
    position: static;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .proof-band,
  .section,
  .legal-page,
  .cta-section,
  footer {
    width: min(1180px, calc(100% - 28px));
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    gap: 10px;
    padding: 8px;
    border-radius: 22px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .brand img {
    height: 36px;
  }

  .nav-cta {
    display: none;
  }

  .hero-map {
    padding: 44px 0 36px;
  }

  .hero-map h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 13vw, 3.45rem);
    line-height: 1;
  }

  .legal-hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .meal-map {
    max-width: 400px;
  }

  .map-card {
    min-width: 102px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .map-card strong {
    font-size: 1.7rem;
  }

  .fit-ring {
    width: 72px;
    height: 72px;
  }

  .fit-ring strong {
    font-size: 1.55rem;
  }

  .map-card.fit {
    top: 3%;
    left: -2%;
  }

  .map-card.protein {
    top: 0;
    right: -3%;
  }

  .map-card.sugar {
    left: -2%;
    bottom: 12%;
  }

  .map-card.risk {
    right: -3%;
    bottom: 2%;
  }

  .proof-band,
  .app-pair,
  .workflow-grid,
  .trust-grid,
  .commerce-grid {
    grid-template-columns: 1fr;
  }

  .proof-band {
    gap: 24px 0;
  }

  /* Stacked promise cards separate with top borders, not left ones. */
  .proof-card + .proof-card {
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .radar-card {
    margin: 0 auto;
  }

  .section {
    padding: 54px 0;
  }

  .workflow-grid article,
  .commerce-card,
  .trust-grid article,
  .legal-body article {
    border-radius: 24px;
  }

  .account-hero-card {
    grid-template-columns: 1fr;
  }

  .account-hero-card .primary-cta {
    width: 100%;
  }

  .form-actions {
    align-items: stretch;
  }

  .form-actions .secondary-cta,
  .form-actions .danger-cta {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }

  footer.site-footer {
    flex-direction: unset;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* ===== Interaction polish ===== */
.workflow-grid article,
.commerce-card,
.trust-grid article {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.workflow-grid article:hover,
.commerce-card:hover,
.trust-grid article:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.primary-cta,
.nav-cta,
.secondary-cta {
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.primary-cta:hover {
  background: #1d8a5a;
  box-shadow: 0 20px 40px rgba(33, 151, 100, 0.32);
  transform: translateY(-2px);
}

.nav-cta:hover {
  transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Scroll reveal: elements get .reveal from site.js only when motion is OK,
   so content stays fully visible without JavaScript. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ===== Account / authentication ===== */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 22px;
  margin-bottom: 26px;
}

.auth-card,
.auth-side,
.account-dashboard {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--soft-shadow);
}

.auth-intro h2 {
  margin-bottom: 8px;
}

.auth-intro p {
  color: var(--muted);
  line-height: 1.55;
}

.auth-providers {
  display: grid;
  gap: 10px;
  margin: 22px 0 6px;
}

.provider-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.provider-btn:hover:not(:disabled) {
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.provider-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.provider-apple {
  background: #000;
  border-color: #000;
  color: #fff;
}

.provider-glyph {
  width: 20px;
  height: 20px;
  background: center / contain no-repeat;
}

.provider-apple .provider-glyph {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M16.36 12.78c.02 2.5 2.19 3.33 2.22 3.34-.02.06-.35 1.2-1.15 2.37-.69 1.02-1.41 2.03-2.54 2.05-1.11.02-1.47-.66-2.74-.66-1.27 0-1.67.64-2.72.68-1.09.04-1.92-1.1-2.62-2.11-1.43-2.07-2.52-5.85-1.05-8.41.73-1.27 2.03-2.08 3.44-2.1 1.07-.02 2.08.72 2.74.72.65 0 1.88-.89 3.17-.76.54.02 2.06.22 3.04 1.65-.08.05-1.81 1.06-1.79 3zM14.3 5.6c.58-.7.97-1.68.86-2.65-.84.03-1.85.56-2.45 1.26-.54.62-1.01 1.61-.88 2.56.93.07 1.89-.47 2.47-1.17z'/%3E%3C/svg%3E");
}

.provider-google .provider-glyph {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.5 12.24c0-.79-.07-1.54-.2-2.27H12v4.29h5.9a5.05 5.05 0 0 1-2.19 3.31v2.75h3.54c2.07-1.91 3.25-4.72 3.25-8.08z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.54-2.75c-.98.66-2.24 1.06-3.74 1.06-2.87 0-5.3-1.94-6.17-4.55H2.18v2.84A11 11 0 0 0 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.83 14.1a6.6 6.6 0 0 1 0-4.2V7.06H2.18a11 11 0 0 0 0 9.88l3.65-2.84z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.65 2.84C6.7 7.32 9.13 5.38 12 5.38z'/%3E%3C/svg%3E");
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

.auth-form input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.auth-advanced {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.auth-advanced summary {
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.auth-advanced p {
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.auth-side h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.auth-side h3:first-child {
  margin-top: 0;
}

.auth-side p {
  color: var(--muted);
  line-height: 1.55;
}

.auth-side .check-list {
  margin-top: 12px;
}

.auth-fineprint {
  margin-top: 18px;
  font-size: 0.86rem;
}

/* Account dashboard */
.account-dashboard {
  display: grid;
  gap: 24px;
}

.account-summary-head {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.account-summary-head h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.account-uid {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.account-uid code,
.modal-card code {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--warm-2);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.account-stat-grid article {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.account-stat-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.account-stat-grid strong {
  color: var(--ink);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.account-action {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.account-action p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.account-action button {
  margin-top: 4px;
  justify-self: start;
}

.account-action.is-danger {
  border-color: rgba(189, 61, 54, 0.35);
  background: rgba(189, 61, 54, 0.05);
}

/* Deletion confirmation modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 26, 22, 0.5);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: min(460px, 100%);
  padding: clamp(24px, 4vw, 34px);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.55;
}

.modal-card .checkbox-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 18px 0 20px;
  color: var(--ink);
  font-weight: 700;
}

.modal-card .form-actions {
  justify-content: flex-end;
}

.danger-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .account-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .modal-card .form-actions .secondary-cta,
  .modal-card .form-actions .danger-cta {
    width: 100%;
  }
}
