:root {
  --ink: #1d2925;
  --ink-soft: #5a6860;
  --ink-faint: #8e9992;
  --paper: #f5f1e9;
  --paper-deep: #ebe4d7;
  --white: #fffdf9;
  --sage: #d8e2d8;
  --sage-deep: #2f6654;
  --terracotta: #b76245;
  --gold: #d39a52;
  --line: rgba(29, 41, 37, .12);
  --shadow: 0 24px 70px rgba(50, 58, 49, .13);
  font-family: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.app-shell { max-width: 1440px; margin: 0 auto; min-height: 100vh; overflow: hidden; background: var(--paper); }
.topbar { height: 78px; padding: 0 6.4vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(245, 241, 233, .9); backdrop-filter: blur(16px); position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: var(--white); background: var(--sage-deep); font-size: 19px; font-weight: 700; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 15px; letter-spacing: .12em; }
.brand small { margin-top: 5px; color: var(--ink-soft); font-size: 10px; letter-spacing: .18em; }
.topnav { display: flex; gap: 34px; margin-left: auto; margin-right: 36px; color: var(--ink-soft); font-size: 13px; }
.topnav a { padding: 30px 0 27px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.topnav a:hover, .topnav a.active { color: var(--ink); border-color: var(--terracotta); }
.status-dot { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11px; }
.status-dot i { width: 7px; height: 7px; display: block; border-radius: 50%; background: #73a57d; box-shadow: 0 0 0 4px rgba(115, 165, 125, .14); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .78fr); min-height: 510px; padding: 72px 10vw 62px; background: var(--paper); }
.hero-copy { align-self: center; max-width: 570px; }
.eyebrow, .kicker { margin: 0; color: var(--terracotta); font-size: 10px; font-weight: 700; letter-spacing: .22em; }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow span { width: 24px; height: 1px; display: inline-block; background: var(--terracotta); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 23px 0 25px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(49px, 6vw, 82px); font-weight: 400; letter-spacing: -.055em; line-height: .99; }
h1 em { color: var(--sage-deep); font-style: normal; }
.hero-lede { max-width: 455px; color: var(--ink-soft); font-size: 16px; line-height: 1.9; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 34px; color: var(--ink-soft); font-size: 11px; }
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta b { color: var(--terracotta); font-family: "DM Sans", sans-serif; font-size: 10px; letter-spacing: .14em; }
.hero-visual { min-height: 370px; position: relative; display: grid; place-items: center; }
.halo { width: 310px; height: 310px; border: 1px solid rgba(47, 102, 84, .22); border-radius: 50%; position: absolute; }
.halo::before, .halo::after { content: ""; position: absolute; border: 1px solid rgba(183, 98, 69, .2); border-radius: 50%; }
.halo::before { inset: 26px; }
.halo::after { inset: 58px; }
.seal { width: 150px; height: 150px; display: grid; place-content: center; border: 1px solid rgba(47, 102, 84, .3); border-radius: 47% 53% 48% 52%; color: var(--sage-deep); font-family: Georgia, serif; font-size: 42px; line-height: .75; text-align: center; transform: rotate(-8deg); }
.seal span { margin-top: 13px; font-family: "Noto Sans SC", sans-serif; font-size: 11px; letter-spacing: .35em; text-indent: .35em; }
.leaf { position: absolute; width: 115px; height: 48px; border: 1px solid rgba(47, 102, 84, .26); border-radius: 100% 0 100% 0; }
.leaf::after { content: ""; width: 92px; height: 1px; position: absolute; top: 24px; left: 8px; background: rgba(47, 102, 84, .28); transform: rotate(-21deg); transform-origin: left; }
.leaf-one { top: 55px; right: 18%; transform: rotate(-22deg); }
.leaf-two { bottom: 58px; left: 10%; transform: rotate(154deg) scale(.7); opacity: .75; }
.visual-caption { position: absolute; right: 1%; bottom: 22px; display: grid; gap: 4px; text-align: right; }
.visual-caption span { color: var(--ink-faint); font: 10px "DM Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.visual-caption strong { color: var(--ink-soft); font-size: 11px; font-weight: 500; letter-spacing: .15em; }
.workspace { padding: 17px 10vw 95px; background: linear-gradient(180deg, var(--paper-deep), var(--paper)); }
.section-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; color: var(--ink-soft); }
.section-label span { color: var(--terracotta); font: 10px "DM Sans", sans-serif; letter-spacing: .2em; }
.section-label b { font-size: 13px; font-weight: 600; letter-spacing: .18em; }
.card-stack { min-height: 480px; }
.panel { padding: clamp(25px, 4vw, 48px); border: 1px solid rgba(29, 41, 37, .09); border-radius: 20px; background: rgba(255, 253, 249, .84); box-shadow: var(--shadow); }
.panel-heading, .question-header, .profile-topline { display: flex; justify-content: space-between; gap: 24px; }
.panel h2 { margin: 10px 0 9px; font-family: Georgia, serif; font-size: clamp(27px, 4vw, 42px); font-weight: 400; letter-spacing: -.045em; }
.panel-heading p:not(.kicker), .profile-intro { max-width: 570px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.step-badge, .confidence-pill { align-self: flex-start; padding: 8px 12px; border-radius: 999px; color: var(--sage-deep); background: var(--sage); font-size: 10px; white-space: nowrap; }
.dropzone { min-height: 218px; margin-top: 30px; display: grid; place-content: center; justify-items: center; gap: 10px; border: 1px dashed rgba(47, 102, 84, .42); border-radius: 16px; color: var(--ink-soft); background: rgba(216, 226, 216, .32); text-align: center; transition: background .2s, border-color .2s; }
.dropzone:hover { border-color: var(--terracotta); background: rgba(216, 226, 216, .55); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.dropzone > span:last-child { color: var(--ink-faint); font-size: 11px; }
.drop-icon { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--sage-deep); border-radius: 50%; color: var(--sage-deep); font: 23px "DM Sans", sans-serif; }
.tips-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0 0; color: var(--ink-soft); font-size: 11px; }
.tips-row span { display: flex; align-items: center; gap: 7px; }
.tip-icon { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: var(--sage-deep); background: var(--sage); font-style: normal; }
.privacy-note { margin: 28px 0 0; color: var(--ink-faint); font-size: 11px; }
.live-capture { max-width: 660px; margin: 28px auto 0; }
.camera-stage { position: relative; width: min(100%, 430px); aspect-ratio: 4 / 5; margin: 0 auto; overflow: hidden; border-radius: 22px; background: #18251f; box-shadow: 0 18px 45px rgba(23, 36, 28, .2); isolation: isolate; }
.camera-stage video, .camera-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #18251f; }
.camera-stage video { display: none; transform: scaleX(-1); }
.camera-stage > img { display: none; }
.camera-stage[data-camera-state="live"] video, .camera-stage[data-camera-state="captured"] > img { display: block; }
.camera-placeholder { position: absolute; inset: 0; background: radial-gradient(circle at 50% 43%, rgba(76, 120, 96, .5), transparent 40%), #18251f; }
.tongue-guide { position: absolute; inset: 0; pointer-events: none; }
.tongue-guide svg { width: 100%; height: 100%; display: block; }
.tongue-guide-outline { fill: rgba(216, 226, 216, .08); stroke: rgba(255, 253, 249, .92); stroke-width: 2.5; stroke-dasharray: 7 6; }
.tongue-guide-center { fill: none; stroke: rgba(255, 253, 249, .35); stroke-width: 1; stroke-dasharray: 3 7; }
.tongue-guide-tick { fill: none; stroke: rgba(255, 253, 249, .9); stroke-width: 3; stroke-linecap: round; }
.tongue-guide-label, .tongue-guide-root, .tongue-guide-tip { position: absolute; color: rgba(255, 253, 249, .92); text-shadow: 0 1px 5px rgba(0, 0, 0, .45); font-size: 11px; }
.tongue-guide-label { top: 17%; left: 50%; transform: translateX(-50%); padding: 6px 10px; border: 1px solid rgba(255, 253, 249, .45); border-radius: 999px; background: rgba(12, 24, 19, .32); white-space: nowrap; }
.tongue-guide-root { top: 25%; right: 18%; }
.tongue-guide-tip { bottom: 23%; left: 18%; }
.camera-live-badge { position: absolute; top: 14px; left: 14px; display: none; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(255, 253, 249, .25); border-radius: 999px; color: rgba(255, 253, 249, .9); background: rgba(12, 24, 19, .42); font-size: 10px; }
.camera-stage[data-camera-state="live"] .camera-live-badge { display: inline-flex; }
.camera-live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #dd866b; box-shadow: 0 0 0 4px rgba(221, 134, 107, .22); }
.camera-status { min-height: 22px; margin: 14px auto 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; text-align: center; }
.camera-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.camera-actions .primary-button, .camera-actions .secondary-button { margin-top: 9px; }
.camera-button { min-width: 164px; }
.capture-checklist { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 21px; color: var(--ink-faint); font-size: 11px; }
.capture-checklist span { display: inline-flex; align-items: center; gap: 6px; }
.capture-checklist i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--sage-deep); background: var(--sage); font-style: normal; font-size: 9px; }
.capture-alternative { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 23px; color: var(--ink-faint); font-size: 11px; }
.capture-alternative input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-link { color: var(--sage-deep); border-bottom: 1px solid currentColor; cursor: pointer; font-weight: 600; }
.hidden { display: none !important; }
.analysis-panel { min-height: 480px; display: grid; place-content: center; justify-items: center; text-align: center; }
.analysis-panel h2 { margin-top: 18px; }
.analysis-panel p:not(.kicker) { color: var(--ink-soft); font-size: 13px; }
.loading-orb { width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid rgba(47, 102, 84, .2); border-radius: 50%; background: var(--sage); }
.loading-orb span { width: 6px; height: 6px; border-radius: 50%; background: var(--sage-deep); animation: pulse 1.1s infinite ease-in-out; }
.loading-orb span:nth-child(2) { animation-delay: .15s; }.loading-orb span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .35; transform: scale(.65); } 40% { opacity: 1; transform: scale(1); } }
.progress-line { width: min(300px, 100%); height: 3px; margin-top: 22px; border-radius: 5px; overflow: hidden; background: var(--paper-deep); }.progress-line span { display: block; width: 55%; height: 100%; background: var(--terracotta); animation: progress 1.5s infinite ease-in-out; }
@keyframes progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(190%); } }
#image-preview { width: 62px; height: 62px; margin-top: 24px; object-fit: cover; border-radius: 12px; opacity: .85; }
.segmentation-panel { max-width: 900px; margin: 0 auto; }
.segmentation-panel h2 { margin-top: 27px; }
.segmentation-intro { max-width: 660px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.segmentation-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.segmentation-compare figure { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.segmentation-compare figcaption { display: flex; align-items: center; justify-content: space-between; min-height: 27px; color: var(--ink-soft); font-size: 11px; }
.segmentation-compare figcaption b { padding: 4px 7px; border-radius: 999px; color: var(--sage-deep); background: var(--sage); font-size: 10px; font-weight: 600; }
.segmentation-compare img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 9px; background: #d9e9d4; }
.segmentation-compare figure:first-child img { object-fit: cover; background: #222; }
.segmentation-meta { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.segmentation-check { flex: 0 0 21px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--sage-deep); font-size: 12px; }
.profile-panel { max-width: 790px; margin: 0 auto; }.profile-topline { align-items: center; }.profile-panel h2 { margin-top: 28px; }.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }.profile-stat { padding: 18px; border-radius: 13px; background: var(--paper); }.profile-stat span, .label { display: block; margin-bottom: 8px; color: var(--ink-faint); font-size: 10px; letter-spacing: .16em; }.profile-stat strong { font-size: 19px; font-weight: 600; }.observation-block { padding-top: 17px; border-top: 1px solid var(--line); }.chip-list, .evidence-list { display: flex; flex-wrap: wrap; gap: 8px; }.chip { padding: 8px 11px; border: 1px solid rgba(47, 102, 84, .2); border-radius: 999px; color: var(--sage-deep); background: rgba(216, 226, 216, .42); font-size: 11px; }.primary-button, .secondary-button { min-height: 47px; border: 0; border-radius: 999px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; color: var(--white); background: var(--sage-deep); font-size: 13px; font-weight: 600; transition: transform .2s, background .2s; }.primary-button { margin-top: 31px; }.primary-button:hover, .secondary-button:hover { background: var(--ink); transform: translateY(-2px); }.primary-button:disabled { cursor: not-allowed; opacity: .4; transform: none; }.primary-button.small { min-width: 125px; min-height: 41px; margin-top: 0; padding: 0 16px; font-size: 12px; }.question-header { align-items: flex-start; }.question-count { color: var(--terracotta); font: 27px "DM Sans", sans-serif; }.question-count small { color: var(--ink-faint); font-size: 12px; }.question-progress { display: flex; gap: 4px; margin: 25px 0 36px; }.question-progress i { height: 3px; flex: 1; border-radius: 3px; background: var(--paper-deep); }.question-progress i.active { background: var(--terracotta); }.question-topic { margin-bottom: 7px; color: var(--terracotta); font-size: 11px; }.question-panel h3 { max-width: 650px; margin-bottom: 22px; font-size: clamp(19px, 2.8vw, 27px); font-weight: 600; line-height: 1.55; }.options { display: grid; gap: 9px; }.option { width: 100%; padding: 15px 17px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); text-align: left; }.option:hover { border-color: rgba(47, 102, 84, .6); }.option.selected { border-color: var(--sage-deep); background: rgba(216, 226, 216, .58); }.option-mark { flex: 0 0 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--ink-faint); border-radius: 50%; color: transparent; font-size: 11px; }.option.selected .option-mark { border-color: var(--sage-deep); color: var(--white); background: var(--sage-deep); }.option-text { font-size: 13px; line-height: 1.55; }.question-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 25px; color: var(--ink-faint); font-size: 11px; }.result-panel { overflow: hidden; }.result-hero { padding-bottom: 30px; border-bottom: 1px solid var(--line); }.result-mark { width: 35px; height: 35px; margin: 19px 0 11px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--sage-deep); font-size: 17px; }.result-hero h2 { margin-bottom: 8px; }.result-hero p:not(.kicker) { margin-bottom: 0; color: var(--ink-soft); font-size: 13px; }.result-primary { padding: 34px 0 27px; display: flex; align-items: baseline; gap: 20px; }.result-primary span, .result-secondary span { color: var(--ink-faint); font-size: 11px; }.result-primary strong { font-family: Georgia, serif; font-size: 39px; font-weight: 400; }.result-primary em { color: var(--terracotta); font: 12px "DM Sans", sans-serif; font-style: normal; }.result-secondary { display: flex; align-items: center; gap: 11px; padding-bottom: 28px; color: var(--ink-soft); font-size: 12px; }.result-secondary strong { margin-right: 16px; color: var(--ink); font-size: 13px; }.bagang-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.bagang-card { padding: 15px 12px; border-radius: 12px; background: var(--paper); }.bagang-card span { display: block; color: var(--ink-faint); font-size: 10px; }.bagang-card strong { display: block; margin: 8px 0 7px; font-size: 18px; font-weight: 600; }.bagang-card small { color: var(--terracotta); font: 10px "DM Sans", sans-serif; }.evidence-block { padding: 24px 0; }.evidence-list .evidence { padding: 8px 11px; border-left: 2px solid var(--gold); color: var(--ink-soft); background: rgba(211, 154, 82, .08); font-size: 11px; }.notice-box { padding: 17px; border-radius: 12px; background: var(--paper-deep); }.notice-box strong { font-size: 12px; }.notice-box p { margin: 7px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }.secondary-button { margin-top: 24px; color: var(--sage-deep); background: transparent; border: 1px solid var(--sage-deep); }.secondary-button:hover { color: var(--white); }.error-message { margin: 14px 0 0; padding: 13px 15px; border-radius: 11px; color: #8d392c; background: #fae4df; font-size: 12px; line-height: 1.6; }.footer { display: flex; justify-content: space-between; padding: 25px 10vw 34px; border-top: 1px solid var(--line); color: var(--ink-faint); background: var(--paper); font-size: 10px; letter-spacing: .08em; }
@media (max-width: 760px) { .topbar { height: 68px; padding: 0 20px; }.topnav { display: none; }.status-dot { font-size: 10px; }.hero { display: block; min-height: unset; padding: 52px 24px 26px; }.hero-copy { max-width: none; }.hero-visual { min-height: 215px; margin-top: 24px; }.halo { width: 205px; height: 205px; }.seal { width: 105px; height: 105px; font-size: 30px; }.seal span { margin-top: 9px; font-size: 8px; }.leaf { width: 77px; height: 34px; }.leaf::after { width: 60px; top: 17px; }.leaf-one { top: 8px; right: 6%; }.leaf-two { bottom: 9px; left: 3%; }.visual-caption { right: 0; bottom: 0; }.workspace { padding: 17px 15px 65px; }.panel { padding: 24px 19px; border-radius: 16px; }.panel-heading, .question-header, .profile-topline { display: block; }.step-badge, .confidence-pill { display: inline-block; margin-top: 17px; }.profile-grid { gap: 8px; }.profile-stat { padding: 15px 12px; }.profile-stat strong { font-size: 16px; }.question-count { position: absolute; right: 35px; }.question-footer { display: block; }.question-footer .primary-button { width: 100%; margin-top: 17px; }.segmentation-compare { gap: 8px; }.segmentation-compare figure { padding: 7px; }.segmentation-compare figcaption { font-size: 10px; }.bagang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.result-primary { flex-wrap: wrap; gap: 8px 14px; }.result-primary strong { width: 100%; }.result-secondary { flex-wrap: wrap; gap: 7px; }.result-secondary strong { margin-right: 7px; }.camera-stage { width: min(100%, 350px); border-radius: 17px; }.camera-actions { display: grid; grid-template-columns: 1fr 1fr; }.camera-actions .camera-button { width: 100%; min-width: 0; }.camera-actions .camera-button:first-child, .camera-actions .camera-button:nth-child(2) { grid-column: 1 / -1; }.capture-checklist { gap: 9px; font-size: 10px; }.capture-alternative { margin-top: 19px; }.footer { display: block; padding: 23px 20px; line-height: 2; } }
