:root {
  --ink: #111827;
  --ink-soft: #475467;
  --paper: #ffffff;
  --canvas: #f6f7fb;
  --violet: #6d5ef7;
  --violet-dark: #5545e8;
  --violet-soft: #ece9ff;
  --mint: #b8f3d4;
  --mint-strong: #22c55e;
  --coral: #ff7a59;
  --amber: #ffbf47;
  --line: #e7e9f0;
  --danger: #d92d20;
  --shadow: 0 20px 60px rgba(17, 24, 39, .09);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section-pad { padding: 108px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(231,233,240,.7); background: rgba(255,255,255,.86); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 850; letter-spacing: -.04em; white-space: nowrap; }
.brand > span:last-child > span { color: var(--violet); }
.brand-mark { width: 38px; height: 38px; display: inline-grid; place-items: center; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark rect { fill: var(--violet); }
.brand-mark circle:first-of-type { fill: none; stroke: #fff; stroke-width: 3; }
.brand-mark circle:last-of-type { fill: #fff; }
.desktop-nav { margin-left: auto; display: flex; gap: 26px; font-size: 14px; font-weight: 700; }
.desktop-nav a { color: #344054; transition: color .2s; }
.desktop-nav a:hover { color: var(--violet); }
.header-cta { margin-left: 10px; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 12px; background: var(--canvas); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 2px; }
.mobile-menu { padding: 8px 20px 20px; background: #fff; border-top: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 12px 0; font-weight: 700; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 0; border-radius: 15px; font-weight: 800; letter-spacing: -.01em; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-button:focus-visible, a:focus-visible, .upload-zone:focus-visible, summary:focus-visible { outline: 3px solid rgba(109,94,247,.35); outline-offset: 3px; }
.button-primary { color: #fff; background: var(--violet); box-shadow: 0 12px 28px rgba(109,94,247,.28); }
.button-primary:hover { background: var(--violet-dark); box-shadow: 0 16px 34px rgba(109,94,247,.34); }
.button-dark { color: #fff; background: var(--ink); }
.button-light { color: var(--ink); background: #fff; }
.button-small { min-height: 44px; padding: 0 18px; border-radius: 13px; font-size: 14px; }
.button-wide { width: 100%; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.text-button { padding: 8px 0; border: 0; background: transparent; font-weight: 800; cursor: pointer; }
.text-button span { color: var(--violet); }
.text-button.danger { color: var(--danger); }

.hero { position: relative; overflow: hidden; padding-top: 88px; background: radial-gradient(circle at 12% 20%, rgba(184,243,212,.45), transparent 28%), radial-gradient(circle at 78% 18%, rgba(236,233,255,.82), transparent 35%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 72px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; color: var(--violet); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 22px; height: 2px; background: currentColor; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(44px, 5.7vw, 74px); }
h2 { margin-bottom: 20px; font-size: clamp(34px, 4vw, 54px); }
h3 { margin-bottom: 12px; font-size: 22px; }
.lead { max-width: 640px; margin: 0 0 32px; color: var(--ink-soft); font-size: 19px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; }
.trust-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: #344054; font-size: 14px; }
.trust-list li { display: flex; align-items: center; gap: 10px; }
.trust-list li span { width: 23px; height: 23px; display: grid; place-items: center; color: var(--violet); background: var(--violet-soft); border-radius: 50%; font-weight: 900; }
.hero-visual { position: relative; z-index: 1; min-height: 590px; }
.hero-visual::before { content: ""; position: absolute; inset: 30px -24px -20px 22px; border-radius: 48px; background: linear-gradient(145deg, var(--violet-soft), var(--mint)); transform: rotate(3deg); }
.hero-visual img { position: relative; width: 100%; height: 590px; object-fit: cover; object-position: center 18%; border-radius: 42px; box-shadow: var(--shadow); }
.visual-label { position: absolute; z-index: 3; top: 22px; left: -28px; padding: 10px 14px; color: var(--ink); background: var(--mint); border: 5px solid #fff; border-radius: 999px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-4deg); }
.floating-result { position: absolute; z-index: 3; right: -28px; bottom: 80px; width: 220px; padding: 20px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.75); border-radius: 22px; box-shadow: 0 20px 50px rgba(17,24,39,.18); }
.floating-caption { display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: 12px; }
.floating-result > strong { display: block; margin-bottom: 12px; font-size: 34px; letter-spacing: -.04em; }
.floating-result strong small { font-size: 14px; }
.floating-result > div { display: grid; gap: 4px; color: var(--ink-soft); font-size: 11px; }
.privacy-chip { position: absolute; z-index: 3; left: 26px; bottom: -20px; padding: 13px 18px; color: #fff; background: var(--ink); border: 5px solid #fff; border-radius: 999px; font-size: 13px; font-weight: 800; }
.privacy-chip span { color: var(--mint); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero-orb-one { width: 120px; height: 120px; left: -50px; bottom: 90px; border: 22px solid rgba(255,122,89,.18); }
.hero-orb-two { width: 48px; height: 48px; right: 3%; top: 12%; background: var(--amber); opacity: .45; }

.quick-note { border-block: 1px solid var(--line); background: var(--canvas); }
.quick-note-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding-block: 20px; }
.quick-note strong { color: var(--violet); }
.quick-note p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.calculator-section { background: #fff; }
.section-heading { max-width: 790px; margin-bottom: 48px; }
.section-heading p:last-child { color: var(--ink-soft); }
.section-heading-split { max-width: none; display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 70px; }
.section-heading-split > p { margin: 0 0 8px; }
.calculator-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 650px; overflow: hidden; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.upload-panel { padding: 32px; background: linear-gradient(145deg, #eef0ff, #f8f8fc 48%, #edfff4); }
.upload-zone { position: relative; height: 500px; overflow: hidden; display: grid; place-items: center; padding: 30px; border: 2px dashed #b8bdcc; border-radius: 27px; background: rgba(255,255,255,.7); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--violet); background: #fff; transform: translateY(-2px); }
.upload-empty { max-width: 360px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.upload-empty strong { font-size: 20px; }
.upload-empty span { color: var(--ink-soft); }
.upload-empty small { margin-top: 4px; color: #667085; }
.upload-icon { width: 80px; height: 80px; display: grid; place-items: center; margin-bottom: 8px; background: var(--violet-soft); border-radius: 26px; transform: rotate(-5deg); }
.upload-icon svg { width: 44px; height: 44px; fill: none; stroke: var(--violet); stroke-width: 2.5; }
#photo-preview { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.replace-photo { position: absolute; right: 18px; bottom: 18px; padding: 10px 15px; color: #fff; background: rgba(17,24,39,.84); border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; }
.sample-link { display: block; margin: 17px auto 8px; padding: 5px; border: 0; border-bottom: 1px dashed currentColor; color: var(--violet); background: transparent; font-size: 13px; font-weight: 800; cursor: pointer; }
.local-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 14px 0 0; color: #667085; font-size: 12px; text-align: center; }
.result-panel { display: flex; flex-direction: column; justify-content: center; padding: 52px; background: #fff; }
.analysis-state { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; margin-bottom: 28px; padding: 9px 13px; color: #667085; background: var(--canvas); border-radius: 999px; font-size: 12px; font-weight: 800; }
.analysis-state.ready { color: #027a48; background: #ecfdf3; }
.analysis-state.processing { color: #5925dc; background: #f4f3ff; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #98a2b3; }
.analysis-state.processing .pulse-dot { background: var(--violet); animation: pulse 1s infinite; }
.analysis-state.ready .pulse-dot { background: var(--mint-strong); }
@keyframes pulse { 50% { opacity: .3; transform: scale(1.6); } }
.field-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 16px; margin-bottom: 18px; }
.field { display: grid; gap: 8px; color: #344054; font-size: 13px; font-weight: 800; }
.field select, .field input { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid #d0d5dd; border-radius: 13px; background: #fff; color: var(--ink); outline: none; }
.field select:focus, .field input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109,94,247,.1); }
.field select:disabled, .field input:disabled { background: #f9fafb; color: #98a2b3; }
.nutrition-result { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.calorie-total > span { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.calorie-total > strong { display: block; margin: 4px 0 7px; font-size: 52px; letter-spacing: -.05em; }
.calorie-total > strong small { font-size: 17px; }
.calorie-total p { margin: 0 0 24px; color: var(--ink-soft); font-size: 13px; }
.macro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.macro-grid > div { position: relative; padding: 16px 12px; background: var(--canvas); border-radius: 15px; }
.macro-grid strong, .macro-grid small { display: block; }
.macro-grid strong { margin-top: 11px; font-size: 18px; }
.macro-grid small { color: #667085; font-size: 11px; }
.macro-dot { position: absolute; top: 13px; right: 13px; width: 8px; height: 8px; border-radius: 50%; }
.protein { background: var(--violet); }.fat { background: var(--coral); }.carbs { background: var(--amber); }.fiber { background: var(--mint-strong); }
.result-actions { display: grid; gap: 8px; text-align: center; }
.diary-card { margin-top: 28px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 16px 44px rgba(17,24,39,.06); }
.diary-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.diary-header h3 { margin: 0; font-size: 28px; }
.diary-table-wrap { overflow-x: auto; }
.diary-card table { width: 100%; border-collapse: collapse; min-width: 720px; }
.diary-card th, .diary-card td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.diary-card thead th { color: #667085; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.diary-card tfoot th, .diary-card tfoot td { border-bottom: 0; font-weight: 900; }
.delete-row { width: 30px; height: 30px; border: 0; border-radius: 9px; color: var(--danger); background: #fef3f2; cursor: pointer; }

.dark-section { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.dark-section::before { content: ""; position: absolute; width: 460px; height: 460px; right: -180px; top: -180px; border-radius: 50%; background: rgba(109,94,247,.32); filter: blur(2px); }
.light-heading { position: relative; }
.light-heading .eyebrow { color: var(--mint); }
.light-heading p:last-child { color: #b8c0cf; }
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { min-height: 310px; padding: 32px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); background: rgba(255,255,255,.045); }
.step-card.featured-step { color: var(--ink); background: var(--mint); transform: translateY(24px); }
.step-number { display: block; margin-bottom: 40px; color: #98a2b3; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.featured-step .step-number { color: #027a48; }
.step-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 24px; color: var(--ink); background: #fff; border-radius: 16px; font-size: 26px; }
.step-card p { margin: 0; color: #b8c0cf; }
.featured-step p { color: #344054; }

.content-section { background: var(--canvas); }
.content-grid { display: grid; grid-template-columns: 270px minmax(0, 760px); justify-content: space-between; align-items: start; gap: 76px; }
.toc-card { position: sticky; top: 104px; display: grid; gap: 4px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 34px rgba(17,24,39,.05); }
.toc-card strong { margin-bottom: 10px; font-size: 18px; }
.toc-card a { padding: 8px 0; color: #667085; font-size: 13px; border-bottom: 1px solid var(--line); }
.toc-card a:last-child { border-bottom: 0; }
.toc-card a:hover { color: var(--violet); }
.article-content h2 { margin-top: 70px; font-size: clamp(31px, 3vw, 43px); scroll-margin-top: 110px; }
.article-content h2:first-child { margin-top: 0; }
.article-content p { margin: 0 0 20px; color: #344054; font-size: 17px; }
.callout { margin: 38px 0; padding: 28px; border-left: 5px solid var(--violet); border-radius: 0 18px 18px 0; background: var(--violet-soft); }
.callout strong { display: block; margin-bottom: 8px; font-size: 20px; }
.callout p { margin: 0; }
.number-list { margin: 24px 0; padding: 0; list-style: none; counter-reset: tips; }
.number-list li { position: relative; min-height: 56px; padding: 4px 0 22px 58px; color: #344054; counter-increment: tips; }
.number-list li::before { content: counter(tips); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; color: var(--violet); background: #fff; border: 1px solid #d9d6fe; border-radius: 12px; font-weight: 900; }
.responsive-table { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.responsive-table table { width: 100%; min-width: 680px; border-collapse: collapse; }
.responsive-table th, .responsive-table td { padding: 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.responsive-table th { background: #f0efff; font-size: 13px; }
.responsive-table tr:last-child td { border-bottom: 0; }
.check-list { display: grid; gap: 13px; margin: 24px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; color: #344054; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: var(--violet); border-radius: 8px; font-size: 12px; font-weight: 900; }

.feature-section { background: #fff; }
.feature-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 76px; }
.feature-image { position: relative; }
.feature-image::before { content: ""; position: absolute; inset: -20px 20px 20px -20px; border-radius: 34px; background: var(--mint); }
.feature-image img { position: relative; aspect-ratio: 16/10; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow); }
.image-badge { position: absolute; right: -16px; top: 30px; padding: 12px 18px; color: #fff; background: var(--coral); border: 5px solid #fff; border-radius: 999px; font-weight: 900; transform: rotate(4deg); }
.feature-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 17px; }
.feature-points { display: grid; gap: 8px; margin: 30px 0; }
.feature-points > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feature-points span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--violet); background: var(--violet-soft); border-radius: 13px; font-size: 12px; font-weight: 900; }
.feature-points p { margin: 0; color: var(--ink-soft); }

.faq-section { background: var(--canvas); }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro p:last-child { color: var(--ink-soft); }
.faq-list { display: grid; gap: 12px; }
details { padding: 0 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
summary { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 850; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: var(--violet); background: var(--violet-soft); border-radius: 9px; font-size: 20px; transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
details p { margin: -6px 0 24px; color: var(--ink-soft); }

.final-cta { padding: 42px 0; background: var(--violet); color: #fff; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.final-cta .eyebrow { color: var(--mint); }
.final-cta h2 { margin-bottom: 10px; font-size: clamp(32px, 4vw, 48px); }
.final-cta p { margin: 0; color: #e9e7ff; }

.site-footer { padding: 70px 0 28px; color: #d0d5dd; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 70px; padding-bottom: 54px; }
.footer-brand { color: #fff; }
.footer-grid p { max-width: 420px; color: #98a2b3; }
.footer-grid > div:not(:first-child) { display: grid; align-content: start; gap: 10px; }
.footer-grid strong { margin-bottom: 5px; color: #fff; }
.footer-grid a { color: #98a2b3; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #667085; font-size: 12px; }

.toast { position: fixed; z-index: 200; left: 50%; bottom: 26px; max-width: calc(100% - 32px); padding: 13px 18px; color: #fff; background: var(--ink); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { position: fixed; z-index: 999; inset: auto 15px 15px; padding: 14px; color: #fff; background: var(--danger); border-radius: 12px; text-align: center; }

.legal-page { min-height: 100vh; background: var(--canvas); }
.legal-main { padding: 80px 0 110px; }
.legal-card { max-width: 840px; margin: auto; padding: 54px; background: #fff; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.legal-card h1 { font-size: clamp(38px, 5vw, 58px); }
.legal-card h2 { margin-top: 46px; font-size: 30px; }
.legal-card p, .legal-card li { color: #344054; }
.legal-card .updated { color: #667085; font-size: 13px; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 20% 20%, var(--mint), transparent 30%), var(--canvas); }
.error-card { max-width: 650px; padding: 60px; text-align: center; background: #fff; border-radius: 32px; box-shadow: var(--shadow); }
.error-code { display: block; color: var(--violet); font-size: 100px; font-weight: 950; line-height: 1; letter-spacing: -.08em; }

@media (max-width: 1040px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .feature-grid { gap: 44px; }
  .hero-visual { min-height: 520px; }
  .hero-visual img { height: 520px; }
  .floating-result { right: 10px; }
  .calculator-shell { grid-template-columns: 1fr; }
  .upload-zone { height: 430px; }
  .result-panel { min-height: 520px; }
  .content-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 46px; }
  .faq-grid { gap: 50px; }
}

@media (max-width: 820px) {
  .section-pad { padding: 80px 0; }
  .hero-grid, .section-heading-split, .feature-grid, .faq-grid, .content-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { width: min(100%, 620px); margin: 20px auto 0; }
  .visual-label { left: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card.featured-step { transform: none; }
  .toc-card, .faq-intro { position: static; }
  .toc-card { grid-template-columns: repeat(2, 1fr); }
  .toc-card strong { grid-column: 1 / -1; }
  .article-content h2 { margin-top: 56px; }
  .feature-image { order: 2; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 68px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 34px; height: 34px; }
  .section-pad { padding: 64px 0; }
  h1 { font-size: 43px; }
  h2 { font-size: 35px; }
  .lead { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .hero-actions .text-button { text-align: left; }
  .hero-visual { min-height: 430px; }
  .hero-visual img { height: 430px; border-radius: 28px; }
  .hero-visual::before { inset: 18px -8px -12px 10px; border-radius: 32px; }
  .floating-result { right: 8px; bottom: 32px; width: 185px; padding: 15px; }
  .floating-result > strong { font-size: 28px; }
  .privacy-chip { left: 10px; bottom: -18px; font-size: 11px; }
  .quick-note-inner { grid-template-columns: 1fr; gap: 2px; }
  .section-heading { margin-bottom: 34px; }
  .upload-panel { padding: 16px; }
  .upload-zone { height: 350px; padding: 18px; }
  .upload-empty strong { font-size: 18px; }
  .result-panel { min-height: auto; padding: 32px 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .macro-grid { grid-template-columns: repeat(2, 1fr); }
  .calorie-total > strong { font-size: 44px; }
  .diary-card { padding: 22px 16px; }
  .diary-header { align-items: flex-start; flex-direction: column; }
  .step-card { min-height: auto; padding: 26px; }
  .step-number { margin-bottom: 24px; }
  .toc-card { grid-template-columns: 1fr; }
  .toc-card strong { grid-column: auto; }
  .article-content p { font-size: 16px; }
  .callout { padding: 22px; }
  .feature-grid { gap: 50px; }
  .feature-image::before { inset: -12px 12px 12px -12px; }
  .feature-image img { border-radius: 24px; }
  .image-badge { right: 4px; top: 18px; }
  .faq-grid { gap: 30px; }
  details { padding: 0 18px; }
  summary { min-height: 70px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .legal-card { padding: 30px 22px; border-radius: 22px; }
  .error-card { padding: 42px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
