/* ==========================================================================
   EasyTax — easytax.no
   Layout and visual language follow pengeporten.no.
   The accounting firm is PengePorten AS, org.nr. 936 025 838.
   ========================================================================== */

@font-face {
  font-family: "General Sans";
  src: url("/assets/general-sans.woff2") format("woff2");
  font-display: swap;
  font-weight: 200 700;
  font-style: normal;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body, h1, h2, h3, p, ul, ol, figure { margin: 0; }

body {
  font-family: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}

button, input, select, textarea { font: inherit; max-width: 100%; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #b56a25;
  outline-offset: 4px;
}

[hidden] { display: none !important; }
::selection { background: #c4e1ef; color: #15394e; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

:root {
  color-scheme: light;
  --ink: #16374d;
  --muted: #526776;
  --blue: #17597d;
  --pale: #eaf2f8;
  --surface: #f4f7fa;
  --line: #d3dfe6;
  --white: #fff;
  --radius: 8px;
  --heading: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  --hero: clamp(2.7rem, 1.65rem + 3.2vw, 5.2rem);
}

.wrap { width: min(1180px, calc(100% - 80px)); margin: auto; }

.skip { position: fixed; top: -100px; left: 16px; background: #fff; padding: 12px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- header */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 28px; }
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -.05em;
}
.brand img { width: 44px; height: 44px; }
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: .15em;
  font-weight: 500;
  text-transform: uppercase;
}
.nav { display: flex; gap: 26px; align-items: center; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav .button { min-height: 44px; padding: 10px 20px; }
.menu {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 4px;
  color: var(--ink);
}

/* --------------------------------------------------------------- buttons */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 4px;
  border: 1px solid var(--blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  transition: background .2s, transform .2s;
}
.button:hover { background: #103e59; transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--blue); }
.button.secondary:hover { background: #dcecf4; }
.button.light { background: #fff; color: var(--ink); border-color: #fff; }
.button.light:hover { background: #eaf2f8; }
.text-link { font-weight: 600; text-underline-offset: 5px; font-size: 15px; }

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------------ hero */
.hero { background: var(--pale); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 72px;
  align-items: center;
  padding-block: 70px 62px;
}
h1 { font-size: var(--hero); font-weight: 500; line-height: 1.06; letter-spacing: -.055em; }
h1 span { color: var(--blue); }
.lead { font-size: 18px; color: var(--muted); max-width: 51ch; margin-block: 24px 30px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.small { font-size: 13px; color: var(--muted); }
.hero .small { margin-top: 18px; }

.hero-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: 0 16px 36px #16374d08;
}
.aside-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.badge {
  background: var(--pale);
  padding: 5px 10px;
  border-radius: 3px;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.sample-title { font-size: 21px; font-weight: 500; margin: 23px 0 4px; }
.sample-price { font-size: 58px; letter-spacing: -.06em; line-height: 1.3; font-weight: 500; }
.sample-price small { font-size: 15px; letter-spacing: 0; font-weight: 400; }
.line-items { list-style: none; padding: 0; margin-top: 22px; }
.line-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.line-items strong { font-weight: 500; white-space: nowrap; }
.aside-bottom {
  background: var(--surface);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  border-radius: 4px;
}
.trust {
  border-top: 1px solid #ccdce7;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  font-size: 14px;
}
.trust span::before { content: "✓"; font-weight: 600; margin-right: 10px; color: var(--blue); }

/* --------------------------------------------------------- capital strip */
.capital-strip { background: #fff; border-bottom: 1px solid var(--line); }
.capital-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
}
.capital-strip strong { font-size: 16px; font-weight: 600; }
.capital-strip p { font-size: 14px; color: var(--muted); margin-top: 3px; }

/* --------------------------------------------------------------- section */
.section { padding-block: 88px; }
.section-title {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 36px;
}
.section-title > p { color: var(--muted); max-width: 45ch; justify-self: end; }
h2 { font-size: var(--heading); line-height: 1.15; letter-spacing: -.04em; font-weight: 500; text-wrap: balance; }
h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; font-weight: 500; }

/* ----------------------------------------------------------- who we help */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
  background: #fff;
}
.card h3 { font-size: 19px; }
.card p { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* -------------------------------------------------------------- services */
.services-section { background: var(--surface); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: #fff; padding: 30px 26px 32px; }
.service h3 { font-size: 18px; }
.service p { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* -------------------------------------------------------------- packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.package {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.package.featured { background: var(--pale); border-color: #b5cfdf; }
.package .eyebrow { margin-bottom: 18px; font-size: 11px; }
.package-desc { color: var(--muted); font-size: 14px; margin: 12px 0 24px; min-height: 46px; }
.package-price { font-size: 45px; letter-spacing: -.05em; line-height: 1.2; }
.package-price small { font-size: 14px; letter-spacing: 0; color: var(--muted); }
.package ul {
  list-style: none;
  padding: 24px 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  display: grid;
  gap: 10px;
}
.package li::before { content: "✓"; margin-right: 10px; color: var(--blue); }
.package .button { margin-top: auto; }
.package .small { font-size: 12px; margin-top: 16px; }
.price-disclaimer { color: var(--muted); font-size: 13px; margin-top: 24px; max-width: 85ch; }

/* ------------------------------------------------------------ calculator */
.calculator-section { background: var(--surface); }
.calculator {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.calc-inputs { padding: 40px; }
.field-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.field-title label { font-weight: 500; }
.number {
  width: 88px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #aabfcf;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}
.range { width: 100%; accent-color: var(--blue); height: 28px; margin: 0; cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.calc-field + .calc-field { margin-top: 32px; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); margin-top: 3px; flex: none; }
.check span { display: block; }
.check small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

.calc-help { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 20px; font-size: 12px; color: var(--muted); }
.calc-help summary { cursor: pointer; font-size: 13px; font-weight: 500; min-height: 35px; }
.calc-help p { padding-top: 10px; }

.calc-result { background: var(--ink); color: #fff; padding: 36px; display: flex; flex-direction: column; }
.calc-result .eyebrow { color: #c2d6e3; margin-bottom: 12px; }
.total { font-size: 62px; line-height: 1.1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.total-currency { font-size: 26px; letter-spacing: 0; }
.total-unit { font-size: 14px; color: #c7dbe6; margin-top: 12px; }
.calc-result .line-items li { border-color: #3b5668; color: #d4e3ec; }
.calc-result .line-items strong { color: #fff; }
.billing { font-size: 12px; color: #c7dbe6; margin: 20px 0 26px; }
.calc-result .button { margin-top: auto; }

/* --------------------------------------------------------------- inquiry */
.inquiry {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  scroll-margin-top: 110px;
}
.inquiry > p { max-width: 70ch; color: var(--muted); margin: 14px 0 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid label { font-size: 14px; display: block; }
.form-grid input,
.form-grid textarea {
  display: block;
  margin-top: 7px;
  border: 1px solid #aabfcf;
  border-radius: 4px;
  width: 100%;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
}
.form-grid textarea { min-height: 110px; resize: vertical; }
.full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.form-summary { font-size: 14px; background: var(--pale); padding: 18px; margin-bottom: 26px; }
.privacy { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; color: var(--muted); }
.privacy summary { cursor: pointer; font-weight: 500; min-height: 40px; }
.privacy p { margin: 0 0 16px; max-width: 80ch; }
.privacy .check { margin-top: 12px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.success-demo { margin-top: 22px; padding: 22px; border: 1px solid #9fbcc8; background: var(--pale); }
.success-demo p { margin-top: 8px; font-size: 14px; }
.success-demo.is-error { background: #fff2ec; border-color: #b35a39; }
.preview-warning {
  padding: 14px 18px;
  background: #fff6e9;
  border-left: 3px solid #b56a25;
  font-size: 13px;
  margin-block: 22px;
  color: #634521;
}
.button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-grid input.is-error, .form-grid textarea.is-error { background: #fff2ec; border-color: #b35a39; }

/* --------------------------------------------------------------- process */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.process li { padding-top: 26px; }
.step { font-size: 35px; color: var(--blue); letter-spacing: -.04em; display: block; margin-bottom: 24px; }
.process h3 { font-size: 20px; margin-bottom: 12px; }
.process p { font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------- the firm */
.firm-section { background: var(--pale); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; }
.split p { color: var(--muted); margin-top: 22px; max-width: 55ch; }
.split .button { margin-top: 28px; }
.firm-list { border-top: 1px solid #bbcfdc; }
.firm-list > div { padding: 24px 0; border-bottom: 1px solid #bbcfdc; }
.firm-list h3 { font-size: 19px; }
.firm-list p { font-size: 15px; margin-top: 8px; }

/* ------------------------------------------------------------------ faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 88px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 23px 30px 23px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; font-size: 22px; top: 16px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 15px; color: var(--muted); padding-bottom: 24px; max-width: 65ch; }

/* -------------------------------------------------------------- contact */
.contact { background: var(--ink); color: #fff; padding-block: 60px; }
.contact .wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.contact p { color: #c7dbe6; margin-top: 16px; }

/* --------------------------------------------------------------- footer */
.footer { padding-block: 42px 26px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; }
.footer strong { font-weight: 500; font-size: 22px; }
.footer p { font-size: 13px; color: var(--muted); margin-top: 12px; }
.footer nav { display: flex; gap: 28px; font-size: 14px; align-items: start; flex-wrap: wrap; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* --------------------------------------------------------- privacy page */
.article-hero { padding-block: 70px; background: var(--pale); }
.error-title { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); max-width: 20ch; }.article-hero h1 { max-width: 850px; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.8rem); }
.article-hero .lead { max-width: 65ch; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 84px; }
.article-body > section + section { margin-top: 48px; }
.article-body h2 { font-size: 31px; margin-bottom: 20px; }
.article-body p { color: var(--muted); margin-top: 18px; }
.article-body ul { padding-left: 24px; color: var(--muted); margin-top: 18px; }
.article-body li { margin-bottom: 12px; }
.aside-box {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 115px;
}
.aside-box h3 { font-size: 21px; }
.aside-box p { font-size: 14px; color: var(--muted); margin: 18px 0; }
.aside-box .button { width: 100%; }

/* -------------------------------------------------------------- responsive */
@media (min-width: 1600px) {
  .wrap { width: min(1280px, calc(100% - 120px)); }
  .hero-grid { padding-block: 90px; }
  .hero-aside { padding: 38px; }
}

@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .nav { gap: 16px; font-size: 12px; }
  .brand { font-size: 20px; }
  .hero-grid { gap: 35px; }
  .packages { gap: 14px; }
  .package { padding: 24px; }
  .split, .faq { gap: 45px; }
  .wrap { width: calc(100% - 48px); }
  .calc-inputs, .calc-result { padding: 28px; }
  .article-layout { gap: 36px; grid-template-columns: 1fr 260px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 85px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 74px; justify-content: space-between; gap: 12px; }
  .brand { font-size: 21px; }
  .brand img { width: 38px; height: 38px; }
  .brand small { font-size: 8.5px; letter-spacing: .1em; }
  .brand-extra { display: none; }
  .menu { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    box-shadow: 0 12px 24px #16374d14;
  }
  .nav.open { display: grid; gap: 0; }
  .nav a { padding: 12px; }
  .nav .button { margin-top: 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-block: 45px 36px; }
  .hero .lead { font-size: 17px; }
  .hero-aside { padding: 25px; }
  .sample-price { font-size: 49px; }
  .trust { flex-wrap: wrap; font-size: 12px; gap: 12px 20px; }
  .capital-strip .wrap { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 20px; }
  .section { padding-block: 56px; }
  .section-title { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .section-title > p { justify-self: start; }
  .cards { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .packages { grid-template-columns: 1fr; gap: 20px; }
  .package-desc { min-height: 0; }
  .package ul { display: grid; grid-template-columns: 1fr; }
  .package-price { font-size: 42px; }
  .calculator { grid-template-columns: 1fr; }
  .calc-inputs, .calc-result { padding: 26px; }
  .total { font-size: 56px; }
  .inquiry { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process li { padding-block: 24px; border-bottom: 1px solid var(--line); }
  .step { margin-bottom: 12px; font-size: 28px; }
  .split, .faq, .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact .wrap { align-items: flex-start; flex-direction: column; gap: 24px; }
  .contact { padding-block: 44px; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .footer nav { gap: 18px; }
  .article-hero { padding-block: 44px; }
  .article-body h2 { font-size: 28px; }
  .aside-box { position: static; }
  .actions { gap: 18px; }
  .form-actions { align-items: flex-start; flex-direction: column; }
}

@media print {
  .header, .contact, .nav, .menu, .inquiry, .hero-aside { display: none; }
  body { color: #000; }
  .section { padding-block: 20px; }
}
