:root {
  color-scheme: light;
  --paper: #eef2f3;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #607080;
  --line: #d5dfe5;
  --blue: #146c94;
  --blue-dark: #173c4c;
  --green: #2f6f54;
  --green-soft: #dce9e4;
  --shadow: 0 22px 70px rgba(23, 60, 76, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 4% 12%, rgba(220, 233, 228, 0.92), transparent 30rem),
    radial-gradient(circle at 96% 34%, rgba(210, 229, 238, 0.76), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.license-header,
main,
.license-footer {
  width: min(1180px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.license-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.license-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--blue-dark);
  text-decoration: none;
}

.license-brand > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 24px rgba(23, 60, 76, 0.2);
}

.license-brand strong { font-size: 1.08rem; }

.license-header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.license-header nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.license-header nav a:hover,
.license-header nav a:focus-visible { color: var(--blue-dark); }

.license-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(23, 60, 76, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.license-hero-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(34px, 6vw, 76px);
}

.license-eyebrow {
  margin: 0 0 15px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

.license-hero h1 {
  max-width: 720px;
  margin-bottom: 26px;
  color: var(--blue-dark);
  font-size: clamp(3rem, 5.8vw, 6.1rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.license-hero-copy > p:not(.license-eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

.license-hero-image {
  min-height: 460px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(23, 60, 76, 0.08)),
    url("visma-light-vaktrom-hero.jpg") center / cover no-repeat;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.license-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.license-button:hover,
.license-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 12px 30px rgba(23, 60, 76, 0.18);
}

.license-button.primary {
  background: var(--blue-dark);
  color: #fff;
}

.license-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.form-security-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.version-document main { padding: 28px 0 90px; }

.version-card {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid rgba(23, 60, 76, 0.11);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 68px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.version-card h1 {
  overflow-wrap: anywhere;
  color: var(--blue-dark);
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.version-card h2 {
  margin-top: 36px;
  color: var(--blue-dark);
  font-size: 1.35rem;
}

.version-lead { color: var(--muted); font-size: 1.1rem; }

.version-facts {
  margin: 34px 0;
  border-top: 1px solid var(--line);
}

.version-facts div {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.version-facts dt { color: var(--muted); }
.version-facts dd { margin: 0; font-weight: 800; }

.license-button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--blue-dark);
}

.license-section { padding: 112px 0 12px; }

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.price-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(280px, 0.85fr);
  gap: 18px;
}

.price-card,
.price-calculator,
.purchase-card,
.included-grid article,
.legal-grid article,
.order-result-card {
  border: 1px solid rgba(23, 60, 76, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 44px rgba(23, 60, 76, 0.07);
}

.price-card,
.price-calculator { min-height: 285px; padding: 30px; }

.price-card.featured {
  border-color: rgba(47, 111, 84, 0.38);
  background: linear-gradient(145deg, #fff, #edf5f1);
}

.price-label {
  display: block;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.price-card > strong {
  display: block;
  margin: 16px 0;
  color: var(--blue-dark);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1;
}

.price-card > strong small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.34em;
}

.price-card p,
.purchase-card > p,
.included-grid p,
.legal-grid p,
.scope-note,
.tax-note,
.price-version { color: var(--muted); }

.price-calculator label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(20, 108, 148, 0.16);
}

.price-calculator input { max-width: 110px; }

.price-calculator dl { margin: 22px 0 0; }

.price-calculator dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
}

.price-calculator dt { color: var(--muted); }
.price-calculator dd { margin: 0; color: var(--blue-dark); font-weight: 850; }
.price-calculator .total { margin-top: 5px; border-top: 1px solid var(--line); padding-top: 12px; }
.price-calculator .total dt,
.price-calculator .total dd { color: var(--green); font-weight: 900; }

.tax-note,
.price-version,
.scope-note {
  margin: 22px 0 0;
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 16px;
  font-size: 0.93rem;
}

.price-version { margin-top: 12px; border-left-color: var(--line); }

.muted-section {
  position: relative;
}

.purchase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.purchase-card { padding: clamp(24px, 4vw, 42px); }
.purchase-card.stripe-card { position: sticky; top: 18px; }

.purchase-number,
.included-grid article > span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
}

.purchase-card h3,
.included-grid h3,
.legal-grid h3 {
  margin: 18px 0 10px;
  color: var(--blue-dark);
  font-size: 1.55rem;
}

.purchase-card ul {
  margin: 24px 0;
  padding-left: 20px;
  color: var(--muted);
}

.accept-line {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.accept-line input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.stripe-button {
  width: 100%;
  margin: 8px 0 12px;
  background: #635bff;
  color: #fff;
}

.stripe-button[aria-disabled="true"] { opacity: 0.48; }
.purchase-card > small,
.invoice-form > small { display: block; color: var(--muted); line-height: 1.45; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.form-grid label {
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-grid label > span { color: var(--muted); font-weight: 500; }
.form-grid input,
.form-grid select,
.form-grid textarea { margin-top: 6px; }
.form-grid .wide { grid-column: 1 / -1; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.invoice-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--green-soft);
  padding: 16px;
  color: var(--blue-dark);
}

.invoice-summary strong { font-size: 1.4rem; }
.invoice-summary small { grid-column: 1 / -1; color: var(--muted); }
.invoice-form > .license-button { width: 100%; margin: 8px 0 12px; }
.invoice-form button:disabled { opacity: 0.6; cursor: wait; }

.included-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.included-grid article,
.legal-grid article { padding: 26px; }

.compact-section { max-width: 900px; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.steps li > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 900;
}

.steps strong { color: var(--blue-dark); font-size: 1.2rem; }
.steps p { margin: 4px 0 0; color: var(--muted); }
.legal-section { scroll-margin-top: 18px; }

.license-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 110px;
  border-top: 1px solid var(--line);
  padding: 36px 0 54px;
  color: var(--muted);
}

.license-footer div { display: flex; flex-direction: column; gap: 5px; }
.license-footer strong { color: var(--blue-dark); }

.order-result-shell {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.order-result-card {
  width: min(680px, 100%);
  margin-top: 28px;
  padding: clamp(28px, 6vw, 56px);
}

.order-result-card h1 {
  color: var(--blue-dark);
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.order-result-card > p:not(.license-eyebrow) { color: var(--muted); font-size: 1.08rem; }
.order-result-card .license-button { margin-top: 18px; }
.order-result-card.error { border-color: rgba(168, 58, 50, 0.28); }
.order-note { border-radius: 8px; background: #fff4d8; padding: 12px; color: #6c5210 !important; }

@media (max-width: 920px) {
  .license-hero { grid-template-columns: 1fr; }
  .license-hero-image { min-height: 340px; order: -1; }
  .price-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-calculator { grid-column: 1 / -1; min-height: 0; }
  .purchase-grid { grid-template-columns: 1fr; }
  .purchase-card.stripe-card { position: static; }
}

@media (max-width: 680px) {
  .license-header,
  main,
  .license-footer { width: min(100% - 24px, 1180px); }
  .license-header { min-height: 72px; }
  .license-header nav a:not(:last-child) { display: none; }
  .license-hero { min-height: 0; border-radius: 18px; }
  .license-hero-copy { padding: 28px 22px 34px; }
  .license-hero-image { min-height: 250px; }
  .license-section { padding-top: 78px; }
  .price-layout,
  .included-grid,
  .legal-grid,
  .license-footer { grid-template-columns: 1fr; }
  .price-calculator { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .purchase-card { padding: 24px 18px; }
  .license-footer { gap: 20px; }
  .version-facts div { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .license-button { transition: none; }
}
