/* softjawdesign.com — the look of marketing/bluspot-landing-mockup.html: graphite + teal + amber,
   Lato / IBM Plex Mono when installed (no web-font request), phone first. */
:root {
  --teal: #0B5C5A; --teal-deep: #07403E; --amber: #E0A020; --amber-deep: #c78c12;
  --graphite: #23272B; --paper: #F5F7F8; --ink: #1d2321; --muted: #4a5651; --line: #dde3e2;
  --blu: #1B3A5C; --pass: #2f9e44; --fail: #B23A48; --card: #fff;
  --radius: 12px; --gutter: 16px;
  --sans: "Lato", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, "SFMono-Regular", monospace;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.5; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 48px 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.3px; }
h2 { font-size: 28px; color: var(--teal); margin-bottom: 12px; }
.lede { font-size: 17px; color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lede { margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 8px; font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-amber { background: var(--amber); color: #1d2321; }
.btn-amber:hover { background: var(--amber-deep); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); }
.btn-ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-line { border: 2px solid var(--line); color: var(--ink); background: #fff; }
.btn[disabled] { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* header */
.top { background: var(--graphite); color: #fff; position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .3px; }
.brand svg { flex: none; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: #d9e4e2; text-decoration: none; padding: 10px 10px; border-radius: 6px; font-size: 15px; }
.nav a[aria-current="page"], .nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; color: #1d2321; }
.nav .btn:hover { background: var(--amber-deep); color: #1d2321; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; min-width: 48px; min-height: 48px; font-size: 24px; cursor: pointer; }
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--graphite); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; border-top: 1px solid #3a4145; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 17px; }
  .nav .btn { margin-top: 8px; min-height: 48px; }
}

/* hero */
.hero { background: linear-gradient(160deg, var(--graphite) 0%, var(--teal-deep) 90%); color: #fff; padding: 40px 0 36px; }
.hero .grid { display: grid; gap: 28px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 12px;
  font-size: 12px; letter-spacing: 1.4px; font-weight: 700; color: #cfdedd; margin-bottom: 16px; text-transform: uppercase; }
.hero h1 { font-size: 36px; letter-spacing: -1px; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { font-size: 17px; color: #d9e4e2; max-width: 34em; margin-bottom: 22px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ticks { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.tick { font-size: 13px; color: #bcd2cf; display: flex; gap: 8px; align-items: center; }
.tick b { color: #fff; }
.tick .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
@media (min-width: 860px) {
  section { padding: 72px 0; }
  h2 { font-size: 34px; }
  .hero { padding: 72px 0 56px; }
  .hero .grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .hero h1 { font-size: 52px; }
}

/* what we do */
.cols { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 700px) { .cols { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.col .num { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--amber-deep); }
.col h3 { font-size: 20px; color: var(--teal); margin: 8px 0 6px; }
.col p { font-size: 15px; color: var(--muted); }
.col a { font-weight: 700; }
.paper { background: var(--paper); }

/* product strip */
.strip-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.strip-arrows { display: flex; gap: 8px; flex: none; }   /* on phones too: a swipe over a model turns it, so the arrows move the strip */
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 20px; color: var(--ink); }
.arrow:hover { border-color: var(--teal); color: var(--teal); }
.arrow[disabled] { opacity: .35; cursor: default; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 18px; margin: 0 calc(-1 * var(--gutter)); scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: thin; }
@media (min-width: 560px) { .strip { grid-auto-columns: 46%; } }
@media (min-width: 900px) { .strip { grid-auto-columns: calc((100% - 3 * 18px) / 3.4); gap: 18px; } }
.card { -webkit-user-drag: none; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; position: relative; }
.card:hover { box-shadow: 0 12px 30px rgba(11,92,90,.14); transform: translateY(-2px); }
.card .shot { aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #fff 0%, #e9eeee 70%); display: grid; place-items: center; }
.card .shot img { width: 86%; height: 86%; object-fit: contain; }
/* The live model sits over the poster (strip.js); its own poster shows until the GLB is in view and loaded. */
.card .shot { position: relative; }
.card .shot model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; --poster-color: transparent; touch-action: none; cursor: grab; }
.card .shot.live > img { visibility: hidden; }
.pan-dot { width: 6px; height: 6px; border-radius: 6px; border: 1px solid #fff; box-shadow: 0 0 2px 1px rgba(0,0,0,.8); pointer-events: none; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 17px; }
.card p { font-size: 14px; color: var(--muted); }
.card .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; }
.price { font-weight: 800; color: var(--ink); }
.spin { font-size: 12px; font-weight: 700; color: var(--teal); display: inline-flex; align-items: center; gap: 4px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .4px; padding: 3px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); text-transform: uppercase; }
.sample { position: absolute; top: 10px; left: 10px; background: var(--graphite); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }

/* product dialog / detail */
dialog.product { margin: auto; border: 0; border-radius: 16px; padding: 0; width: min(980px, calc(100vw - 2 * var(--gutter))); max-width: none; max-height: calc(100dvh - 32px); overflow: auto; }
dialog.product::backdrop { background: rgba(20,24,26,.6); }
.pd { display: grid; }
@media (min-width: 820px) { .pd { grid-template-columns: 1.2fr 1fr; } .pd model-viewer, .pd .stage > img { height: min(62vh, 520px); } }
section[id] { scroll-margin-top: 60px; }
.pd .stage { background: radial-gradient(circle at 50% 40%, #fff 0%, #e4eaea 75%); position: relative; min-height: 320px; }
.pd model-viewer, .pd .stage > img { width: 100%; height: min(46vh, 520px); min-height: 280px; display: block; --poster-color: transparent; background: transparent; }
.pd .stage > img { object-fit: contain; padding: 24px; }
.pd .hint { position: absolute; left: 12px; bottom: 12px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.pd .info { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.pd h2 { margin: 0; font-size: 26px; }
.pd dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.pd dt { color: var(--muted); }
.pd .price { font-size: 22px; }
.pd .note { font-size: 13px; color: var(--muted); }
.close { position: absolute; right: 10px; top: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 22px; cursor: pointer; }
.ar-btn { position: absolute; right: 12px; bottom: 12px; }

/* quote */
.drop { display: block; position: relative; border: 2px dashed #9fb7b4; border-radius: 14px; padding: 28px 18px; text-align: center; background: #fbfdfd; cursor: pointer; transition: background .15s, border-color .15s; }
.drop.over { background: #eef6f5; border-color: var(--teal); }
.drop strong { display: block; font-size: 18px; color: var(--teal); margin-bottom: 6px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.quote-grid { display: grid; gap: 20px; margin-top: 22px; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.panel { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.panel .hd { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel .hd h3 { font-size: 16px; }
.panel .bd { padding: 16px; }
.viewer { background: radial-gradient(circle at 50% 40%, #fff 0%, #e4eaea 75%); }
.viewer model-viewer { width: 100%; height: 340px; display: block; }
.geo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; font-size: 14px; }
.geo div span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .legend { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; padding: 12px; border: 1px solid #b9c6c4; border-radius: 8px; min-height: 48px; background: #fff; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field small { color: var(--muted); font-size: 13px; }
.qtys { display: flex; gap: 8px; flex-wrap: wrap; }
.qtys label { display: inline-flex; }
.qtys input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qtys span { min-width: 52px; min-height: 44px; display: inline-grid; place-items: center; border: 2px solid var(--line); border-radius: 8px; font-weight: 800; cursor: pointer; padding: 0 10px; }
.qtys input:checked + span { border-color: var(--teal); background: #e9f3f2; color: var(--teal); }
.qtys input:focus-visible + span { outline: 3px solid var(--amber); }
.prices { width: 100%; border-collapse: collapse; font-size: 15px; }
.prices th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.prices td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.prices td.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prices th.n { text-align: right; }
.prices tr.best td { background: #f2f8f7; }
.big-price { font-size: 32px; font-weight: 800; font-family: var(--mono); }
.estimate-note { font-size: 13px; color: var(--muted); background: var(--paper); border-left: 4px solid var(--amber); padding: 10px 12px; border-radius: 4px; }
.flags { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.flags li { font-size: 14px; padding: 10px 12px; border-radius: 8px; border-left: 4px solid; }
.flags .error { border-color: var(--fail); background: #fbeff1; }
.flags .warn { border-color: var(--amber); background: #fdf6e6; }
.flags .info { border-color: var(--teal); background: #eef6f5; }
.status { font-size: 14px; color: var(--muted); min-height: 1.5em; }
.status.err { color: var(--fail); }
.ok-box { border: 2px solid var(--pass); background: #eef8f0; border-radius: 12px; padding: 16px; }
.hp { position: absolute; left: -5000px; }
.hidden { display: none !important; }

/* about / prose */
.prose { max-width: 720px; }
.prose p { margin: 0 0 14px; color: #39443f; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { border-left: 4px solid var(--amber); padding-left: 14px; }
.fact b { display: block; font-size: 20px; color: var(--amber); }
.fact span { color: #c8d4d1; font-size: 14px; }
.dark { background: var(--graphite); color: #fff; }
.dark h2 { color: #fff; }
.closer { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff; }
.closer h2 { color: #fff; }
.closer p { color: #d9e4e2; max-width: 38em; margin: 8px auto 22px; }

/* cart + checkout */
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; margin-top: 10px; }
.btn.disabled { opacity: .5; pointer-events: none; }
.link { background: none; border: 0; padding: 4px 0; color: var(--teal); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; min-height: 32px; }
.muted { color: var(--muted); font-size: 13px; display: block; }
.cart-link { margin-left: auto; position: relative; color: #fff; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; border-radius: 8px; }
.cart-link:hover, .cart-link[aria-current="page"] { background: rgba(255,255,255,.08); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: #1d2321; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
@media (min-width: 761px) { .top .nav { order: 2; margin-left: auto; } .cart-link { order: 3; margin-left: 4px; } }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.card-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 16px; }
.card-buy .avail { flex: 1 1 120px; }
.card-buy .btn { white-space: nowrap; }
.avail { font-size: 13px; color: var(--muted); }
.card-buy .avail { font-size: 12px; line-height: 1.3; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 140%); z-index: 50; display: flex; align-items: center; gap: 12px; background: var(--graphite); color: #fff;
  padding: 10px 12px 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .25s; width: min(420px, calc(100vw - 2 * var(--gutter)));
  justify-content: space-between; }
.toast span { flex: 1; min-width: 0; }
.toast .btn { white-space: nowrap; flex: none; }
.toast.show { transform: translate(-50%, 0); }
.hero.slim { padding: 28px 0 22px; }
.hero.slim h1 { font-size: 32px; margin-bottom: 0; }
.checkout-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.5fr 1fr; } .checkout-grid .summary { position: sticky; top: 76px; } }
.steps { display: grid; gap: 18px; min-width: 0; }
fieldset.panel { border: 1px solid var(--line); margin: 0; padding: 0; min-width: 0; }
fieldset.panel > legend.hd { float: left; width: 100%; padding: 14px 16px; }
fieldset.panel > legend.hd + * { clear: both; }
.two { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--teal); background: #f2f8f7; }
.choice input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.choice b { display: block; }
.choice small { display: block; color: var(--muted); font-size: 13px; }
.tag.good { background: #e3f3e6; color: var(--pass); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.sum-row.line-row { font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.sum-row.total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; font-size: 18px; }
.summary .estimate-note { margin: 10px 0; }
#cart-lines .line { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "img what" "qty amt"; gap: 10px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
#cart-lines .line:last-child { border-bottom: 0; }
#cart-lines .line img { grid-area: img; width: 56px; height: 56px; object-fit: contain; background: var(--paper); border-radius: 8px; }
#cart-lines .what { grid-area: what; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#cart-lines .what small { color: var(--muted); font-size: 13px; }
#cart-lines .qty { grid-area: qty; display: inline-flex; align-items: center; border: 1px solid #b9c6c4; border-radius: 8px; width: max-content; }
#cart-lines .qty .step { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }
#cart-lines .qty .step[disabled] { opacity: .35; }
#cart-lines .qty input { width: 48px; height: 44px; border: 0; text-align: center; font: inherit; font-weight: 800; -moz-appearance: textfield; }
#cart-lines .amt { grid-area: amt; display: flex; flex-direction: column; align-items: flex-end; }
#cart-lines .line.gone { grid-template-areas: "what amt"; grid-template-columns: 1fr auto; opacity: .7; }
@media (min-width: 640px) { #cart-lines .line { grid-template-columns: 72px 1fr auto auto; grid-template-areas: "img what qty amt"; } #cart-lines .line img { width: 72px; height: 72px; } }
.empty { padding: 8px 0; }
.pay { padding-left: 18px; margin-bottom: 10px; }
.pay li { margin-bottom: 4px; }

footer { background: var(--graphite); color: #9fb0ac; font-size: 14px; padding: 28px 0; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
footer b { color: #e6ecea; }
footer a { color: #cfdedd; }
footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
