/* Verktøy-først-forside: felles mønster for de nasjonale trafikksidene. */
.tool-home-hero{
  position:relative;
  overflow:hidden;
  padding:clamp(44px,6vw,82px) 0 clamp(38px,5vw,68px);
  background:
    radial-gradient(circle at 10% 18%,rgba(255,255,255,.95) 0 2px,transparent 3px),
    radial-gradient(circle at 88% 82%,rgba(255,255,255,.75) 0 2px,transparent 3px),
    linear-gradient(135deg,#f7fafc 0%,#eef4f8 100%);
  color:var(--text);
}
.tool-home-hero::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:7px;
  background:var(--tool-flag,linear-gradient(90deg,#334155,#cbd5e1));
}
.tool-home-hero::after{
  display:none;
}
.tool-home-hero--no{--tool-flag:linear-gradient(90deg,#ba0c2f 0 38%,#fff 38% 43%,#00205b 43% 57%,#fff 57% 62%,#ba0c2f 62%);--tool-accent:#ba0c2f;--tool-glow:rgba(186,12,47,.08)}
.tool-home-hero--dk{--tool-flag:linear-gradient(90deg,#c8102e 0 40%,#fff 40% 46%,#c8102e 46%);--tool-accent:#c8102e;--tool-glow:rgba(200,16,46,.08)}
.tool-home-hero--se{--tool-flag:linear-gradient(90deg,#006aa7 0 38%,#fecc02 38% 45%,#006aa7 45%);--tool-accent:#006aa7;--tool-glow:rgba(0,106,167,.1)}
.tool-home-hero--fi{--tool-flag:linear-gradient(90deg,#fff 0 35%,#003580 35% 45%,#fff 45%);--tool-accent:#003580;--tool-glow:rgba(0,53,128,.09)}
.tool-home-hero--de{--tool-flag:linear-gradient(90deg,#171717 0 33.33%,#dd0000 33.33% 66.66%,#ffcc00 66.66%);--tool-accent:#b40000;--tool-glow:rgba(221,0,0,.07)}
.tool-home-hero--ch{--tool-flag:linear-gradient(90deg,#d52b1e 0 43%,#fff 43% 57%,#d52b1e 57%);--tool-accent:#c51f17;--tool-glow:rgba(213,43,30,.08)}
.tool-home-hero--at{--tool-flag:linear-gradient(90deg,#ed2939 0 33.33%,#fff 33.33% 66.66%,#ed2939 66.66%);--tool-accent:#c91f2f;--tool-glow:rgba(237,41,57,.08)}
.tool-home-hero__grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(390px,1.1fr);
  gap:clamp(34px,5vw,76px);
  align-items:center;
}
.tool-home-hero__copy{min-width:0}
.tool-home-hero .tool-home-hero__copy h1{color:#10233d}
.tool-home-hero .tool-home-hero__copy .tb-hero-eyebrow{color:var(--tool-accent)}
.tool-home-hero .tool-home-hero__copy .tb-hero-lead{color:#40536a}
.tool-home-hero .tool-home-hero__copy .tb-trust-pill{
  color:#34465b;
  background:rgba(255,255,255,.72);
  border-color:rgba(15,23,42,.12);
}
.tool-home-hero h1{
  max-width:760px;
  margin:.45rem 0 1rem;
  font-size:clamp(2.35rem,4.25vw,4rem);
  line-height:.98;
  letter-spacing:-.045em;
  overflow-wrap:anywhere;
  hyphens:auto;
}
.tool-home-hero--de h1{font-size:clamp(2.25rem,3.35vw,3.35rem)}
.tool-home-hero .tb-hero-lead{
  max-width:680px;
  margin:0 0 1.35rem;
  font-size:clamp(1.05rem,1.7vw,1.25rem);
  line-height:1.62;
}
.tool-home-hero .tb-trust-pills{justify-content:flex-start}
.tool-home-hero__link{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  margin-top:1.15rem;
  color:var(--tool-accent);
  font-weight:800;
  text-decoration:none;
}
.tool-home-hero__link:hover{text-decoration:underline;text-underline-offset:4px}
.tool-home-tool{min-width:0}
.tool-home-tool .fk-calc,
.tool-home-tool .fb-calc{
  width:100%;
  max-width:none;
  margin:0;
  border:1px solid rgba(15,23,42,.1);
  box-shadow:0 24px 70px rgba(15,23,42,.14),0 3px 10px rgba(15,23,42,.08);
  background:#fff;
}
.tool-home-tool .fk-calc__head,
.tool-home-tool .fb-calc__head{
  background:var(--tool-accent);
}
.tool-home-tool .fk-calc__head h2,
.tool-home-tool .fb-calc__head h2{font-size:clamp(1.35rem,2.2vw,1.8rem)}
.tool-home-tool .fk-calc__head h2,
.tool-home-tool .fk-calc__head p,
.tool-home-tool .fb-calc__head h2,
.tool-home-tool .fb-calc__head p{color:#fff}
@media (max-width:900px){
  .tool-home-hero__grid{grid-template-columns:1fr;gap:30px}
  .tool-home-hero h1{font-size:clamp(2.25rem,8vw,4rem)}
  .tool-home-tool{max-width:620px;width:100%;margin-inline:auto}
}
@media (max-width:600px){
  .tool-home-hero{padding:38px 0 36px}
  .tool-home-hero__grid{gap:24px}
  .tool-home-hero h1{font-size:clamp(2.15rem,11vw,3.25rem)}
  .tool-home-hero .tb-trust-pills{gap:7px}
  .tool-home-hero .tb-trust-pill{font-size:.75rem}
  .tool-home-tool{margin-inline:0}
  .tool-home-tool .fk-calc,
  .tool-home-tool .fb-calc{border-radius:14px}
}
