/* Falu Börs & Finans AB — site stylesheet.
   One file, no framework, no JavaScript. A light, calm layout in the spirit
   of Apple's product pages: system typeface, large tight headlines, generous
   white space, soft grey panels with large radii, a frosted header and
   pill-shaped buttons. Navy and a kurbits red carry the brand; blue is for
   links and actions. The logo is an SVG file; no web fonts are loaded. */

:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --tint: #f5f5f7;
  --white: #fff;
  --accent: #0066cc;
  --accent-hover: #0057ad;
  --kurbits: #b4372b;

  --navy-950: #071426;
  --navy-900: #0b1d36;
  --on-dark: #f5f5f7;
  --on-dark-muted: #a9b4c4;
  --accent-on-dark: #5eaeff;
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: clamp(1.25rem, 2.4vw, 1.75rem);
  --focus: var(--accent);
}

/* ── Base ─────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--white);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw + 1rem, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.875rem, 2.6vw + 1rem, 3rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

h4 {
  font-size: 1.0625rem;
  line-height: 1.35;
}

p,
ul,
ol,
dl,
address {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

address {
  font-style: normal;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus {
  outline: none;
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.icon {
  flex: none;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.3em;
  vertical-align: -0.04em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1.1rem;
  background: var(--text);
  color: var(--white);
  font-weight: 600;
  border-radius: 999px;
}

.skip-link:focus {
  top: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Header: frosted, sticky ──────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand lang" "nav nav";
  align-items: center;
  column-gap: 0.75rem;
  padding-block: 0.5rem 0.125rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  text-decoration: none;
  justify-self: start;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 14.5rem;
  max-width: 100%;
  height: auto;
}

@media (min-width: 52rem) {
  .brand__logo {
    width: 15.5rem;
  }
}

.site-footer .brand__logo {
  width: 12.5rem;
}

.site-nav {
  grid-area: nav;
}

.site-nav ul,
.lang ul,
.site-footer__links,
.areas,
.cards,
.linklist {
  list-style: none;
  padding: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-size: 0.875rem;
  color: var(--text);
  opacity: 0.8;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  opacity: 1;
  font-weight: 600;
}

/* Language switcher as a segmented control. */
.lang {
  grid-area: lang;
}

.lang ul {
  display: flex;
  align-items: center;
  padding: 3px;
  background: #e8e8ed;
  border-radius: 999px;
}

.lang__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.875rem;
  min-width: 2.75rem;
  padding-inline: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
}

a.lang__item:hover {
  color: var(--text);
  text-decoration: none;
}

.lang__item[aria-current="true"] {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.lang__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 52rem) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav lang";
    column-gap: 2rem;
    padding-block: 0.375rem;
  }

  .site-nav ul {
    justify-content: center;
    column-gap: 2.25rem;
  }

  .lang__code {
    display: none;
  }

  .lang__name {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .lang__item {
    font-weight: 500;
  }
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3rem, 7vw, 5.5rem);
  text-align: center;
  background: radial-gradient(90% 70% at 50% 0%, #eef3fb 0%, var(--white) 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 5rem);
}

.hero h1 {
  font-size: clamp(2.75rem, 6.5vw + 1rem, 5.5rem);
  letter-spacing: -0.04em;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--kurbits);
}

.lead {
  max-width: 40rem;
  margin-top: 1.25rem;
  font-size: clamp(1.1875rem, 0.8vw + 1rem, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.016em;
  color: var(--muted);
}

.hero .lead,
.pagehead .lead {
  margin-inline: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero .actions,
.pagehead .actions {
  justify-content: center;
}

/* ── Buttons and links ────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.65rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--solid,
.btn--dark {
  background: var(--accent);
  color: var(--white);
}

.btn--solid:hover,
.btn--dark:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn--ghost,
.btn--outline {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost:hover,
.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
}

.more {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
}

.more .icon {
  width: 0.9em;
  height: 0.9em;
}

/* ── Facts ────────────────────────────────────────────────────── */

.factcard {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 18px 48px rgba(11, 29, 54, 0.08);
  text-align: left;
}

.factcard__title,
.panel__title,
.label,
.site-footer__heading {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--muted);
}

.factcard__title {
  margin-bottom: 0.5rem;
}

.facts__row {
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}

.facts dd {
  margin: 0.15rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.014em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.facts__row:last-child {
  padding-bottom: 0;
}

/* The hero's company details read as a row of specs on wide screens. */
@media (min-width: 58rem) {
  .factcard .facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .factcard .facts__row {
    padding: 1rem 0 0;
  }
}

.facts--compact .facts__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--tint);
  border-radius: var(--radius);
}

.panel__title {
  margin-bottom: 0.5rem;
}

.panel--white {
  background: var(--white);
}

.prose__after {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.section--tint .card,
.section--flush .card {
  background: var(--tint);
}

.section--tint .note {
  background: var(--white);
}

.section--tint .linklist {
  background: var(--white);
}

.panel > .facts:first-child > .facts__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.label {
  margin-bottom: 0.5rem;
}

/* ── Sections ─────────────────────────────────────────────────── */

.section {
  padding-block: var(--section);
}

.section--tint {
  background: var(--tint);
}

.section__head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}

.section__foot {
  max-width: 42rem;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  text-align: center;
  color: var(--muted);
}

.section__intro {
  margin-top: 1.1rem;
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--muted);
}

.split,
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.split > div > h2 + p,
.section .wrap > h2 + .cards {
  margin-top: 1.25rem;
}

.section .wrap > h2 {
  text-align: center;
}

.section .wrap > h2 + .cards {
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 58rem) {
  .split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }

  .columns {
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 1fr);
    align-items: start;
  }

  .panel--sticky {
    position: sticky;
    top: 5rem;
  }
}

/* Focus areas: a bento grid of soft cards. */

.areas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 44rem) {
  .areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.area {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--tint);
  border-radius: var(--radius);
}

.area__no {
  display: block;
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--kurbits);
}

.area h3 {
  font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem);
  letter-spacing: -0.024em;
}

.area p {
  margin-top: 0.75rem;
  color: var(--muted);
}

/* The product showcase on the home page: one dark rounded tile. */

.section--showcase {
  padding-block: 0;
  margin-bottom: var(--section);
}

/* The section right after the hero needs no extra top space. */
.section--flush {
  padding-top: clamp(1rem, 3vw, 2rem);
}

@media (min-width: 58rem) {
  .areas--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.section--showcase > .split {
  --focus: var(--accent-on-dark);
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  padding: clamp(2.25rem, 6vw, 4.5rem);
  color: var(--on-dark-muted);
  background:
    radial-gradient(100% 120% at 100% 0%, #16345e 0%, var(--navy-900) 60%);
  border-radius: calc(var(--radius) * 1.3);
}

@media (min-width: 72rem) {
  .section--showcase > .split {
    width: calc(100% - 2 * var(--gutter));
  }
}

.section--showcase .eyebrow {
  color: var(--accent-on-dark);
}

.section--showcase h2,
.section--showcase .facts dd {
  color: var(--white);
}

.section--showcase .facts dt {
  color: var(--on-dark-muted);
}

.section--showcase .panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-on-dark);
}

.section--showcase .facts__row {
  border-top-color: var(--line-on-dark);
}

.section--showcase .btn--dark {
  background: var(--white);
  color: var(--navy-900);
}

.section--showcase .btn--dark:hover {
  background: #e3e8ef;
}

.section--showcase .btn--outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.section--showcase .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* Contact */

.contactlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.contactlist > div {
  padding: 1.5rem 1.75rem;
  background: var(--tint);
  border-radius: var(--radius);
}

.contactlist__email,
.contactgrid__email {
  font-size: clamp(1.25rem, 1.6vw + 0.8rem, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contactgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.contactgrid__item {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--tint);
  border-radius: var(--radius);
}

@media (min-width: 58rem) {
  .contactgrid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.contactgrid__note {
  margin-top: 1rem;
  color: var(--muted);
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 52rem) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--white);
  border-radius: var(--radius);
}

.tag {
  align-self: flex-start;
  margin-bottom: 1.25rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--kurbits);
  background: #fbeeec;
  border-radius: 999px;
}

.card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.024em;
}

.card p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.card .card__link {
  margin-top: auto;
  padding-top: 1.5rem;
  color: inherit;
  font-weight: 500;
}

/* ── Page heads and prose ─────────────────────────────────────── */

.pagehead {
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
}

.pagehead--tall {
  padding-block: clamp(5rem, 14vw, 10rem);
}

.prose {
  max-width: 42rem;
}

.prose > section + section,
.prose > h2:not(:first-child) {
  margin-top: clamp(2.75rem, 5vw, 4rem);
}

.prose h2 {
  font-size: clamp(1.625rem, 1.4vw + 1rem, 2.25rem);
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 1rem;
}

.prose h3 {
  margin-top: 2.75rem;
  font-size: 1.5rem;
  letter-spacing: -0.022em;
}

.prose p,
.prose li {
  color: #424245;
}

.prose ul:not([class]),
.prose ol:not([class]) {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose p + ul,
.prose p + address,
.prose address + p,
.prose ul + p {
  margin-top: 1em;
}

.figure {
  margin: 1.75rem 0 0;
}

.figure img {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.1);
}

.figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.prose--spaced {
  margin-top: var(--section);
}

.prose address {
  padding: 1.25rem 1.5rem;
  background: var(--tint);
  border-radius: 1rem;
}

.adr-name {
  font-weight: 600;
  color: var(--text);
}

.updated {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: 0.9375rem;
  color: var(--muted);
}

.sectionno {
  display: inline-block;
  min-width: 1.6em;
  color: var(--kurbits);
}

.prose--policy h2 {
  font-size: clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
}

/* Numbered steps */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.25rem 0 1.25rem 3rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.2rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--navy-900);
  border-radius: 999px;
}

.steps p {
  margin-top: 0.35rem;
}

.note {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--tint);
  border-radius: var(--radius);
}

.prose .note h3 {
  margin-top: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.prose .note h3 + p {
  margin-top: 0.5rem;
}

.linklist {
  background: var(--tint);
  border-radius: var(--radius);
  padding-inline: 1.5rem;
}

.linklist li + li {
  border-top: 1px solid var(--line);
}

.prose .linklist li + li {
  margin-top: 0;
}

.linklist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.6rem;
  font-weight: 500;
}

/* ── 404 ──────────────────────────────────────────────────────── */

.notfound-alt {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.notfound-alt .lead {
  margin-top: 0;
}

.notfound-alt p + p {
  margin-top: 0.5rem;
}

/* ── Footer ───────────────────────────────────────────────────── */

.site-footer {
  background: var(--tint);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

main:has(> .section--tint:last-child) + .site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
}

@media (min-width: 40rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.brand--static {
  min-height: 0;
}

.site-footer__blurb {
  max-width: 22rem;
  margin-top: 0.9rem;
}

.site-footer__heading {
  margin-bottom: 0.6rem;
  color: var(--text);
}

.site-footer a {
  color: #424245;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer p a,
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  overflow-wrap: anywhere;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem 1.75rem;
  border-top: 1px solid var(--line);
}

.site-footer__bottom p + p {
  margin-top: 0;
}

/* ── Motion and print ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .site-nav,
  .lang,
  .skip-link,
  .actions {
    display: none;
  }

  .section--showcase > .split {
    background: none;
    color: #000;
  }
}
