/* =========================================================
   FONTS (self-hosted - see CLAUDE.md: keeps visitor IPs off
   Google's servers instead of loading from fonts.googleapis.com)
========================================================= */
@font-face{
  font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"Space Grotesk"; font-style:normal; font-weight:500 700; font-display:swap;
  src:url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Space Grotesk"; font-style:normal; font-weight:500 700; font-display:swap;
  src:url("assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"JetBrains Mono"; font-style:normal; font-weight:500 600; font-display:swap;
  src:url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"JetBrains Mono"; font-style:normal; font-weight:500 600; font-display:swap;
  src:url("assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* =========================================================
   TOKENS
========================================================= */
:root{
  /* Paper-to-ink grey ramp. Text tiers are contrast-checked against --bg:
     --ink-700 (body copy) holds ~8.8:1, --ink-500 (meta/labels/captions,
     never body prose) holds ~4.6:1 - both clear WCAG AA at normal size. */
  --bg:        #FAFAF8;
  --bg-alt:    #EDEDEA;
  --surface:   #FFFFFF;
  --ink-900:   #0A0A0B;
  --ink-700:   #454545;
  --ink-500:   #666666;
  --line:      #E3E3E0;
  --accent:    #1E4FD8;
  --accent-ink:#FFFFFF;
  --danger:    #C1440E;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 1px 2px rgba(11,13,18,.04), 0 12px 28px -16px rgba(11,13,18,.14);
  --shadow-pop: 0 24px 60px -16px rgba(11,13,18,.35);

  --ease: cubic-bezier(.16,1,.3,1);
  --duration-enter: 600ms;
  --duration-hover: 250ms;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* Native cross-document page transitions (Chromium 126+) - a short paper
   fade instead of the browser's default hard cut between pages. No-ops
   completely in browsers that don't support it yet, so it's safe as a
   plain progressive enhancement with no JS router involved. */
@view-transition{ navigation:auto; }
::view-transition-old(root){ animation:nw-page-out .35s var(--ease) both; }
::view-transition-new(root){ animation:nw-page-in .35s var(--ease) both; }
@keyframes nw-page-out{ to{ opacity:0; } }
@keyframes nw-page-in{ from{ opacity:0; } }
/* Not real DOM elements, so the blanket *,*::before,*::after rule above
   doesn't reach them - reduced motion needs its own explicit override. */
@media (prefers-reduced-motion: reduce){
  ::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root){ animation:none !important; }
}

body{
  margin:0; font-family:var(--font-body); color:var(--ink-700); background:var(--bg);
   line-height:1.55; -webkit-font-smoothing:antialiased; overflow-x:hidden;
}

img{ max-width:100%; height:auto; }
input, select, textarea, button{ font:inherit; }

h1,h2,h3{ font-family:var(--font-display); font-weight:700; line-height:1.05; margin:0 0 .4em; color:var(--ink-900); letter-spacing:-.01em; }
/* Bare h1 = the homepage hero only - every other page's h1 sits inside
   .section-head and gets the smaller page-title size below. */
h1{ font-size:clamp(2.75rem, 5vw + 1.5rem, 6.5rem); line-height:.97; letter-spacing:-.03em; }
h2{ font-size:clamp(1.8rem, 2.2vw + 1rem, 2.5rem); }
.section-head h1{ font-size:clamp(1.8rem, 2.2vw + 1rem, 2.5rem); line-height:1.05; letter-spacing:-.01em; }
h3{ font-size:1.2rem; }
p{ margin:0 0 1em; max-width:65ch; }
a{ color:var(--ink-900); }
a:hover{ color:var(--ink-700); }

.wrap{ max-width:1160px; margin:0 auto; padding:0 24px; }
.wrap-narrow{ max-width:760px; }
.wrap-narrower{ max-width:640px; }
.text-center{ text-align:center; }
.mb-0{ margin-bottom:0; }
.sr-only{ position:absolute; 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:-999px; top:0; background:var(--accent); color:var(--accent-ink); padding:12px 18px; z-index:300; font-weight:600; border-radius:0 0 8px 0; }
.skip-link:focus{ left:0; }

/* Reusable "this is one distinct unit" card, same treatment as .calc -
   white surface floating on the gradient background, never the other way
   around (background stays the gradient, this is what encapsulates content). */
.panel{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:32px; }
@media (max-width:640px){ .panel{ padding:22px; } }

/* Lighter-weight than .panel - a border + shadow accent with no solid fill,
   so the gradient still shows through but the content still reads as its
   own distinct unit. */
.frame{ border:1.5px solid rgba(11,13,18,.16); border-radius:var(--radius-lg); padding:44px 40px; }
@media (max-width:640px){ .frame{ padding:28px 22px; } }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:3px solid var(--ink-900); outline-offset:2px; border-radius:2px;
}

.eyebrow{ font-family:var(--font-mono); font-size:.76rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-500); font-weight:500; margin:0 0 .7em; display:flex; align-items:center; gap:8px; }
.eyebrow::before{ content:""; width:16px; height:2px; background:var(--ink-900); display:inline-block; }

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  position:relative; z-index:0; overflow:hidden; isolation:isolate;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:600; font-size:.94rem;
  padding:13px 24px; border-radius:999px; border:1.5px solid transparent;
  cursor:pointer; text-decoration:none; transition:transform .15s var(--ease), border-color var(--duration-hover) var(--ease), color var(--duration-hover) var(--ease);
  min-height:48px;
}
.btn:active{ transform:translateY(1px); }
/* Ink-fill wipe: a solid-colour layer slides up from the bottom on hover
   instead of the label/background just swapping colour instantly. */
.btn::before{
  content:""; position:absolute; inset:0; z-index:-1;
  transform:translateY(100%); transition:transform var(--duration-hover) var(--ease);
}
.btn:hover::before{ transform:translateY(0); }
.btn-primary{ background:var(--ink-900); color:#fff; }
.btn-primary::before{ background:var(--accent); }
.btn-primary:hover{ color:var(--accent-ink); }
.btn-ghost{ background:transparent; border-color:var(--ink-900); color:var(--ink-900); }
.btn-ghost::before{ background:var(--ink-900); }
.btn-ghost:hover{ color:#fff; }
.btn-lg{ padding:16px 30px; font-size:1rem; }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 16px; font-size:.85rem; min-height:auto; }

/* =========================================================
   HEADER
========================================================= */
/* Transparent over the page until scrolled past the hero, then a blurred
   paper bar with a hairline - .is-scrolled is toggled by script.js. */
.site-header{
  position:sticky; top:0; z-index:100; background:transparent; border-bottom:1px solid transparent;
  transition:background var(--duration-hover) var(--ease), border-color var(--duration-hover) var(--ease);
}
.site-header.is-scrolled{ background:rgba(250,250,248,.88); backdrop-filter:blur(10px); border-bottom-color:var(--line); }
.header-inner{ display:flex; align-items:center; gap:24px; height:78px; }
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; margin-right:auto; }
.brand-logo{ height:34px; width:auto; display:block; }

.main-nav{ display:flex; gap:30px; }
.main-nav a{ text-decoration:none; font-weight:500; font-size:.94rem; color:var(--ink-700); padding:8px 0; border-bottom:2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"]{ border-color:var(--accent); color:var(--ink-900); }

.header-actions{ display:flex; align-items:center; gap:14px; }
.lang-switch{ display:flex; border:1.5px solid var(--ink-900); border-radius:999px; overflow:hidden; }
.lang-btn{ font-family:var(--font-mono); font-size:.74rem; font-weight:600; letter-spacing:.04em; padding:7px 12px; background:transparent; border:0; cursor:pointer; color:var(--ink-900); min-height:auto; }
.lang-btn.is-active{ background:var(--ink-900); color:#fff; }

.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; padding:8px; cursor:pointer; min-height:auto; }
.nav-toggle span{ width:22px; height:2px; background:var(--ink-900); display:block; }

/* "Priser" nav item doubles as a dropdown into the pricing page's two
   sections (Priser / Besparelse) - hover/focus on desktop, always-expanded
   inline on mobile (see the max-width:860px override below). */
.nav-dropdown{ position:relative; }
.nav-dropdown > a{ display:inline-flex; align-items:center; gap:6px; }
.nav-dropdown > a::after{
  content:""; width:15px; height:15px; flex:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%230A0A0B'/%3E%3Cpath d='M4.5 6.5l3.5 3.5 3.5-3.5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-size:contain;
}
.nav-dropdown-menu{
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(-6px);
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md);
  box-shadow:var(--shadow-pop); padding:6px; min-width:170px; margin-top:8px;
  display:flex; flex-direction:column; gap:2px;
  opacity:0; visibility:hidden; transition:opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
  z-index:150;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu{
  opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);
}
.nav-dropdown-menu a{ border-bottom:0 !important; padding:9px 12px; border-radius:var(--radius-sm); font-size:.9rem; white-space:nowrap; }
.nav-dropdown-menu a:hover{ background:var(--bg); color:var(--ink-900); }

@media (max-width: 860px){
  .main-nav{ position:fixed; inset:78px 0 auto 0; background:var(--surface); flex-direction:column; padding:10px 24px 24px; gap:2px; border-bottom:1px solid var(--line); box-shadow:var(--shadow-card); transform:translateY(-8px); opacity:0; pointer-events:none; transition:transform .2s var(--ease), opacity .2s var(--ease); }
  .main-nav.is-open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .main-nav a{ padding:14px 4px; border-bottom:1px solid var(--line); }
  .nav-toggle{ display:flex; }
  .nav-dropdown > a::after{ display:none; }
  .nav-dropdown-menu{
    position:static; opacity:1; visibility:visible; transform:none; margin-top:0;
    box-shadow:none; border:0; border-radius:0; padding:0 0 0 16px; background:transparent; min-width:0;
  }
  .nav-dropdown-menu a{ padding:12px 4px; color:var(--ink-500); font-size:.88rem; }
  .header-cta{ display:none; }
}

@media (max-width:640px){
   .wrap{ padding:0 18px; }
   .header-inner{ height:68px; gap:14px; }
   .brand-logo{ height:30px; }
   .lang-btn{ padding:6px 10px; }
   .main-nav{ inset:68px 0 auto 0; padding:10px 18px 18px; }
   .hero{ padding:58px 0 72px; }
   .section{ padding:96px 0; }
   .hero-ctas{ flex-direction:column; align-items:stretch; }
   .hero-ctas .btn{ width:100%; }
   .field-row{ grid-template-columns:1fr; }
   .company-list div{ flex-direction:column; align-items:flex-start; gap:6px; }
   .company-list dd{ text-align:left; }
   .contact-direct{ padding:20px; }
   .cookie-banner{ left:12px; right:12px; bottom:12px; padding:16px; gap:12px; }
   .cookie-banner p{ min-width:0; }
   .addon-card{ padding:16px; }
   .addon-card-top{ flex-wrap:wrap; row-gap:8px; }
   .addon-price{ white-space:normal; text-align:left; }
   .addon-table div{ flex-direction:column; align-items:flex-start; gap:4px; }
   .addon-table strong{ text-align:left; white-space:normal; }
}

/* =========================================================
   HERO
========================================================= */
.hero{ position:relative; overflow:hidden; padding:76px 0 64px; background:var(--bg); }
.hero-inner{ position:relative; z-index:1; display:grid; grid-template-columns:1.05fr 1fr; gap:56px; align-items:center; }
.hero-lead{ font-size:1.12rem; max-width:52ch; color:var(--ink-500); }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-top:28px; }

.hero-media{ position:relative; }
.hero-media img{
  display:block; width:100%; height:auto; aspect-ratio:1400/782; object-fit:cover;
  border-radius:var(--radius-lg); border:1px solid var(--line);
}
.hero-media-tag{
  position:absolute; left:18px; bottom:18px; background:var(--surface); color:var(--ink-900);
  font-family:var(--font-mono); font-size:.74rem; font-weight:600; padding:6px 12px;
  border-radius:999px; border:1px solid var(--line);
}

/* Thin scroll cue - purely decorative, so it's hidden from the a11y tree. */
.hero-scroll{ display:flex; justify-content:center; margin-top:56px; }
.hero-scroll span{
  width:1px; height:36px; background:var(--ink-500);
  animation:hero-scroll-drift 1.8s ease-in-out infinite;
}
@keyframes hero-scroll-drift{ 0%,100%{ opacity:.25; } 50%{ opacity:.9; } }

@media (max-width:860px){
  .hero-inner{ grid-template-columns:1fr; gap:32px; }
  .hero-media{ order:-1; }
}
@media (max-width:640px){ .hero-scroll{ margin-top:36px; } }

@keyframes reveal-up{ from{ opacity:0; transform:translateY(24px); } to{ opacity:1; transform:translateY(0); } }
.hero-inner .eyebrow{ animation:reveal-up .6s var(--ease) both; }
.hero-inner .hero-lead{ animation:reveal-up .6s var(--ease) .16s both; }
.hero-inner .hero-ctas{ animation:reveal-up .6s var(--ease) .24s both; }
.hero-media{ animation:reveal-up .7s var(--ease) .12s both; }

/* Headline entrance: each authored line (script.js wraps them after i18n
   applies) rises out from behind its own overflow-hidden mask, rather than
   the whole heading block fading up or animating per-letter. */
.line-mask{ display:block; overflow:hidden; }
.line-mask span{ display:block; transform:translateY(100%); animation:line-reveal .7s var(--ease) both; }
.line-mask:nth-child(1) span{ animation-delay:.05s; }
.line-mask:nth-child(2) span{ animation-delay:.15s; }
.line-mask:nth-child(3) span{ animation-delay:.25s; }
@keyframes line-reveal{ to{ transform:translateY(0); } }

/* =========================================================
   SECTIONS
========================================================= */
.section{ padding:160px 0; background:var(--bg); }
.section-alt{ background:var(--bg-alt); }
/* One full-bleed dark section as a rhythmic break rather than another
   gradient - used sparingly (currently just the closing homepage CTA). */
.section-ink{ background:var(--ink-900); color:#C7CBCF; }
.section-ink h2{ color:#fff; }
.section-ink .section-lead{ color:#9AA0A6; }
.section-ink .frame{ border-color:rgba(255,255,255,.16); }
.section-ink .btn-primary{ background:#fff; color:var(--ink-900); }
.section-ink .btn-primary:hover{ color:var(--accent-ink); }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-lead{ font-size:1.02rem; color:var(--ink-500); }
.section-foot{ margin-top:36px; }

/* Services grid */
/* Editorial list: full-width hairline-separated rows instead of a card
   grid - the number-first, wide-line-measure layout a card grid can't do. */
.services-list{ display:flex; flex-direction:column; }
.service-row{
  display:flex; align-items:center; gap:32px; padding:32px 4px;
  border-top:1px solid var(--line); transition:padding-left .3s var(--ease);
}
.services-list .service-row:last-child{ border-bottom:1px solid var(--line); }
.service-row:hover{ padding-left:16px; }
.service-num{ font-family:var(--font-mono); font-size:.85rem; color:var(--ink-500); flex:none; width:32px; }
.service-row-body{ flex:1; min-width:0; }
.service-row h3{ font-size:1.15rem; margin-bottom:6px; }
.service-row p{ font-size:.94rem; color:var(--ink-700); margin:0; max-width:60ch; }
.service-row-arrow{
  flex:none; font-family:var(--font-display); font-size:1.4rem; color:var(--ink-900);
  opacity:0; transform:translateX(-8px); transition:opacity .25s var(--ease), transform .25s var(--ease);
}
.service-row:hover .service-row-arrow{ opacity:1; transform:translateX(0); }
@media (max-width:640px){
  .service-row{ gap:16px; padding:24px 2px; align-items:flex-start; }
  .service-row-arrow{ display:none; }
}

/* =========================================================
   PORTFOLIO / WORK CARDS
========================================================= */
.work-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:900px){ .work-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .work-grid{ grid-template-columns:1fr; } }
/* A single portfolio entry shouldn't stretch across a 3-column grid and
   leave two empty columns beside it - cap the row to one sized column. */
.work-grid:has(.work-card:only-child){ grid-template-columns:minmax(0,860px); }

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

/* Scroll reveal - progressive enhancement, gated on .js-ready (added by
   script.js) so cards stay fully visible for no-JS visitors by default. */
.js-ready .service-row, .js-ready .work-card{ opacity:0; transform:translateY(24px); transition:opacity var(--duration-enter) var(--ease), transform var(--duration-enter) var(--ease); }
.js-ready .service-row.is-visible, .js-ready .work-card.is-visible{ opacity:1; transform:translateY(0); }
.service-row:nth-child(1), .work-card:nth-child(1){ transition-delay:0s; }
.service-row:nth-child(2), .work-card:nth-child(2){ transition-delay:.08s; }
.service-row:nth-child(3), .work-card:nth-child(3){ transition-delay:.16s; }
.service-row:nth-child(4), .work-card:nth-child(4){ transition-delay:.24s; }
.service-row:nth-child(5){ transition-delay:.32s; }
.work-card-media{ position:relative; aspect-ratio:16/10; background:var(--bg-alt); border-bottom:1px solid var(--line); overflow:hidden; }
.work-card-media img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s var(--ease); }
.work-card:hover .work-card-media img{ transform:scale(1.04); }
.work-card-media::after{
  content:""; position:absolute; inset:0; z-index:1; background:var(--ink-900); opacity:0;
  transition:opacity .6s var(--ease);
}
.work-card:hover .work-card-media::after{ opacity:.1; }
.work-card-body{ padding:24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.work-domain{ font-family:var(--font-mono); font-size:.76rem; color:var(--ink-500); }
.work-tag{
  position:absolute; left:14px; top:14px; z-index:2; font-family:var(--font-mono); font-size:.7rem;
  background:var(--surface); padding:4px 10px; border-radius:999px; color:var(--ink-700); border:1px solid var(--line);
}
.work-card h2{ font-size:1.2rem; margin:0; }
.work-card p{ font-size:.92rem; color:var(--ink-700); margin:0; flex:1; }
.work-visit{ font-size:.86rem; font-weight:600; color:var(--ink-900); text-decoration:none; }
.work-visit:hover{ text-decoration:underline; }

/* =========================================================
   PRICING CALCULATOR
========================================================= */
.calc{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:32px; }
#calc-prices, #calc-savings{ scroll-margin-top:96px; }

/* In-page jump between the price calculator and the savings comparison */
.calc-tabs{ display:flex; gap:10px; margin-bottom:20px; }
.calc-tab{ font-family:var(--font-body); font-weight:600; font-size:.9rem; padding:10px 20px; border-radius:999px; border:1.5px solid var(--line); background:var(--bg); color:var(--ink-700); text-decoration:none; transition:border-color .15s, background .15s, color .15s; }
.calc-tab.is-active{ background:var(--ink-900); border-color:var(--ink-900); color:#fff; }
.calc-tab:hover{ border-color:var(--ink-900); }
.calc-row{ margin-bottom:26px; }
.calc-row:last-child{ margin-bottom:0; }
.calc-label{ font-family:var(--font-mono); font-size:.76rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-500); margin-bottom:12px; display:block; }

.pill-group{ display:flex; gap:10px; flex-wrap:wrap; }
.pill{ font-family:var(--font-body); font-weight:600; font-size:.88rem; padding:10px 18px; border-radius:999px; border:1.5px solid var(--line); background:var(--bg); cursor:pointer; color:var(--ink-700); transition:border-color .15s, background .15s, color .15s; }
.pill.is-active{ background:var(--ink-900); border-color:var(--ink-900); color:#fff; }

.toggle-row{ display:flex; align-items:center; gap:12px; }
.toggle{ position:relative; width:46px; height:26px; flex:none; }
.toggle input{ opacity:0; width:100%; height:100%; margin:0; cursor:pointer; position:absolute; z-index:1; }
.toggle-track{ position:absolute; inset:0; background:var(--line); border-radius:999px; transition:background .18s var(--ease); }
.toggle-thumb{ position:absolute; top:3px; left:3px; width:20px; height:20px; background:#fff; border-radius:50%; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .18s var(--ease); }
.toggle input:checked ~ .toggle-track{ background:var(--ink-900); }
.toggle input:checked ~ .toggle-thumb{ transform:translateX(20px); }

.startup-price{ background:var(--ink-900); color:#fff; border-radius:var(--radius-md); padding:24px 26px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.startup-price-label{ font-family:var(--font-mono); font-size:.78rem; color:#B7BAC0; margin-bottom:4px; }
.startup-price-value{ font-family:var(--font-mono); font-size:1.9rem; font-weight:600; }
.startup-price-note{ font-size:.82rem; color:#B7BAC0; max-width:26ch; }
.startup-price .btn-primary{ background:#fff; color:var(--ink-900); }
.startup-price .btn-primary:hover{ color:var(--accent-ink); }

.home-pricing-price{ margin-top:24px; }
#homePillGroup{ margin-top:4px; }

.plans-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:16px; }
@media (max-width:760px){ .plans-grid{ grid-template-columns:1fr; } }
.plan-card{ border:1.5px solid var(--line); border-radius:var(--radius-md); padding:20px; display:flex; flex-direction:column; gap:10px; }

/* Custom-select chevron as a real, always-rendered DOM element (a sibling
   span, pointer-events:none) rather than a background-image on the <select>
   itself - background-image-on-select is inconsistently honored across
   mobile Chrome/Safari/Android WebView, this isn't. Shared by every custom
   select on this page (.select-control is the shared visual chrome). */
.select-wrap{ position:relative; }
.select-wrap .select-arrow{
  position:absolute; top:50%; right:14px; transform:translateY(-50%); z-index:1;
  width:20px; height:20px; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%230A0A0B'/%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-size:contain;
}
.select-control{
  width:100%; padding:14px 46px 14px 16px;
  border:2px solid var(--ink-900); border-radius:var(--radius-md); background:var(--surface);
  font:inherit; font-weight:700; font-size:1rem; color:var(--ink-900); cursor:pointer;
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
}

/* Mobile-only: dropdowns replace the pill-group and comparing all 3 stacked
   plan cards at once - phones were turning this into a long scroll. Desktop
   keeps the pills and the full 3-up grid untouched. */
.plan-select-wrap, .type-select-wrap{ display:none; }
@media (max-width:760px){
  #typePillGroup{ display:none; }
  .type-select-wrap{ display:block; }
  .plan-select-wrap{ display:block; margin-top:16px; }
  .plans-grid{ margin-top:14px; }
  .plans-grid .plan-card{ display:none; }
  .plans-grid .plan-card.is-selected{ display:flex; }
  .hide-mobile{ display:none; }
}

/* Mobile-only compaction: the startup price + plan area was a lot of
   scrolling to get through on phones. Desktop is untouched - #calc-prices
   scopes this to the main pricing panel only, not the savings section. */
@media (max-width:760px){
  #calc-prices{ padding:20px; }
  #calc-prices .section-head{ margin-bottom:22px; }
  #calc-prices .calc-row{ margin-bottom:16px; }
  #calc-prices .calc-label{ margin-bottom:8px; }
  .startup-price{ padding:16px 18px; gap:6px; }
  .startup-price-value{ font-size:1.5rem; }
  .startup-price-note{ max-width:none; font-size:.78rem; }

  /* The dropdown already tells you which plan is selected, so the card
     underneath doesn't need to repeat that as its own separate bordered
     box - just a divider and tighter spacing, one less "box" to scroll past. */
  .select-control{ border-width:1.5px; }
  .plan-card{ border:0; border-radius:0; padding:14px 0 0; gap:6px; border-top:1px solid var(--line); }
  .plan-badge{ left:0; }
}
.plan-card.is-recommended{ border-color:var(--ink-900); position:relative; }
.plan-badge{ position:absolute; top:-11px; left:16px; background:var(--accent); color:var(--accent-ink); font-family:var(--font-mono); font-size:.68rem; padding:3px 10px; border-radius:999px; font-weight:600; }
.plan-name{ font-family:var(--font-display); font-weight:700; font-size:1.05rem; }
.plan-price{ font-family:var(--font-mono); font-size:1.4rem; font-weight:600; color:var(--ink-900); }
.plan-price span{ font-size:.78rem; font-weight:400; color:var(--ink-500); }
.plan-desc{ font-size:.86rem; color:var(--ink-500); margin:0; flex:1; }

.calc-row--addons{ margin-top:8px; padding-top:24px; border-top:1px solid var(--line); }
.pricing-addons-head{ margin-bottom:18px; }
.pricing-addons-head h2{ font-size:1.35rem; margin-bottom:8px; }
.pricing-addons-head .section-lead{ margin-bottom:0; max-width:68ch; }
.addons-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.addons-grid--embedded{ margin-top:14px; }
@media (max-width:760px){ .addons-grid{ grid-template-columns:1fr; } }
.addon-card{ border:1px solid var(--line); border-radius:var(--radius-md); padding:18px 20px; background:var(--surface); }
/* --spotlight used to add a lift shadow; with the shadow system gone it's a
   no-op now (the plain .addon-card hairline is enough) - --marketing stays
   the one actual visual emphasis (a darker border on the featured cards). */
.addon-card--marketing{ border-color:var(--ink-900); }
.addon-card-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.addon-badge{ display:inline-flex; align-items:center; justify-content:center; padding:4px 10px; border-radius:999px; background:var(--ink-900); color:#fff; font-family:var(--font-mono); font-size:.68rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; }
.addon-badge--accent{ background:var(--accent); color:var(--accent-ink); }
.addon-price{ font-family:var(--font-mono); font-size:.92rem; font-weight:700; color:var(--ink-900); white-space:nowrap; }
.addon-card-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.addon-card-head h3{ margin:0; }
.addon-card h3{ font-family:var(--font-display); font-size:1.08rem; font-weight:700; margin:0 0 6px; color:var(--ink-900); }
.addon-toggle{ display:none; }
.addon-card p{ font-size:.88rem; color:var(--ink-500); margin:0 0 12px; }
.addon-points{ margin:0; padding-left:18px; color:var(--ink-700); font-size:.86rem; display:grid; gap:6px; }
.addon-table{ display:grid; gap:10px; margin-top:10px; }
.addon-table div{ display:flex; justify-content:space-between; gap:14px; border-bottom:1px solid var(--line); padding-bottom:8px; }
.addon-table div:last-child{ border-bottom:0; padding-bottom:0; }
.addon-table span{ color:var(--ink-700); font-size:.86rem; }
.addon-table strong{ color:var(--ink-900); font-size:.86rem; font-family:var(--font-mono); text-align:right; }
.addon-table div{ flex-wrap:wrap; }
.addon-table span{ flex:1 1 auto; }
.addon-table strong{ flex:0 0 auto; }
.addon-note{ margin-top:14px; font-size:.82rem; color:var(--ink-500); }

/* Mobile-only accordion: badge/price/title always visible (the overview),
   description/points/table collapsed behind the toggle until tapped. Same
   markup renders fully open on desktop - .addon-toggle stays display:none
   there so .addon-card-body's default (visible, no rule below applies). */
@media (max-width:760px){
  .addon-toggle{
    display:flex; align-items:center; justify-content:center; flex:none;
    width:28px; height:28px; padding:0; border-radius:50%;
    border:1.5px solid var(--line); background:var(--bg); color:var(--ink-900);
    font-size:1.1rem; line-height:1; cursor:pointer;
    transition:transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  }
  .addon-toggle[aria-expanded="true"]{ transform:rotate(45deg); background:var(--ink-900); color:#fff; border-color:var(--ink-900); }
  .addon-card-body{ display:none; margin-top:12px; }
  .addon-card.is-open .addon-card-body{ display:block; }
}

.pricing-disclaimer{ font-size:.82rem; color:var(--ink-500); max-width:60ch; margin-top:28px; }

.calc-savings{ margin-top:32px; }

/* Toggle-chip checkboxes, styled to match .pill/.pill.is-active exactly so
   the addon toggles read as the same control language as the type/plan pills. */
.savings-addon-checks{ display:flex; flex-wrap:wrap; gap:10px; }
.savings-check{ position:relative; cursor:pointer; }
.savings-check input{ position:absolute; opacity:0; width:1px; height:1px; }
.savings-check span{
  display:inline-flex; align-items:center; font-family:var(--font-body); font-weight:600; font-size:.88rem;
  padding:10px 18px; border-radius:999px; border:1.5px solid var(--line); background:var(--bg); color:var(--ink-700);
  transition:border-color .15s, background .15s, color .15s;
}
.savings-check input:checked + span{ background:var(--ink-900); border-color:var(--ink-900); color:#fff; }
.savings-check input:focus-visible + span{ outline:3px solid var(--ink-900); outline-offset:2px; }

.savings-salary-row{ display:flex; align-items:center; gap:10px; max-width:220px; }
.savings-salary-input{
  width:100%; min-width:0; font-family:var(--font-mono); font-size:1rem; font-weight:600;
  padding:11px 12px; border:1.5px solid var(--line); border-radius:var(--radius-sm);
  background:var(--bg); color:var(--ink-900);
}
.savings-salary-input:focus-visible{ outline:3px solid var(--ink-900); outline-offset:2px; }
.savings-salary-suffix{ font-size:.86rem; color:var(--ink-500); flex:none; }
.savings-salary-hint{ font-size:.8rem; color:var(--ink-500); margin-top:8px; }

.savings-employees-wrap{ display:inline-block; margin-top:2px; max-width:110px; }
.savings-employees-select{ padding:12px 42px 12px 16px; }

/* Two-bar comparison: NordicWeb's own price stays var(--ink-900) (matches
   every other primary price/CTA on this page), the in-house estimate uses a
   neutral mid-gray rather than a "danger" red - it's a cost, not an error. */
.savings-compare{ display:flex; flex-direction:column; gap:20px; margin-top:8px; }
.savings-bar-row{ display:flex; flex-direction:column; gap:8px; }
.savings-bar-label{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; font-size:.92rem; color:var(--ink-700); }
.savings-bar-label strong{ font-family:var(--font-mono); font-size:1.05rem; color:var(--ink-900); }
.savings-bar-track{ height:14px; border-radius:999px; background:var(--bg); overflow:hidden; }
.savings-bar{ height:100%; border-radius:999px; width:0; transition:width .6s var(--ease); }
.savings-bar--us{ background:var(--ink-900); }
.savings-bar--inhouse{ background:var(--ink-500); }

.savings-result{
  margin-top:24px; padding:22px 26px; border-radius:var(--radius-md);
  background:linear-gradient(135deg, var(--ink-700) 0%, var(--ink-900) 100%); color:#fff;
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; font-size:1rem;
}
.savings-result strong{ font-family:var(--font-mono); font-size:1.5rem; }

/* =========================================================
   ABOUT / COMPANY
========================================================= */
.company-info-title{ margin-top:36px; }
.company-list{ display:flex; flex-direction:column; gap:16px; margin:0; }
.company-list div{ display:flex; justify-content:space-between; gap:16px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.company-list div:last-child{ border-bottom:0; padding-bottom:0; }
.company-list dt{ color:var(--ink-500); font-size:.9rem; }
.company-list dd{ margin:0; font-weight:600; color:var(--ink-900); font-family:var(--font-mono); font-size:.92rem; text-align:right; }

/* =========================================================
   CONTACT
========================================================= */
.contact-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; gap:40px; } }
.contact-grid > div{ min-width:0; }

.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; font-size:.88rem; font-weight:600; color:var(--ink-900); transition:transform .15s var(--ease); }
.field:focus-within{ transform:translateY(-2px); }
.field-row{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; min-width:0; }
.field input, .field select, .field textarea{
   width:100%; min-width:0; font-family:var(--font-body); font-size:1rem; padding:11px 12px; border:1.5px solid var(--line);
  border-radius:var(--radius-sm); background:var(--bg); color:var(--ink-700);
}
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.consent-row{ display:flex; align-items:flex-start; gap:10px; font-size:.84rem; font-weight:400; color:var(--ink-500); margin:18px 0; }
.consent-row input{ margin-top:3px; }
.consent-row span{ overflow-wrap:anywhere; }

.contact-direct{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); padding:24px; }
.contact-direct h2{ font-size:1rem; margin-bottom:14px; }
.contact-direct-list{ display:flex; flex-direction:column; gap:10px; font-size:.92rem; }
.contact-direct-list a{ text-decoration:none; font-weight:600; overflow-wrap:anywhere; }
.contact-direct-list a:hover{ text-decoration:underline; }
.form-status{ margin:12px 0 0; font-size:.88rem; font-weight:600; min-height:1.2em; overflow-wrap:anywhere; }
.form-status.is-success{ color:#1E6A34; animation:reveal-up .35s var(--ease); }
.form-status.is-error{ color:var(--danger); animation:reveal-up .35s var(--ease); }

/* Brief pulse when the pricing calculator's output changes, retriggered via
   JS reflow (element.style.animation reset) each time render() runs. */
@keyframes price-pulse{ from{ opacity:.35; transform:translateY(-3px); } to{ opacity:1; transform:translateY(0); } }
.price-pulse{ animation:price-pulse .3s var(--ease); }
.form-confirmation{ margin-top:18px; padding:18px 20px; border:1px solid rgba(30,106,52,.2); border-radius:var(--radius-md); background:rgba(30,106,52,.08); }
.form-confirmation h3{ font-size:1rem; margin-bottom:6px; }
.form-confirmation p{ margin:0; font-size:.9rem; color:var(--ink-700); }

/* =========================================================
   FOOTER
========================================================= */
.site-footer{ background:linear-gradient(175deg, var(--ink-900) 0%, #16181D 62%, #23262C 130%); color:#C7CBCF; padding:64px 0 0; }
.footer-inner{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding-bottom:40px; }
@media (max-width:700px){ .footer-inner{ grid-template-columns:1fr; } }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.footer-brand img{ height:26px; }
.footer-brand span{ font-family:var(--font-display); font-weight:700; color:#fff; font-size:1.05rem; }
.footer-brand-p{ color:#9AA0A6; max-width:32ch; font-size:.9rem; }
.site-footer h3{ color:#fff; font-family:var(--font-mono); font-size:.76rem; text-transform:uppercase; letter-spacing:.08em; margin:0 0 14px; }
.site-footer p, .site-footer a{ color:#9AA0A6; font-size:.9rem; }
.site-footer a{ text-decoration:none; }
.site-footer a:hover{ color:#fff; }
.footer-links{ display:flex; flex-direction:column; gap:8px; }
.footer-social{ display:flex; flex-wrap:wrap; gap:16px; margin-top:16px; }
.footer-social a{ display:inline-flex; align-items:center; gap:8px; color:#9AA0A6; text-decoration:none; transition:color var(--duration-hover) var(--ease); }
.footer-social a:hover{ color:#fff; }
.footer-social svg{ width:20px; height:20px; flex-shrink:0; }
.footer-social-handle{ font-family:var(--font-mono); font-size:.85rem; }
.footer-bottom{ border-top:1px solid #23262D; padding:20px 24px; font-size:.78rem; color:#7A8087; }
.footer-bottom-inner{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }

/* =========================================================
   COOKIE BANNER
========================================================= */
.cookie-banner{
  position:fixed; left:20px; right:20px; bottom:20px; max-width:560px; margin:0 auto;
  background:var(--ink-900); color:#fff; border-radius:var(--radius-md); padding:20px 22px;
  display:flex; align-items:center; gap:18px; flex-wrap:wrap; box-shadow:var(--shadow-pop); z-index:400;
}
.cookie-banner[hidden]{ display:none; }
.cookie-banner p{ margin:0; font-size:.86rem; color:#C7CBCF; flex:1; min-width:220px; }
.cookie-banner a{ color:#fff; text-decoration:underline; }

/* =========================================================
   TOAST (form submit confirmation)
========================================================= */
.toast{
  position:fixed; left:50%; bottom:24px; z-index:500;
  max-width:420px; width:calc(100% - 40px);
  background:var(--ink-900); color:#fff; border-radius:var(--radius-md); padding:18px 20px;
  display:flex; align-items:flex-start; gap:14px; box-shadow:var(--shadow-pop);
  transform:translateX(-50%) translateY(16px); opacity:0; pointer-events:none;
  transition:transform .25s var(--ease), opacity .25s var(--ease);
}
.toast.is-visible{ transform:translateX(-50%) translateY(0); opacity:1; pointer-events:auto; }
.toast-icon{
  flex:none; width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--accent); color:var(--accent-ink); font-weight:700; font-size:.9rem;
}
.toast.is-error .toast-icon{ background:var(--danger); color:#fff; }
.toast-body{ flex:1; min-width:0; }
.toast-title{ margin:0 0 2px; font-weight:600; font-size:.94rem; color:#fff; }
.toast-message{ margin:0; font-size:.86rem; color:#C7CBCF; }
.toast-close{ flex:none; background:none; border:0; color:#C7CBCF; cursor:pointer; font-size:1.2rem; line-height:1; padding:2px 4px; }
.toast-close:hover{ color:#fff; }
@media (max-width:640px){
  .toast{ bottom:16px; width:calc(100% - 32px); padding:16px; }
}

/* =========================================================
   LEGAL PAGES
========================================================= */
.legal-content{ max-width:720px; }
.legal-content h2{ font-size:1.4rem; margin-top:2em; }
.legal-content h2:first-child{ margin-top:0; }
.legal-content p, .legal-content li{ color:var(--ink-700); font-size:.96rem; }
.legal-content ul{ padding-left:1.2em; }
.legal-updated{ font-family:var(--font-mono); font-size:.8rem; color:var(--ink-500); margin-bottom:2em; }

/* =========================================================
   PLACEHOLDER HELPERS
========================================================= */
.placeholder-box{
  border:1.5px dashed var(--ink-500); border-radius:var(--radius-sm); padding:6px 10px;
  font-family:var(--font-mono); font-size:.78rem; color:var(--ink-500); display:inline-block;
}
