

:root{
  --navy:#1B3A4B;
  --cream:#F7F4EE;
  --brand:#4086D5;
  --brand-dark:#2E66A8;
  --teal:#4A7C82;
  --teal-on-cream:#426F75; /* teal darkened ~10% — passes 4.5:1 on
    cream where plain --teal only reaches 4.25:1 (a Lighthouse-flagged
    contrast failure). Use this instead of --teal for text/links that
    sit on a cream background; --teal itself still passes fine on
    white cards, so it stays as-is for those. */
  --ink:#2D2A26;
  --white:#FFFFFF;
  --line: rgba(27,58,75,0.12);
}

*{margin:0;padding:0;box-sizing:border-box;}

html{-webkit-text-size-adjust:100%;}

body{
  font-family:'Inter',sans-serif;
  background:var(--cream);
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3{
  font-family:'Fraunces',serif;
  color:var(--navy);
  font-weight:600;
  line-height:1.15;
  letter-spacing:-0.01em;
}

a{color:inherit;text-decoration:none;}

/* Focus indicators — deliberately designed rather than left to browser
   defaults, so keyboard users always have a clear, on-brand way to see
   where they are. :focus-visible shows the ring for keyboard navigation
   without flashing it on every mouse click; the plain :focus fallback
   covers older browsers that don't support :focus-visible at all. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible{
  outline:3px solid var(--brand-dark);
  outline-offset:2px;
  border-radius:4px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
summary:focus:not(:focus-visible){
  outline:none;
}
/* Fallback for browsers without :focus-visible support at all */
@supports not selector(:focus-visible){
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus,
  summary:focus{
    outline:3px solid var(--brand-dark);
    outline-offset:2px;
    border-radius:4px;
  }
}

/* Form fields and the FAQ accordion sit on light backgrounds where a
   3px navy-blue ring reads clearly; buttons on dark/colored backgrounds
   get a light ring instead so it doesn't disappear against the fill. */
.btn-primary:focus-visible,
.nav-cta:focus-visible,
.skip-link:focus-visible{
  outline:3px solid var(--cream);
  outline-offset:2px;
}

.wrap{max-width:1140px;margin:0 auto;padding:0 20px;}

.eyebrow{
  font-family:'JetBrains Mono',monospace;
  font-size:12px;
  letter-spacing:0.07em;
  text-transform:uppercase;
  color:var(--brand-dark);
  font-weight:500;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:'';
  width:7px;height:7px;
  background:var(--brand);
  border-radius:50%;
  display:inline-block;
  flex-shrink:0;
}

/* Skip link — visually hidden until it receives keyboard focus, then
   snaps into view at the top-left so keyboard/screen-reader users can
   jump straight past the header to the main content. */
.skip-link{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:100;
  background:var(--navy);
  color:var(--cream);
  padding:12px 20px;
  border-radius:0 0 8px 0;
  font-weight:600;
  font-size:14px;
}
.skip-link:focus{
  left:0;
}

/* HEADER */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(247,244,238,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.logo-link{display:flex; align-items:center;}
.logo-svg{display:block; height:24px; width:auto;}
.navlinks{display:none;}
.nav-cta{
  background:var(--navy); color:var(--cream);
  padding:9px 16px; border-radius:7px;
  font-size:13.5px; font-weight:600;
  transition:background .15s;
  white-space:nowrap;
}
.nav-cta:hover{background:var(--brand-dark);}

/* Mobile hamburger trigger — visible by default (mobile-first base),
   hidden at desktop width where the full nav takes over instead. */
.mobile-nav-trigger{
  display:flex; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px;
  background:transparent; border:none; cursor:pointer;
  padding:0;
}
.mobile-nav-trigger-bar{
  display:block; width:22px; height:2px;
  background:var(--navy); border-radius:2px;
  transition:transform .2s, opacity .2s;
}
.mobile-nav-trigger[aria-expanded="true"] .mobile-nav-trigger-bar:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.mobile-nav-trigger[aria-expanded="true"] .mobile-nav-trigger-bar:nth-child(2){
  opacity:0;
}
.mobile-nav-trigger[aria-expanded="true"] .mobile-nav-trigger-bar:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel — flattened list (no nested dropdown), slides open
   below the sticky header. */
.mobile-nav-panel{
  background:var(--cream);
  border-bottom:1px solid var(--line);
}
.mobile-nav-panel[hidden]{display:none;}
.mobile-nav-panel .wrap{
  display:flex; flex-direction:column;
  padding-top:12px; padding-bottom:18px;
}
.mobile-nav-panel a{
  padding:11px 4px;
  font-size:15px; font-weight:500; color:var(--navy);
}
.mobile-nav-label{
  font-family:'JetBrains Mono',monospace;
  font-size:11px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--teal-on-cream); padding:10px 4px 2px;
}
.mobile-nav-divider{
  height:1px; background:var(--line); margin:10px 0;
}
.mobile-nav-all{
  color:var(--brand-dark) !important; font-weight:600 !important;
}
.mobile-nav-cta{
  margin-top:8px;
  background:var(--brand-dark); color:#fff !important;
  border-radius:8px; text-align:center;
  font-weight:600;
}

/* HERO */
.hero{padding:36px 0 32px;}

/* Audience toggle — lets a visitor say whether they already have a
   site/shop or need a new one. The choice drives which hero copy and
   which service order is shown; see assets/js/motion.js for the swap
   logic and audience-variant/data-order-* attributes below.
   Full-width, equal-split segmented control on mobile (never wraps,
   so it always reads as one connected either/or choice rather than
   two separate floating buttons); becomes an inline auto-width pill
   at tablet width and up, where there's room for it to size to content. */
.audience-toggle{
  display:flex;
  width:100%;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:30px;
  padding:4px;
  margin-bottom:20px;
  gap:4px;
}
.toggle-btn{
  flex:1 1 0;
  font-family:'Inter',sans-serif;
  font-size:12.5px;
  font-weight:600;
  color:var(--navy);
  background:transparent;
  border:none;
  border-radius:24px;
  padding:10px 10px;
  cursor:pointer;
  transition:background .15s, color .15s;
  white-space:normal;
  line-height:1.25;
  text-align:center;
}
.toggle-btn.is-active{
  background:var(--navy);
  color:var(--cream);
}
.toggle-btn:not(.is-active):hover{
  background:var(--cream);
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:36px;
  align-items:center;
}
.audience-variant{
  display:grid;
  grid-template-columns:1fr;
  gap:36px;
  align-items:center;
}
.audience-variant[hidden]{display:none;}
.hero h1{
  font-size:30px;
  margin:14px 0 16px;
}
.hero h1 em{
  font-style:italic;
  color:var(--brand);
  font-weight:500;
}
.hero p.lead{
  font-size:16px;
  color:var(--ink);
  opacity:0.82;
  max-width:480px;
  margin-bottom:24px;
}
.hero-ctas{display:flex; gap:12px; flex-wrap:wrap;}
.btn-primary{
  background:var(--brand-dark); color:#fff;
  padding:13px 22px; border-radius:8px;
  font-weight:600; font-size:14.5px;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform .15s, background .15s;
  border:none; cursor:pointer;
}
.btn-primary:hover{background:#1F5A96; transform:translateY(-1px);}
.btn-secondary{
  border:1.5px solid var(--navy); color:var(--navy);
  padding:12px 20px; border-radius:8px;
  font-weight:600; font-size:14.5px;
  transition:background .15s;
}
.btn-secondary:hover{background:rgba(27,58,75,0.06);}
.hero-reassurance{
  margin-top:14px;
  font-size:13px;
  color:var(--teal-on-cream);
}

/* FUNNEL SIGNATURE DIAGRAM */
.funnel-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px 18px 18px;
}
.funnel-card .funnel-label,
.build-card .funnel-label{
  font-family:'JetBrains Mono',monospace;
  font-size:11px; letter-spacing:0.05em; text-transform:uppercase;
  color:var(--teal); margin-bottom:14px; display:block;
}

/* Matching card for the "need a new site" hero variant, reusing the
   same visual treatment as .funnel-card so the swap feels seamless. */
.build-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px 18px 18px;
}
.build-card-note{
  margin-top:16px;
  font-size:12.5px;
  color:var(--teal);
  line-height:1.5;
}
.funnel-stage{
  display:flex; align-items:center; gap:14px;
  padding:11px 0;
  border-bottom:1px dashed var(--line);
  position:relative;
}
.funnel-stage:last-child{border-bottom:none;}
.funnel-bar{
  height:8px; border-radius:5px;
  background:var(--navy);
  position:relative;
}
.funnel-stage .meta{
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline;
  width:100%; gap:4px 0;
}
.funnel-stage .name{font-size:13px; font-weight:600; color:var(--navy);}
.funnel-stage .pct{font-family:'JetBrains Mono',monospace; font-size:12.5px; color:var(--teal);}
.leak-badge{
  position:absolute;
  bottom:-4px;
  font-family:'JetBrains Mono',monospace;
  font-size:10px;
  font-weight:600;
  color:var(--brand-dark);
  background:rgba(64,134,213,0.14);
  padding:2px 7px;
  border-radius:4px;
  margin-left:8px;
  display:inline-flex;
  align-items:center;
  gap:5px;
  box-shadow:0 0 0 0 rgba(64,134,213,0);
  white-space:nowrap;
  z-index:2;
}
.leak-badge::before{
  content:'';
  width:5px; height:5px; border-radius:50%;
  background:var(--brand);
  flex-shrink:0;
}
.funnel-bars-row{display:flex; flex-direction:column; gap:0;}
.bar-wrap{width:100%; position:relative;}

/* SERVICES PREVIEW STRIP — near top fold */
.services-preview{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:16px 0;
  background:var(--white);
}
.services-preview-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:8px;
}
.preview-chip{
  display:flex; flex-direction:column; gap:4px;
  padding:12px 13px;
  border-radius:10px;
  border:1px solid transparent;
  transition:border-color .15s, background .15s;
}
.preview-chip:hover{
  border-color:var(--line);
  background:var(--cream);
}
.preview-icon{
  font-family:'JetBrains Mono',monospace;
  font-size:10px; font-weight:500; letter-spacing:0.04em;
  color:var(--brand-dark);
}
.preview-name{
  font-family:'Fraunces',serif; font-weight:500; font-size:15px;
  color:var(--navy);
}
.preview-desc{
  font-size:12px; color:var(--ink); opacity:0.65;
}

/* SERVICES — alternating rows */
.services{padding:56px 0;}
.section-head{max-width:600px; margin-bottom:36px;}
.section-head h2{font-size:26px; margin-top:12px;}
.section-head p{color:var(--ink); opacity:0.8; font-size:15.5px; margin-top:12px;}

/* Flex container so the rows themselves can be reordered via the
   audience toggle (JS sets each row's `order` style property) without
   touching each row's own internal text/visual left-right layout. */
.services-rows{display:flex; flex-direction:column;}

.service-row{
  display:grid;
  grid-template-columns:1fr;
  gap:28px;
  align-items:center;
  padding:36px 0;
  border-top:1px solid var(--line);
}
.service-row.reverse .service-visual{order:initial;}
.service-row.reverse .service-text{order:initial;}

.service-text .num{
  font-family:'JetBrains Mono',monospace;
  font-size:12.5px; color:var(--brand-dark); margin-bottom:12px; display:block;
}
.service-text h3{font-size:21px; margin-bottom:12px;}
.service-text p{font-size:15px; opacity:0.82; margin-bottom:16px; max-width:460px;}
.service-text ul{list-style:none; margin-top:14px;}
.service-text li{
  font-size:14px; padding:6px 0 6px 20px; position:relative; opacity:0.85;
}
.service-text li::before{
  content:'';
  width:6px; height:6px; border-radius:50%;
  background:var(--brand);
  position:absolute; left:0; top:13px;
}

.service-visual{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  height:240px;
  display:flex; align-items:center; justify-content:center;
  padding:22px;
}

/* simple inline visuals per service */
.viz-ecom{width:100%; height:100%; position:relative;}
.viz-cards{display:flex; gap:12px; width:100%;}
.viz-card{
  flex:1; background:var(--cream); border:1px solid var(--line); border-radius:10px;
  height:150px; padding:12px; display:flex; flex-direction:column; gap:7px;
}
.viz-card .ph-img{background:rgba(27,58,75,0.08); border-radius:6px; height:58px;}
.viz-card .ph-line{background:rgba(27,58,75,0.12); border-radius:3px; height:8px;}
.viz-card .ph-line.short{width:60%;}
.viz-card .ph-price{
  font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--brand-dark); font-weight:500;
}

.viz-cursor-path{width:100%;}
.viz-heatmap{
  width:100%; display:grid; grid-template-columns:repeat(6,1fr); gap:5px;
}
.heat-cell{aspect-ratio:1; border-radius:4px;}

.viz-tracking{width:100%;}
.track-row{
  display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--line);
}
.track-row:last-child{border-bottom:none;}
.track-dot{width:8px;height:8px;border-radius:50%; flex-shrink:0;}
.track-dot.ok{background:var(--teal);}
.track-dot.warn{background:var(--brand);}
.track-name{font-size:12.5px; font-weight:500; flex:1;}
.track-status{font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--teal); white-space:nowrap;}
.track-status.warn{color:var(--brand-dark);}

.viz-browser{width:100%; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--white);}
.browser-bar{
  display:flex; align-items:center; gap:6px;
  padding:9px 11px; background:var(--cream); border-bottom:1px solid var(--line);
}
.browser-dot{
  width:7px; height:7px; border-radius:50%; background:rgba(27,58,75,0.18); flex-shrink:0;
}
.browser-url{
  margin-left:8px; font-family:'JetBrains Mono',monospace; font-size:10.5px;
  color:var(--teal); background:var(--white); border:1px solid var(--line);
  border-radius:5px; padding:3px 9px; flex:1; max-width:150px;
}
.browser-body{padding:17px 18px;}
.browser-body--shop{padding:12px;}
.browser-body--shop .viz-cards{width:100%;}
.browser-body--shop .viz-card{height:118px;}
.browser-body--shop .viz-card .ph-img{height:44px;}

.browser-body--mockup{display:flex; flex-direction:column; gap:11px;}
.browser-body--mockup .mockup-line{height:14px;}
.browser-body--mockup .mockup-banner{height:38px;}
.browser-body--mockup .mockup-box{height:24px;}

.viz-structure{width:100%; display:flex; flex-direction:column; gap:10px;}
.structure-block{
  background:rgba(27,58,75,0.08); border-radius:6px; height:34px;
}
.structure-block.wide{height:20px;}
.structure-block.wide.short{width:55%;}
.structure-block.tall{height:64px; flex:1;}
.structure-row{display:flex; gap:10px;}
.structure-row .structure-block{flex:1;}

/* PROCESS */
.process{padding:48px 0; background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.process-grid{
  display:grid; grid-template-columns:1fr; gap:24px;
}
.process-step{position:relative;}
.step-num{
  font-family:'JetBrains Mono',monospace; font-size:12.5px; color:var(--brand-dark);
  display:block; margin-bottom:10px;
}
.process-step h3{font-size:18px; margin-bottom:7px;}
.process-step p{font-size:14px; opacity:0.78; line-height:1.6;}

/* FAQ */
.faq{padding:48px 0;}
.faq-list{max-width:760px;}
.faq-item{
  border-bottom:1px solid var(--line);
  padding:16px 0;
}
.faq-item summary{
  font-family:'Fraunces',serif; font-weight:500; font-size:15.5px;
  color:var(--navy); cursor:pointer;
  list-style:none;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{
  content:'+';
  font-family:'Inter',sans-serif; font-size:19px; color:var(--brand);
  flex-shrink:0; transition:transform .2s;
}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item p{
  font-size:14px; opacity:0.8; margin-top:10px; max-width:620px;
}

/* CASE STUDIES */
.cases{background:var(--navy); padding:56px 0; color:var(--cream);}
.cases .section-head h2{color:var(--cream);}
.cases .section-head p{color:var(--cream); opacity:0.7;}
.cases .eyebrow{color:#9CC4EC;}
.case-grid{
  display:grid; grid-template-columns:1fr; gap:16px;
}
.case-card{
  background:rgba(247,244,238,0.06);
  border:1px solid rgba(247,244,238,0.14);
  border-radius:14px;
  padding:22px 20px;
}
.case-logo{
  font-family:'Fraunces',serif; font-weight:700; font-size:18px;
  margin-bottom:16px; color:var(--cream);
}
.case-card .case-tag{
  font-family:'JetBrains Mono',monospace; font-size:10.5px; letter-spacing:0.05em;
  color:#9CC4EC; text-transform:uppercase; margin-bottom:9px; display:block;
}
.case-card p{font-size:14px; opacity:0.85; line-height:1.65;}
.case-card.placeholder{
  border-style:dashed;
  opacity:0.55;
}

/* ABOUT */
.about{padding:56px 0;}
.about-grid{
  display:grid; grid-template-columns:1fr; gap:0;
}
.about-header{
  display:flex; align-items:center; gap:16px; margin-bottom:24px;
}
.about-photo{
  width:72px; height:72px; flex-shrink:0;
  border-radius:50%;
  border:1px solid var(--line);
  object-fit:cover;
  object-position:center top;
  display:block;
}
.about-text h2{font-size:24px; margin-bottom:0;}
.about-text p{font-size:15px; opacity:0.85; margin-bottom:14px; max-width:560px;}
.about-signoff{
  margin-top:22px; font-family:'Fraunces',serif; font-style:italic; font-size:16.5px; color:var(--navy);
}

/* CONTACT */
.contact{
  background:rgba(74,124,130,0.07);
  padding:56px 0;
  border-top:1px solid var(--line);
}
.contact-grid{
  display:grid; grid-template-columns:1fr; gap:36px;
}
.contact-info h2{font-size:25px; margin-bottom:14px;}
.contact-info p{font-size:15px; opacity:0.82; margin-bottom:22px; max-width:420px;}
.contact-method{
  display:flex; align-items:center; gap:13px;
  padding:13px 0; border-top:1px solid var(--line);
}
.contact-method:last-child{border-bottom:1px solid var(--line);}
.contact-method .ic{
  width:34px; height:34px; border-radius:9px;
  background:var(--navy); color:var(--cream);
  display:flex; align-items:center; justify-content:center;
  font-size:15px; flex-shrink:0;
}
.contact-method a{font-weight:600; font-size:14.5px; color:var(--navy);}
.contact-method .sub{font-size:12px; color:var(--teal-on-cream); display:block; margin-top:1px;}

.form-card{
  background:var(--white); border:1px solid var(--line); border-radius:16px;
  padding:24px;
}
.form-row{margin-bottom:16px;}
.form-row label{
  display:block; font-size:12.5px; font-weight:600; color:var(--navy); margin-bottom:6px;
}
.form-row input, .form-row select, .form-row textarea{
  width:100%; padding:11px 13px;
  border:1px solid var(--line); border-radius:8px;
  font-family:'Inter',sans-serif; font-size:14.5px;
  background:var(--cream);
}
.form-row textarea{resize:vertical; min-height:90px;}
.form-grid-2{display:grid; grid-template-columns:1fr; gap:16px;}

/* Honeypot — visually hidden from real visitors, still present in the DOM for bots to fill */
.form-row--honeypot{
  position:absolute;
  left:-9999px;
  width:1px; height:1px;
  overflow:hidden;
}

.form-feedback{
  border-radius:10px;
  padding:14px 16px;
  margin-bottom:18px;
  font-size:14px;
}
.form-feedback strong{
  display:block; margin-bottom:4px; font-size:14.5px;
}
.form-feedback p{margin:0; opacity:0.85;}
.form-feedback--success{
  background:rgba(64,134,213,0.1);
  color:var(--brand-dark);
  border:1px solid rgba(64,134,213,0.25);
}
.form-feedback--success strong{color:var(--brand-dark);}
.form-feedback--error{
  background:rgba(226,75,74,0.08);
  color:#A32D2D;
  border:1px solid rgba(226,75,74,0.25);
}
.form-feedback--error strong{color:#A32D2D;}
.form-feedback--error a{text-decoration:underline;}

/* SUB-PAGE COMPONENTS — used by /ydelser/ and the 4 service pages */
.page-hero{padding:48px 0 36px; border-bottom:1px solid var(--line);}
.breadcrumb{
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:var(--teal-on-cream); margin-bottom:18px;
  flex-wrap:wrap;
}
.breadcrumb a{color:var(--teal-on-cream); text-decoration:underline;}
.breadcrumb a:hover{color:var(--brand-dark);}
.breadcrumb span:not([aria-hidden]){color:var(--ink); opacity:0.7;}
.page-hero h1{font-size:32px; margin:14px 0 16px;}
.page-hero-lead{font-size:16px; color:var(--ink); opacity:0.82; max-width:560px; margin-bottom:24px;}

/* 2-column hero variant used by individual service pages (text +
   signature visual), distinct from the simpler single-column hero
   used on the /ydelser/ overview page. */
.page-hero-grid{
  display:grid; grid-template-columns:1fr; gap:32px; align-items:center;
}

.page-explainer{padding:48px 0; border-bottom:1px solid var(--line);}
.page-explainer-grid{
  display:grid; grid-template-columns:1fr; gap:32px; align-items:start;
}
.page-explainer h2{font-size:26px; margin:12px 0 16px;}
.page-explainer p{font-size:15px; color:var(--ink); opacity:0.85; margin-bottom:14px; line-height:1.65;}
.page-explainer p em{font-style:italic; color:var(--brand-dark); font-weight:500;}
.page-explainer-visual{
  background:var(--white); border:1px solid var(--line); border-radius:14px;
  padding:20px;
}
.page-explainer-visual-caption{
  margin-top:14px; font-size:13px; color:var(--teal); line-height:1.5;
}

/* Small tools-mention section — frames tool flexibility ("I adapt to
   what you have") rather than presenting a fixed required stack. */
.page-tools{padding:32px 0; border-bottom:1px solid var(--line);}
.tools-card{
  background:var(--white); border:1px solid var(--line); border-radius:16px;
  padding:24px 22px;
}
.tools-card h2{font-size:20px; margin:10px 0 12px;}
.tools-card p{font-size:14.5px; color:var(--ink); opacity:0.85; line-height:1.6; margin-bottom:16px;}
.tools-grid{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px;}
.tool-pill{
  font-family:'JetBrains Mono',monospace; font-size:12.5px; font-weight:500;
  color:var(--navy); background:var(--cream);
  border:1px solid var(--line); border-radius:20px;
  padding:6px 14px;
}
.tools-note{font-size:12.5px; color:var(--teal); margin-bottom:0 !important;}

.page-included{padding:48px 0;}
.included-grid{
  display:grid; grid-template-columns:1fr; gap:16px;
}
.included-card{
  background:var(--white); border:1px solid var(--line); border-radius:14px;
  padding:22px 20px;
}
.included-card h3{font-size:17px; margin-bottom:10px;}
.included-card p{font-size:14px; color:var(--ink); opacity:0.82; line-height:1.6;}

/* Engagement model section ("how we can work together" on the CRO page) */
.page-engagement{padding:48px 0; background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.engagement-grid{
  display:grid; grid-template-columns:1fr; gap:16px; margin-bottom:20px;
}
.engagement-card{
  background:var(--cream); border:1px solid var(--line); border-radius:14px;
  padding:22px 20px;
}
.engagement-card h3{font-size:18px; margin-bottom:10px;}
.engagement-card p{font-size:14.5px; color:var(--ink); opacity:0.85; line-height:1.6;}
.engagement-note{
  font-size:13.5px; color:var(--teal); text-align:center; max-width:560px; margin:0 auto;
}

.service-cards-section{padding:48px 0;}
.service-cards-grid{
  display:grid; grid-template-columns:1fr; gap:16px;
}
.service-card{
  display:block;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:14px;
  padding:24px 22px;
  transition:border-color .15s, transform .15s;
}
.service-card:hover{
  border-color:var(--brand-dark);
  transform:translateY(-2px);
}
.service-card-num{
  font-family:'JetBrains Mono',monospace;
  font-size:12.5px; color:var(--brand-dark);
  display:block; margin-bottom:10px;
}
.service-card h2{font-size:20px; margin-bottom:10px;}
.service-card p{font-size:14.5px; color:var(--ink); opacity:0.82; margin-bottom:14px;}
.service-card-link{
  font-size:14px; font-weight:600; color:var(--brand-dark);
}

.page-cta-section{
  padding:48px 0;
  background:rgba(74,124,130,0.07);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  text-align:center;
}
.page-cta-section h2{font-size:24px; margin-bottom:12px;}
.page-cta-section p{
  font-size:15px; color:var(--ink); opacity:0.82;
  max-width:480px; margin:0 auto 22px;
}

/* "Read more" teaser link added to homepage service blocks, pointing to
   the matching deep-dive page under /ydelser/. */
.service-text .read-more-link{
  display:inline-flex; align-items:center; gap:6px;
  margin-top:14px;
  font-size:14px; font-weight:600; color:var(--brand-dark);
}

/* FOOTER */
footer{padding:28px 0; border-top:1px solid var(--line);}
.footer-grid{display:flex; flex-direction:column; gap:6px; font-size:13px; opacity:0.7;}

/* ===== TABLET (≥768px) ===== */
@media (min-width:768px){
  .wrap{padding:0 32px;}
  .nav{height:76px;}
  .logo-svg{height:28px;}
  .nav-cta{padding:11px 22px; font-size:14.5px;}

  .hero{padding:64px 0 44px;}
  .audience-toggle{display:inline-flex; width:auto;}
  .toggle-btn{flex:0 0 auto; white-space:nowrap; padding:9px 14px;}
  .hero h1{font-size:42px; margin:16px 0 20px;}
  .hero p.lead{font-size:17.5px;}
  .btn-primary, .btn-secondary{padding:14px 26px; font-size:15px;}

  .funnel-card, .build-card{padding:30px 28px 24px;}

  .page-hero{padding:64px 0 44px;}
  .page-hero h1{font-size:42px;}
  .page-hero-lead{font-size:17px;}
  .page-explainer{padding:70px 0;}
  .page-explainer h2{font-size:30px;}
  .page-tools{padding:48px 0;}
  .tools-card{padding:32px 36px;}
  .engagement-grid{grid-template-columns:repeat(2,1fr); gap:20px;}
  .page-engagement{padding:70px 0;}
  .included-grid{grid-template-columns:repeat(2,1fr); gap:20px;}
  .page-included{padding:70px 0;}
  .service-cards-grid{grid-template-columns:repeat(2,1fr); gap:20px;}
  .service-cards-section{padding:70px 0;}
  .page-cta-section{padding:64px 0;}
  .page-cta-section h2{font-size:28px;}

  .services-preview-grid{grid-template-columns:repeat(4,1fr); gap:12px;}

  .services{padding:80px 0;}
  .section-head{margin-bottom:54px;}
  .section-head h2{font-size:32px;}

  .service-row{grid-template-columns:1fr 1fr; gap:48px; padding:46px 0;}
  .service-row.reverse .service-visual{order:-1;}
  .service-row.reverse .service-text{order:initial;}
  .service-text h3{font-size:24px;}
  .service-visual{height:260px;}

  .process{padding:70px 0;}
  .process-grid{grid-template-columns:repeat(2,1fr); gap:28px;}

  .faq{padding:70px 0;}

  .cases{padding:80px 0;}
  .case-grid{grid-template-columns:repeat(2,1fr); gap:20px;}

  .about{padding:80px 0;}
  .about-photo{width:88px; height:88px;}
  .about-text h2{font-size:28px;}

  .contact{padding:80px 0;}
  .contact-grid{grid-template-columns:0.9fr 1.1fr; gap:56px;}
  .contact-info h2{font-size:30px;}
  .form-card{padding:32px;}
  .form-grid-2{grid-template-columns:1fr 1fr;}

  .footer-grid{flex-direction:row; justify-content:space-between; align-items:center;}
}

/* ===== DESKTOP (≥1024px) ===== */
@media (min-width:1024px){
  .navlinks{display:flex; align-items:center; gap:36px; font-size:14.5px; font-weight:500;}
  .navlinks a{color:var(--navy); opacity:0.75; transition:opacity .15s;}
  .navlinks a:hover{opacity:1;}
  .logo-svg{height:30px;}
  .mobile-nav-trigger, .mobile-nav-panel{display:none;}

  .nav-dropdown{position:relative;}
  .nav-dropdown-trigger{
    display:flex; align-items:center; gap:6px;
    background:transparent; border:none; cursor:pointer;
    font-family:'Inter',sans-serif; font-size:14.5px; font-weight:500;
    color:var(--navy); opacity:0.75; padding:0;
    transition:opacity .15s;
  }
  .nav-dropdown-trigger:hover,
  .nav-dropdown-trigger[aria-expanded="true"]{opacity:1;}
  .nav-dropdown-caret{transition:transform .2s;}
  .nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-caret{transform:rotate(180deg);}

  .nav-dropdown-menu{
    position:absolute; top:calc(100% + 14px); left:50%;
    transform:translateX(-50%);
    background:var(--white);
    border:1px solid var(--line);
    border-radius:12px;
    padding:8px;
    min-width:220px;
    box-shadow:0 12px 32px rgba(27,58,75,0.14);
    display:flex; flex-direction:column;
    opacity:0; visibility:hidden;
    pointer-events:none;
  }
  .nav-dropdown-menu a{
    padding:9px 12px; border-radius:7px;
    font-size:14px; font-weight:500; color:var(--navy); opacity:1;
    white-space:nowrap;
  }
  .nav-dropdown-menu a:hover{background:var(--cream);}
  .nav-dropdown-all{
    margin-top:4px; border-top:1px solid var(--line);
    color:var(--brand-dark) !important; font-weight:600;
  }

  .hero{padding:80px 0 50px;}
  .audience-variant{grid-template-columns:1.05fr 0.95fr; gap:64px;}
  .hero h1{font-size:50px; margin:18px 0 22px;}
  .hero p.lead{font-size:18.5px; margin-bottom:34px;}

  .funnel-card, .build-card{padding:32px 30px 26px;}

  .page-hero h1{font-size:56px;}
  .page-hero-lead{font-size:18px;}
  .page-hero-grid{grid-template-columns:1.05fr 0.95fr; gap:64px;}
  .page-explainer-grid{grid-template-columns:1.1fr 0.9fr; gap:56px;}
  .page-explainer h2{font-size:34px;}
  .service-cards-grid{grid-template-columns:repeat(4,1fr); gap:22px;}

  .services{padding:100px 0;}
  .section-head{margin-bottom:70px;}
  .section-head h2{font-size:36px;}
  .section-head p{font-size:16.5px;}

  .service-row{gap:60px; padding:54px 0;}
  .service-visual{height:280px;}

  .case-grid{grid-template-columns:repeat(3,1fr); gap:24px;}

  .about-grid{gap:70px;}
  .about-photo{width:96px; height:96px;}
}
