:root {
  --blue: #1a73e8;
  --blue-dark: #1558b0;
  --blue-soft: #e8f0fe;
  --green: #188038;
  --green-soft: #e6f4ea;
  --yellow: #f9ab00;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --surface: #f8fafd;
  --white: #fff;
  --shadow: 0 1px 2px rgba(60,64,67,.12), 0 2px 8px rgba(60,64,67,.08);
  --shadow-lg: 0 10px 40px rgba(60,64,67,.13);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 800px); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(218,220,224,.75); backdrop-filter: blur(14px); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 720; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 11px; box-shadow: var(--shadow); }
.brand-mark::before { content: "✓"; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); text-decoration: none; }
.nav-cta { color: white !important; background: var(--blue) !important; }
.menu-button { display: none; border: 0; background: transparent; font-size: 24px; color: var(--ink); }

.language-picker { position: relative; }
.language-picker summary { cursor: pointer; list-style: none; color: var(--muted); padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 700; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover { color: var(--blue); background: var(--blue-soft); }
.language-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 180px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.language-menu a { display: block; white-space: nowrap; }
.language-menu a[aria-current="true"] { color: var(--blue); background: var(--blue-soft); }

.hero { position: relative; overflow: hidden; padding: 72px 0 54px; }
.hero::before { content: ""; position: absolute; width: 540px; height: 540px; right: -190px; top: -250px; border-radius: 50%; background: radial-gradient(circle, #e8f0fe 0 45%, transparent 70%); z-index: -1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); background: var(--green-soft); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { max-width: 850px; margin: 18px 0; font-size: clamp(42px, 7vw, 76px); font-weight: 760; }
.hero h1 span, .page-hero h1 span { color: var(--blue); }
.hero-copy { max-width: 690px; color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 24px; color: var(--blue); background: var(--white); font-weight: 700; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); text-decoration: none; }
.button.primary { color: white; border-color: var(--blue); background: var(--blue); }
.button.small { min-height: 40px; padding-inline: 16px; font-size: 14px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 800; }

.section { padding: 80px 0; }
.section.tinted { background: var(--surface); }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-kicker { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin: 8px 0 12px; font-size: clamp(30px, 4.5vw, 48px); }
.section-heading p { color: var(--muted); font-size: 18px; }

.answer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.answer-step { padding: 4px 8px 4px 0; }
.answer-step > span { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 11px; font-weight: 800; }
.answer-step h3 { margin: 14px 0 7px; font-size: 19px; }
.answer-step p { margin: 0; color: var(--muted); }

.planner-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card { padding: 26px; }
.form-card h3 { margin: 0 0 5px; font-size: 23px; }
.form-card > p { margin: 0 0 22px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { color: #3c4043; font-size: 13px; font-weight: 700; }
input, select { width: 100%; height: 48px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; padding: 0 13px; outline: none; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,115,232,.14); }
.form-submit { width: 100%; margin-top: 20px; border: 0; }
.microcopy { margin: 12px 0 0 !important; color: var(--muted); font-size: 12px; text-align: center; }

.result-card { min-height: 400px; padding: 28px; }
.result-empty { min-height: 360px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.result-empty-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 22px; color: var(--blue); background: var(--blue-soft); font-size: 34px; }
.result-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.result-header h3 { margin: 0 0 5px; font-size: 25px; }
.result-header p { margin: 0; color: var(--muted); }
.monthly-goal { display: grid; gap: 8px; margin: 20px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.monthly-goal span, .monthly-goal small { color: var(--muted); font-size: 12px; }
.monthly-goal strong { display: block; margin-top: 4px; font-size: 20px; line-height: 1.35; }
.bmi-badge { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 13px; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.metric { padding: 14px; background: var(--surface); border-radius: 14px; }
.metric strong { display: block; font-size: 22px; line-height: 1.25; }
.metric span { color: var(--muted); font-size: 12px; }
.priority-list { display: grid; gap: 12px; margin: 18px 0 0; }
.priority { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; }
.priority-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--blue); font-weight: 800; }
.priority strong { display: block; font-size: 14px; }
.priority small { display: block; color: var(--muted); }
.priority-weight { color: var(--blue); font-size: 13px; font-weight: 800; }
.result-note { margin-top: 16px; padding: 13px 15px; color: #7a4d00; background: #fef7e0; border-radius: 12px; font-size: 13px; }

.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 25px; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 15px; font-size: 23px; background: var(--blue-soft); }
.feature-card:nth-child(2) .feature-icon { background: var(--green-soft); }
.feature-card:nth-child(3) .feature-icon { background: #fef7e0; }
.feature-card h3 { margin: 0 0 8px; font-size: 22px; }
.feature-card p { color: var(--muted); }
.text-link { font-weight: 750; }

.challenge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.challenge-week { padding: 25px; }
.challenge-week span { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.challenge-week h3 { margin: 10px 0 8px; font-size: 22px; }
.challenge-week p { margin: 0; color: var(--muted); }
.challenge-note { margin-top: 24px; padding: 24px 26px; color: #174322; background: var(--green-soft); border-radius: var(--radius); }
.challenge-note strong { display: block; margin-bottom: 6px; font-size: 18px; }
.challenge-note p { margin: 0; }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.principle { display: flex; gap: 17px; padding: 22px; }
.principle-number { color: var(--blue); font-size: 26px; font-weight: 800; }
.principle h3 { margin: 2px 0 6px; font-size: 19px; }
.principle p { margin: 0; color: var(--muted); }
.story-band { display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; }
.story-visual { min-height: 360px; display: grid; align-content: end; padding: 38px; color: white; background: linear-gradient(145deg, #1a73e8, #0d47a1); position: relative; }
.story-visual::before { content: "25"; position: absolute; right: 25px; top: -30px; color: rgba(255,255,255,.11); font-size: 180px; font-weight: 900; line-height: 1; }
.story-stat { font-size: 62px; font-weight: 800; line-height: 1; }
.story-visual p { max-width: 300px; margin-bottom: 0; opacity: .88; }
.story-copy { padding: clamp(30px, 5vw, 58px); }
.story-copy blockquote { margin: 0 0 24px; font-size: clamp(23px, 3vw, 34px); line-height: 1.35; letter-spacing: -.025em; }
.story-copy p { color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 4px; font-weight: 750; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--blue); font-size: 22px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -5px 4px 20px; color: var(--muted); }

.page-hero { padding: 68px 0 52px; background: linear-gradient(180deg, var(--surface), #fff); }
.page-hero h1 { max-width: 850px; margin: 14px 0; font-size: clamp(38px, 6vw, 64px); }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 20px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 54px; align-items: start; }
.article h2 { margin-top: 54px; font-size: 34px; }
.article h3 { margin-top: 30px; font-size: 23px; }
.article p, .article li { color: #3c4043; }
.article li { margin-bottom: 8px; }
.article-lead { font-size: 20px; color: var(--muted) !important; }
.callout { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--blue); border-radius: 0 14px 14px 0; background: var(--blue-soft); }
.callout.warning { border-color: var(--yellow); background: #fef7e0; }
.callout strong { display: block; margin-bottom: 4px; }
.calorie-dashboard, .calorie-workspace { display: grid; gap: 20px; }
.calorie-dashboard { grid-template-columns: .7fr 1.3fr; margin-bottom: 20px; }
.calorie-workspace { grid-template-columns: 1fr 1fr; }
.calorie-goal, .meal-ideas, .calorie-entry, .calorie-log { padding: 24px; }
.calorie-goal span, .calorie-goal small, .meal-ideas > p, .calorie-disclaimer, .food-log-empty { color: var(--muted); }
.calorie-goal strong { display: block; margin: 7px 0; font-size: 32px; }
.food-form { display: grid; grid-template-columns: 1.5fr .7fr .8fr auto; gap: 10px; align-items: end; }
.food-form label { display: grid; gap: 6px; }
.custom-food { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.custom-food summary { cursor: pointer; font-weight: 750; }
.custom-food-form { grid-template-columns: 1.3fr .8fr .7fr .7fr auto; margin-top: 16px; }
.calorie-disclaimer { margin: 18px 0 0; font-size: 12px; }
.meal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.meal-grid article { padding: 14px; background: var(--surface); border-radius: 12px; }
.meal-grid span, .meal-grid small { display: block; color: var(--muted); font-size: 12px; }
.meal-grid strong { display: block; margin: 8px 0; font-size: 15px; }
.calorie-log-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.calorie-log-header h3 { margin: 0; }
.text-button { border: 0; color: var(--blue); background: transparent; cursor: pointer; font-weight: 700; }
.food-log-rows { display: grid; gap: 10px; margin-top: 18px; }
.food-log-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.food-log-row small { display: block; color: var(--muted); }
.food-log-row button { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 20px; }
.calorie-summary { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--ink); }
.calorie-summary strong { display: block; font-size: 22px; }
.calorie-summary small { color: var(--green); font-weight: 700; }
.calorie-summary small.over { color: #b3261e; }
.article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article th, .article td { padding: 13px; border: 1px solid var(--line); text-align: left; }
.article th { background: var(--surface); }
.toc { position: sticky; top: 92px; padding: 20px; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; }
.author-box { display: flex; gap: 18px; margin-top: 48px; padding: 24px; }
.author-avatar { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; font-weight: 800; }
.author-box h3 { margin: 0 0 5px; }
.author-box p { margin: 0; color: var(--muted); }

.cta-band { padding: 38px; text-align: center; color: white; background: var(--blue); border-radius: 28px; }
.cta-band h2 { margin-top: 0; }
.cta-band p { max-width: 600px; margin: 0 auto 20px; color: rgba(255,255,255,.86); }
.cta-band .button { color: var(--blue); }

.site-footer { padding: 48px 0 25px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-grid h3 { color: var(--ink); font-size: 14px; letter-spacing: 0; }
.footer-grid a { display: block; padding: 4px 0; color: var(--muted); font-size: 14px; }
.footer-note { max-width: 360px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }

.legal { padding: 70px 0; }
.legal h1 { font-size: 48px; }
.legal h2 { margin-top: 36px; font-size: 26px; }

@media (max-width: 900px) {
  .planner-shell, .story-band, .article-layout, .answer-grid, .calorie-dashboard, .calorie-workspace { grid-template-columns: 1fr; }
  .three-grid { grid-template-columns: 1fr; }
  .story-visual { min-height: 280px; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; inset: 68px 12px auto; flex-direction: column; align-items: stretch; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .language-picker { width: 100%; }
  .language-picker summary { padding: 9px 12px; }
  .language-menu { position: static; margin-top: 4px; box-shadow: none; }
  .hero { padding-top: 50px; }
  h1 { font-size: 44px; }
  .section { padding: 58px 0; }
  .field-grid, .principles, .metric-grid, .challenge-grid, .meal-grid, .food-form, .custom-food-form { grid-template-columns: 1fr; }
  .priority { grid-template-columns: 42px 1fr; }
  .priority-weight { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .form-card, .cta-band { display: none; }
  .planner-shell { display: block; }
  .result-card { border: 0; box-shadow: none; }
}
