/* MPS Design Studio. Mobile first. Brand: navy #1B3654, steel grey, Manrope. */
:root {
  --ink: #0E1522; --navy: #1B3654; --navy-dk: #12253B; --navy-lt: #E6ECF3;
  --steel: #6B7684; --steel-lt: #D7DBE1; --cream: #F5F3EE; --paper: #FFFFFF;
  --muted: #4B5563; --line: #D7DBE1;
  --ok: #15803D; --ok-dk: #166534; --warn-bg: #FFF4D6; --warn-ink: #6B4A00; --err: #B42318; --err-bg: #FDECEA;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(14,21,34,.06), 0 6px 20px rgba(14,21,34,.07);
  --navh: 64px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--cream); padding-bottom: calc(var(--navh) + var(--safe-b)); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; color: var(--navy-dk); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid #2B6CB0; outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* header + nav */
.top { background: var(--navy); color: #fff; padding: calc(10px + var(--safe-t)) 16px 10px; display: flex; align-items: center; justify-content: space-between; }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.top__brand img { height: 34px; width: auto; display: block; }
.top__name { font-weight: 700; font-size: .95rem; letter-spacing: .02em; border-left: 1px solid rgba(255,255,255,.35); padding-left: 10px; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: var(--safe-b); box-shadow: 0 -4px 18px rgba(14,21,34,.08); }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--navh); text-decoration: none; color: var(--steel); font-size: .72rem; font-weight: 700; }
.nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--navy); }
.nav__new svg { background: var(--navy); color: #fff; stroke: #fff; border-radius: 50%; padding: 4px; width: 32px; height: 32px; }
.nav__new { color: var(--navy) !important; }
.nav__count { position: absolute; top: 8px; left: 56%; min-width: 18px; height: 18px; border-radius: 9px; background: var(--navy); color: #fff; font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }

main { max-width: 760px; margin: 0 auto; padding: 18px 16px 28px; outline: none; }
.foot { max-width: 760px; margin: 0 auto; padding: 0 16px 24px; font-size: .8rem; color: var(--muted); text-align: center; }
.foot p { margin: 0 0 4px; }

@media (min-width: 880px) {
  body { padding-bottom: 0; }
  .top { padding: 12px 28px; }
  .nav { position: static; display: flex; gap: 4px; background: none; border: 0; box-shadow: none; padding: 0; }
  .nav a { flex-direction: row; gap: 8px; height: 42px; padding: 0 14px; color: #D7DBE1; font-size: .92rem; border-radius: 999px; }
  .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }
  .nav a[aria-current="page"]::before { display: none; }
  .nav__new { color: #fff !important; background: rgba(255,255,255,.18); }
  .nav__new svg { background: none; padding: 0; width: 22px; height: 22px; }
  .nav__count { position: static; background: #fff; color: var(--navy); }
  main { max-width: 1040px; padding-top: 28px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: var(--navy-dk); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy-lt); }
.btn--wa { background: var(--ok); border-color: var(--ok); }
.btn--wa:hover { background: var(--ok-dk); }
.btn--danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn--danger:hover { background: var(--err-bg); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.btnrow > .btn { flex: 1 1 auto; }
.linkbtn { background: none; border: 0; color: var(--navy); font: 700 .95rem var(--sans); text-decoration: underline; cursor: pointer; padding: 6px 0; }

/* cards + notices */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0 0 16px; box-shadow: var(--shadow); }
.notice { border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 16px; font-size: .92rem; background: var(--navy-lt); color: var(--navy-dk); }
.notice--warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice--err { background: var(--err-bg); color: var(--err); }
.notice--ok { background: #E3F4E8; color: #14532D; }
.disclaimer { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--steel-lt); padding: 2px 0 2px 12px; margin: 12px 0; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* home */
.hero { background: linear-gradient(160deg, var(--navy-dk), var(--navy)); color: #fff; border-radius: 20px; padding: 26px 20px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: 1.9rem; }
.hero p { color: #D7E0EA; max-width: 34em; }
.hero .btn { background: #fff; color: var(--navy-dk); border-color: #fff; }
.hero .btn:hover { background: var(--cream); }
.hero .btnrow > .btn { flex: 0 1 auto; }
@media (max-width: 600px) { .hero .btnrow > .btn { flex: 1 1 100%; } }
.hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
.steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps b { display: block; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li { flex-direction: column; } }

/* builder */
.progress { display: flex; gap: 5px; margin: 0 0 14px; padding: 0; list-style: none; }
.progress li { flex: 1; height: 6px; border-radius: 3px; background: var(--steel-lt); }
.progress li.is-done { background: var(--navy); }
.progress li.is-now { background: #2B6CB0; }
.stepno { font-size: .85rem; font-weight: 700; color: var(--steel); margin: 0 0 4px; }
.choices { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.choices--2 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .choices--auto { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } .choices--4 { grid-template-columns: repeat(4, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__body { display: block; height: 100%; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background .15s; }
.choice__body b { display: block; font-size: 1rem; color: var(--navy-dk); }
.choice__body span.sub { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.choice input:checked + .choice__body { border-color: var(--navy); background: var(--navy-lt); box-shadow: 0 0 0 1px var(--navy) inset; }
.choice input:focus-visible + .choice__body { outline: 3px solid #2B6CB0; outline-offset: 2px; }
.choice__body::after { content: ""; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--steel-lt); background: #fff; }
.choice input:checked + .choice__body::after { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; border-color: var(--navy); }
.choice--type .choice__body { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding-right: 40px; }
.choice--type svg { width: 96px; height: 72px; display: block; }
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); vertical-align: -5px; margin-right: 8px; }
.choice--swatch .choice__body { padding: 12px 40px 12px 12px; }
.group-title { margin: 22px 0 10px; }
.photo-drop { display: grid; place-items: center; gap: 8px; text-align: center; min-height: 190px; border: 2px dashed var(--steel); border-radius: var(--r); background: var(--paper); padding: 16px; cursor: pointer; }
.photo-drop:hover { background: var(--navy-lt); }
.photo-drop svg { width: 46px; height: 46px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.photo-preview { width: 100%; max-height: 360px; object-fit: contain; background: #000; border-radius: var(--r); display: block; }
.tips { margin: 12px 0 0; padding-left: 1.2em; font-size: .92rem; color: var(--muted); }
.tips li { margin-bottom: 4px; }
.stepnav { position: sticky; bottom: calc(var(--navh) + var(--safe-b)); background: linear-gradient(to top, var(--cream) 70%, rgba(245,243,238,0)); padding: 14px 0 10px; display: flex; gap: 10px; margin-top: 8px; z-index: 5; }
.stepnav .btn { flex: 1; }
.stepnav .btn--ghost { flex: 0 0 auto; }
@media (min-width: 880px) { .stepnav { bottom: 0; } }

/* summary list */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--steel); font-weight: 600; font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.kv dd a { font-weight: 600; white-space: nowrap; }
.pricebox { background: var(--navy); color: #fff; border-radius: var(--r); padding: 16px; margin: 0 0 16px; }
.pricebox .eyebrow { color: #B9C6D6; }
.pricebox .pricebox__fig { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin: 0; color: #fff; }
.pricebox p { margin: 6px 0 0; font-size: .85rem; color: #D7E0EA; }
.pricebox--ph { background: repeating-linear-gradient(45deg, #5b4a14, #5b4a14 12px, #4a3b0e 12px, #4a3b0e 24px); }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #FFD76A; color: #3d2f00; padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }

/* working screen */
.working { text-align: center; padding: 36px 8px; }
.spinner { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; border: 5px solid var(--steel-lt); border-top-color: var(--navy); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .btn { transition: none; } }

/* designs */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 0 0 16px; padding: 0; list-style: none; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.dcard { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dcard > a { color: inherit; text-decoration: none; display: block; }
.dcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--steel-lt); }
.dcard__body { padding: 10px 12px 6px; }
.dcard__body b { display: block; font-size: .92rem; line-height: 1.25; }
.dcard__body span { font-size: .82rem; color: var(--muted); }
.dcard__pick { display: flex; align-items: center; gap: 8px; padding: 8px 12px 12px; font-size: .88rem; font-weight: 700; color: var(--navy); cursor: pointer; margin-top: auto; }
.dcard__pick input { width: 22px; height: 22px; accent-color: var(--navy); }
.comparebar { position: sticky; bottom: calc(var(--navh) + var(--safe-b) + 6px); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--navy-dk); color: #fff; border-radius: var(--r); padding: 10px 12px 10px 16px; box-shadow: var(--shadow); z-index: 6; }
@media (min-width: 880px) { .comparebar { bottom: 12px; } }
.comparebar .btn { background: #fff; color: var(--navy-dk); border-color: #fff; }

/* before / after */
.ba { position: relative; border-radius: var(--r); overflow: hidden; background: #000; user-select: none; touch-action: pan-y; margin-bottom: 8px; }
.ba img { display: block; width: 100%; height: auto; }
.ba__before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 50% 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.5); left: 50%; margin-left: -1.5px; pointer-events: none; }
.ba__line::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__tag { position: absolute; top: 10px; font-size: .75rem; font-weight: 800; background: rgba(14,21,34,.75); color: #fff; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.ba__tag--l { left: 10px; } .ba__tag--r { right: 10px; }

/* compare table */
.cmpwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 100%; }
.cmp th, .cmp td { padding: 10px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .88rem; min-width: 132px; }
.cmp thead th { min-width: 132px; padding: 0; vertical-align: top; }
.cmp tbody th { position: sticky; left: 0; background: #F3F5F8; color: var(--steel); font-size: .7rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; min-width: 74px; max-width: 74px; z-index: 1; }
.cmp thead th:first-child { position: sticky; left: 0; background: #F3F5F8; min-width: 74px; max-width: 74px; z-index: 2; }
.cmp img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.cmp .diff { background: #FFF8E1; font-weight: 700; }
.cmp .best { color: var(--ok-dk); }
.cmp__head { padding: 8px 10px 10px; font-weight: 800; font-size: .85rem; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cmp__head button { border: 0; background: none; color: var(--err); font: 700 .8rem var(--sans); cursor: pointer; padding: 4px 0; text-decoration: underline; }
.cmp__toggle { margin: 0 0 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* forms */
.field { margin: 0 0 14px; }
.field label, .field .lbl { display: block; font-weight: 700; margin-bottom: 4px; font-size: .95rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--steel-lt); border-radius: var(--r-sm); font: inherit; background: #fff; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(43,108,176,.35); }
.field [aria-invalid=true] { border-color: var(--err); }
.field .err { color: var(--err); font-size: .88rem; margin-top: 4px; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 2px solid var(--steel-lt); border-radius: var(--r-sm); background: #fff; margin: 0 0 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.check img { width: 74px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; }
.check small { display: block; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--navh) + var(--safe-b) + 18px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; z-index: 90; max-width: 90vw; box-shadow: var(--shadow); }
@media (min-width: 880px) { .toast { bottom: 24px; } }
.empty { text-align: center; padding: 28px 12px; }
.empty svg { width: 64px; height: 64px; fill: none; stroke: var(--steel); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.chip { background: var(--navy-lt); color: var(--navy-dk); border-radius: 999px; padding: 3px 11px; font-size: .82rem; font-weight: 700; }
