/* Granhult — layout: steel-grey workshop page, spruce-green brand, weld heat-tint as the one signature colour band.
   Rating-plate blocks (U1 / I2 / X) carry the subject's own vocabulary. */
:root {
  --bg: #eef0ec;
  --surface: #ffffff;
  --surface-2: #e4e8e2;
  --ink: #161d19;
  --muted: #56615a;
  --line: #cfd5cd;
  --brand: #1d4a37;
  --brand-hover: #163b2c;
  --on-brand: #f2f5f1;
  --accent: #a8682a;
  --plate: #dfe4dd;
  --plate-ink: #2c3630;
  --focus: #2f6fb0;
  --foot-bg: #18211c;
  --foot-ink: #e6ebe5;
  --tint: linear-gradient(90deg, #e2c46a 0%, #c98b3a 22%, #8f4d6e 48%, #3d5fa6 70%, #7d8a93 100%);
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 6px;
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1411; --surface: #161d19; --surface-2: #1d2621; --ink: #e5eae4; --muted: #9aa69e;
    --line: #2b352f; --brand: #5ea683; --brand-hover: #74b896; --on-brand: #0c120f; --accent: #d39a58;
    --plate: #1c2420; --plate-ink: #c9d2cb; --focus: #7fb2e8; --foot-bg: #090d0b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1411; --surface: #161d19; --surface-2: #1d2621; --ink: #e5eae4; --muted: #9aa69e;
  --line: #2b352f; --brand: #5ea683; --brand-hover: #74b896; --on-brand: #0c120f; --accent: #d39a58;
  --plate: #1c2420; --plate-ink: #c9d2cb; --focus: #7fb2e8; --foot-bg: #090d0b; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; font-family: var(--f-display); font-weight: 700; line-height: 1.02; letter-spacing: .005em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.tint { height: 4px; background: var(--tint); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.logo b { font: 700 1.7rem/1 var(--f-display); letter-spacing: .14em; }
.logo i { display: block; height: 3px; width: 100%; background: var(--tint); }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: var(--r); color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.lang { font: 600 .8rem/1 var(--f-mono); letter-spacing: .08em; display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lang a, .lang span { padding: 8px 10px; text-decoration: none; }
.lang span { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .head-row { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .lang { margin-left: auto; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: var(--r); font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { font-family: var(--f-mono); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
.sec { padding-block: clamp(48px, 7vw, 88px); }
.sec-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 760px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* product photo with designed fallback */
.ph { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 4 / 3; overflow: hidden; max-width: 100%; }
.ph img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; background: #fff; }
.ph .fb { position: absolute; inset: 0; display: none; overflow: hidden; place-content: center; text-align: center; gap: 6px; background:
  repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 45%, transparent) 14px 15px), var(--plate); color: var(--plate-ink); padding: 16px; }
.ph .fb b { font: 700 clamp(1.3rem, 2.8vw, 2.2rem)/1 var(--f-display); overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: .04em; }
.ph .fb span { font: 500 .8rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.ph.noimg img { display: none; }
.ph.noimg .fb { display: grid; }

/* rating plate */
.plate { border: 1px solid var(--line); background: var(--plate); color: var(--plate-ink); border-radius: var(--r); font-family: var(--f-mono); font-size: .82rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plate div { padding: 10px 12px; border-right: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.plate div:last-child { border-right: 0; }
.plate small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.plate strong { font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hero-media { display: grid; gap: 12px; min-width: 0; }

/* cards grid */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; overflow: hidden; transition: border-color .15s; min-width: 0; }
.card:hover { border-color: var(--ink); }
.card .ph { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.card-body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.card-body h3 { font-size: 1.5rem; text-transform: uppercase; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { font: 600 .72rem/1 var(--f-mono); letter-spacing: .06em; padding: 6px 8px; border-radius: 4px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.chip.v400 { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.fam-card .card-body p { color: var(--muted); }
.fam-card .more { font: 600 .82rem/1 var(--f-mono); letter-spacing: .06em; color: var(--brand); margin-top: 6px; }

/* selector */
.sel { display: grid; gap: 18px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg-label { font: 600 .75rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); min-width: 92px; }
.seg button { font: 500 .95rem/1 var(--f-body); padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sel-count { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }

/* why */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.why > div { padding: 24px 20px 8px 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.why b { font: 700 2.4rem/1 var(--f-display); }
.why h3 { font-size: 1.15rem; font-family: var(--f-body); font-weight: 600; text-transform: none; }
.why p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* plate explainer */
.decode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .decode { grid-template-columns: 1fr; } }
.decode dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; }
.decode dt { font: 600 1rem/1.4 var(--f-mono); color: var(--brand); }
.decode dd { margin: 0; color: var(--ink); }
.decode dd span { color: var(--muted); display: block; font-size: .92rem; }
.bigplate { border: 2px solid var(--plate-ink); border-radius: 4px; background: var(--plate); color: var(--plate-ink); font-family: var(--f-mono); font-size: .85rem; overflow-x: auto; }
.bigplate table { width: 100%; border-collapse: collapse; min-width: 360px; }
.bigplate td, .bigplate th { border: 1px solid color-mix(in srgb, var(--plate-ink) 35%, transparent); padding: 8px 10px; text-align: left; font-variant-numeric: tabular-nums; }
.bigplate th { font-weight: 600; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.bigplate caption { caption-side: top; text-align: left; padding: 10px; font: 700 1.2rem/1 var(--f-display); letter-spacing: .12em; }

/* product page */
.crumbs { font: 500 .82rem/1.4 var(--f-mono); color: var(--muted); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.p-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: 24px 56px; align-items: start; }
@media (max-width: 900px) { .p-hero { grid-template-columns: minmax(0, 1fr); } }
.gallery { display: grid; gap: 10px; min-width: 0; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { flex: 0 0 76px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--ink); border-width: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.p-info { display: grid; gap: 20px; min-width: 0; }
.p-info h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
.tagline { font-size: 1.25rem; font-weight: 500; }
.buybox { display: grid; gap: 10px; padding-top: 4px; }
.buybox .muted { font-size: .88rem; }
.p-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 48px; align-items: start; }
@media (max-width: 900px) { .p-body { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 16px; max-width: 68ch; min-width: 0; }
.aside { display: grid; gap: 24px; min-width: 0; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 12px; }
.box h3 { font-size: 1.25rem; text-transform: uppercase; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--accent); }
.note { border-left: 3px solid var(--accent); padding: 12px 16px; background: var(--surface); border-radius: 0 var(--r) var(--r) 0; color: var(--ink); }
.dl { display: grid; gap: 8px; }
.dl a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--surface); }
.dl a:hover { border-color: var(--ink); }
.dl small { font-family: var(--f-mono); color: var(--muted); }

/* spec table */
.specs { display: grid; gap: 28px; }
.spec-group h3 { font: 600 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.spec-group table { width: 100%; border-collapse: collapse; }
.spec-group th, .spec-group td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-group th { font-weight: 500; color: var(--muted); width: 42%; padding-right: 16px; }
.spec-group td { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .92rem; }

/* compare */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp thead th { font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.cmp td { font-family: var(--f-mono); font-size: .9rem; font-variant-numeric: tabular-nums; }
.cmp td:first-child, .cmp th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cmp thead th:first-child { background: var(--surface-2); }
.cmp td:first-child a { font: 700 1.15rem/1 var(--f-display); text-transform: uppercase; text-decoration: none; letter-spacing: .02em; }
.cmp td:first-child a:hover { text-decoration: underline; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp-block { display: grid; gap: 14px; margin-bottom: 48px; }

/* accessories */
.acc-card .ph { aspect-ratio: 1 / 1; }
.acc-card .card-body h3 { font-size: 1.2rem; }
.acc-card p { color: var(--muted); font-size: .93rem; }
.acc-card .go { font: 600 .8rem/1 var(--f-mono); color: var(--brand); letter-spacing: .05em; margin-top: 4px; }

/* faq */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.6rem/1 var(--f-mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 0 20px; display: grid; gap: 10px; max-width: 70ch; color: var(--ink); }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }

/* footer */
.site-foot { background: var(--foot-bg); color: var(--foot-ink); }
.site-foot .tint { opacity: .9; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font: 600 .74rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; opacity: .65; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; opacity: .9; }
.foot-grid a:hover { text-decoration: underline; opacity: 1; }
.foot-grid p { opacity: .8; font-size: .92rem; max-width: 40ch; }
.foot-logo { font: 700 2rem/1 var(--f-display); letter-spacing: .14em; margin-bottom: 12px; }
.foot-legal { border-top: 1px solid color-mix(in srgb, var(--foot-ink) 18%, transparent); padding-block: 18px; font: 500 .78rem/1.5 var(--f-mono); opacity: .65; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.hero-copy, .p-info, .sec-head, .prose, .card-body, .box, .gallery, .hero-media, .aside, .specs, .sel { grid-template-columns: minmax(0, 1fr); }
[hidden] { display: none !important; }
