:root {
  color-scheme: light;
  --navy: #0e2c43;
  --navy-deep: #081d2d;
  --copper: #ca6847;
  --gold: #d8aa35;
  --paper: #f8f4ee;
  --ink: #173044;
  --muted: #687985;
  --line: #d9e0e4;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(180deg, var(--navy-deep) 0, var(--navy) 26rem, var(--paper) 26rem);
  color: var(--ink);
  font-family: Inter, "Noto Sans Tamil", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-header { background: #102a43; border-bottom: 1px solid rgba(212,175,55,.45); box-shadow: 0 .5rem 1.6rem rgba(3,18,30,.18); color: white; position: sticky; top: 0; z-index: 50; }
.portal-header-inner { align-items: center; display: flex; justify-content: space-between; margin: auto; max-width: 1080px; min-height: 76px; padding: .65rem 1.25rem; }
.portal-brand, .portal-footer-brand { align-items: center; color: inherit; display: flex; gap: .8rem; text-decoration: none; }
.portal-logo { flex: 0 0 auto; height: 52px; object-fit: contain; width: 52px; }
.portal-brand-copy strong, .portal-brand-copy small, .portal-footer-brand strong, .portal-footer-brand small { display: block; }
.portal-brand-copy strong, .portal-footer-brand strong { font-size: .94rem; letter-spacing: .07em; }
.portal-brand-copy em, .portal-footer-brand em { color: var(--gold); font-style: normal; }
.portal-brand-copy small, .portal-footer-brand small { color: #aebfca; font-size: .67rem; letter-spacing: .09em; margin-top: .18rem; text-transform: uppercase; }
.portal-nav { align-items: center; display: flex; gap: .35rem; }
.portal-nav a { color: white; font-size: .78rem; font-weight: 750; text-decoration: none; }
.portal-nav-link { border-radius: 999px; padding: .65rem .78rem; }
.portal-nav-link:hover { background: rgba(255,255,255,.09); }
.language-switch { border: 1px solid #7890a1; border-radius: 999px; margin-left: .35rem; min-width: 78px; padding: .58rem .82rem; text-align: center; }
.language-switch:hover { background: white; color: var(--navy); }

.site-header {
  align-items: center;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  margin: auto;
  max-width: 1080px;
  padding: 1.4rem 1.25rem;
}

.brand { align-items: center; color: inherit; display: flex; gap: .75rem; text-decoration: none; }
.brand-mark { align-items: center; background: linear-gradient(135deg, #6936a9, #be287d); border-radius: 50%; display: flex; font-family: Georgia, serif; font-size: 1.1rem; height: 2.8rem; justify-content: center; width: 2.8rem; }
.brand strong, .brand small { display: block; }
.brand small { color: #b8c8d2; font-size: .72rem; letter-spacing: .08em; margin-top: .12rem; text-transform: uppercase; }
.language { border: 1px solid #496276; border-radius: 999px; font-weight: 700; padding: .45rem .8rem; }

main { flex: 1; margin: auto; max-width: 1080px; padding: 3.5rem 1.25rem 5rem; width: 100%; }
.hero { color: var(--white); margin-bottom: 2.4rem; max-width: 760px; }
.hero.compact { margin-bottom: 5rem; padding: 3rem 0 5rem; }
.state-card { background: rgba(8, 29, 45, .96); border: 1px solid #385368; border-radius: 1.25rem; box-shadow: 0 1.5rem 4rem rgba(5, 22, 34, .25); color: var(--white); margin: 2rem 0 6rem; max-width: 780px; padding: clamp(1.5rem, 5vw, 3.5rem); }
.state-card h1 { font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.15; max-width: 680px; }
.state-card .lead { margin-bottom: .8rem; }
.state-english { color: #aebfca; line-height: 1.65; max-width: 680px; }
.state-english code { color: #f0c45d; }
.state-card .button.secondary { color: white; }
.eyebrow { color: var(--gold); font-size: .76rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 .8rem; text-transform: uppercase; }
h1 { font-family: Georgia, "Noto Serif Tamil", serif; font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1.02; margin: 0; }
.lead { color: #dce6eb; font-size: 1.08rem; line-height: 1.75; max-width: 680px; }
.muted { color: var(--muted); }
.reference { align-items: center; border-left: 3px solid var(--copper); display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: 1.4rem; padding-left: 1rem; }
.reference span { color: #aebfca; font-size: .78rem; text-transform: uppercase; }
.reference strong { letter-spacing: .08em; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 1.2rem; box-shadow: 0 1.5rem 4rem rgba(14, 44, 67, .12); margin: 1.2rem 0; padding: clamp(1.25rem, 4vw, 2.1rem); }
.notice { border-left: 5px solid var(--copper); }
.notice p { line-height: 1.7; margin-bottom: 0; }
.section-heading { align-items: center; display: flex; justify-content: space-between; }
h2 { font-family: Georgia, "Noto Serif Tamil", serif; font-size: 1.8rem; margin: 0; }
.count { align-items: center; background: var(--navy); border-radius: 50%; color: white; display: flex; font-weight: 800; height: 3rem; justify-content: center; width: 3rem; }
.measurement-list { display: grid; gap: .7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 1.4rem 0; padding: 0; }
.measurement-list li { background: #f6f8f9; border: 1px solid #e2e8eb; border-radius: .75rem; padding: .9rem 1rem; }
.measurement-list span, .measurement-list small { display: block; }
.measurement-list span { font-weight: 750; }
.measurement-list small { color: var(--muted); margin-top: .25rem; }
.remaining { color: var(--muted); }
.measurement-form { margin-top: 1.5rem; }
.form-intro { align-items: center; background: #edf4f6; border-radius: .8rem; display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: space-between; margin-bottom: 1rem; padding: 1rem; }
.camera-assist { background: linear-gradient(135deg, #f5f9fa, #eef4f6); border: 1px solid #bfd0d8; border-radius: 1rem; margin-bottom: 1.2rem; padding: 1.15rem; }
.camera-assist-heading { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; }
.camera-assist h3 { color: var(--navy); font-family: Georgia, "Noto Serif Tamil", serif; font-size: 1.45rem; margin: 0; }
.camera-assist > p { color: var(--muted); line-height: 1.6; }
.camera-badge { background: #e9dcc0; border-radius: 999px; color: #69491c; font-size: .72rem; font-weight: 800; padding: .35rem .6rem; }
.camera-consent { align-items: flex-start; display: flex; gap: .65rem; line-height: 1.5; margin: .85rem 0; }
.camera-consent input { flex: 0 0 auto; height: 1.1rem; margin-top: .15rem; width: 1.1rem; }
.calibration-card { align-items: end; background: rgba(255,255,255,.75); border: 1px solid #d5e0e5; border-radius: .8rem; display: flex; gap: 1rem; justify-content: space-between; margin: .9rem 0 .55rem; padding: .85rem; }
.calibration-card strong, .calibration-card small { display: block; }
.calibration-card small { color: var(--muted); font-size: .77rem; line-height: 1.45; margin-top: .2rem; max-width: 520px; }
.calibration-card label { display: block; flex: 0 0 130px; font-size: .75rem; font-weight: 800; }
.calibration-card input { border: 1px solid #aebfc8; border-radius: .55rem; font: inherit; margin-top: .3rem; min-height: 2.55rem; padding: .5rem .6rem; width: 100%; }
.calibration-status { border-left: 3px solid #d0a03a; color: #785b1d; font-size: .79rem; line-height: 1.45; margin-bottom: .85rem; padding: .5rem .7rem; }
.calibration-status.is-ready { border-color: #269052; color: #176c43; }
.calibration-status.is-waiting { border-color: #d0a03a; color: #785b1d; }
.auto-capture-status { background: #edf5f7; border-radius: .55rem; color: #31566a; font-size: .79rem; line-height: 1.45; margin: .55rem 0 .85rem; padding: .6rem .75rem; }
.ai-comparison-panel { background: #f4f8fb; border: 1px solid #a9c3d1; border-radius: .7rem; color: #23485c; margin: .65rem 0 .95rem; padding: .75rem .85rem; }
.ai-comparison-panel strong { display: block; font-size: .82rem; }
.ai-comparison-panel p { font-size: .78rem; line-height: 1.5; margin: .3rem 0 0; }
.ai-observation { background: #f3f8fb; border-left: 3px solid #4d7c92; color: #31566a; font-size: .75rem; line-height: 1.45; margin-top: .6rem; padding: .5rem .65rem; }
.camera-stage { background: #061722; border-radius: .9rem; margin: 1rem auto; max-width: 680px; overflow: hidden; position: relative; }
.camera-stage video { display: block; max-height: 72vh; object-fit: contain; transform: scaleX(-1); width: 100%; }
.pose-overlay { height: 100%; inset: 0; pointer-events: none; position: absolute; width: 100%; z-index: 2; }
.framing-guide { border: 2px dashed rgba(255,255,255,.75); border-radius: 48% 48% 36% 36%; bottom: 6%; left: 50%; pointer-events: none; position: absolute; top: 7%; transform: translateX(-50%); width: 38%; }
.framing-guide span { border: 2px solid rgba(216,170,53,.9); border-radius: 50%; height: 12%; left: 50%; position: absolute; top: 2%; transform: translateX(-50%); width: 30%; }
.capture-flash { background: white; inset: 0; opacity: 0; pointer-events: none; position: absolute; }
.capture-flash.is-active { animation: camera-flash .35s ease-out; }
.capture-confirmation { background: rgba(8,29,45,.9); border: 1px solid rgba(255,255,255,.55); border-radius: 999px; bottom: 1rem; color: white; font-size: .84rem; font-weight: 800; left: 50%; max-width: calc(100% - 2rem); padding: .7rem 1rem; position: absolute; text-align: center; transform: translateX(-50%); white-space: nowrap; z-index: 3; }
.capture-confirmation.is-passed { background: rgba(16,112,68,.94); }
.capture-confirmation.is-warning { background: rgba(142,87,0,.94); }
@keyframes camera-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.camera-controls { display: flex; flex-wrap: wrap; gap: .6rem; }
.camera-button { background: var(--navy); border: 0; border-radius: 999px; color: white; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 800; padding: .72rem 1rem; }
.camera-button.secondary { background: var(--copper); }
.camera-button.is-complete { background: #177044; }
.camera-button.is-pose-ready { box-shadow: 0 0 0 4px rgba(23,112,68,.2); }
.camera-button.quiet { background: transparent; border: 1px solid #78909d; color: var(--navy); }
.camera-button:disabled { cursor: not-allowed; opacity: .45; }
.camera-quality { color: var(--muted); font-size: .82rem; line-height: 1.5; margin-top: .8rem; }
.camera-quality.is-ready { color: #176c43; }
.camera-quality.is-warning { color: #8a5700; }
.camera-hud { align-items: flex-start; display: flex; justify-content: space-between; left: .65rem; pointer-events: none; position: absolute; right: .65rem; top: .65rem; z-index: 4; }
.camera-hud-panel { background: rgba(4, 29, 44, .76); border: 1px solid rgba(255, 255, 255, .24); border-radius: .6rem; box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .18); color: #edf5f8; min-width: 7.8rem; padding: .4rem .5rem; }
.camera-hud-panel strong { color: #f6c760; display: block; font-size: .6rem; font-weight: 800; letter-spacing: .09em; margin-bottom: .22rem; text-transform: uppercase; }
.pose-readiness { display: grid; gap: .16rem; margin: 0; }
.pose-readiness span, .capture-hud > span { color: #dce8ed; display: block; font-size: .66rem; font-weight: 700; line-height: 1.25; padding: .1rem 0; white-space: nowrap; }
.pose-readiness span::before { content: "○"; margin-right: .28rem; }
.pose-readiness span.is-passed::before { content: "✓"; }
.pose-readiness span.is-passed, .capture-hud > span.is-passed { color: #baf4ce; }
.pose-readiness span.is-waiting, .capture-hud > span.is-waiting { color: #ffe1a0; }
.capture-hud > span.is-warning { color: #ffe1a0; }
.capture-hud { display: grid; gap: .16rem; text-align: right; }
.form-intro span { color: var(--muted); font-size: .9rem; }
.measurement-group-heading { align-items: center; display: flex; justify-content: space-between; margin: 1.35rem 0 .8rem; }
.measurement-group-heading strong, .measurement-group-heading span { display: block; }
.measurement-group-heading > div > span { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.group-count { align-items: center; background: var(--navy); border-radius: 999px; color: white; display: flex; font-size: .8rem; font-weight: 800; height: 2rem; justify-content: center; min-width: 2rem; padding: 0 .55rem; }
.measurement-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.measurement-field { border: 1px solid var(--line); border-radius: .9rem; padding: 1rem; }
.field-heading { align-items: flex-start; display: flex; gap: .75rem; justify-content: space-between; margin-bottom: .8rem; }
.field-heading strong, .field-heading small { display: block; }
.field-heading small { color: var(--muted); margin-top: .2rem; }
.field-heading > span { background: #f6ece6; border-radius: 999px; color: #9b4d35; flex: 0 0 auto; font-size: .7rem; font-weight: 800; padding: .25rem .5rem; }
.measurement-field input, .measurement-field select, .notes-field textarea { background: white; border: 1px solid #b9c6cd; border-radius: .6rem; color: var(--ink); font: inherit; min-height: 2.8rem; padding: .65rem .75rem; width: 100%; }
.measurement-field input:focus, .measurement-field select:focus, .notes-field textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(202, 104, 71, .14); outline: none; }
.measurement-field input.is-invalid { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.measurement-field input.is-warning { border-color: #c27a05; box-shadow: 0 0 0 3px rgba(194, 122, 5, .12); }
.field-feedback { font-size: .78rem; line-height: 1.45; margin-top: .5rem; min-height: 0; }
.field-feedback.is-error { color: #a61b12; }
.field-feedback.is-warning { color: #8a5700; }
.measurement-field > p { color: var(--muted); font-size: .78rem; line-height: 1.5; margin: .7rem 0 0; }
.value-control { align-items: stretch; display: flex; }
.value-control input { border-radius: .6rem 0 0 .6rem; }
.value-control > span { align-items: center; background: #edf1f3; border: 1px solid #b9c6cd; border-left: 0; border-radius: 0 .6rem .6rem 0; display: flex; font-size: .8rem; font-weight: 800; padding: 0 .7rem; }
.repeat { display: block; margin-top: .75rem; }
.repeat > span { color: var(--muted); display: block; font-size: .78rem; margin-bottom: .35rem; }
.notes-field { display: block; margin-top: 1.2rem; }
.notes-field > span, .notes-field small { display: block; font-weight: 750; }
.notes-field small { color: var(--muted); font-weight: 400; margin: .2rem 0 .5rem; }
.consent-box { border: 1px solid var(--line); border-radius: .9rem; margin: 1.2rem 0; padding: 1rem; }
.consent-box legend { font-weight: 800; padding: 0 .4rem; }
.consent-box label { align-items: flex-start; display: flex; gap: .65rem; line-height: 1.5; margin: .75rem 0; }
.consent-box input { flex: 0 0 auto; height: 1.1rem; margin-top: .15rem; width: 1.1rem; }
.optional-research-consent { background: #f4f8f9; border: 1px solid #d8e3e7; border-radius: .7rem; padding: .8rem; }
.optional-research-consent strong, .optional-research-consent small { display: block; }
.optional-research-consent small { color: var(--muted); font-size: .78rem; line-height: 1.5; margin-top: .18rem; }
.submit-button { background: var(--copper); border: 0; border-radius: 999px; color: white; cursor: pointer; font: inherit; font-weight: 800; padding: .9rem 1.35rem; }
.submit-button:hover { background: #b95639; }
.submit-note { color: var(--muted); font-size: .8rem; line-height: 1.55; }
.optional-section { background: #fff9ef; border: 1px solid #e8c978; border-radius: 1rem; margin-top: 1.4rem; overflow: hidden; }
.optional-section summary { align-items: center; cursor: pointer; display: flex; gap: .9rem; list-style: none; padding: 1.1rem; }
.optional-section summary::-webkit-details-marker { display: none; }
.optional-section summary:hover { background: #fff4df; }
.optional-icon { align-items: center; background: var(--copper); border-radius: 50%; color: white; display: flex; flex: 0 0 auto; font-size: 1.35rem; height: 2.25rem; justify-content: center; transition: transform .2s ease; width: 2.25rem; }
.optional-section[open] .optional-icon { transform: rotate(45deg); }
.optional-copy { flex: 1; }
.optional-copy strong, .optional-copy small { display: block; }
.optional-copy strong { color: #6e3f20; }
.optional-copy small { color: #876e59; line-height: 1.45; margin-top: .25rem; }
.optional-count { align-items: center; background: #f1dfb2; border-radius: 999px; color: #68471d; display: flex; flex: 0 0 auto; font-size: .8rem; font-weight: 800; height: 2rem; justify-content: center; min-width: 2rem; }
.optional-body { border-top: 1px solid #ead7a7; padding: 1rem; }
.optional-notice { background: white; border-left: 3px solid var(--gold); border-radius: .45rem; color: #715c47; font-size: .84rem; line-height: 1.55; margin-bottom: 1rem; padding: .75rem .9rem; }
.development-state { align-items: flex-start; background: #edf4f6; border-radius: .8rem; display: flex; gap: .8rem; margin-top: 1.5rem; padding: 1rem; }
.development-state p { line-height: 1.5; margin: 0; }
.dot { background: #dc9c29; border-radius: 50%; flex: 0 0 auto; height: .7rem; margin-top: .35rem; width: .7rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button { background: var(--copper); border-radius: 999px; color: white; font-weight: 750; padding: .8rem 1.1rem; text-decoration: none; }
.button.secondary { background: transparent; border: 1px solid #718897; }
.button.light { background: #eef3f5; color: var(--navy); }
.button.outline-light { background: transparent; border: 1px solid #6f899b; }

.submission-shell { background: var(--white); border: 1px solid var(--line); border-radius: 1.4rem; box-shadow: 0 2rem 5rem rgba(4, 24, 38, .25); margin: 1.8rem auto 5rem; max-width: 820px; padding: clamp(1.5rem, 5vw, 3.5rem); text-align: center; }
.submission-shell .eyebrow { margin-top: 1rem; }
.submission-shell h1 { color: var(--navy); font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.08; margin: auto; max-width: 720px; }
.success-mark { align-items: center; background: #e5f5eb; border: 1px solid #9bd4ad; border-radius: 50%; color: #178044; display: flex; font-size: 2rem; font-weight: 900; height: 4rem; justify-content: center; margin: auto; width: 4rem; }
.submission-lead { color: var(--muted); font-size: 1rem; line-height: 1.7; margin: 1rem auto; max-width: 680px; }
.submission-reference { background: #edf4f6; border-radius: .8rem; display: inline-flex; flex-wrap: wrap; gap: .5rem 1rem; margin: .5rem auto 1.5rem; padding: .8rem 1rem; }
.submission-reference span { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.submission-reference strong { color: var(--navy); letter-spacing: .07em; }
.next-steps { display: grid; gap: .8rem; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; text-align: left; }
.next-steps > div { background: #f8f9f9; border: 1px solid var(--line); border-radius: .8rem; display: flex; gap: .7rem; padding: .9rem; }
.next-steps > div > span { align-items: center; background: var(--navy); border-radius: 50%; color: white; display: flex; flex: 0 0 auto; font-size: .75rem; font-weight: 800; height: 1.8rem; justify-content: center; width: 1.8rem; }
.next-steps p, .next-steps small { display: block; margin: 0; }
.next-steps small { color: var(--muted); line-height: 1.45; margin-top: .25rem; }
.submission-actions { justify-content: center; }

.home-hero { align-items: center; color: white; display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); min-height: 570px; padding: 2rem 0 4rem; position: relative; }
.home-hero::before { background: linear-gradient(110deg, var(--navy-deep), var(--navy)); bottom: 0; content: ""; left: 50%; position: absolute; top: -5rem; transform: translateX(-50%); width: 100vw; z-index: 0; }
.home-hero > * { position: relative; z-index: 1; }
.home-copy h1 { font-size: clamp(2.7rem, 5vw, 4.7rem); max-width: 760px; }
.home-lead { color: #d6e2e9; font-size: 1.05rem; line-height: 1.75; max-width: 700px; }
.secure-link-note { align-items: center; color: #bbccd6; display: flex; font-size: .84rem; gap: .6rem; margin-top: 1.25rem; }
.secure-link-note span { align-items: center; border: 1px solid #597486; border-radius: 50%; display: flex; flex: 0 0 auto; height: 1.4rem; justify-content: center; width: 1.4rem; }
.home-visual { min-height: 420px; position: relative; }
.measure-orbit { background: radial-gradient(circle at 50% 45%, rgba(111, 68, 160, .4), rgba(8, 29, 45, 0) 65%); border: 1px solid #496477; border-radius: 50%; height: 350px; left: 50%; position: absolute; top: 48%; transform: translate(-50%, -50%); width: 350px; }
.orbit-line { border: 1px solid rgba(216, 170, 53, .55); border-radius: 50%; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); }
.orbit-line.one { height: 270px; width: 170px; }
.orbit-line.two { height: 170px; width: 300px; }
.measure-figure { left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); }
.figure-head { background: linear-gradient(135deg, #ca6847, #d8aa35); border-radius: 50%; display: block; height: 54px; margin: auto; width: 54px; }
.figure-body { background: linear-gradient(180deg, #663f98, #bd2c7a); border-radius: 48% 48% 28% 28%; clip-path: polygon(33% 0, 67% 0, 82% 35%, 68% 100%, 32% 100%, 18% 35%); display: block; height: 190px; margin-top: 12px; width: 140px; }
.measure-dot { background: var(--gold); border: 4px solid var(--navy); border-radius: 50%; height: 18px; position: absolute; width: 18px; }
.dot-one { left: 22%; top: 25%; }.dot-two { right: 19%; top: 47%; }.dot-three { bottom: 17%; left: 42%; }
.visual-card { background: rgba(255,255,255,.96); border-radius: .8rem; bottom: 5%; box-shadow: 0 1rem 3rem rgba(0,0,0,.2); color: var(--navy); left: 50%; min-width: 230px; padding: .8rem 1rem; position: absolute; transform: translateX(-50%); }
.visual-card strong, .visual-card span { display: block; }.visual-card span { color: var(--muted); font-size: .78rem; margin-top: .2rem; }
.trust-strip { background: transparent; border: 0; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin: 1.5rem 0 2rem; overflow: visible; position: relative; z-index: 2; }
.trust-strip div { background: #edf3f5; border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 .7rem 1.8rem rgba(14,44,67,.08); min-height: 92px; padding: 1.15rem 1.2rem; text-align: center; }
.trust-strip div + div { border-left: 1px solid var(--line); }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { color: var(--navy); line-height: 1.35; }
.trust-strip span { color: var(--muted); font-size: .78rem; line-height: 1.45; margin-top: .3rem; }
.home-process { margin-bottom: 4rem; }
.process-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.2rem; }
.process-grid article { border-top: 2px solid var(--copper); padding-top: .9rem; }.process-grid article > span { color: var(--copper); font-size: .75rem; font-weight: 900; }.process-grid article strong { display: block; margin-top: .45rem; }.process-grid article p { color: var(--muted); font-size: .85rem; line-height: 1.6; }

.portal-footer { background: linear-gradient(110deg, #102a43, #0f5960); color: white; font-size: .8rem; margin: 0; max-width: none; padding: 0; text-align: left; width: 100%; }
.portal-footer-inner { margin: auto; max-width: 1080px; padding: 1.45rem 1.25rem 1rem; }
.portal-footer-main { align-items: center; display: flex; gap: 2rem; justify-content: space-between; }
.portal-footer-brand img { height: 48px; object-fit: contain; width: 48px; }
.portal-footer-links { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end; }
.portal-footer-links a { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: white; font-size: .74rem; font-weight: 700; padding: .55rem .75rem; text-decoration: none; }
.portal-footer-links a:hover { background: rgba(255,255,255,.1); }
.portal-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); color: #bed0d9; display: flex; justify-content: space-between; margin-top: 1rem; padding-top: .85rem; }

@media (max-width: 620px) {
  body { background: linear-gradient(180deg, var(--navy-deep) 0, var(--navy) 30rem, var(--paper) 30rem); }
  main { padding-top: 2rem; }
  .measurement-list, .measurement-grid { grid-template-columns: 1fr; }
  .camera-hud { left: .42rem; right: .42rem; top: .42rem; }
  .camera-hud-panel { border-radius: .48rem; min-width: 0; padding: .3rem .36rem; }
  .camera-hud-panel strong { font-size: .52rem; margin-bottom: .14rem; }
  .pose-readiness { gap: .08rem; }
  .pose-readiness span, .capture-hud > span { font-size: .53rem; padding: .06rem 0; }
  .camera-stage video { max-height: 68vh; }
  .calibration-card { align-items: stretch; flex-direction: column; }
  .calibration-card label { flex-basis: auto; }
  .framing-guide { bottom: 4%; top: 4%; width: 72%; }
  .framing-guide span { height: 11%; width: 27%; }
  .capture-confirmation { bottom: .75rem; font-size: .78rem; white-space: normal; width: max-content; }
  .next-steps, .trust-strip, .process-grid { grid-template-columns: 1fr; }
  .trust-strip div + div { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 1rem; }
  .home-visual { min-height: 330px; }
  .measure-orbit { height: 290px; width: 290px; }
  .optional-section summary { align-items: flex-start; }
  .portal-header-inner { min-height: 68px; padding: .5rem .8rem; }
  .portal-logo { height: 45px; width: 45px; }
  .portal-brand-copy strong { font-size: .78rem; }
  .portal-brand-copy small { display: none; }
  .portal-nav-link { display: none; }
  .language-switch { margin-left: 0; }
  .portal-footer-main, .portal-footer-bottom { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .portal-footer-links { justify-content: flex-start; }
}
