/* ==========================================================================
   Shamrock PCs — core stylesheet
   One file, no frameworks, no external fonts. Fast on Irish mobile networks.
   ========================================================================== */

:root {
  --bg:        #0a0d0b;
  --bg-2:      #101512;
  --surface:   #151c18;
  --surface-2: #1c2520;
  --line:      #26332c;

  --green:     #2fbf71;
  --green-hi:  #4ade8a;
  --green-dim: #1d7a48;
  --gold:      #f0b429;

  --text:      #e9f0eb;
  --muted:     #97a89e;
  --faint:     #8a9a91;   /* was #6d7d74 — 3.99:1 on a card, below AA */

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1180px;
  --wrap-pad:  20px;      /* page gutter; full-bleed elements negate this */

  --shadow:    0 10px 30px rgba(0, 0, 0, .45);
  --ring:      0 0 0 3px rgba(47, 191, 113, .35);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute must always win. Several overlays (.lb, .co-overlay,
   .chat-panel) set display:flex on their class, which silently overrides the
   UA's [hidden]{display:none} — leaving a closed overlay behind as an
   invisible full-screen layer that swallows every click. Site-wide guard. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Sticky header is 66px — keep anchored headings clear of it. */
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Card-shaped links. A banner slide, a post card and a "more machines" tile
   are each one <a> wrapped around a whole block, so the rule above underlined
   every word in them at once on hover — kicker, heading, paragraph and the
   button-looking call to action together. They already say they are hoverable
   by lifting and lighting their border. */
.promo-slide:hover, .promo-slide:hover *,
.post-card:hover,   .post-card:hover *,
.also:hover,        .also:hover * { text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1rem; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--wrap-pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #04140b; padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 11, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; gap: 20px;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span i { color: var(--green); font-style: normal; }

.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
/* :not(.btn) so the "Get in touch" button keeps its own colour and weight —
   a bare `.nav-links a` rule outranks `.btn-primary` and greyed the text out. */
.nav-links a:not(.btn) {
  color: var(--muted); padding: 8px 13px; border-radius: 8px;
  font-size: .95rem; font-weight: 600;
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--green-hi); }

.nav-toggle {
  display: none; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  width: 42px; height: 40px; border-radius: 9px; cursor: pointer; font-size: 1.1rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; margin: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .btn { text-align: center; margin-top: 6px; }
}


/* ---------- Account link in the header ---------- */

.nav-account {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: .95rem; font-weight: 600;
  padding: 8px 13px; border-radius: 8px;
  border: 1px solid var(--line);
}
.nav-account svg { width: 17px; height: 17px; flex: none; }
.nav-account:hover {
  color: var(--green-hi); border-color: var(--green-dim);
  background: var(--surface); text-decoration: none;
}
.nav-account.in { color: var(--green-hi); border-color: var(--green-dim); }

@media (max-width: 860px) {
  .nav-account { justify-content: center; margin-top: 8px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: .97rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, background .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #04140b; }
.btn-primary:hover { background: var(--green-hi); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-dim); background: var(--surface); }
.btn-sm { padding: 9px 15px; font-size: .89rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  /* Tightened so the first machine follows the hero closely — the homepage
     used to spend a whole screen before showing anything for sale. */
  padding: clamp(32px, 4.4vw, 56px) 0 clamp(28px, 3.6vw, 44px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 460px at 78% 8%, rgba(47, 191, 113, .17), transparent 62%),
    radial-gradient(700px 400px at 12% 92%, rgba(47, 191, 113, .09), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 46px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(47, 191, 113, .11); border: 1px solid rgba(47, 191, 113, .3);
  color: var(--green-hi); font-size: .82rem; font-weight: 700;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
  letter-spacing: .02em;
}
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 54ch; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---------- Sections ---------- */

.section { padding: clamp(52px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Product cards ---------- */

.grid-cards {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--green-dim); transform: translateY(-3px); }

.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: var(--green); color: #04140b;
}
.badge.gold  { background: var(--gold); color: #241800; }
.badge.grey  { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 4px; }
.card-tag { font-size: .82rem; color: var(--green-hi); font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }

.spec-list { list-style: none; margin: 0 0 18px; padding: 0; font-size: .94rem; }
.spec-list li {
  display: flex; gap: 10px; padding: 5px 0;
  border-bottom: 1px dashed rgba(38, 51, 44, .8);
  color: var(--muted);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list b { color: var(--text); font-weight: 600; flex: 1; text-align: right; }
.spec-list .k { min-width: 62px; color: var(--faint); }

.price-row { display: flex; align-items: baseline; gap: 10px; margin: auto 0 14px; }
.price { font-size: 1.72rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.price-was { font-size: .95rem; color: var(--faint); text-decoration: line-through; }
.price-note { font-size: .86rem; line-height: 1.5; color: var(--muted); margin: -6px 0 14px; }

/* ---------- Filter bar ---------- */

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 16px; margin-bottom: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.chip {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  padding: 8px 15px; border-radius: 999px; font-size: .88rem; font-weight: 650; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--green-dim); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #04140b; }
.filters select {
  margin-left: auto; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; font: inherit; font-size: .88rem;
}
@media (max-width: 620px) { .filters select { margin-left: 0; width: 100%; } }

.result-count { color: var(--faint); font-size: .9rem; margin-bottom: 18px; }

/* ---------- Feature / step grids ---------- */

.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }

.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.feature .ico {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 15px;
  display: grid; place-items: center;
  background: rgba(47, 191, 113, .12); color: var(--green-hi);
}
.feature .ico svg { width: 21px; height: 21px; }
.feature h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

.step { position: relative; padding-left: 54px; }
.step .n {
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--green); color: #04140b;
}
.step h3 { margin-bottom: 5px; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .93rem; }
table.tbl th, table.tbl td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--text); font-weight: 700; background: var(--surface); }
table.tbl td { color: var(--muted); }
table.tbl tr:last-child td { border-bottom: 0; }

/* ---------- Accordion (FAQ) ---------- */

.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary {
  cursor: pointer; padding: 17px 22px; font-weight: 650; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--green); font-size: 1.35rem; font-weight: 400; flex: none; }
.acc details[open] summary::after { content: "\2013"; }
.acc summary:hover { background: var(--surface-2); }
.acc .acc-body { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }
.acc .acc-body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 3.4vw, 34px);
}
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .89rem; font-weight: 650; margin-bottom: 6px; }
.field label .req { color: var(--green); }
.field .hint { font-size: .8rem; color: var(--faint); margin-top: 5px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: .95rem;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green-dim); }
::placeholder { color: var(--faint); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-error {
  background: rgba(220, 68, 68, .13); border: 1px solid rgba(220, 68, 68, .42);
  color: #ffb4b4; border-radius: var(--radius-sm);
  padding: 12px 15px; margin: 0 0 14px; font-size: .9rem; line-height: 1.5;
}

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: 4px; flex: none; width: 16px; height: 16px; accent-color: var(--green); }

.budget-scale { display: flex; flex-wrap: wrap; gap: 9px; }
.budget-scale label {
  flex: 1 1 130px; text-align: center; cursor: pointer;
  padding: 11px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); font-size: .88rem; font-weight: 650; margin: 0;
}
.budget-scale input { position: absolute; opacity: 0; pointer-events: none; }
.budget-scale input:checked + span { color: var(--green-hi); }
.budget-scale label:has(input:checked) { border-color: var(--green); background: rgba(47, 191, 113, .1); }

/* ---------- Configurator ---------- */

.cfg { display: grid; grid-template-columns: 1fr 370px; gap: 30px; align-items: start; }
@media (max-width: 940px) { .cfg { grid-template-columns: 1fr; } }

.cfg-parts {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(18px, 3vw, 28px);
}

.cfg-row {
  display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.cfg-row:first-child { padding-top: 0; }
.cfg-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 700px) { .cfg-row { grid-template-columns: 1fr; gap: 9px; } }

.cfg-label label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.cfg-help { display: block; font-size: .84rem; color: var(--faint); line-height: 1.45; }

.cfg-row select { width: 100%; }
.cfg-row select option.opt-off { color: #5a6660; }

/* Sticky running total */
.cfg-summary { position: sticky; top: 86px; }
@media (max-width: 940px) { .cfg-summary { position: static; } }

.cfg-summary-inner {
  background: linear-gradient(160deg, rgba(47, 191, 113, .10), rgba(47, 191, 113, .02));
  border: 1px solid rgba(47, 191, 113, .3);
  border-radius: var(--radius); padding: 24px;
}
.cfg-summary-inner h2 { font-size: 1.2rem; margin-bottom: 16px; }

.cfg-list { list-style: none; margin: 0 0 18px; padding: 0; font-size: .86rem; }
.cfg-list li {
  /* Two columns since the price column went: label, then the part. */
  display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px dashed rgba(38, 51, 44, .9);
}
.cfg-list li:last-child { border-bottom: 0; }
.cfg-k { color: var(--faint); font-size: .83rem; }
.cfg-v { color: var(--text); line-height: 1.35; }
.cfg-p { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.cfg-lead {
  font-size: .82rem; line-height: 1.5; margin: 0 0 12px;
  padding: 9px 12px 9px 30px; border-radius: var(--radius-sm); position: relative;
}
.cfg-lead::before {
  position: absolute; left: 11px; top: 9px; font-weight: 800;
}
.cfg-lead-in {
  background: rgba(47, 191, 113, .12); border: 1px solid rgba(47, 191, 113, .32); color: var(--green-hi);
}
.cfg-lead-in::before { content: "✓"; }
.cfg-lead-order {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.cfg-lead-order::before { content: "↻"; color: var(--faint); }

/* Grey out combinations that can't work */
.cfg-row select option:disabled,
.cfg-row select optgroup:disabled { color: #55605a; }

.cfg-warn {
  font-size: .84rem; line-height: 1.5; margin: 0 0 8px;
  padding: 10px 13px; border-radius: var(--radius-sm);
}
.cfg-warn-bad { background: rgba(220, 68, 68, .13); border: 1px solid rgba(220, 68, 68, .4); color: #ffb4b4; }
.cfg-warn-tip { background: rgba(240, 180, 41, .10); border: 1px solid rgba(240, 180, 41, .3); color: #f3ce7e; }

.cfg-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 16px; margin-top: 4px; border-top: 1px solid rgba(47, 191, 113, .3);
}
.cfg-total span { color: var(--muted); font-size: .9rem; }
.cfg-total strong { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.cfg-total-note { font-size: .84rem; color: var(--muted); margin: 8px 0 18px; line-height: 1.55; }

.cfg-summary button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Split layout (form + sidebar) ---------- */

.split { display: grid; grid-template-columns: 1.35fr .65fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Callouts ---------- */

.note {
  border-left: 3px solid var(--green); background: var(--surface);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); font-size: .93rem; margin: 0 0 20px;
}
.note strong { color: var(--text); }
.note.gold { border-left-color: var(--gold); }

.cta-band {
  background: linear-gradient(135deg, rgba(47, 191, 113, .13), rgba(47, 191, 113, .04));
  border: 1px solid rgba(47, 191, 113, .26);
  border-radius: var(--radius); padding: clamp(28px, 4.5vw, 48px); text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 24px; }

/* ---------- Prose ---------- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose > p { color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 52px 0 30px; margin-top: 0; font-size: .92rem;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 38px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green-hi); }
.site-footer p { color: var(--muted); }

.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--faint); font-size: .86rem;
}

.pay-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pay-row span {
  border: 1px solid var(--line); background: var(--surface);
  padding: 5px 11px; border-radius: 7px; font-size: .78rem; color: var(--muted); font-weight: 650;
}

/* ---------- Utilities ---------- */

.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 34px; }
.hide { display: none !important; }

/* ---------- Support chat widget ---------- */

.chat-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%;
  border: none; cursor: pointer; padding: 0;
  background: var(--green); color: #04140b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4), 0 0 0 0 rgba(47, 191, 113, .5);
  display: grid; place-items: center;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  animation: chat-pulse 2.6s ease-out 2;
}
.chat-launcher:hover { background: var(--green-hi); transform: scale(1.06); }
.chat-launcher svg { width: 26px; height: 26px; grid-area: 1 / 1; transition: opacity .18s ease, transform .18s ease; }
.chat-launcher .chat-ico-close { opacity: 0; transform: rotate(-90deg); }
.chat-launcher.active .chat-ico-open { opacity: 0; transform: rotate(90deg); }
.chat-launcher.active .chat-ico-close { opacity: 1; transform: rotate(0); }

@keyframes chat-pulse {
  0%   { box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 0 rgba(47,191,113,.5); }
  70%  { box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 16px rgba(47,191,113,0); }
  100% { box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 0 rgba(47,191,113,0); }
}

.chat-dot {
  position: absolute; top: 2px; right: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bg);
}

.chat-panel {
  position: fixed; right: 20px; bottom: 88px; z-index: 300;
  width: 370px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 120px);
  background: var(--surface); border: 1px solid #33443b;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 0 1px rgba(47, 191, 113, .12),
              0 0 40px rgba(47, 191, 113, .1);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); }

.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.chat-head-id { display: flex; align-items: center; gap: 11px; font-size: .92rem; line-height: 1.3; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 1.15rem;
  background: rgba(47, 191, 113, .16); border: 1px solid rgba(47, 191, 113, .3);
}
.chat-status { color: var(--green-hi); font-size: .78rem; }
.chat-min {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1.7rem; line-height: 1; padding: 0 4px; border-radius: 6px;
}
.chat-min:hover { color: var(--text); }

.chat-log {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-2);
  background-image:
    radial-gradient(500px 300px at 100% 0, rgba(47,191,113,.06), transparent 70%);
}

.chat-msg {
  max-width: 84%; padding: 10px 13px; border-radius: 14px;
  font-size: .9rem; line-height: 1.5; word-wrap: break-word;
}
.chat-msg a { color: var(--green-hi); font-weight: 600; }
.chat-bot {
  align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line);
  border-bottom-left-radius: 5px; color: var(--text);
}
.chat-user {
  align-self: flex-end; background: var(--green); color: #04140b;
  border-bottom-right-radius: 5px; font-weight: 500;
}

.chat-typing { display: flex; gap: 4px; padding: 13px 14px; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--faint);
  animation: chat-bounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 12px; }
.chat-chip {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: .82rem; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.chat-chip:hover { border-color: var(--green-dim); background: var(--surface); color: var(--green-hi); }

.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--bg-2); }
.chat-input input {
  flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 16px; color: var(--text); font: inherit; font-size: .9rem;
}
.chat-input input:focus { border-color: var(--green-dim); outline: none; }
.chat-input button {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--green); color: #04140b; display: grid; place-items: center;
  transition: background .15s ease;
}
.chat-input button:hover { background: var(--green-hi); }
.chat-input button svg { width: 19px; height: 19px; }

/* Live-chat consent card (shown before Tawk.to loads) */
.chat-consent {
  position: fixed; right: 20px; bottom: 88px; z-index: 300;
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid #33443b; border-radius: 16px;
  padding: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 40px rgba(47, 191, 113, .1);
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease;
}
.chat-consent.open { opacity: 1; transform: translateY(0) scale(1); }
.chat-consent-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.02rem; }
.chat-consent p { font-size: .88rem; color: var(--muted); line-height: 1.55; margin: 0 0 16px; }
.chat-consent p a { color: var(--green-hi); }
.chat-consent-alt {
  display: block; text-align: center; margin-top: 12px;
  font-size: .84rem; color: var(--muted);
}
.chat-consent-alt:hover { color: var(--green-hi); }

@media (max-width: 480px) {
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 84px; height: calc(100vh - 110px); }
  .chat-consent { right: 12px; left: 12px; width: auto; bottom: 84px; }
  .chat-launcher { right: 16px; bottom: 16px; }
}


/* ==========================================================================
   Responsive — phone & tablet
   Ordered widest-first so later, narrower rules win.
   ========================================================================== */

/* ---------- Tablet (≈768–1024px) ---------- */
@media (max-width: 1024px) {
  /* Two cards per row reads better than three squeezed ones */
  .grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
  .section { padding: clamp(44px, 6vw, 72px) 0; }
  .hero { padding: clamp(44px, 7vw, 80px) 0 clamp(40px, 6vw, 64px); }
}

/* ---------- Touch devices: bigger tap targets ----------
   Apple and Google both put the minimum comfortable target at ~44px.
   Only applied to coarse pointers so the desktop stays compact.        */
@media (hover: none) and (pointer: coarse) {
  .btn            { padding: 14px 24px; min-height: 48px; }
  .btn-sm         { padding: 12px 18px; min-height: 44px; }
  .chip           { padding: 11px 18px; min-height: 44px; }
  .chat-chip      { padding: 10px 15px; min-height: 40px; }
  .nav-links a    { min-height: 44px; display: flex; align-items: center; }
  .nav-toggle     { width: 46px; height: 44px; }
  .acc summary    { padding: 18px 20px; min-height: 56px; }
  .chat-min       { min-width: 44px; min-height: 44px; }
  .check input    { width: 22px; height: 22px; }
  /* Hover lift is meaningless on touch and leaves cards stuck "raised" */
  .card:hover     { transform: none; }
  .btn:hover      { transform: none; }
}

/* ---------- Phone (≤700px) ---------- */
@media (max-width: 700px) {
  :root { --wrap-pad: 16px; }

  h1 { font-size: clamp(1.85rem, 7.5vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }

  .hero p.lead   { font-size: 1.02rem; }
  .hero-cta      { gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; }        /* full-width, easy to hit */
  .trust-row     { gap: 8px 16px; font-size: .86rem; }

  .section-head  { margin-bottom: 28px; }
  .zoom-btn      { width: 44px; height: 44px; background-size: 20px 20px; }
  .grid-cards    { gap: 16px; }
  .card-body     { padding: 17px; }

  .form-card     { padding: 20px 16px; }
  .filters       { padding: 13px; gap: 8px; }

  /* Tables scroll sideways — say so, or people think content is cut off */
  .table-scroll { position: relative; }
  .table-scroll::after {
    content: "Swipe to see more →";
    display: block; padding-top: 8px;
    font-size: .78rem; color: var(--faint);
  }

  .cta-band { padding: 26px 18px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Small phone (≤380px) ---------- */
@media (max-width: 380px) {
  :root { --wrap-pad: 13px; }
  .brand { font-size: 1rem; }
  .brand svg { width: 26px; height: 26px; }
  .price { font-size: 1.5rem; }
  .spec-list { font-size: .87rem; }
  .spec-list .k { min-width: 54px; }
}

/* ---------- Configurator on mobile ----------
   The running total is the whole point of the builder, so on a narrow screen
   it sticks to the bottom of the viewport like a checkout bar instead of
   sitting far below ten dropdowns where nobody sees it. The itemised list is
   dropped there — each dropdown already shows what's selected.          */
@media (max-width: 940px) {
  .cfg { display: flex; flex-direction: column; }

  .cfg-summary {
    position: sticky; bottom: 0; z-index: 60;
    margin: 0 calc(-1 * var(--wrap-pad)) -12px;   /* bleed exactly to the screen edges */
  }
  .cfg-summary-inner {
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .55);
  }
  .cfg-summary-inner h2 { display: none; }
  .cfg-list             { display: none; }
  .cfg-lead             { margin-bottom: 8px; font-size: .78rem; }
  .cfg-total            { padding-top: 0; margin-top: 0; border-top: 0; }
  .cfg-total strong     { font-size: 1.6rem; }
  .cfg-total-note       { display: none; }
  #cfg-reset            { display: none; }   /* reachable on desktop; saves height */
  .cfg-warn             { font-size: .8rem; padding: 8px 11px; margin-bottom: 6px; }
  .cfg-parts            { padding-bottom: 8px; }

  /* Keep the total and CTA clear of the live-chat bubble in the corner.
     Only applies once chat.js confirms the widget loaded. */
  .has-live-chat .cfg-summary-inner { padding-right: 92px; }
}


/* ---------- iOS: stop the page zooming when a field is focused ----------
   Mobile Safari zooms in on any input whose font-size is under 16px, then
   leaves the page scaled and scrolled sideways. Bumping the fields to 16px on
   touch devices is the only reliable cure — the desktop keeps the smaller,
   tidier size.                                                            */
@media (hover: none) and (pointer: coarse) {
  input[type="text"], input[type="email"], input[type="tel"],
  select, textarea, .chat-input input, .cfg-row select {
    font-size: 16px;
  }
  input[type="text"], input[type="email"], input[type="tel"], select {
    min-height: 48px;
  }
  .cfg-row select { min-height: 50px; }
}

/* ---------- Chat widget on mobile ---------- */
@media (max-width: 700px) {
  /* dvh follows the browser chrome as it hides/shows; vh does not, which is
     why 100vh panels get clipped on iOS Safari. */
  .chat-panel {
    height: calc(100dvh - 104px);
    max-height: calc(100dvh - 104px);
    bottom: 80px;
  }
  .chat-launcher { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .chat-launcher svg { width: 24px; height: 24px; }
  .chat-consent { bottom: 80px; }
}





/* ---------- Account & orders ---------- */

.ord {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px;
}
.ord-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  margin-bottom: 12px;
}
.ord-head b { display: block; font-size: 1.05rem; }
.ord-ref {
  display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 2px;
}
.ord-price { font-size: 1.2rem; font-weight: 800; white-space: nowrap; }

.ord-status {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 10px 13px; border-radius: var(--radius-sm);
  background: var(--bg-2); font-size: .9rem; margin-bottom: 12px;
}
.ord-status span:last-child { color: var(--muted); font-size: .86rem; }
.ord-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.ord-new       { background: var(--gold); }
.ord-confirmed { background: #38bdf8; }
.ord-building  { background: #a78bfa; }
.ord-tested    { background: var(--green-hi); }
.ord-shipped,
.ord-collected { background: var(--green); }
.ord-cancelled { background: #dc4444; }

.ord-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--faint); }

/* ---------- Checkout dialog ---------- */

.co-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(4, 8, 6, .74);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 16px;
  overflow-y: auto;
  opacity: 0; transition: opacity .2s ease;
}
.co-overlay.on { opacity: 1; }

.co-panel {
  width: 100%; max-width: 560px;
  background: var(--surface); border: 1px solid #33443b;
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .7), 0 0 40px rgba(47, 191, 113, .08);
  transform: translateY(14px) scale(.985);
  transition: transform .22s cubic-bezier(.22, .8, .3, 1);
  margin-bottom: 4vh;
}
.co-overlay.on .co-panel { transform: none; }

.co-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); border-radius: 16px 16px 0 0;
  position: sticky; top: 0; z-index: 2;
}
.co-head h2 { margin: 0; font-size: 1.12rem; }
.co-close {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 1.8rem; line-height: 1; padding: 0 6px; border-radius: 8px;
}
.co-close:hover { color: var(--text); }

.co-body { padding: 20px; }

.co-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; margin-bottom: 22px;
  background: rgba(47, 191, 113, .09);
  border: 1px solid rgba(47, 191, 113, .28);
  border-radius: var(--radius-sm);
}
.co-sum-label { display: block; font-size: .74rem; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.co-summary b { font-size: 1.02rem; }
.co-sum-price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }

.co-step {
  display: flex; align-items: center; gap: 10px;
  font-size: .96rem; margin: 0 0 12px;
}
.co-step span {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--green); color: #04140b; font-size: .8rem; font-weight: 800;
}

.co-options { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }

.co-opt {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); transition: border-color .18s ease, background .18s ease;
}
.co-opt:hover { border-color: var(--green-dim); }
.co-opt.on { border-color: var(--green); background: rgba(47, 191, 113, .08); }
.co-opt input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--green); }
.co-opt-main { display: flex; flex-direction: column; gap: 3px; }
.co-opt-main b { font-size: .95rem; font-weight: 650; }
.co-opt-note { font-size: .83rem; color: var(--muted); line-height: 1.45; }

.co-fields { margin-bottom: 20px; }
.co-hint { font-size: .8rem; color: var(--faint); line-height: 1.5; margin: -12px 0 20px; }
.co-hint.center { text-align: center; margin: 12px 0 0; }

.co-submit { margin-top: 4px; }

@media (max-width: 600px) {
  .co-overlay { padding: 0; }
  .co-panel { max-width: none; border-radius: 0; min-height: 100dvh; margin-bottom: 0; border: 0; }
  .co-head { border-radius: 0; }
  .co-summary { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- Card payment ---------- */

.btn-deposit { gap: 9px; font-weight: 650; }
.btn-deposit svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.btn-deposit:hover { border-color: var(--green-dim); color: var(--green-hi); }

.pay-note {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .82rem; color: var(--faint); margin-top: 10px;
}
.pay-note b { color: var(--muted); font-weight: 600; }

/* ==========================================================================
   Motion
   --------------------------------------------------------------------------
   Only transform and opacity are animated — both are composited by the GPU, so
   nothing here forces a re-layout or costs scroll performance.

   Every reveal is gated behind the `.js-motion` class that main.js puts on
   <html>. If the script never runs, the CSS below never applies and the page
   renders fully visible — content is never hidden behind a script that failed.
   ========================================================================== */

.js-motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.22, .8, .3, 1),
              transform .55s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--d, 0ms);
}
.js-motion .reveal.in { opacity: 1; transform: none; }

/* Product cards: lift the art slightly as the card is hovered */
.card-media img { transition: transform .5s cubic-bezier(.22, .8, .3, 1); }
.card:hover .card-media img { transform: scale(1.045); }

/* Badges catch the eye once the card is under the cursor */
.card .badge { transition: transform .25s ease; }
.card:hover .badge { transform: translateY(-2px) scale(1.04); }

/* Pressed feedback — reads as a physical button rather than a link */
.btn:active { transform: translateY(0) scale(.975); }
.chip:active, .chat-chip:active { transform: scale(.96); }

/* Filter chips: sweep the fill in from the left when one becomes active */
.chip { position: relative; overflow: hidden; z-index: 0; }
.chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.22, .8, .3, 1);
}
.chip[aria-pressed="true"]::before { transform: scaleX(1); }

/* Cards re-entering after a filter change */
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.card.refresh { animation: card-in .38s cubic-bezier(.22, .8, .3, 1) both; }

/* The running total pulses green when it changes, so a price change is felt
   as well as read — the number itself is counted up by configurator.js. */
@keyframes total-pop {
  0%   { transform: none; color: var(--text); }
  35%  { transform: scale(1.07); color: var(--green-hi); }
  100% { transform: none; color: var(--text); }
}
.cfg-total strong { display: inline-block; transform-origin: right center; }
.cfg-total strong.bump { animation: total-pop .45s cubic-bezier(.22, .8, .3, 1); }

/* A part that has just changed flashes its row briefly */
@keyframes row-flash {
  from { background: rgba(47, 191, 113, .16); }
  to   { background: transparent; }
}
.cfg-row.changed { animation: row-flash .7s ease-out; border-radius: 8px; }

/* Accordion answers slide rather than snap */
.acc details[open] .acc-body { animation: acc-open .3s cubic-bezier(.22, .8, .3, 1); }
@keyframes acc-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Header gains depth once the page is scrolled */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }

/* Nav underline that grows from the centre */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--green); border-radius: 2px;
  transform: scaleX(0); transition: transform .25s cubic-bezier(.22, .8, .3, 1);
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }

/* Form field lifts on focus so the active field is obvious */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(47, 191, 113, .14); }

/* Errors arrive with a small shake — hard to miss, over quickly */
@keyframes err-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(4px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(2px); }
}
.form-error { animation: err-shake .4s ease-out; }

/* Touch devices don't hover — drop the effects that assume a cursor */
@media (hover: none) and (pointer: coarse) {
  .card:hover .card-media img { transform: none; }
  .card:hover .badge { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .chat-launcher { animation: none; }
  /* Reveals must land visible, not stay mid-transition */
  .js-motion .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- In-stock cards -------------------------------------------------
   These carry real photographs rather than the SVG artwork, and they come off
   a phone at 1:1. Cropping a tower into 4/3 lops the top off it, so the media
   box keeps the square and a thumbnail strip sits underneath.                */

.card-media.square { aspect-ratio: 1 / 1; }

.thumbs { display: flex; gap: 6px; padding: 10px 10px 0; }

.thumb {
  /* Fixed width, not 1fr: a machine with three photos would otherwise get three
     wider — and so taller — thumbnails than its neighbour with four, and the
     card titles beside it would no longer line up across the row. */
  flex: 0 0 72px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .18s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover  { border-color: var(--green-dim); }
.thumb.is-on  { border-color: var(--green); }
.thumb:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .thumb { transition: none; } }

/* ---------- Cookie consent bar ---------------------------------------------
   Sits bottom-left so it never covers the chat bubble bottom-right. Accept and
   Decline are the same size on purpose — an unequal pair is the pattern the
   regulators actually go after.                                             */

.consent {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 900;
  width: min(380px, calc(100vw - 36px));
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .26s ease, transform .26s cubic-bezier(.22, .8, .3, 1);
}
.consent.open { opacity: 1; transform: translateY(0); }

.consent p {
  font-size: .86rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 14px;
}
.consent p strong { color: var(--text); }
.consent a { color: var(--green-hi); }

.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1 1 0; }

@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; }
}

/* ---------- Above the fold on /builds --------------------------------------
   Clarity, first three days: on mobile the fold landed on the top edge of the
   first photo, and a third of visitors left before 20% of the page — having
   seen nothing but text. The heading block is tightened so a machine, its price
   and its badge are on the first screen.                                     */

.stock-intro { margin-bottom: 26px; }
.stock-intro p { font-size: 1rem; }

.stock-h2 {
  font-size: 1.18rem;
  margin: 0 0 16px;
  color: var(--green-hi);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.stock-note { margin-top: 30px; max-width: 62ch; }

@media (max-width: 720px) {
  /* The section padding is the other big spender up here, so trim it too —
     only on this page's opening block, the rest of the site is unchanged. */
  .stock-intro { margin-bottom: 16px; }
  .stock-intro h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .stock-intro p  { font-size: .92rem; }
  .stock-h2 { font-size: 1rem; margin-bottom: 10px; }
}

/* ---------- Price on the photo --------------------------------------------
   The photo reaches the first screen on a phone but the price is ~850px lower
   down. A chip on the image is the marketplace convention and means a visitor
   knows the cost without scrolling. The price still appears in full below.   */

.price-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(10, 13, 11, .82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* The consent bar was covering the bottom quarter of a phone screen — and that
   quarter is where the machine's name and price sit. Tighter copy, tighter box. */
@media (max-width: 560px) {
  .consent   { padding: 14px 16px; }
  .consent p { font-size: .8rem; line-height: 1.5; margin-bottom: 11px; }
}

/* ---------- Photo lightbox -------------------------------------------------
   The product photo was the second most-clicked element on /builds and did
   nothing. It opens full screen now. The magnifier badge is there so people
   who would not have tried also know they can.                              */

.is-zoomable { cursor: zoom-in; }

/* The zoom control. It used to be a ::after on the media panel, which meant it
   could not be clicked or tabbed to — decoration that looked like a button. It
   is a real button now, sitting alongside the photo (which opens the same
   lightbox itself) so a keyboard user has an explicit, focusable way in too. */
.zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(10, 13, 11, .72) center / 15px 15px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9f0eb' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
  cursor: pointer;
  transition: background-color .2s ease;
}
.card:hover .zoom-btn,
.pdp-media:hover .zoom-btn,
.zoom-btn:hover { background-color: rgba(10, 13, 11, .95); }
.zoom-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* display:flex on .lb overrides the hidden attribute's display:none, so a
   closed lightbox was staying behind as an invisible full-screen layer that
   swallowed every click on the page. This rule must outrank .lb — keep it. */
.lb[hidden] { display: none; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  background: rgba(4, 7, 5, .93);
  opacity: 0;
  transition: opacity .2s ease;
}
.lb.open { opacity: 1; }

.lb-img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 10px;
}

.lb-close,
.lb-nav {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.lb-close:hover, .lb-nav:hover { border-color: var(--green); background: var(--surface-2); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.lb-close { position: absolute; top: 18px; right: 18px; }

.lb-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  /* The arrows sat in the flex flow and ate ~100px of a 390px screen, leaving
     the photo tiny. On a phone they float over the image edges instead. */
  .lb { padding: 10px; gap: 0; }
  .lb-close, .lb-nav { width: 42px; height: 42px; font-size: 1.2rem; }
  .lb-close { top: 10px; right: 10px; }
  .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 13, 11, .78);
  }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-img { max-width: 100%; max-height: 78vh; }
}

@media (prefers-reduced-motion: reduce) {
  .lb, .lb-close, .lb-nav, .card-media::after { transition: none; }
}

/* Touch behaviour for the lightbox: no double-tap-zoom delay on the controls,
   no grey tap flash on iOS, and a scroll gesture inside the overlay must not
   chain through to the page underneath it. */
.lb, .lb-img, .lb-close, .lb-nav, .is-zoomable {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lb { overscroll-behavior: contain; }

/* A struck-through old price is easy to miss. The percentage is what people
   actually register — Telemart puts it right beside the price for that reason. */
.price-off {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #b3261e;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  vertical-align: middle;
}

/* ---------- Services as product cards --------------------------------------
   Same shell as a machine, so a repair reads as something you buy rather than
   a paragraph you skim. There are no photographs of a clean or a repair, and a
   stock shot of somebody else's workshop would be a lie — so the media panel
   carries a large mark instead. Pure CSS and inline SVG: nothing to render.  */

.svc-media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.svc-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(47, 191, 113, .20), transparent 62%);
}
.svc-ico {
  position: relative;
  width: 74px;
  height: 74px;
  color: var(--green-hi);
  opacity: .92;
  filter: drop-shadow(0 8px 22px rgba(47, 191, 113, .35));
}

/* A different tint per service so the four are told apart at a glance */
.svc-a { background: linear-gradient(155deg, #13251b, #0d1512); }
.svc-b { background: linear-gradient(155deg, #14231f, #0d1512); }
.svc-c { background: linear-gradient(155deg, #121f24, #0d1512); }
.svc-d { background: linear-gradient(155deg, #1b2118, #0d1512); }

/* "Free quote" is words, not a number — it should not shout like €1,949 does */
.svc-price { font-size: 1.35rem; }

@media (prefers-reduced-motion: reduce) { .svc-ico { filter: none; } }

/* ---------- Product page ---------------------------------------------------
   One page per machine. Photos on the left, the decision on the right, the
   detail underneath — the arrangement every shop uses because it works.      */

.crumbs { font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-hi); }
.crumbs span { color: var(--faint); margin: 0 2px; }

.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 38px; align-items: start; }

.pdp-media .card-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pdp-media .thumbs { padding: 10px 0 0; }

.pdp-buy h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 6px; }
.pdp-lead { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 16px 0 22px; }
.pdp-buy .price-row { margin: 0 0 18px; }
.pdp-buy .price { font-size: 2.1rem; }

.pdp-notes { list-style: none; margin: 22px 0 0; padding: 0; }
.pdp-notes li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 11px;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--muted);
}
.pdp-notes li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-dim);
}
.pdp-notes strong { color: var(--text); }

.pdp-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.pdp-lower h2 { font-size: 1.3rem; margin-bottom: 14px; }
.pdp-lower p { color: var(--muted); line-height: 1.7; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.spec-table th, .spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { color: var(--faint); font-weight: 500; width: 42%; padding-right: 16px; }
.spec-table td { color: var(--text); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.also-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.also {
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.also:hover { border-color: var(--green-dim); transform: translateY(-2px); }
.also img { width: 56px; height: 56px; border-radius: 7px; object-fit: cover; flex: none; }
.also-name { flex: 1; color: var(--text); font-weight: 600; font-size: .9rem; line-height: 1.35; }
.also-price { color: var(--green-hi); font-weight: 800; font-size: .95rem; white-space: nowrap; }

@media (max-width: 900px) {
  .pdp, .pdp-lower { grid-template-columns: 1fr; gap: 26px; }
}
@media (prefers-reduced-motion: reduce) { .also { transition: none; } }

/* A card title is the way into the product page. It should read as a title
   until you point at it — an underlined heading in a grid looks like noise. */
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover,
.card-body h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Four across on a full-width screen. The stock list and the service list are
   four items each, and a grid that strands the last card alone on its own row
   reads as a mistake rather than as a shop front. Below 1180px the ordinary
   auto-fill rule takes over and it drops to three, then two, then one. */
@media (min-width: 1180px) {
  .grid-4up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The first thing under the hero is the stock list, and it should start close
   enough to the fold that a laptop screen shows a machine without scrolling.
   Only this one section is tightened — the reading sections further down keep
   their air. */
.section-shop { padding-top: clamp(30px, 3.6vw, 46px); }
.section-shop .section-head { margin-bottom: 24px; }
.section-shop .section-head h2 { margin-bottom: 6px; }

/* Sits where the price sits on a machine still for sale. Quiet on purpose:
   the news is that it is gone, and the buttons under it say what to do
   about that. The photos stay full colour — they are the best argument for
   asking me to build the same thing again. */
.pdp-sold {
  margin: 4px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
}

/* The built-to-order card that appears beside a thin stock list. No photo,
   so its body carries the whole card and wants centring rather than sitting
   against the top edge like a spec sheet. */
.card-cta {
  border-color: var(--green-dim);
  align-self: start;   /* only as tall as it needs — stretching it to match a
                          full product card leaves a void above the text */
}
.card-cta .price-note { margin-bottom: 16px; }

/* Stands in for a figure on a build that has not been repriced yet. Same slot
   as the price so the cards still line up, but plainly not a number. */
.price-ask { font-size: 1.05rem; font-weight: 700; color: var(--muted); }

/* ---------- Promo carousel ------------------------------------------------
   The first thing on the homepage. Built on scroll-snap rather than a
   transform slider: swiping, momentum and keyboard scrolling come free from
   the browser, and if the script never runs you still get a horizontally
   scrollable row of real links instead of one slide and three hidden ones. */

.promo { padding: 18px 0 0; }

.promo-frame { position: relative; }

.promo-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius);
  /* The scrollbar is noise here — the dots say where you are. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.promo-rail::-webkit-scrollbar { display: none; }
.promo-rail:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.promo-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  height: clamp(300px, 26vw, 390px);
  display: flex;
  align-items: flex-end;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  isolation: isolate;
}

/* A photograph needs something under the text or the white type dies on a
   bright case. The gradient is heavier at the bottom, where the copy sits. */
.promo-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-slide.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(6, 9, 7, .93) 0%, rgba(6, 9, 7, .82) 38%, rgba(6, 9, 7, .25) 78%);
}

/* Slides without a photograph get a tinted panel instead. Cheap, and it keeps
   the carousel from looking half-finished while there is only one machine
   photographed. */
.promo-b { background: linear-gradient(135deg, rgba(47, 191, 113, .16), rgba(47, 191, 113, .03)); }
.promo-c { background: linear-gradient(135deg, rgba(96, 165, 250, .14), rgba(47, 191, 113, .04)); }
.promo-d { background: linear-gradient(135deg, rgba(234, 179, 8, .13), rgba(47, 191, 113, .04)); }

.promo-copy { max-width: 46ch; }

.promo-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(47, 191, 113, .14);
  border: 1px solid rgba(47, 191, 113, .34);
  color: var(--green-hi);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.promo-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.14;
}
.promo-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
}

.promo-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.promo-price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #04140b;
  font-weight: 700;
  transition: filter .18s ease;
}
.promo-cta::after { content: "\2192"; }
.promo-slide:hover .promo-cta { filter: brightness(1.08); }

/* Arrows sit over the slide. Hidden on touch: swiping is the gesture there,
   and two 44px targets over the copy do more harm than good. */
.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 13, 11, .74);
  cursor: pointer;
  transition: background-color .2s ease;
}
.promo-nav:hover { background: rgba(10, 13, 11, .95); }
.promo-nav:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.promo-prev { left: 12px; }
.promo-next { right: 12px; }
.promo-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
}
.promo-prev::before  { transform: translate(-35%, -50%) rotate(135deg); }
.promo-next::before  { transform: translate(-65%, -50%) rotate(-45deg); }
.promo-nav[hidden]   { display: none; }

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.promo-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background-color .2s ease, width .2s ease;
}
.promo-dot.is-on { width: 22px; border-radius: 999px; background: var(--green); }
.promo-dot:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

@media (max-width: 700px) {
  .promo { padding-top: 12px; }
  .promo-slide { min-height: 260px; padding: 20px; }
  .promo-copy  { max-width: none; }
  .promo-sub   { font-size: .92rem; }
  .promo-nav   { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-rail { scroll-behavior: auto; }
  .promo-dot  { transition: none; }
}

/* On a wide screen a photo slide is a split, not an overlay: copy on a solid
   panel to the left, the machine to the right at full brightness. Laying text
   over the photograph meant the case sat under the darkest part of the
   gradient — the one thing the slide is meant to show. */
@media (min-width: 761px) {
  .promo-slide.has-photo { padding: 0; align-items: stretch; }
  .promo-slide.has-photo::after { display: none; }
  .promo-slide.has-photo .promo-copy {
    order: 1;
    flex: 0 0 46%;
    max-width: none;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: var(--surface);
  }
  .promo-slide.has-photo .promo-photo {
    order: 2;
    position: static;
    z-index: 0;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 100%;
  }
}

/* Both arrows live in the bottom-right corner. Centred on the sides they sat
   on top of the headline, and a control that covers the message is worse than
   no control. */
.promo-nav {
  top: auto;
  bottom: 16px;
  transform: none;
}
.promo-prev { left: auto; right: 66px; }
.promo-next { right: 16px; }

/* One grid, two kinds of picture: photographs of real machines and the drawn
   artwork for the made-to-order range. Without a shared aspect the row of
   cards steps up and down and stops reading as a shelf. */
.grid-shop .card-media,
.grid-shop .card-media.square { aspect-ratio: 4 / 3; }
.grid-shop .card-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Posts -------------------------------------------------------- */

.post-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.post-card:hover { border-color: var(--green-dim); transform: translateY(-2px); }
.post-card:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.post-cover { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover .badge { position: absolute; top: 10px; left: 10px; }

.post-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-body time { color: var(--faint); font-size: .82rem; }
.post-body h3 { margin: 6px 0 8px; font-size: 1.1rem; line-height: 1.3; }
.post-body p { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.post-more {
  margin-top: auto;
  color: var(--green-hi);
  font-weight: 700;
  font-size: .92rem;
}
.post-more::after { content: "\00a0\2192"; }

/* ---------- A post ------------------------------------------------------- */

/* Prose wants a short line. The page wrapper is 1180px because product grids
   need it; running body text that wide is unreadable, so the article narrows
   itself rather than the page. */
.article { max-width: 760px; }

.article-head { margin: 18px 0 24px; }
.article-head h1 { margin: 10px 0 12px; }
.article-lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 12px; }
.article-date { color: var(--faint); font-size: .88rem; }

.article-figure { margin: 26px 0; }
.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.article-figure figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-size: .88rem;
  line-height: 1.5;
}
.article-cover { margin-top: 0; }

.article-body { font-size: 1.02rem; line-height: 1.72; }
.article-body h2 { margin: 34px 0 12px; font-size: 1.35rem; }
.article-body p { margin: 0 0 18px; color: var(--text); }
.article-body a { color: var(--green-hi); }

.article-list { margin: 0 0 20px; padding-left: 22px; }
.article-list li { margin-bottom: 7px; }

.article-note {
  border-left: 3px solid var(--green);
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}

.article-back { margin-top: 34px; }
.article-back a { color: var(--green-hi); font-weight: 600; }

@media (max-width: 700px) {
  .article-body   { font-size: .98rem; }
  .article-figure { margin: 20px 0; }
}

/* Stands in for the thumbnail strip on a machine that is built but not yet
   photographed. Says so plainly and turns the gap into a reason to ring. */
.pdp-nophoto {
  margin: 14px 0 0;
  padding: 13px 15px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: .93rem;
}
