:root { --navy:#0b3552; --deep:#082e48; --blue:#17648a; --teal:#267b70; --gold:#d5a54a; --cream:#fbf7ee; --ink:#183f56; --muted:#4a6574; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; }
body { margin:0; background:#e8f0ef; color:var(--ink); font-family:Arial,Helvetica,sans-serif; -webkit-font-smoothing:antialiased; }
button,input,select { font:inherit; }
button { cursor:pointer; -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid #e7a82f; outline-offset:3px; }
.stage { width:min(100%,430px); min-height:100vh; margin:0 auto; overflow:hidden; background:var(--cream); box-shadow:0 24px 58px #143d5028; }
.hero { padding:22px 20px 23px; background:linear-gradient(145deg,#0b3f5c,#082f4b 78%); color:#fff; border-top:5px solid var(--teal); border-bottom:3px solid var(--gold); }
.eyebrow { display:flex; align-items:center; gap:8px; margin:0 0 11px; color:#f8d684; font-size:11px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.eyebrow::before,.eyebrow::after { content:""; width:20px; height:1px; background:#f8d684; }
h1 { margin:0; color:#fffdf7; font:700 clamp(32px,8vw,41px)/1.05 Georgia,'Times New Roman',serif; letter-spacing:-.035em; }
.hero-copy { margin:13px 0 0; color:#ecf4f3; font-size:14px; font-weight:700; line-height:1.44; }
.review-tag { display:inline-block; margin-top:14px; padding:6px 10px; border:1px solid #e9bc65; border-radius:999px; color:#ffe3a1; font-size:10px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.content { padding:15px 14px 26px; }
.return-path { display:inline-block; margin:0 0 12px 2px; color:#176488; font-size:12px; font-weight:900; text-decoration:underline; text-underline-offset:3px; }
.intro-note { display:grid; grid-template-columns:40px 1fr; gap:10px; align-items:center; padding:12px; margin-bottom:14px; border:1px solid #a7c9c9; border-radius:13px; background:#eaf4f2; }
.intro-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--teal); color:#ffe2a3; font-size:19px; }
.intro-note strong { display:block; color:var(--navy); font-size:14px; font-weight:900; }
.intro-note p { margin:3px 0 0; color:#3d5b67; font-size:12px; font-weight:750; line-height:1.35; }
.card,.plan { margin:0 0 14px; padding:15px 13px 14px; border:2px solid #bed8dc; border-radius:17px; background:#fff; }
.card.gold { border-color:#dfbd7b; background:#fffdf8; }
.card.green { border-color:#a3cdb9; background:#fbfffc; }
.step-head { display:flex; align-items:center; gap:9px; }
.step { display:grid; flex:none; place-items:center; width:31px; height:31px; border-radius:50%; background:var(--blue); color:#fff; font-size:15px; font-weight:900; }
.card.gold .step { background:#aa7932; }
.card.green .step { background:#28755a; }
h2 { margin:0; color:var(--navy); font-size:19px; font-weight:900; line-height:1.22; }
.card-intro { margin:9px 0 12px; color:#425f6e; font-size:12px; font-weight:750; line-height:1.42; }
.area-choices { display:grid; gap:7px; }
.area-choice { display:grid; grid-template-columns:46px 1fr 16px; gap:8px; align-items:center; width:100%; min-height:67px; padding:8px 10px; border:2px solid #d2e2e4; border-radius:11px; background:#f8fbfb; color:var(--navy); text-align:left; }
.area-choice[aria-pressed="true"] { border-color:#217b67; background:#e9f7ef; box-shadow:inset 0 0 0 1px #217b67; }
.area-icon { display:grid; place-items:center; width:43px; height:43px; border-radius:10px; background:#e4eff2; }
.area-choice[aria-pressed="true"] .area-icon { background:#d8eee2; }
.area-icon svg { width:32px; height:32px; fill:none; stroke:#246280; stroke-width:2.7; stroke-linecap:round; stroke-linejoin:round; }
.area-icon circle { fill:#d4a54d; stroke:#b38436; }
.area-choice strong { display:block; font-size:14px; font-weight:900; }
.area-choice small { display:block; margin-top:3px; color:#55717d; font-size:11px; font-weight:750; line-height:1.25; }
.chevron { color:#437486; font-size:28px; line-height:1; }
.optional { margin-top:14px; padding-top:13px; border-top:1px solid #dce9e9; }
.optional-title,.minor-title { margin:0 0 8px; color:var(--navy); font-size:12px; font-weight:900; }
.optional-title span { margin-left:4px; color:#6d7b7e; font-size:11px; font-weight:750; }
.context-options { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.context-options button,.margin-options button { min-height:39px; padding:7px 5px; border:2px solid #d0dfe1; border-radius:9px; background:#fff; color:var(--navy); font-size:11px; font-weight:850; line-height:1.2; }
.context-options button[aria-pressed="true"],.margin-options button[aria-pressed="true"] { border-color:#227b68; background:#e9f6ed; color:#205e47; }
.tiny-note { margin:8px 1px 0; color:#60737c; font-size:10px; font-weight:700; line-height:1.35; }
.measure-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.measure-grid label { display:block; color:var(--navy); font-size:12px; font-weight:900; }
.measure-grid label span { color:#607783; font-weight:750; }
.measure-grid input { display:block; width:100%; height:43px; margin-top:5px; padding:8px 10px; border:2px solid #bdcfd3; border-radius:9px; background:#fff; color:var(--navy); font-size:16px; font-weight:850; }
.measure-grid input:focus { border-color:#217a7b; }
.minor-title { margin-top:14px; }
.margin-options { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.coverage { margin-top:12px; padding:10px 11px; border-left:4px solid var(--gold); border-radius:0 8px 8px 0; background:#f8f1df; color:#36576a; font-size:12px; font-weight:850; line-height:1.4; }
.results { display:grid; gap:8px; }
.result { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; padding:11px; border:2px solid #d0e1e2; border-radius:11px; background:#f8fcfc; }
.result.selected { border-color:#237b62; background:#edf8f0; }
.result strong { display:block; color:var(--navy); font-size:16px; font-weight:900; }
.result small { display:block; margin-top:4px; color:#526d79; font-size:11px; font-weight:750; line-height:1.3; }
.result button { min-width:68px; min-height:39px; padding:6px 9px; border:0; border-radius:8px; background:var(--blue); color:white; font-size:11px; font-weight:900; }
.result.selected button { background:#28775a; }
.empty { margin:0; padding:11px; border:1px dashed #b3cbd0; border-radius:9px; background:#f5fafb; color:#55707c; font-size:12px; font-weight:750; line-height:1.4; }
.surface-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.elbow-fit { margin:0 0 12px; padding:12px; border:2px solid #b5d6ca; border-radius:11px; background:#eff8f2; }
.elbow-fit strong { display:block; color:#205d48; font-size:15px; font-weight:900; }
.elbow-fit p { margin:7px 0 0; color:#365c57; font-size:13px; font-weight:750; line-height:1.43; }
.elbow-preview { padding:8px 10px; border-left:3px solid #2d8266; background:#e5f4e9; }
.elbow-surface-early { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:10px 0 12px; }
.elbow-surface-option { min-height:48px; padding:8px; border:2px solid #a8c8bd; border-radius:9px; background:#fff; color:#173c4b; font-size:12px; font-weight:850; line-height:1.2; }
.elbow-surface-option[aria-pressed="true"] { border-color:#207d64; background:#dff3e6; box-shadow:inset 0 0 0 1px #207d64; }
.surface { min-height:135px; padding:9px; border:2px solid #c5d8d8; border-radius:11px; background:#fff; color:var(--navy); text-align:left; }
.surface[aria-pressed="true"] { border-color:#207d64; background:#eef9f1; box-shadow:inset 0 0 0 1px #207d64; }
.surface-photo { display:grid; place-items:center; height:65px; border-radius:7px; background:#eaf0ed; overflow:hidden; }
.surface-photo img { display:block; width:85%; height:75%; object-fit:contain; }
.surface strong { display:block; margin-top:7px; font-size:13px; font-weight:900; }
.surface small { display:block; margin-top:3px; color:#55717c; font-size:10px; font-weight:750; line-height:1.25; }
.holder-label { display:block; margin:15px 0 6px; color:var(--navy); font-size:12px; font-weight:900; }
select { width:100%; min-height:43px; padding:8px 10px; border:2px solid #bdd2d0; border-radius:9px; background:#fff; color:var(--navy); font-size:13px; font-weight:800; }
.quantity { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:15px; color:var(--navy); font-size:12px; font-weight:900; }
.quantity-control { display:flex; align-items:center; gap:8px; }
.quantity-control button { width:37px; height:37px; border:0; border-radius:9px; background:var(--blue); color:#fff; font-size:22px; font-weight:800; }
.quantity-control button:disabled { opacity:.45; cursor:not-allowed; }
.quantity-control output { min-width:20px; text-align:center; font-size:16px; }
.primary-action,.secondary-action { display:block; width:100%; min-height:43px; margin-top:14px; padding:11px 12px; border:0; border-radius:10px; background:#145e81; color:#fff; font-size:13px; font-weight:900; line-height:1.25; text-align:center; text-decoration:none; }
.primary-action:disabled { background:#91a6ac; cursor:not-allowed; }
.secondary-action { margin-top:0; border:2px solid #2b7962; background:#eff8f1; color:#246549; }
.validation { margin:8px 0 0; color:#54707b; font-size:11px; font-weight:750; line-height:1.35; }
.plan { border-color:#d6b571; background:#fffaf0; }
.plan > p { margin:7px 0 12px; color:#466371; font-size:12px; font-weight:750; line-height:1.4; }
.plan-item { margin-top:8px; padding:10px 11px; border:1px solid #c9dedd; border-radius:9px; background:#fff; }
.plan-item strong { display:block; color:var(--navy); font-size:13px; font-weight:900; }
.plan-item p { margin:5px 0 0; color:#4e6875; font-size:11px; font-weight:750; line-height:1.36; }
.plan-item button { margin-top:7px; padding:0; border:0; background:none; color:#a04f36; font-size:11px; font-weight:900; text-decoration:underline; text-underline-offset:2px; }
.saved-status { margin:10px 0 0; padding:9px 10px; border-left:4px solid #2c8065; background:#eaf7ed; color:#245e45; font-size:11px; font-weight:850; line-height:1.35; }
.plan-actions { display:grid; gap:7px; margin-top:12px; }
.plan-actions .primary-action { margin-top:0; }
.catalog-note { padding:12px; border-left:4px solid var(--gold); border-radius:0 9px 9px 0; background:#fff2d7; }
.catalog-note strong { color:var(--navy); font-size:12px; font-weight:900; }
.catalog-note p { margin:5px 0 0; color:#49616b; font-size:11px; font-weight:750; line-height:1.4; }
.use-list { display:grid; gap:15px; }
.use-group h3 { margin:0 1px 7px; padding-bottom:5px; border-bottom:1px solid #d8e5e4; color:#26677d; font-size:12px; font-weight:900; letter-spacing:.045em; text-transform:uppercase; }
.use-rows { display:grid; gap:6px; }
.use-choice { display:grid; grid-template-columns:1fr auto; align-items:center; width:100%; min-height:45px; padding:10px 12px; border:2px solid #d3e1e3; border-radius:9px; background:#f8fbfb; color:var(--navy); text-align:left; }
.use-choice strong { font-size:14px; font-weight:900; }
.use-choice span { color:#41788c; font-size:22px; line-height:1; }
.use-choice[aria-expanded="true"] { border-color:#287c68; background:#eaf7ed; border-radius:9px 9px 0 0; }
.use-choice[aria-expanded="true"] span { transform:rotate(90deg); }
.area-detail { margin-top:-6px; padding:12px; border:2px solid #287c68; border-top:0; border-radius:0 0 10px 10px; background:#f1faf3; }
.area-detail h4 { margin:0 0 5px; color:var(--navy); font-size:15px; font-weight:900; }
.area-detail p { margin:0 0 8px; color:#3c5d68; font-size:12px; font-weight:750; line-height:1.42; }
.area-detail p strong { color:var(--navy); font-weight:900; }
.area-detail .detail-action { display:block; width:100%; min-height:41px; margin-top:10px; padding:10px 11px; border:0; border-radius:8px; background:#145e81; color:#fff; font-size:13px; font-weight:900; text-align:center; }
.area-detail .detail-note { margin:8px 0 0; color:#56717a; font-size:11px; line-height:1.35; }
.wound-intro { margin:0 0 3px; padding:10px 11px; border-left:4px solid #d0a351; border-radius:0 8px 8px 0; background:#fff5df; color:#405f6c; font-size:12px; font-weight:750; line-height:1.42; }
.size-bracket { border:2px solid #bfd8d9; border-radius:11px; background:#fff; overflow:hidden; }
.size-bracket[open] { border-color:#7fb2ae; }
.size-bracket summary { display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:58px; padding:9px 11px; cursor:pointer; list-style:none; background:#f0f7f5; }
.size-bracket summary::-webkit-details-marker { display:none; }
.size-bracket summary strong { display:block; color:var(--navy); font-size:13px; font-weight:900; }
.size-bracket summary small { display:block; margin-top:3px; color:#55717b; font-size:11px; font-weight:750; }
.size-bracket summary em { flex:none; padding:5px 7px; border-radius:7px; background:#e0efeb; color:#256753; font-size:10px; font-style:normal; font-weight:900; white-space:nowrap; }
.bracket-rows { display:grid; gap:7px; padding:9px; border-top:1px solid #d7e7e4; }
.bracket-rows .result { background:#fff; }
footer { padding:13px 14px 16px; background:var(--deep); color:#f2d486; font-size:12px; font-weight:750; text-align:center; }
.mode-card { margin:0 0 14px; padding:14px 13px; border:2px solid #d6b571; border-radius:16px; background:#fffaf0; }
.mode-card h2 { margin-bottom:10px; font-size:17px; }
.mode-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.mode-options button { min-height:84px; padding:10px; border:2px solid #cfdddb; border-radius:10px; background:#fff; color:var(--navy); text-align:left; }
.mode-options button[aria-pressed="true"] { border-color:#237b64; background:#eaf7ee; box-shadow:inset 0 0 0 1px #237b64; }
.mode-options strong { display:block; font-size:14px; font-weight:900; }
.mode-options span { display:block; margin-top:5px; color:#506b76; font-size:11px; font-weight:750; line-height:1.3; }
.expert-label,.expert-filters label { display:block; color:var(--navy); font-size:12px; font-weight:900; }
.expert-search { display:block; width:100%; min-height:43px; margin:5px 0 10px; padding:9px 11px; border:2px solid #bdd3d5; border-radius:9px; background:#fff; color:var(--navy); font-size:14px; font-weight:750; }
.expert-filters { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.expert-filters select { min-height:40px; margin-top:5px; padding:6px 7px; font-size:11px; }
.expert-count { margin:12px 0 8px; color:#436272; font-size:12px; font-weight:850; }
.expert-results { display:grid; gap:8px; }
.expert-card { padding:11px; border:2px solid #d4e4e3; border-radius:10px; background:#f8fcfb; }
.expert-card.planned { border-style:dashed; background:#faf9f5; }
.expert-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:9px; }
.expert-card h3 { margin:0; color:var(--navy); font-size:16px; font-weight:900; }
.expert-card .expert-use { margin:8px 0 0; color:#1c684f; font-size:13px; font-weight:900; }
.expert-card small { display:block; margin-top:3px; color:#5b7580; font-size:10px; font-weight:800; }
.expert-card p { margin:8px 0 0; color:#3d5d69; font-size:12px; font-weight:750; line-height:1.38; }
.expert-card .expert-price { color:#18614e; font-weight:900; }
.expert-card .availability { flex:none; padding:5px 6px; border-radius:6px; background:#e3f1eb; color:#22664d; font-size:9px; font-weight:900; }
.expert-card.planned .availability { background:#f4ead9; color:#835b27; }
.expert-card button { width:100%; min-height:37px; margin-top:9px; border:0; border-radius:7px; background:#145e81; color:#fff; font-size:12px; font-weight:900; }
#expert-more { margin-top:9px; }
/* R2 phone readability pass: keep choices and explanations legible at normal size. */
.hero-copy { font-size:15px; }
.return-path,.intro-note p,.card-intro,.area-detail p,.plan > p,.expert-card p,.wound-intro { font-size:14px; }
.tiny-note,.area-detail .detail-note,.plan-item p,.catalog-note p,.expert-card small,.result small,.surface small,.mode-options span { font-size:13px; }
.measure-grid label,.holder-label,.quantity,.expert-label,.expert-filters label,.expert-count,.coverage,.validation,.catalog-note strong,.use-group h3 { font-size:14px; }
.context-options button,.margin-options button,.result button,.surface strong,.primary-action,.secondary-action,.area-detail .detail-action,.expert-card button,.expert-filters select { font-size:14px; }
.mode-options strong,.use-choice strong,.plan-item strong,.expert-card .expert-use,.size-bracket summary strong { font-size:15px; }
.size-bracket summary small,.size-bracket summary em,.expert-card .availability,.saved-status { font-size:12px; }
@media (max-width:350px) { .hero { padding-inline:16px; } .content { padding-inline:10px; } .card,.plan { padding-inline:10px; } .result { grid-template-columns:1fr; } .result button { width:100%; } }
@media (min-width:700px) { .stage { margin:22px auto; border-radius:22px; } }
