/* ==========================================================================
   Byggflyt – www.byggflyt.no
   Brand: navy #2C3A52 · beige #D6A388 (from official logo files)
   ========================================================================== */

:root {
  /* Brand */
  --navy: #2c3a52;
  --navy-700: #243047;
  --navy-800: #1d2739;
  --navy-900: #161e2d;
  --beige: #d6a388;
  --beige-300: #e6c3b0;
  --beige-100: #f4e6dd;
  --copper: #8c5a3c;          /* beige-toned text on light backgrounds (AA) */

  /* Product accents (beige stays the company color: Book demo buttons, nav, footer) */
  --pro: #9db1c8;             /* Byggflyt Pro – dempet stålblå (5.2:1 on navy) */
  --pro-dark: #4a5d75;        /* Pro text on light backgrounds */
  --fix: #9db5a0;             /* Byggflyt Fix – salvie (5.3:1 on navy) */
  --fix-dark: #4f6b55;        /* Fix text on light backgrounds */

  /* Content accent – beige by default, switched by .theme-pro / .theme-fix */
  --accent: var(--beige);
  --accent-dark: var(--copper);
  --accent-rgb: 214, 163, 136;
  --accent-tint: var(--beige-100);
  --accent-tint-border: #ecd5c7;

  /* Surfaces & text */
  --bg: #ffffff;
  --bg-warm: #f7f3ef;
  --ink: #1f2838;
  --ink-muted: #4a5568;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.78);
  --line: #e6dfd8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --error: #b42318;
  --success: #1f7a4d;

  /* Type */
  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (8pt) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(22, 30, 45, 0.06), 0 2px 8px rgba(22, 30, 45, 0.06);
  --shadow-md: 0 8px 30px rgba(22, 30, 45, 0.12);
  --shadow-lg: 0 24px 60px rgba(22, 30, 45, 0.25);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 240ms;

  /* z-index scale */
  --z-header: 100;
  --z-menu: 110;
  --z-skip: 1000;
}

/* Product themes: set on <body> (product pages) or on a single element (homepage product cards) */
.theme-pro { --accent: var(--pro); --accent-dark: var(--pro-dark); --accent-rgb: 157, 177, 200; --accent-tint: #e8edf3; --accent-tint-border: #d2dbe6; }
.theme-fix { --accent: var(--fix); --accent-dark: var(--fix-dark); --accent-rgb: 157, 181, 160; --accent-tint: #e8efe9; --accent-tint-border: #d1ded3; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 var(--s-2); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 var(--s-2); }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Font Awesome icons (kit or free CDN) */
.icon { display: inline-block; width: 1.25em; flex: none; text-align: center; line-height: 1; }
svg.icon { height: 1em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: var(--z-skip);
  background: var(--beige); color: var(--navy-900); padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--beige); outline-offset: 3px; border-radius: 4px; }
.section--light :focus-visible, .form :focus-visible { outline-color: var(--navy); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.section { padding-block: var(--s-7); position: relative; }
@media (min-width: 1024px) { .section { padding-block: var(--s-8); } }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--deep { background: var(--navy-800); color: var(--on-dark); }
.section--light { background: var(--bg-warm); }
.section--white { background: var(--bg); }

/* Section in the page's product colour (e.g. sage on /fix). Light accent bg → dark navy content. */
.section--accent { background: var(--accent); color: var(--navy-900); }
.section--accent h2, .section--accent h3 { color: var(--navy-900); }
.section--accent .eyebrow { color: var(--navy-900); }
.section--accent .muted, .section--accent .feature p { color: var(--navy); }
.section--accent .punch, .section--accent .text-link, .section--accent .accent { color: var(--navy-900); }
.section--accent .checklist .icon { color: var(--navy-900); }
.section--accent .feature__icon { color: var(--navy-900); background: rgba(255, 255, 255, 0.28); border-color: rgba(22, 30, 45, 0.14); }
.section--accent :focus-visible { outline-color: var(--navy-900); }

.section-head { max-width: 760px; margin: 0 auto var(--s-6); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { font-size: 1.125rem; }

.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 500;
  font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: var(--s-2);
}
.section--navy .eyebrow, .section--deep .eyebrow, .hero .eyebrow, .cta-band .eyebrow { color: var(--accent); }

.h-display { font-size: clamp(2.25rem, 5.2vw, 4.25rem); font-weight: 600; line-height: 1.08; }
.h-section { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h-sub { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.accent { color: var(--accent); }
.section--light .accent, .section--white .accent { color: var(--accent-dark); }
.muted { color: var(--ink-muted); }
.section--navy .muted, .section--deep .muted { color: var(--on-dark-muted); }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; }

.punch {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.35; color: var(--navy); margin-top: var(--s-4);
}
.section--navy .punch, .section--deep .punch { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease,
              border-color var(--dur-fast) ease, box-shadow var(--dur) var(--ease-out), transform var(--dur-fast) ease;
}
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--beige); color: var(--navy-900); }
.btn--primary:hover { background: var(--beige-300); box-shadow: 0 8px 24px rgba(214, 163, 136, 0.35); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }

/* Secondary action in the current accent (e.g. "Utforsk Byggflyt Pro") – beige stays for Book demo */
.btn--accent { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--accent:hover { background: rgba(var(--accent-rgb), 0.14); }

.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

.btn--xl { min-height: 64px; padding: 1rem 2.4rem; font-size: 1.2rem; }
.btn--sm { min-height: 42px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.btn-row--center { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--font-head); font-weight: 600;
  color: var(--accent-dark); text-decoration: none; min-height: 44px;
}
.section--navy .text-link, .section--deep .text-link, .card--dark .text-link { color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform var(--dur) var(--ease-out); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h); background: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background-color var(--dur) ease;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--s-3); }
.nav__list { list-style: none; display: flex; gap: 1.75rem; align-items: center; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.86); text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--beige);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__login { color: rgba(255, 255, 255, 0.86); text-decoration: none; font-family: var(--font-head); font-weight: 500; display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; padding-inline: 0.5rem; }
.nav__login:hover { color: #fff; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle .icon { font-size: 1.5rem; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: var(--s-3);
    background: var(--navy); padding: var(--s-3) 20px var(--s-4);
    border-top: 1px solid var(--line-dark); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; min-height: 52px; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--beige); }
  .nav__actions { flex-direction: column; align-items: stretch; }
  .nav__actions .btn { width: 100%; }
  .nav__login { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--header-h) + var(--s-6)) 0 calc(var(--edge-h) + var(--s-5));
  overflow: hidden; background: var(--navy-900);
}
.hero--page { min-height: 72vh; min-height: 72svh; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 48%, rgba(22, 30, 45, 0.5), rgba(22, 30, 45, 0) 75%),
    linear-gradient(180deg, rgba(22, 30, 45, 0.45) 0%, rgba(22, 30, 45, 0.15) 45%, rgba(29, 39, 57, 0.6) 100%);
}
.hero__inner { max-width: 980px; }
/* Scroll-scrubbed hero video (homepage). Without JS / reduced motion it's the static first frame. */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 300ms ease; }
.hero__canvas.is-ready { opacity: 1; }

.hero h1 { margin-bottom: var(--s-3); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero .lead { color: rgba(255, 255, 255, 0.9); max-width: 680px; margin: 0 auto var(--s-4); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.hero .btn-row { justify-content: center; }
.hero__proof {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.75rem;
  margin-top: var(--s-4); font-family: var(--font-head); font-weight: 500; color: rgba(255, 255, 255, 0.92);
}
.hero__proof li { display: inline-flex; align-items: center; gap: 0.5em; }
.hero__proof .icon { color: var(--accent); }


/* City skyline divider (from arbeid/city-skyline-divider.svg)
   Two repeating mask layers: back row = lighter, translucent brand blue; front row = next section's color. */
:root { --edge-h: clamp(72px, 6.5vw, 100px); }
.edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: var(--edge-h);
  z-index: 0; pointer-events: none; --edge-color: var(--navy);
}
.edge--navy { --edge-color: var(--navy); }
.edge--deep { --edge-color: var(--navy-800); }
.edge--light { --edge-color: var(--bg-warm); }
.edge--accent { --edge-color: var(--accent); }
.edge::before, .edge::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-size: auto 100%; mask-size: auto 100%;
  -webkit-mask-position: left bottom; mask-position: left bottom;
}
.edge::before {
  background: rgba(74, 92, 122, 0.5);   /* lighter variant of brand navy #2c3a52 */
  -webkit-mask-image: url("../img/skyline-back.svg"); mask-image: url("../img/skyline-back.svg");
}
.edge::after {
  background: var(--edge-color);
  -webkit-mask-image: url("../img/skyline-front.svg"); mask-image: url("../img/skyline-front.svg");
}
/* Skyline into a product-coloured section: back row in the product colour, semi-transparent */
.edge--accent::before { background: rgba(var(--accent-rgb), 0.5); }
/* Footer skyline: its own calmer drawing (buildings in the middle, hills with trees, open space on each side).
   Sits on top of the footer, rising into the section before, in the footer's colour. Centered, not repeated. */
/* Drawing is 1600×140 and sized by height, so max height = 1080px × 140/1600 → never wider than 1080px */
.edge--footer { --edge-color: var(--navy-900); bottom: calc(100% - 1px); height: clamp(80px, 8vw, calc(1080px * 140 / 1600)); }
.edge--footer::before, .edge--footer::after {
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center bottom; mask-position: center bottom;
}
.edge--footer::before { -webkit-mask-image: url("../img/footer-skyline-back.svg"); mask-image: url("../img/footer-skyline-back.svg"); }
.edge--footer::after { -webkit-mask-image: url("../img/footer-skyline-front.svg"); mask-image: url("../img/footer-skyline-front.svg"); }
/* Phones show only the middle of the drawing – centre on the city (it sits right of centre, ~57%) */
@media (max-width: 639px) {
  .edge--footer::before, .edge--footer::after { -webkit-mask-position: 57% bottom; mask-position: 57% bottom; }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--s-3); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s-4); box-shadow: var(--shadow-sm);
}
.card--dark { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); box-shadow: none; }

.product-card { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5) var(--s-4); position: relative; overflow: hidden; }
.product-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.product-card__tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(var(--accent-rgb), 0.14); color: var(--accent);
}
.product-card h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0; }
.product-card h3 span { color: var(--accent); }
.product-card .text-link { margin-top: auto; }

.checklist { list-style: none; display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checklist .icon { color: var(--accent); margin-top: 0.3em; }
.section--light .checklist .icon, .section--white .checklist .icon { color: var(--accent-dark); }

/* Icon feature grid – mirrors the inspiration's centered icon blocks */
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-5) var(--s-4); }
.feature { text-align: center; flex: 0 1 100%; max-width: 360px; }
@media (min-width: 640px) { .feature { flex-basis: calc((100% - var(--s-4)) / 2); } }
@media (min-width: 1024px) { .feature { flex-basis: calc((100% - 2 * var(--s-4)) / 3); } }
.feature__icon {
  width: 64px; height: 64px; margin: 0 auto var(--s-2); border-radius: 18px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.25);
}
.feature__icon .icon { font-size: 1.6rem; width: auto; }
.feature h3 { font-size: 1.3rem; font-weight: 500; margin-bottom: 0.5rem; }
.feature p { color: var(--on-dark-muted); }
.section--light .feature__icon, .section--white .feature__icon { color: var(--accent-dark); background: var(--accent-tint); border-color: var(--accent-tint-border); }
.section--light .feature p, .section--white .feature p { color: var(--ink-muted); }

/* Card variant: <div class="features features--cards"> – equal-height cards, left-aligned */
.features--cards { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 640px) { .features--cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features--cards { grid-template-columns: repeat(3, 1fr); } }
/* A lone card in the last row: full width on 2 columns, centred on 3 columns */
@media (min-width: 640px) and (max-width: 1023px) { .features--cards .feature:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .features--cards .feature:last-child:nth-child(3n+1) { grid-column: 2; } }
.features--cards .feature {
  max-width: none; text-align: left; padding: var(--s-4) var(--s-3);
  border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.04);
  /* icon + heading on one row, text across the full width below */
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; row-gap: 0.5rem; align-items: center; align-content: start;
}
.features--cards .feature__icon {
  grid-column: 1; margin: 0; width: auto; height: auto; display: block;
  background: none; border: 0; border-radius: 0; font-size: 1.35rem; line-height: 1;
}
.features--cards .feature__icon .icon { font-size: inherit; width: 1.25em; }
.features--cards .feature h3 { grid-column: 2; margin: 0; }
.features--cards .feature p, .features--cards .feature__num { grid-column: 1 / -1; }
.section--light .features--cards .feature, .section--white .features--cards .feature { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.section--accent .features--cards .feature { background: rgba(255, 255, 255, 0.42); border-color: rgba(255, 255, 255, 0.55); box-shadow: 0 2px 10px rgba(22, 30, 45, 0.06); }
.section--accent .features--cards .feature__icon, .section--light .features--cards .feature__icon, .section--white .features--cards .feature__icon { background: none; border: 0; }
.section--accent .features--cards .feature__icon { color: var(--navy-900); }
.feature__num {
  display: block; font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.25rem;
}

/* Product identity icons (Pro = fa-buildings, Fix = fa-screwdriver-wrench).
   Duotone with a kit: beige primary layer, translucent beige secondary layer. No tile background. */
.product-mark, .product-card__mark {
  color: var(--accent);
  --fa-primary-color: var(--accent);
  --fa-secondary-color: var(--accent);
  --fa-secondary-opacity: 0.55;
  line-height: 1;
}
.product-mark { font-size: 3.5rem; margin: 0 auto var(--s-3); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35)); }
.product-card__mark { font-size: 2.75rem; flex: none; }
.product-mark .icon, .product-card__mark .icon { width: auto; }
.product-card__head { display: flex; align-items: center; gap: var(--s-2); }
.product-card__head p { margin: 0; color: var(--accent); font-family: var(--font-head); font-weight: 500; }
.product-card .btn-row { margin-top: auto; padding-top: var(--s-2); }

/* Compact integration band (homepage only) */
.integration { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 1024px) { .integration { grid-template-columns: 5fr 7fr; gap: var(--s-6); } }
.integration .flow { margin-top: 0; }

/* ---------- Split layout ---------- */
.split { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .split--wide-media { grid-template-columns: 5fr 7fr; }
  .split--reverse > :first-child { order: 2; }
}

/* Browser frame for app screenshots */
.browser {
  border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef0f3; border-bottom: 1px solid #e1e4e8; }
.browser__bar span:not(.browser__url) { width: 10px; height: 10px; border-radius: 50%; background: #cfd4db; }
.browser__url { margin-left: 10px; font-size: 0.75rem; color: #5b6472; background: #fff; border-radius: 6px; padding: 2px 10px; }
.browser img { width: 100%; height: auto; aspect-ratio: 1600 / 815; }

/* ---------- Flow pipeline (PRO ↔ Fix) ---------- */
.flow {
  display: grid; gap: var(--s-2); list-style: none; counter-reset: flow;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--s-2) var(--s-2) var(--s-2) 3.25rem; font-family: var(--font-head); font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm); min-height: 56px; display: flex; align-items: center;
}
.flow li::before {
  counter-increment: flow; content: counter(flow);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--accent); font-size: 0.8rem;
}
.flow li:last-child { background: var(--navy); color: #fff; border-color: var(--navy); }
.flow li:last-child::before { background: var(--accent); color: var(--navy-900); }

.duo { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo__item { display: flex; gap: var(--s-2); align-items: flex-start; }
.duo__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--accent); }
.duo__icon .icon { font-size: 1.25rem; width: auto; }
.duo__item h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.duo__item p { color: var(--ink-muted); font-size: 1rem; }

.pill-row { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--s-4); }
.pill-row li {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55rem 1rem; border-radius: 999px;
  background: var(--accent-tint); color: var(--navy); font-family: var(--font-head); font-weight: 500;
}
.pill-row .icon { color: var(--accent-dark); }

/* ---------- Questions ("Bygget husker") ---------- */
.questions { list-style: none; display: grid; gap: var(--s-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .questions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .questions { grid-template-columns: repeat(3, 1fr); } }
.questions li {
  display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3);
  border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 500;
}
.questions .icon { color: var(--accent); font-size: 1.4rem; width: 1.6em; }

.quote {
  font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.35;
  max-width: 820px; margin: var(--s-6) auto 0; text-align: center; color: #fff;
}
.quote em { font-style: normal; color: var(--accent); }

/* ---------- Supplier illustration card ---------- */
.task-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); overflow: hidden; }
.task-card__head { background: var(--navy); color: #fff; padding: var(--s-2) var(--s-3); display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.task-card__head strong { font-family: var(--font-head); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--accent); color: var(--navy-900); }
.task-card__body { padding: var(--s-3); display: grid; gap: var(--s-2); }
.task-row { display: flex; gap: var(--s-2); align-items: flex-start; padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; padding-bottom: 0; }
.task-row .icon { color: var(--accent-dark); margin-top: 0.3em; }
.task-row small { display: block; color: var(--ink-muted); font-size: 0.9rem; }
.task-row b { font-family: var(--font-head); font-weight: 600; color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; color: #fff; text-align: center; overflow: hidden;
  padding-block: clamp(6rem, 12vw, 10rem); background: var(--navy-900);
}
.cta-band__media, .cta-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-band__media { z-index: -2; }
.cta-band__media img { object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 30, 45, 0.55), rgba(22, 30, 45, 0.7)); }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.cta-band .lead { max-width: 680px; margin: 0 auto var(--s-4); color: rgba(255, 255, 255, 0.88); }
.cta-band .tagline { font-family: var(--font-head); color: var(--accent); font-size: 1.2rem; margin-bottom: var(--s-4); }

/* ---------- Team ---------- */
.team { display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .team { grid-template-columns: 1fr 1fr; gap: var(--s-4); } }
.person { display: flex; flex-direction: column; gap: var(--s-2); }
.person__top { display: flex; gap: var(--s-2); align-items: center; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--navy); color: var(--beige); font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.02em;
  border: 3px solid var(--beige-100);
}
.person h3 { margin: 0; font-size: 1.4rem; }
.person__role { color: var(--accent-dark); font-family: var(--font-head); font-weight: 500; }
.person p { color: var(--ink-muted); }

.prose { max-width: 720px; }
.prose p { font-size: 1.125rem; }
.prose h2 { margin-top: var(--s-2); }

.story { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .story { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-7); } }
.story__item h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.story__item p { color: var(--ink-muted); }

.big-quote {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1.25;
  text-align: center; max-width: 900px; margin: 0 auto;
}
.big-quote span { color: var(--accent); }

/* ---------- Demo form ---------- */
.demo { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 1024px) { .demo { grid-template-columns: 5fr 7fr; gap: var(--s-6); } }
.demo__aside .checklist { margin-top: var(--s-3); }

.form { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.form__grid { display: grid; gap: var(--s-3) var(--s-3); }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font-size: 1rem;
  border: 1.5px solid #cfd5dd; border-radius: var(--radius-sm); background: #fff;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(44, 58, 82, 0.18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.9rem; min-height: 0; }
.field__error:empty { display: none; }
.field__hint { color: var(--ink-muted); font-size: 0.875rem; }

.choice-group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1rem; cursor: pointer;
  border: 1.5px solid #cfd5dd; border-radius: 999px; font-weight: 500; font-size: 0.95rem;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }

.form__footer { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; justify-content: space-between; }
.form__note { font-size: 0.875rem; color: var(--ink-muted); margin: 0; max-width: 34ch; }
.form button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status { margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); font-weight: 500; }
.form__status:empty { display: none; }
.form__status--error { background: #fdecea; color: var(--error); }
.form__success { text-align: center; padding: var(--s-5) var(--s-2); }
.form__success .icon { font-size: 3.5rem; width: auto; display: block; color: var(--success); margin: 0 auto var(--s-2); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-900); color: var(--on-dark-muted); padding: var(--s-6) 0 var(--s-4); font-size: 0.95rem; }
.footer__grid { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer__brand img { height: 30px; width: auto; margin-bottom: var(--s-2); }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--beige); font-weight: 500; }
.site-footer ul { list-style: none; display: grid; gap: 0.25rem; }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; gap: 0.6em; }
.site-footer a .icon { color: var(--beige); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); font-size: 0.875rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 639px) {
  body { font-size: 1rem; }
  .btn--xl { width: 100%; min-height: 56px; padding: 0.85rem 1.25rem; font-size: 1.1rem; }
  .hero .btn-row .btn { width: 100%; }
  .brand img { height: 28px; }
}
