:root {
  --ink: #14120f;
  --ink-soft: rgba(20, 18, 15, 0.66);
  --paper: #faf7f3;
  --surface: #ffffff;
  --accent: #d8542a;
  --accent-text: #9f3518;
  --accent-light: #f2a03d;
  --line: rgba(20, 18, 15, 0.11);
  --shadow: 0 20px 60px -30px rgba(20, 18, 15, 0.28);
  --radius-lg: 30px;
  --radius-md: 22px;
  --page: 1160px;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  font: inherit;
}

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

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #76240f;
}

:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-150%);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  pointer-events: none;
}

.nav-shell {
  width: min(100%, var(--page));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(20, 18, 15, 0.74);
  box-shadow: 0 10px 34px rgba(20, 18, 15, 0.28);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--accent-light), var(--accent));
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
}

.brand-icon {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16), 0 5px 14px rgba(0, 0, 0, 0.18);
}

.nav-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 2px;
}

.nav-links a {
  border-radius: 11px;
  color: rgba(250, 247, 243, 0.7);
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgba(250, 247, 243, 0.1);
  color: var(--paper);
}

.nav-cta {
  margin-left: 4px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--accent-light);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(112px, 15vw, 148px) 20px clamp(64px, 8vw, 92px);
}

.hero::before,
.hero::after,
.cta-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
  filter: blur(20px);
}

.hero::before {
  top: -180px;
  left: 50%;
  width: 900px;
  height: 640px;
  transform: translateX(-58%);
  background: radial-gradient(ellipse, rgba(216, 84, 42, 0.34), rgba(216, 84, 42, 0) 67%);
}

.hero::after {
  top: 60px;
  right: -160px;
  width: 620px;
  height: 520px;
  background: radial-gradient(ellipse, rgba(242, 160, 61, 0.2), rgba(242, 160, 61, 0) 69%);
}

.hero-grid,
.section-inner,
.footer-inner {
  width: min(100%, var(--page));
  margin-inline: auto;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(36px, 6vw, 74px);
}

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6.6vw, 4.9rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero-lede {
  max-width: 540px;
  margin: 20px 0 0;
  color: rgba(250, 247, 243, 0.68);
  font-size: clamp(1.08rem, 1.7vw, 1.31rem);
  line-height: 1.48;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  border-radius: 15px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.button-light {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.button-light:hover {
  background: var(--accent-light);
  color: var(--ink);
}

.button-ghost {
  border: 1px solid rgba(250, 247, 243, 0.18);
  background: rgba(250, 247, 243, 0.07);
  color: rgba(250, 247, 243, 0.9);
}

.button-ghost:hover {
  background: rgba(250, 247, 243, 0.14);
  color: #fff;
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
}

.button-dark:hover {
  background: var(--accent-text);
  color: #fff;
}

.apple-glyph {
  font-size: 1.55rem;
  line-height: 1;
}

.button-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.button-copy small {
  color: inherit;
  font-size: 0.64rem;
  font-weight: 550;
  letter-spacing: 0.03em;
  opacity: 0.68;
}

.button-copy span {
  margin-top: 2px;
  font-size: 1.05rem;
}

.phone-wrap {
  position: relative;
  width: min(338px, calc(100vw - 44px));
  margin-inline: auto;
}

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 338 / 707;
  border-radius: 16% / 7.7%;
  padding: 3px;
  background: linear-gradient(148deg, #f2eee8 0%, #b6b0a7 16%, #79746c 38%, #d3cdc4 58%, #867f77 78%, #e8e3dc 100%);
  box-shadow: 0 55px 105px -32px rgba(0, 0, 0, 0.72), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.phone-bezel {
  width: 100%;
  height: 100%;
  padding: 9px;
  border-radius: inherit;
  background: #08080a;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 14% / 7%;
  background: linear-gradient(180deg, #f3f2f8 0%, #fff 54%, #f5f3f8 100%);
  color: #16141c;
  font-size: clamp(0.56rem, 2.45vw, 0.72rem);
}

.phone-screen::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.24), transparent 36%);
  content: "";
  pointer-events: none;
}

.phone-screen.screenshot {
  background: #000;
}

.phone-screen.screenshot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-status {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5.8%;
  padding: 0 7.5%;
  font-weight: 750;
}

.dynamic-island {
  position: absolute;
  top: 1.25%;
  left: 50%;
  width: 29%;
  height: 3.7%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050507;
}

.screen-content {
  padding: 2.5% 5.5% 17%;
}

.screen-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5% 1.5% 4%;
}

.screen-title-row strong {
  font-size: 1.7em;
  letter-spacing: -0.04em;
}

.tiny-circle {
  width: 2.5em;
  height: 2.5em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.73);
  box-shadow: 0 2px 14px rgba(37, 31, 45, 0.08);
  color: #4b4651;
  font-size: 1.2em;
}

.day-rail {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 4.5%;
}

.day {
  border-radius: 9px;
  padding: 6px 2px;
  color: #716c75;
  text-align: center;
}

.day b,
.day span {
  display: block;
}

.day span {
  margin-top: 2px;
  font-size: 0.82em;
}

.day.selected {
  background: #1e1a21;
  color: #fff;
}

.demo-card {
  border: 1px solid rgba(41, 31, 47, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 36px -24px rgba(26, 21, 30, 0.3);
}

.budget-card {
  padding: 7% 7% 6%;
}

.budget-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.budget-number strong {
  font-size: 3.5em;
  letter-spacing: -0.07em;
}

.budget-number span {
  color: #75707a;
}

.budget-track,
.trend-track {
  height: 7px;
  overflow: hidden;
  margin-top: 7%;
  border-radius: 999px;
  background: #e8e4e2;
}

.budget-track span {
  display: block;
  width: 66%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #49a66b, #edaa49);
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 7%;
}

.macro-grid div {
  border-radius: 10px;
  background: #f6f4f7;
  padding: 7px 5px;
  text-align: center;
}

.macro-grid small,
.macro-grid strong {
  display: block;
}

.macro-grid small {
  color: #85808a;
  font-size: 0.7em;
  font-weight: 700;
}

.macro-grid strong {
  margin-top: 2px;
  font-size: 1.12em;
}

.screen-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7% 1% 3%;
  color: #68636c;
  font-size: 0.9em;
  font-weight: 650;
}

.meal-demo-row {
  display: grid;
  grid-template-columns: 3.8em 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
}

.meal-demo-row + .meal-demo-row {
  border-top: 1px solid #ece8ee;
}

.meal-demo-row img {
  width: 3.8em;
  height: 3.8em;
  border-radius: 10px;
  object-fit: cover;
}

.meal-demo-row b,
.meal-demo-row small {
  display: block;
}

.meal-demo-row small {
  margin-top: 3px;
  color: #85808a;
}

.meal-demo-row > strong {
  font-size: 1.05em;
}

.screen-tabs {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 2.2%;
  left: 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  background: rgba(244, 243, 248, 0.9);
  box-shadow: 0 8px 28px rgba(38, 30, 44, 0.15);
  padding: 7px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  text-align: center;
}

.screen-tabs span {
  border-radius: 999px;
  padding: 7px 2px;
  color: #77717e;
  font-weight: 700;
}

.screen-tabs .active {
  background: #fff;
  color: #1d1920;
  box-shadow: 0 2px 10px rgba(31, 26, 35, 0.09);
}

.floating-result {
  position: absolute;
  left: -108px;
  bottom: 9.5%;
  z-index: 3;
  width: 190px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: #1d1a16;
  box-shadow: 0 30px 60px -14px rgba(0, 0, 0, 0.68);
  color: var(--paper);
}

.floating-result img {
  width: 100%;
  height: 148px;
  object-fit: cover;
}

.floating-result div {
  padding: 12px 14px 14px;
}

.floating-result small,
.floating-result strong,
.floating-result span {
  display: block;
}

.floating-result small {
  color: var(--accent-light);
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.floating-result strong {
  margin-top: 4px;
  font-size: 0.92rem;
}

.floating-result span {
  margin-top: 4px;
  color: rgba(250, 247, 243, 0.6);
  font-size: 0.76rem;
  line-height: 1.35;
}

.section {
  padding: clamp(76px, 9vw, 114px) 20px 0;
}

.section:last-of-type {
  padding-bottom: clamp(76px, 9vw, 114px);
}

.eyebrow {
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.section-lede,
.feature-copy > p {
  margin: 16px 0 0;
  color: rgba(20, 18, 15, 0.59);
  font-size: 1.06rem;
  line-height: 1.58;
}

.steps,
.stat-grid,
.info-grid {
  display: grid;
  gap: 14px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}

.step-card,
.stat-card,
.mini-card,
.policy-summary {
  border: 1px solid rgba(20, 18, 15, 0.055);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-card {
  border-radius: 24px;
  padding: 26px 24px 28px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(20, 18, 15, 0.66);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-label span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(216, 84, 42, 0.1);
  color: var(--accent-text);
  font-size: 0.87rem;
  font-weight: 850;
}

.step-card h3 {
  margin: 18px 0 0;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.step-card p {
  margin: 9px 0 0;
  color: rgba(20, 18, 15, 0.59);
  font-size: 0.97rem;
  line-height: 1.53;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(38px, 7vw, 88px);
}

.feature-row + .feature-row {
  margin-top: clamp(76px, 9vw, 114px);
}

.feature-row.reverse {
  grid-template-columns: auto minmax(0, 1fr);
}

.feature-copy {
  max-width: 540px;
}

.feature-copy h2 {
  font-size: clamp(1.95rem, 3.8vw, 2.9rem);
}

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

.feature-list li,
.check-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(20, 18, 15, 0.76);
  font-size: 0.98rem;
  line-height: 1.48;
}

.feature-list li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent-text);
  content: "→";
  font-weight: 850;
}

.check-list li::before {
  content: "✓";
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.mini-card {
  border-radius: 16px;
  padding: 16px;
}

.mini-card strong,
.mini-card span {
  display: block;
}

.mini-card span {
  margin-top: 4px;
  color: rgba(20, 18, 15, 0.66);
  font-size: 0.86rem;
  line-height: 1.42;
}

.detail-ui .meal-photo {
  width: 100%;
  height: 27%;
  object-fit: cover;
}

.detail-ui .screen-content {
  padding-top: 4%;
}

.detail-ui h3 {
  margin: 0;
  font-size: 1.55em;
  letter-spacing: -0.04em;
}

.nutrition-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 5%;
}

.nutrition-total strong {
  font-size: 3.1em;
  letter-spacing: -0.065em;
}

.nutrition-total span {
  color: #77717d;
}

.ingredient-card {
  margin-top: 5%;
  padding: 4%;
}

.ingredient {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  padding: 9px 3px;
}

.ingredient + .ingredient {
  border-top: 1px solid #ebe7ec;
}

.ingredient small {
  grid-column: 1 / -1;
  color: #837e86;
}

.portion-control {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  margin-top: 5%;
  border-radius: 14px;
  background: #ece9ef;
  padding: 4px;
  text-align: center;
}

.portion-control span {
  border-radius: 11px;
  padding: 9px 4px;
}

.portion-control .portion-value {
  background: #fff;
  font-weight: 750;
  box-shadow: 0 2px 9px rgba(30, 25, 35, 0.08);
}

.trend-ui {
  background: linear-gradient(180deg, #f3f2f8 0%, #faf9fc 100%);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 11px;
  background: #e8e5eb;
  padding: 3px;
  text-align: center;
}

.segmented span {
  border-radius: 9px;
  padding: 7px;
  color: #77717e;
  font-weight: 700;
}

.segmented .active {
  background: #fff;
  color: #17141a;
  box-shadow: 0 2px 8px rgba(27, 22, 31, 0.08);
}

.week-summary {
  margin-top: 5%;
  padding: 6%;
}

.week-summary strong,
.week-summary small {
  display: block;
}

.week-summary > strong {
  font-size: 2.5em;
  letter-spacing: -0.06em;
}

.week-summary > small {
  margin-top: 2px;
  color: #817b84;
}

.bar-chart {
  height: 140px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 8%;
  border-bottom: 1px solid #dcd8df;
}

.bar-chart span {
  flex: 1;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
}

.bar-chart span:nth-child(1) { height: 55%; }
.bar-chart span:nth-child(2) { height: 76%; }
.bar-chart span:nth-child(3) { height: 63%; }
.bar-chart span:nth-child(4) { height: 84%; }
.bar-chart span:nth-child(5) { height: 70%; }
.bar-chart span:nth-child(6) { height: 79%; }
.bar-chart span:nth-child(7) { height: 61%; background: #1f1b20; }

.chart-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 5px;
  color: #8a858d;
  font-size: 0.75em;
  text-align: center;
}

.chart-labels span:last-child {
  color: #1f1b20;
  font-weight: 800;
}

.stat-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
}

.stat-card {
  border-radius: 22px;
  padding: 24px;
}

.stat-card.dark {
  background: var(--ink);
  color: var(--paper);
}

.stat-card strong {
  display: block;
  color: var(--accent-text);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.045em;
}

.stat-card.dark strong {
  color: var(--paper);
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: rgba(20, 18, 15, 0.64);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stat-card.dark span {
  color: rgba(250, 247, 243, 0.64);
}

.pro-panel,
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 58px);
}

.pro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
  border: 1px solid rgba(20, 18, 15, 0.055);
  background: #fff;
  box-shadow: var(--shadow);
}

.pro-panel h2,
.cta-panel h2 {
  font-size: clamp(2rem, 4.2vw, 3.45rem);
}

.pro-note {
  display: block;
  margin-top: 17px;
  color: rgba(20, 18, 15, 0.64);
  font-size: 0.82rem;
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 8px;
  max-width: 860px;
  margin: 34px auto 0;
}

.faq-list details {
  border: 1px solid rgba(20, 18, 15, 0.055);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 18, 15, 0.05);
  padding: 2px 22px;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 0;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 700;
  list-style: none;
}

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

.faq-list summary::after {
  color: var(--accent-text);
  content: "+";
  font-size: 1.1rem;
  font-weight: 850;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 0 20px;
  color: rgba(20, 18, 15, 0.61);
  font-size: 0.97rem;
  line-height: 1.58;
}

.cta-panel {
  background: var(--ink);
  color: var(--paper);
}

.cta-panel::after {
  top: -160px;
  right: -120px;
  width: 620px;
  height: 520px;
  background: radial-gradient(ellipse, rgba(242, 160, 61, 0.27), rgba(242, 160, 61, 0) 68%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.cta-panel p {
  margin: 16px 0 0;
  color: rgba(250, 247, 243, 0.66);
  font-size: 1.08rem;
  line-height: 1.55;
}

.example-note {
  width: min(100%, var(--page));
  margin: 30px auto 0;
  color: rgba(20, 18, 15, 0.63);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer {
  padding: clamp(48px, 6vw, 72px) 20px 42px;
  background: var(--paper);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  color: var(--ink);
}

.footer-brand p {
  margin: 12px 0 0;
  color: rgba(20, 18, 15, 0.64);
  font-size: 0.86rem;
  line-height: 1.55;
}

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

.footer-group {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-group strong {
  color: rgba(20, 18, 15, 0.63);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-group a {
  color: rgba(20, 18, 15, 0.66);
  font-size: 0.89rem;
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--accent-text);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: rgba(20, 18, 15, 0.63);
  font-size: 0.79rem;
  line-height: 1.55;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 132px 20px 72px;
}

.legal-hero::before {
  position: absolute;
  top: -230px;
  left: 50%;
  width: 760px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(216, 84, 42, 0.35), rgba(216, 84, 42, 0) 68%);
  content: "";
}

.legal-heading {
  position: relative;
  width: min(100%, 900px);
  margin-inline: auto;
}

.legal-heading h1 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(2.7rem, 7vw, 4.7rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.legal-heading p {
  max-width: 670px;
  margin: 18px 0 0;
  color: rgba(250, 247, 243, 0.68);
  font-size: 1.05rem;
  line-height: 1.55;
}

.legal-main {
  padding: 54px 20px 100px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 730px);
  justify-content: center;
  gap: 46px;
}

.legal-nav {
  position: sticky;
  top: 102px;
  align-self: start;
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.legal-nav strong {
  margin-bottom: 5px;
  color: rgba(20, 18, 15, 0.66);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-nav a {
  border-radius: 8px;
  color: rgba(20, 18, 15, 0.66);
  padding: 6px 7px;
  font-size: 0.83rem;
  line-height: 1.3;
  text-decoration: none;
}

.legal-nav a:hover {
  background: rgba(216, 84, 42, 0.08);
  color: var(--accent-text);
}

.legal-article {
  min-width: 0;
}

.effective-date {
  margin: 0 0 26px;
  color: rgba(20, 18, 15, 0.64);
  font-size: 0.86rem;
}

.policy-summary {
  margin-bottom: 30px;
  border-radius: 20px;
  padding: 20px 22px;
}

.policy-summary strong {
  display: block;
  font-size: 1rem;
}

.policy-summary p {
  margin: 7px 0 0;
  font-size: 0.92rem;
}

.legal-article h2 {
  margin: 44px 0 12px;
  scroll-margin-top: 110px;
  font-size: 1.42rem;
  letter-spacing: -0.025em;
}

.legal-article h3 {
  margin: 25px 0 8px;
  font-size: 1.05rem;
}

.legal-article p,
.legal-article li {
  color: rgba(20, 18, 15, 0.72);
  font-size: 0.98rem;
  line-height: 1.72;
}

.legal-article ul,
.legal-article ol {
  padding-left: 1.25rem;
}

.legal-article li + li {
  margin-top: 7px;
}

.notice {
  margin-top: 24px;
  border-left: 4px solid var(--accent-light);
  border-radius: 0 14px 14px 0;
  background: #fff4df;
  padding: 15px 17px;
}

.notice p {
  margin: 0;
  color: #52380f;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin: 26px 0 36px;
}

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

.support-card strong,
.support-card span {
  display: block;
}

.support-card span {
  margin-top: 7px;
  color: rgba(20, 18, 15, 0.64);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .feature-copy {
    max-width: 720px;
  }

  .hero-phone {
    margin-top: 12px;
  }

  .feature-row.reverse .phone-wrap {
    order: 2;
  }

  .pro-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

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

  .legal-layout {
    grid-template-columns: minmax(0, 730px);
  }

  .legal-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 10px;
    white-space: nowrap;
  }

  .legal-nav strong {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-inline: 18px;
  }

  .hero h1 br {
    display: none;
  }

  .floating-result {
    right: -4px;
    bottom: 7%;
    left: auto;
    width: 45%;
  }

  .floating-result img {
    height: 105px;
  }

  .mini-grid,
  .stat-grid,
  .support-cards {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 30px;
  }

  .legal-hero {
    padding-top: 120px;
  }
}

@media (max-width: 420px) {
  .site-nav {
    padding-inline: 10px;
  }

  .nav-shell {
    padding-left: 12px;
  }

  .nav-cta {
    padding-inline: 12px;
  }

  .hero,
  .section,
  .site-footer,
  .legal-main,
  .legal-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .floating-result {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.error-page {
  min-height: 74vh;
  display: grid;
  align-items: center;
}

@media print {
  .site-nav,
  .skip-link,
  .legal-nav,
  .site-footer {
    display: none !important;
  }

  .legal-hero {
    background: #fff;
    color: #000;
    padding: 30px 0 20px;
  }

  .legal-hero::before {
    display: none;
  }

  .legal-heading p,
  .legal-article p,
  .legal-article li {
    color: #222;
  }

  .legal-main {
    padding: 0;
  }
}
