
:root {
  color-scheme: light;
  --paper: #f4f3ed;
  --paper-deep: #eae9e1;
  --white: #fbfbf8;
  --ink: #1d2925;
  --ink-soft: #52605a;
  --muted: #79837d;
  --line: #d9ddd4;
  --line-strong: #bfc9bc;
  --forest: #244c42;
  --forest-deep: #18382f;
  --lime: #c8ed75;
  --lime-deep: #a8d34c;
  --red: #a94038;
  --red-pale: #f9e9e5;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --shadow-soft: 0 24px 70px rgba(25, 49, 39, .07), 0 3px 12px rgba(25, 49, 39, .035);
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 20; padding: 12px 16px; background: var(--ink); color: white; border-radius: 10px; }
.skip-link:focus { top: 10px; }
.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; }

.site-header { height: 72px; padding: 0 clamp(20px, 5.2vw, 84px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(50, 76, 63, .11); }
.wordmark { display: inline-flex; gap: 10px; align-items: center; font-size: 11px; font-weight: 760; letter-spacing: .16em; white-space: nowrap; }
.mark { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-family: Georgia, serif; font-size: 18px; font-weight: 400; letter-spacing: 0; color: var(--forest); }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); font-size: 12px; color: var(--ink-soft); }
.site-header nav a:not(.header-action):hover, .site-footer > a:last-child:hover { color: var(--forest); }
.header-action { padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); transition: border-color .18s ease, background .18s ease; }
.header-action:hover { border-color: var(--forest); background: rgba(36, 76, 66, .05); }
.header-action span { margin-left: 7px; color: var(--forest); }

.tool-section { width: min(1376px, calc(100% - 2 * clamp(20px, 5.2vw, 84px))); margin: 0 auto; padding: 64px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 31px; }
.eyebrow { margin: 0 0 16px; display: flex; align-items: center; gap: 9px; color: var(--forest); font-size: 9px; line-height: 1.3; font-weight: 800; letter-spacing: .16em; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--lime-deep); border-radius: 50%; box-shadow: 0 0 0 3px rgba(168, 211, 76, .18); }
.eyebrow-index { margin-left: 5px; color: #9aa49c; font-size: 9px; font-weight: 600; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 11px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5vw, 72px); font-weight: 400; line-height: .98; letter-spacing: -.052em; }
.desktop-break { display: none; }
.intro { max-width: 580px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.phi-stamp { width: 142px; min-width: 142px; margin: 0 2.2% 1px 0; display: flex; align-items: center; gap: 11px; color: var(--forest); }
.stamp-rule { width: 21px; height: 1px; background: var(--lime-deep); }
.phi { font-family: Georgia, serif; font-size: 39px; line-height: 1; }
.stamp-copy { font-size: 8px; line-height: 1.55; font-weight: 800; letter-spacing: .13em; }

.workspace { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); gap: 15px; align-items: stretch; }
.panel { min-width: 0; min-height: 480px; background: var(--white); border: 1px solid rgba(50, 76, 63, .12); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.photo-panel { padding: 23px; display: flex; flex-direction: column; }
.results-panel { padding: 23px 25px; }
.panel-topline { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 16px; }
.panel-topline > div { display: flex; align-items: center; gap: 10px; }
.step-number { color: var(--forest); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.panel-topline h2 { margin: 0; font-family: Georgia, serif; font-size: 19px; font-weight: 400; letter-spacing: -.02em; }
.live-label, .result-meta { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.live-label > span { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 3px rgba(168,211,76,.15); }
.result-meta { text-align: right; }
.photo-stage { position: relative; min-height: 358px; flex: 1; display: grid; place-items: center; overflow: hidden; background: #f1f1eb; border: 1px solid #e5e7df; border-radius: 17px; }
.empty-state { width: min(100%, 380px); padding: 21px 25px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.face-guide { width: 146px; height: 170px; margin: -4px 0 6px; color: #708179; opacity: .67; }
.empty-title { margin: 0 0 7px; font-family: Georgia, serif; font-size: 18px; letter-spacing: -.025em; }
.empty-copy { max-width: 280px; margin: 0 auto 17px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.button { min-height: 43px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--forest); color: white; box-shadow: 0 6px 18px rgba(24,56,47,.14); }
.button-primary:hover { background: var(--forest-deep); box-shadow: 0 8px 20px rgba(24,56,47,.2); }
.upload-icon { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; font-size: 13px; }
.text-button { margin: 11px 0 0; padding: 6px; border: 0; background: transparent; color: var(--forest); font-size: 10px; font-weight: 700; cursor: pointer; }
.text-button span { margin-left: 4px; }
.file-note { margin: 11px 0 0; color: #87918b; font-size: 9px; letter-spacing: .03em; }
.file-note span { margin: 0 3px; color: #b0b9b1; }
.photo-footer { padding: 12px 2px 0; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; }
.privacy-lock { margin-right: 4px; color: var(--forest); font-size: 13px; vertical-align: -1px; }
.photo-count { color: #9aa49d; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.status-message { min-height: 0; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.status-message:not(:empty) { margin-top: 9px; padding: 9px 11px; border-radius: 9px; background: #edf1e7; }
.status-message.is-error { background: var(--red-pale); color: var(--red); }
.status-message.is-loading { background: #edf1e7; color: var(--forest); }

.preview-wrap, .camera-wrap { position: absolute; inset: 0; overflow: hidden; background: #e9eae4; }
.preview-wrap[hidden], .camera-wrap[hidden] { display: none; }
.preview-wrap img, .preview-wrap canvas, .camera-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.preview-wrap canvas { pointer-events: none; }
.scan-chip { position: absolute; top: 13px; left: 13px; padding: 7px 9px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(250,250,247,.88); backdrop-filter: blur(10px); color: var(--forest); font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.scan-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-deep); }
.scan-chip.is-busy .scan-pulse { animation: pulse 1.1s ease-in-out infinite; }
.change-photo { position: absolute; right: 13px; bottom: 13px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; background: rgba(250,250,247,.91); color: var(--ink); font-size: 9px; font-weight: 700; cursor: pointer; backdrop-filter: blur(10px); }
.camera-wrap video { object-fit: cover; transform: scaleX(-1); }
.camera-frame { position: absolute; inset: 9% 15%; border: 1px solid rgba(255,255,255,.55); border-radius: 48% 48% 44% 44% / 38% 38% 50% 50%; pointer-events: none; }
.camera-frame span { position: absolute; width: 14px; height: 14px; border-color: var(--lime); border-style: solid; }
.camera-frame span:nth-child(1) { left: -1px; top: 20%; border-width: 1px 0 0 1px; }
.camera-frame span:nth-child(2) { right: -1px; top: 20%; border-width: 1px 1px 0 0; }
.camera-frame span:nth-child(3) { left: -1px; bottom: 18%; border-width: 0 0 1px 1px; }
.camera-frame span:nth-child(4) { right: -1px; bottom: 18%; border-width: 0 1px 1px 0; }
.capture-button { position: absolute; bottom: 16px; left: 50%; width: 50px; height: 50px; transform: translateX(-50%); display: grid; place-items: center; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; background: rgba(28,50,43,.45); cursor: pointer; }
.capture-button > span { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); transition: transform .15s ease; }
.capture-button:hover > span { transform: scale(.91); }
.camera-close { position: absolute; top: 12px; left: 12px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; background: rgba(24,56,47,.68); color: white; font-size: 10px; cursor: pointer; }

.result-empty { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 13px 30px 20px; text-align: center; }
.empty-orbit { position: relative; width: 145px; height: 145px; margin-bottom: 18px; display: grid; place-items: center; }
.orbit { position: absolute; inset: 12px 1px; border: 1px solid #d6ded4; border-radius: 50%; transform: rotate(-31deg); }
.orbit-two { inset: 1px 18px; transform: rotate(31deg); border-style: dashed; border-color: #bdcbbc; }
.orbit-center { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid #d8e0d4; border-radius: 50%; background: #f5f7ef; font-family: Georgia, serif; font-size: 29px; color: var(--forest); }
.empty-orbit i { position: absolute; right: 17px; top: 24px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-deep); box-shadow: 0 0 0 4px rgba(168,211,76,.18); }
.result-empty-title { margin: 0 0 8px; font-family: Georgia, serif; font-size: 19px; letter-spacing: -.03em; }
.result-empty-copy { max-width: 310px; margin-bottom: 24px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.result-legend { display: flex; gap: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.result-legend span { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-deep); }
.legend-line { width: 15px; height: 1px; background: var(--forest); }
.score-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0 7px; border-bottom: 1px solid var(--line); }
.micro-label { margin: 0 0 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.info-mark { width: 12px; height: 12px; margin-left: 3px; display: inline-grid; place-items: center; border: 1px solid #aab7ac; border-radius: 50%; color: var(--forest); font-family: Georgia, serif; font-size: 8px; font-weight: 400; letter-spacing: 0; vertical-align: 1px; cursor: help; }
.score-number { margin: 0; color: var(--forest); font-family: Georgia, serif; font-size: clamp(43px, 4vw, 58px); line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.score-unit { margin-left: 5px; color: #87928a; font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; letter-spacing: 0; }
.score-ring { position: relative; width: 58px; height: 58px; display: grid; place-items: center; color: var(--forest); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.score-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 3; }
.ring-track { stroke: #e3e7df; }
.ring-value { stroke: var(--lime-deep); stroke-linecap: round; stroke-dasharray: 169.65; stroke-dashoffset: 169.65; transition: stroke-dashoffset .55s ease; }
.score-note { margin: 10px 0 9px; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.ratio-list { display: grid; gap: 7px; }
.ratio-card { padding: 10px 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; border: 1px solid #e4e7df; border-radius: 12px; background: #fbfcf8; animation: arrive .32s ease both; }
.ratio-card:nth-child(2) { animation-delay: .05s; }
.ratio-card:nth-child(3) { animation-delay: .1s; }
.ratio-top { display: flex; align-items: baseline; gap: 7px; }
.ratio-letter { color: var(--forest); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.ratio-title { color: var(--ink); font-size: 10px; font-weight: 700; }
.ratio-value { color: var(--forest); font-family: Georgia, serif; font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.ratio-delta { grid-column: 1; margin-top: -2px; color: var(--muted); font-size: 9px; }
.ratio-state { align-self: center; padding: 5px 7px; border-radius: 999px; background: #eef3e6; color: var(--forest); font-size: 8px; font-weight: 700; }
.result-actions { margin-top: 11px; display: flex; gap: 8px; }
.result-actions .button { min-height: 38px; padding: 0 13px; font-size: 10px; }
.button-quiet { border-color: var(--line); background: transparent; color: var(--ink-soft); }
.button-quiet:hover { border-color: var(--line-strong); background: #f4f6f0; }
.copy-feedback { min-height: 0; margin: 0; color: var(--forest); font-size: 9px; }
.copy-feedback:not(:empty) { margin-top: 6px; }
.reading-disclaimer { margin-top: 10px; padding: 9px 10px; display: flex; align-items: flex-start; gap: 8px; border-radius: 10px; background: #f1f3ea; }
.disclaimer-icon { width: 15px; height: 15px; min-width: 15px; display: grid; place-items: center; border: 1px solid #95a48e; border-radius: 50%; color: var(--forest); font-family: Georgia, serif; font-size: 9px; }
.reading-disclaimer p { margin: 0; color: var(--ink-soft); font-size: 9px; line-height: 1.45; }
.tool-caption { margin: 12px 2px 0; display: flex; justify-content: space-between; color: #8d9990; font-size: 8px; font-weight: 800; letter-spacing: .13em; }

.how-to, .method-section, .details-grid { width: min(1376px, calc(100% - 2 * clamp(20px, 5.2vw, 84px))); margin-right: auto; margin-left: auto; }
.how-to { margin-top: 113px; padding: 50px clamp(22px, 5vw, 75px); display: grid; grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr); gap: clamp(35px, 8vw, 130px); border-radius: var(--radius-xl); background: var(--forest); color: #f5f6f0; }
.how-to .eyebrow { color: var(--lime); }
.how-to .eyebrow-dot { background: var(--lime); box-shadow: 0 0 0 3px rgba(200,237,117,.14); }
.how-to .eyebrow-index { color: #a9c0b3; }
.guidance-head h2, .method-intro h2 { margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 49px); font-weight: 400; line-height: 1.04; letter-spacing: -.04em; }
.guidance-head h2 em, .method-intro h2 em { color: var(--lime); font-weight: 400; }
.guidance-head > p:last-child { max-width: 330px; margin: 0; color: #bdcdc2; font-size: 12px; line-height: 1.65; }
.action-list { align-self: center; }
.action-item { position: relative; min-height: 83px; padding: 16px 4px; display: grid; grid-template-columns: 34px minmax(0,1fr) 20px; gap: 11px; align-items: start; border-bottom: 1px solid rgba(230,242,230,.18); }
.action-index { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(207,235,141,.4); border-radius: 50%; color: var(--lime); font-size: 9px; font-weight: 700; }
.action-item h3 { margin: 0 0 5px; font-size: 11px; font-weight: 700; }
.action-item p { max-width: 440px; margin: 0; color: #bdcdc2; font-size: 10px; line-height: 1.55; }
.action-arrow { color: var(--lime); font-size: 14px; }
.clinical-note { padding: 14px 3px 0; display: flex; gap: 10px; align-items: flex-start; color: #c5d5c9; }
.clinical-mark { width: 16px; height: 16px; min-width: 16px; display: grid; place-items: center; border: 1px solid rgba(207,235,141,.45); border-radius: 50%; color: var(--lime); font-size: 12px; }
.clinical-note p { margin: 0; font-size: 9px; line-height: 1.6; }

.method-section { margin-top: 116px; display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: clamp(42px, 8vw, 130px); }
.method-intro { padding-top: 7px; }
.method-intro h2 em { color: var(--forest); }
.method-intro > p:not(.eyebrow) { max-width: 320px; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.phi-equation { width: fit-content; margin-top: 35px; padding: 14px 17px; display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 10px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255,255,255,.4); }
.phi-equation span { color: var(--forest); font-family: Georgia, serif; font-size: 17px; }
.phi-equation strong { color: var(--forest); font-family: Georgia, serif; font-size: 23px; font-weight: 400; font-variant-numeric: tabular-nums; }
.phi-equation small { grid-column: 2; color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.method-rows { border-top: 1px solid var(--line-strong); }
.method-row { min-height: 78px; padding: 16px 0; display: grid; grid-template-columns: 58px minmax(0,1fr) 18px; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.method-letter { color: var(--forest); font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.method-row h3 { margin: 0 0 4px; font-size: 11px; font-weight: 700; }
.method-row p { max-width: 510px; margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.method-symbol { color: var(--forest); font-size: 13px; }
.formula-card { margin-top: 15px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #ebece4; }
.formula-title { margin-bottom: 12px; display: flex; justify-content: space-between; gap: 12px; color: var(--forest); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.formula-title span:last-child { color: #829087; text-align: right; }
.formula-card code { display: block; color: var(--ink); font-family: "Cascadia Code", Consolas, monospace; font-size: clamp(10px, 1.15vw, 12px); line-height: 1.85; }
.formula-card p { margin: 10px 0 0; color: var(--ink-soft); font-size: 9px; line-height: 1.55; }

.details-grid { margin-top: 96px; display: grid; grid-template-columns: .9fr .9fr 1.2fr; gap: 13px; align-items: stretch; }
.detail-card { min-width: 0; padding: 21px 21px 19px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.45); }
.detail-icon { width: 25px; height: 25px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 8px; background: #e6eddc; color: var(--forest); font-size: 9px; font-weight: 700; }
.detail-card h2 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 18px; font-weight: 400; letter-spacing: -.02em; }
.detail-card > p:not(.detail-small) { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
.detail-small { margin: 17px 0 0; color: var(--forest); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.faq-card .detail-icon { margin-bottom: 17px; }
.faq-card h2 { margin-bottom: 11px; }
.faq-card details { border-top: 1px solid var(--line); }
.faq-card summary { padding: 10px 1px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 10px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: "+"; color: var(--forest); font-size: 15px; font-weight: 400; }
.faq-card details[open] summary::after { content: "−"; }
.faq-card details p { margin: -1px 0 11px; color: var(--ink-soft); font-size: 9px; line-height: 1.6; }

.site-footer { min-height: 80px; margin-top: 80px; padding: 15px clamp(20px,5.2vw,84px); display: flex; justify-content: space-between; align-items: center; gap: 14px; border-top: 1px solid rgba(50,76,63,.12); }
.site-footer p, .site-footer > a:last-child { margin: 0; color: var(--muted); font-size: 9px; }
.site-footer > a:last-child { font-weight: 650; }

@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(168,211,76,.34); } 50% { opacity: .65; box-shadow: 0 0 0 5px rgba(168,211,76,0); } }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 920px) {
  .site-header { height: 64px; }
  .tool-section { padding-top: 47px; }
  .workspace { grid-template-columns: 1fr 1fr; gap: 11px; }
  .panel { min-height: 470px; }
  .photo-panel, .results-panel { padding: 17px; }
  .photo-stage { min-height: 355px; }
  .empty-state { padding-right: 13px; padding-left: 13px; }
  .empty-orbit { width: 121px; height: 121px; }
  .how-to { margin-top: 85px; }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .faq-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header { height: 58px; padding: 0 17px; }
  .wordmark { gap: 8px; font-size: 9px; }
  .mark { width: 26px; height: 26px; font-size: 16px; }
  .site-header nav { gap: 12px; font-size: 10px; }
  .site-header nav a:first-child { display: none; }
  .header-action { padding: 8px 10px; font-size: 9px; }
  .tool-section, .how-to, .method-section, .details-grid { width: calc(100% - 32px); }
  .tool-section { padding-top: 33px; }
  .section-heading { align-items: flex-start; margin-bottom: 20px; }
  .eyebrow { margin-bottom: 11px; font-size: 8px; }
  h1 { max-width: 390px; font-size: clamp(39px, 11vw, 53px); line-height: .99; }
  .desktop-break { display: none; }
  .intro { max-width: 340px; font-size: 12px; line-height: 1.55; }
  .phi-stamp { display: none; }
  .workspace { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .panel { min-height: 0; border-radius: 20px; }
  .photo-panel { padding: 15px; }
  .panel-topline { margin-bottom: 12px; }
  .panel-topline h2 { font-size: 17px; }
  .photo-stage { min-height: 385px; border-radius: 14px; }
  .empty-state { padding: 17px 18px; }
  .face-guide { width: 139px; height: 158px; }
  .empty-title { font-size: 17px; }
  .empty-copy { margin-bottom: 14px; font-size: 10px; }
  .button { min-height: 44px; }
  .photo-footer { padding-top: 11px; }
  .results-panel { padding: 16px; }
  .result-empty { min-height: 300px; padding: 16px 18px 19px; }
  .empty-orbit { width: 116px; height: 116px; margin-bottom: 15px; }
  .result-empty-title { font-size: 18px; }
  .result-empty-copy { margin-bottom: 18px; }
  .score-number { font-size: 51px; }
  .score-ring { width: 52px; height: 52px; }
  .ratio-list { gap: 6px; }
  .ratio-card { padding: 10px; }
  .result-actions .button { flex: 1; padding: 0 9px; }
  .tool-caption { font-size: 7px; }
  .how-to { margin-top: 68px; padding: 28px 21px 22px; grid-template-columns: 1fr; gap: 22px; border-radius: 20px; }
  .guidance-head h2, .method-intro h2 { font-size: 38px; }
  .guidance-head > p:last-child { max-width: 400px; font-size: 11px; }
  .action-item { min-height: 0; padding: 14px 0; grid-template-columns: 29px minmax(0,1fr) 14px; gap: 8px; }
  .action-item h3 { font-size: 10px; }
  .action-item p { font-size: 9px; }
  .clinical-note { padding-top: 12px; }
  .method-section { margin-top: 76px; grid-template-columns: 1fr; gap: 25px; }
  .method-intro > p:not(.eyebrow) { max-width: 420px; }
  .phi-equation { margin-top: 18px; }
  .method-row { grid-template-columns: 43px minmax(0,1fr) 13px; gap: 7px; }
  .method-row p { font-size: 9px; }
  .formula-card { padding: 15px 13px; }
  .formula-title { font-size: 7px; }
  .formula-title span:last-child { max-width: 142px; }
  .formula-card code { font-size: 9px; overflow-wrap: anywhere; }
  .details-grid { margin-top: 64px; grid-template-columns: 1fr; gap: 9px; }
  .faq-card { grid-column: auto; }
  .detail-card { padding: 17px; }
  .detail-icon { margin-bottom: 14px; }
  .site-footer { margin-top: 58px; min-height: 70px; padding: 15px 16px; flex-wrap: wrap; }
  .site-footer p { order: 3; width: 100%; text-align: center; }
}
