/* ============================================================================
   KC IRONCORE V2: "Forge" theme on the Nimiq design system
   Palette: Forge (warm oxblood crimson over coal-dark steel)
   Type:    Nimiq Native (Mulish; sentence-case headers, uppercase only on buttons)
   Strict Nimiq: solid surfaces (no glassmorphism), no glow/dots/chips, no decorative
   ornaments, no scroll motion. Brand color areas carry the bottom-right radial.
   Geometry/spacing/easing from the Nimiq style guide. Custom values in px.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800;900&family=Fira+Mono:wght@400;500&display=swap");

:root {
  /* --- Forge palette --- */
  --surface:      #0c0a0a;   /* coal stage */
  --surface-2:    #120e0d;   /* alternating band */
  --card:         #1a1614;   /* card surface (solid) */
  --ink:          #f2ede9;   /* warm mill-white */
  --ink-dim:      #a79e98;   /* secondary text */
  --steel:        #6a6f76;
  --steel-light:  #c7ccd1;

  --accent:       #b81710;   /* crimson, THE action color */
  --accent-deep:  #8a1109;   /* darkened / pressed */
  --spark:        #e8852e;   /* logo weld-spark, brand mark only, not UI ornament */

  --line:         rgba(255,255,255,0.09);
  --line-strong:  rgba(255,255,255,0.18);

  /* Nimiq law: bottom-right radial on brand-color areas (two stops, no bloom). */
  --accent-bg:    radial-gradient(100% 100% at 100% 100%, #c81a0f, #8a1109);

  --font: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Fira Mono', ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.25, 0, 0, 1);

  --r-card: 12px;
  --r-pill: 999px;
  --r-in: 6px;
  --shadow:    0 8px 36px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.55);

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--surface);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- layout -- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 760px; }
section { padding: clamp(60px, 9vw, 112px) 0; }
.band--card { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* faint square line-grid behind a section (checkerboard, lines only) */
/* .grid-bg kept as an inert hook (blueprint grid pattern removed — off-Nimiq) */

/* ---------------------------------------------------------------- type ---- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-weight: 900; font-size: clamp(38px, 6.4vw, 66px); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.8vw, 40px); text-wrap: balance; }

h3 { font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 18px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.6; color: var(--ink-dim); font-weight: 400; max-width: 62ch; }
.muted { color: var(--ink-dim); }
.section-head { max-width: 660px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; margin-bottom: 0; }

/* ---------------------------------------------------------------- buttons - */
/* Nimiq button: pill, uppercase, hover translateY(-2px) + larger shadow. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 30px; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: var(--r-pill); color: #fff; white-space: nowrap;
  background-color: var(--accent); background-image: var(--accent-bg);
  box-shadow: 0 8px 22px rgba(138,17,9,0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(138,17,9,0.45); }
.btn:active { transform: translateY(0); }
/* lava: slow flowing molten orange→red — ONLY on the primary "get a quote" CTAs (attention-getter) */
/* lava = two blurred blob fields drifting on different paths: a molten-red layer
   (::before) and hot-orange veins (::after, screen-blended so they glow onto the red).
   The independent motion makes the hot zones morph/flow; blur kills any spotlight edge. */
@keyframes ic-lava-a {
  0%,100% { transform: translate(-3%,-2%) rotate(0deg)  scale(1.05); }
  33%     { transform: translate(3%, 2%)  rotate(6deg)  scale(1.11); }
  66%     { transform: translate(2%,-3%)  rotate(-4deg) scale(1.02); }
}
@keyframes ic-lava-b {
  0%,100% { transform: translate(3%, 2%)  rotate(0deg)  scale(1.07); }
  33%     { transform: translate(-4%,-2%) rotate(-6deg) scale(1.02); }
  66%     { transform: translate(-2%,3%)  rotate(5deg)  scale(1.12); }
}
/* per-button --ld delay (set inline) desyncs the buttons so they don't all match */
.btn--lava { position: relative; overflow: hidden; z-index: 0; isolation: isolate;
  background-color: #3a0904; text-shadow: 0 1px 3px rgba(22,2,1,0.65);
  box-shadow: 0 0 13px 1px rgba(236,124,34,0.32), 0 8px 22px rgba(105,12,6,0.4); }
.btn--lava:hover { box-shadow: 0 0 20px 2px rgba(241,135,45,0.45), 0 13px 30px rgba(105,12,6,0.5); }
.btn--lava::before, .btn--lava::after {
  content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none; will-change: transform;
}
.btn--lava::before {                    /* molten red rock — deep red with dark crust */
  background:
    radial-gradient(circle at 30% 46%, #951007 0%, rgba(149,16,7,0) 44%),
    radial-gradient(circle at 72% 40%, #640a05 0%, rgba(100,10,5,0) 46%),
    radial-gradient(circle at 55% 78%, #7d0e07 0%, rgba(125,14,7,0) 42%),
    radial-gradient(circle at 86% 74%, #420a04 0%, rgba(66,10,4,0) 38%);
  filter: blur(11px);
  animation: ic-lava-a var(--ls, 13s) ease-in-out infinite;
  animation-delay: var(--ld, 0s);
}
.btn--lava::after {                     /* subtle ember veins — deep red, barely warmer than the rock, NO yellow/orange wash */
  background:
    radial-gradient(circle at 38% 52%, #b6360f 0%, rgba(182,54,15,0) 16%),
    radial-gradient(circle at 61% 40%, #cf5018 0%, rgba(207,80,24,0) 13%),
    radial-gradient(circle at 50% 66%, #97210b 0%, rgba(151,33,11,0) 15%),
    radial-gradient(circle at 26% 30%, #ab2e0e 0%, rgba(171,46,14,0) 12%);
  filter: blur(9px);
  opacity: 0.9;
  animation: ic-lava-b calc(var(--ls, 13s) * 0.76) ease-in-out infinite;
  animation-delay: calc(var(--ld, 0s) - 3.5s);
}
@media (prefers-reduced-motion: reduce) { .btn--lava::before, .btn--lava::after { animation: none; } }
@media (prefers-reduced-motion: reduce) { .btn--lava { animation: none; } }
.btn--ghost {
  background: transparent; background-image: none; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--steel-light); }
.btn--small { height: 44px; padding: 0 22px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(184,23,16,0.6); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* simple text link, crimson, plain underline on hover (no animated highlight) */
.tlink { color: var(--accent); font-weight: 700; }
.tlink:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- header -- */
/* SOLID surface, never glassmorphism. */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.hdr.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.45); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brandmark { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -0.02em; font-size: 20px; color: #fff; white-space: nowrap; }
.brandmark .spark { color: var(--accent); }
.brandmark svg { flex: none; }
.hdr__nav { display: flex; gap: 4px; margin-left: auto; }
.hdr__nav a { padding: 9px 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; color: var(--ink-dim); white-space: nowrap; transition: color 0.2s var(--ease); }
.hdr__nav a:hover, .hdr__nav a[aria-current="page"] { color: var(--ink); }
.hdr__cta { display: flex; align-items: center; gap: 16px; }
.hdr__phone { font-weight: 700; font-size: 15px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hdr__phone svg { color: var(--accent); }
.hdr__burger { display: none; flex-shrink: 0; width: 42px; height: 42px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 11px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------- hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 11vw, 128px) 0 clamp(48px, 7vw, 88px); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 72%; z-index: 0; opacity: 0.9; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top left, rgba(8,7,7,0.38) 0%, rgba(8,7,7,0.8) 52%, rgba(8,7,7,0.95) 100%); }
.hero > .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero__bg { display: none; } }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; text-shadow: 0 2px 22px rgba(0,0,0,0.65); }
.hero .lede { margin-bottom: 30px; max-width: 38ch; color: rgba(242,237,233,0.9); text-shadow: 0 1px 16px rgba(0,0,0,0.92), 0 0 3px rgba(0,0,0,0.7); }
.hero .btn-row { margin-bottom: 28px; }
.hero__trust { color: var(--ink-dim); font-size: 15px; font-weight: 600; text-align: center; }
.hero__trust span { white-space: nowrap; }
.hero__trust .sep { color: var(--accent); font-weight: 700; margin: 0 9px; }

.hero__art { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: radial-gradient(125% 100% at 50% 28%, #1c1512 0%, #0c0a0a 70%);
  display: flex; align-items: center; justify-content: center; padding: 7% 9%; }
.hero__art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55)); }
/* footer wordmark: main font (Mulish), all-caps, orange→red gradient text */
.ftr__wordmark { font-family: var(--font); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap; display: inline-block; line-height: 1; font-size: 21px;
  background: linear-gradient(180deg, #e8852e 0%, #b81710 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
/* hero wordmark: SVG of the same gradient text, scales to fill the column width side to side */
.hero__wordmark { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 0 24px; }

/* ---------------------------------------------------------------- stats --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 44px); }
.stat b { display: block; font-size: clamp(34px, 4.6vw, 48px); font-weight: 900; letter-spacing: -0.03em; color: var(--ink); line-height: 1; white-space: nowrap; }
.stat > span { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-dim); font-weight: 600; line-height: 1.4; text-wrap: balance; }

/* ---------------------------------------------------------------- cards --- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Nimiq card: solid surface, the real shadow, no ornament, no hover-lift. */
.card {
  position: relative; border-radius: var(--r-card); padding: 30px 28px 26px;
  background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease);
  display: flex; flex-direction: column; min-height: 100%;
}
a.card:hover { border-color: var(--line-strong); }
.card__icon { color: var(--accent); margin-bottom: 18px; }
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-dim); font-size: 15.5px; margin-bottom: 18px; }
.card__foot { margin-top: auto; }

/* ---------------------------------------------------------------- steps --- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start;
  padding: 24px 26px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.step__n { counter-increment: step; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 21px; color: #fff; background-color: var(--accent); background-image: var(--accent-bg); }
.step__n::before { content: counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-dim); font-size: 15.5px; }

/* ---------------------------------------------------------------- pricing - */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier { position: relative; border-radius: var(--r-card); padding: 32px 28px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.tier--feature { border-color: transparent; }
/* animated orange→red gradient ring on the most-popular tier (the one we steer to) */
.tier--feature::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ic-angle), #e8852e, #b81710, #e8852e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ic-ring-spin 5s linear infinite; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .tier--feature::before { animation: none; } }
.tier__tag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 0.04em; padding: 5px 13px; border-radius: var(--r-pill); }
.tier h3 { margin-bottom: 4px; }
.tier__price { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; margin: 14px 0 4px; }
.tier__price small { font-size: 16px; font-weight: 600; color: var(--ink-dim); letter-spacing: 0; }
.tier__sub { color: var(--ink-dim); font-size: 15px; margin-bottom: 22px; }
.tier ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.tier li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; color: var(--ink); }
.tier li svg { color: var(--accent); margin-top: 3px; }
.tier .btn { margin-top: auto; }

/* ---------------------------------------------------------------- note box (clean bordered card; NO left-accent stripe — off-Nimiq) */
.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--r-card);
  background: var(--card); border: 1px solid var(--line); }
.note__ic { flex: none; color: var(--accent); }
.note b { color: var(--ink); }
.note p { margin: 4px 0 0; color: var(--ink-dim); font-size: 15px; }

/* ---------------------------------------------------------------- feature list */
.flist { display: grid; gap: 20px; }
.fitem { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start; }
.fitem__ic { color: var(--accent); }
.fitem h4 { margin-bottom: 4px; }
.fitem p { margin: 0; color: var(--ink-dim); font-size: 15px; }

/* simple checklist */
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15.5px; color: var(--ink); }
.check li svg { color: var(--accent); margin-top: 3px; }

/* ---------------------------------------------------------------- quote --- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; color: var(--ink); }
.quote cite { display: block; margin-top: 22px; font-style: normal; font-weight: 600; color: var(--ink-dim); font-size: 15px; }

/* ---------------------------------------------------------------- faq ----- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { position: relative; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 20px; height: 20px; color: var(--accent); transition: transform 0.2s var(--ease); }
.faq details[open] summary .pm { transform: rotate(45deg); }
/* animated orange→red gradient ring on the open FAQ item (the KC IRONCORE wordmark gradient, set spinning) */
@property --ic-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ic-ring-spin { to { --ic-angle: 360deg; } }
.faq details[open] { border-color: transparent; }
.faq details[open]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px;
  background: conic-gradient(from var(--ic-angle), #e8852e, #b81710, #e8852e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ic-ring-spin 4.5s linear infinite; pointer-events: none; z-index: 2;
}
@media (prefers-reduced-motion: reduce) { .faq details[open]::before { animation: none; } }
.faq .ans { padding: 0 24px 22px; color: var(--ink-dim); font-size: 15.5px; }
.faq .ans p { margin: 0; }

/* ---------------------------------------------------------------- cta band (brand color area → carries the radial; no bloom overlay) */
.ctaband { border-radius: 16px; padding: clamp(40px, 6vw, 64px); text-align: center;
  background-color: var(--accent); background-image: var(--accent-bg); }
.ctaband h2 { color: #fff; margin-bottom: 14px; }
.ctaband p { color: rgba(255,255,255,0.88); max-width: 52ch; margin: 0 auto 28px; }
.ctaband .btn { background: #fff; background-image: none; color: var(--accent-deep); box-shadow: none; }
.ctaband .btn:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.ctaband .btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.65); }
.ctaband .small { margin-top: 18px; color: rgba(255,255,255,0.8); font-size: 14px; }

/* ---------------------------------------------------------------- inputs -- */
/* Nimiq input: inset box-shadow border, no real border, focus accent. */
.field { display: block; margin-bottom: 18px; }
.field > label { display: block; font-weight: 700; font-size: 14px; color: var(--ink-dim); margin-bottom: 8px; }
.input, .textarea {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink); background: transparent;
  border: 0; border-radius: var(--r-in); padding: 15px 16px;
  box-shadow: inset 0 0 0 2px var(--line-strong);
  transition: box-shadow 0.2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: rgba(242,237,233,0.4); }
.input:focus, .textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.textarea { min-height: 130px; resize: vertical; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- footer -- */
.ftr { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 72px) 0 36px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.ftr__brand p { color: var(--ink-dim); font-size: 15px; max-width: 32ch; margin: 16px 0 0; }
.ftr h5 { margin: 0 0 16px; font-size: 13px; font-weight: 800; color: var(--ink); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ftr a { color: var(--ink-dim); font-size: 15px; }
.ftr a:hover { color: var(--ink); }
.ftr__bot { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--line); color: rgba(242,237,233,0.45); font-size: 13.5px; }
.ftr__credit { display: inline-flex; align-items: center; gap: 8px; }
.ftr__credit svg { opacity: 0.7; }

/* ---------------------------------------------------------------- prose --- */
.prose { max-width: 720px; }
.prose h2 { margin: 40px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-dim); }
.prose ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 18px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 700; }
.prose td { color: var(--ink-dim); }
.prose td strong { color: var(--ink); }

/* ---------------------------------------------------------------- page hero (interior) */
.pagehero { padding: clamp(56px, 9vw, 104px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.pagehero .crumbs { font-size: 14px; color: var(--ink-dim); margin-bottom: 18px; }
.pagehero .crumbs a:hover { color: var(--ink); }
.pagehero h1 { margin-bottom: 18px; }
.pagehero .lede { max-width: 60ch; }

/* Responsive breakpoints are defined at the END of this file (after every base rule) so the
   media queries always win the cascade. Clean set: 1024 · 768 · 480. */

/* ================= Nimiq components, recolored Forge ====================== */

/* slider-toggle (pill radio; checked option = crimson pill). Port of Nimiq SliderToggle. */
.stoggle { display: inline-flex; gap: 4px; background: rgba(255,255,255,0.05); border-radius: var(--r-pill); padding: 5px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.stoggle::-webkit-scrollbar { display: none; }
.stoggle input { display: none; }
.stoggle label { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: var(--r-pill); cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-dim); white-space: nowrap; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }
.stoggle label:not(:has(input:checked)):hover { color: var(--ink); }
.stoggle label:has(input:checked) { background-color: var(--accent); background-image: var(--accent-bg); color: #fff; }

/* gallery grid + filter */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gal a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--card); transition: border-color 0.2s var(--ease); }
.gal a:hover { border-color: var(--accent); }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal a[hidden] { display: none; }
.gal__bar { display: flex; justify-content: center; margin-bottom: 30px; }

/* gallery teaser strip (home) */
.work-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work-strip a { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); }
.work-strip img { width: 100%; height: 100%; object-fit: cover; }

/* estimator (swap-balance-bar mechanic: draggable handle splits the bar) */
.estimator { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px,4vw,36px); box-shadow: var(--shadow); }
.est-readout { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.est-readout b { font-size: clamp(20px,3vw,26px); font-weight: 800; letter-spacing: -0.02em; }
.est-readout .price { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: clamp(18px,2.6vw,22px); white-space: nowrap; }
.est-desc { color: var(--ink-dim); font-size: 15px; min-height: 44px; margin-bottom: 22px; }
.est-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; cursor: grab; outline: none;
  background: linear-gradient(to right, #e8852e 0%, #b81710 var(--p,30%), rgba(255,255,255,0.12) var(--p,30%), rgba(255,255,255,0.12) 100%); }
.est-range:active { cursor: grabbing; }
.est-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 14px rgba(0,0,0,0.5); cursor: grab; }
.est-range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 4px 14px rgba(0,0,0,0.5); cursor: grab; }
.est-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(184,23,16,0.5); }
.est-scale { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 12px; }
.est-scale i { width: 1px; height: 7px; background: var(--line-strong); display: block; }
.est-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--ink-dim); font-weight: 600; }

/* select-bar (segmented audience selector; active segment crimson) — grid keeps it a clean 4-up, never 3+1 */
.selbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; width: 100%; max-width: 620px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 8px; }
.selbar input { display: none; }
.selbar label { justify-self: center; text-align: center; padding: 11px 18px; border-radius: var(--r-pill); cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-dim); white-space: nowrap; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }
.selbar label:not(:has(input:checked)):hover { color: var(--ink); }
.selbar label:has(input:checked) { background-color: var(--accent); background-image: var(--accent-bg); color: #fff; }
.selpanel { display: none; padding-top: 26px; }
.selpanel.is-on { display: block; }

/* expandable service card (progressive disclosure) */
details.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 0; }
details.svc > summary { list-style: none; cursor: pointer; padding: 26px 26px; display: grid; grid-template-columns: 34px 1fr 22px; gap: 16px; align-items: center; }
details.svc summary > span:nth-child(2) { text-align: center; }
details.svc > summary::-webkit-details-marker { display: none; }
details.svc summary .svc__ic { color: var(--accent); }
details.svc summary h3 { margin: 0 0 4px; }
details.svc summary .svc__lead { color: var(--ink-dim); font-size: 15px; }
details.svc summary .pm { width: 22px; height: 22px; color: var(--accent); transition: transform 0.2s var(--ease); }
details.svc[open] summary .pm { transform: rotate(45deg); }
details.svc .svc__more { padding: 0 26px 26px; color: var(--ink-dim); font-size: 15.5px; text-align: center; }
details.svc .svc__more p { margin: 0 0 16px; }

/* collapsible disclosure (pricing tables) */
details.disclose { border-top: 1px solid var(--line); margin-top: 8px; }
details.disclose > summary { list-style: none; cursor: pointer; padding: 22px 2px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; color: var(--ink); }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose summary .pm { width: 20px; height: 20px; color: var(--accent); transition: transform 0.2s var(--ease); }
details.disclose[open] summary .pm { transform: rotate(45deg); }

/* ===== home page: center everything below the hero (hero left untouched) ===== */
body.home section:not(.hero) .section-head { margin-left: auto; margin-right: auto; text-align: center; }
body.home section:not(.hero) .btn-row { justify-content: center; }
body.home .stat { text-align: center; }
body.home .selpanel .card { text-align: center; }
body.home .home-note { text-align: center; }

/* big brand lockup before the footer — shown on mobile, where the hero hides the logo */
.brand-outro { display: none; text-align: center; }
.brand-outro img { width: min(80vw, 380px); height: auto; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 18px 44px rgba(0,0,0,0.6)); }

/* mobile nav sheet (solid, not blurred) */
.msheet { display: none; position: fixed; inset: 0; z-index: 60; background: var(--surface); padding: 84px 24px 24px; }
.msheet.open { display: block; }
.msheet a:not(.btn) { display: block; padding: 16px 4px; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--line); color: var(--ink); text-align: center; }
.msheet .btn { margin-top: 24px; width: 100%; }
.msheet__close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 10px; color: var(--ink); font-size: 22px; cursor: pointer; }

/* custom scroll pill — replaces the native scrollbar, hidden over the hero, emerges from its
   bottom edge as you scroll past it, then stays put (orange → red, pill shape). */
html { scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; height: 0; }
.scroll-pill {
  position: fixed; right: 8px; width: 7px; border-radius: 999px; z-index: 45;
  background: linear-gradient(to bottom, #e8852e 0%, #b81710 100%);
  box-shadow: 0 0 16px rgba(216,53,27,0.5);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.scroll-pill.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .scroll-pill { transition: opacity 0.2s; transform: none; } }

/* ============================ RESPONSIVE (kept last so media queries win) =================
   Clean Nimiq-aligned breakpoints: 1024 = layout/nav stack · 768 = mobile + full-screen hero · 480 = small phone.
   These three are the ONLY layout breakpoints in this stylesheet. */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { display: none; }
  .grid--3, .tiers, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hdr__nav, .hdr__phone { display: none; }
  .hdr__burger { display: flex; }
  .hdr__cta { margin-left: auto; }
  .brand-outro { display: block; }
}
@media (max-width: 768px) {
  .hero { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: grid; align-content: center; }
  .work-strip { grid-template-columns: repeat(2, 1fr); }
  .selbar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .btn, .hero .btn-row .btn { width: 100%; }
  .hero__trust { font-size: 12px; }
  .hero__trust .sep { margin: 0 6px; }
}

/* ===== SPLASH DOOR — front-page welcome overlay (ported verbatim from the V1 site, DO NOT alter) ===== */
.ic-splash { position: fixed; inset: 0; z-index: 1000; background: #000; transition: opacity 0.4s ease;
  touch-action: none; -webkit-user-select: none; user-select: none; overscroll-behavior: contain; }
.ic-splash--hidden { opacity: 0; pointer-events: none; }
body.has-splash { overflow: hidden; position: fixed; inset: 0; width: 100%; touch-action: none; }
.ic-splash__doors { position: relative; width: 100vw; height: 100svh; overflow: hidden; }
.ic-splash__door { position: absolute; top: 0; height: 100%; width: 50%;
  background-image: url('/img/brand/splash-door.webp'); background-size: 100vw 100svh; background-repeat: no-repeat;
  transition: transform 0.9s cubic-bezier(.7,.0,.3,1); }
.ic-splash__door--left  { left: 0;  background-position: left  center; }
.ic-splash__door--right { right: 0; background-position: right center; }
.ic-splash--opening .ic-splash__door--left  { transform: translateX(-100%); }
.ic-splash--opening .ic-splash__door--right { transform: translateX( 100%); }
.ic-splash__hit { position: absolute; inset: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (min-width: 900px) and (orientation: landscape) {
  .ic-splash__door { background-image: url('/img/brand/splash-door-landscape.webp'); background-size: 100vw 100svh; }
}
