/* Self-hosted fonts (SIL OFL, see assets/fonts/OFL-*.txt) – no requests to font CDNs. */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/figtree-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/figtree-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nordic Light. Source of truth: packages/brand/src/index.ts (colors.light / colors.dark).
   Written out by hand because the site has no build step – keep in sync when the brand changes. */
:root {
  --bg: #F6F5F1;          /* snow */
  --bg-soft: #EFEDE7;     /* surfaceMuted */
  --surface: #FFFFFF;
  --text: #1E2A33;        /* slate */
  --text-soft: #5B6B75;   /* slateMuted */
  --border: #E6E3DB;      /* line */
  --accent: #2E5E7E;      /* fjord */
  --accent-pressed: #1E4460;
  --accent-soft: #E3EEF3; /* glacierMist */
  --accent-soft-text: #1E4460;
  --accent-text: #FFFFFF;
  --birch: #D8CBB5;
  --warn-bg: #F6EBD2;
  --warn-text: #5E4406;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--font);
  --radius: 16px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121A20;          /* night */
    --bg-soft: #1B252D;     /* nightSurface */
    --surface: #1B252D;
    --text: #EEF1F2;        /* nightText */
    --text-soft: #A9B6BE;   /* nightMuted */
    --border: #2E3C46;      /* nightLine */
    --accent: #7FB0CC;      /* fjordLight */
    --accent-pressed: #9CC3D5;
    --accent-soft: #20394A;
    --accent-soft-text: #EEF1F2;
    --accent-text: #121A20;
    --birch: #8C7F6B;
    --warn-bg: #3A2F12;
    --warn-text: #F5DEA0;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}
.site-nav a.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 10px;
}

/* Hero */
.hero {
  padding: 104px 0 88px;
  text-align: center;
}
.hero img.logo {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(30, 42, 51, 0.16);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 6.4vw, 64px);
  line-height: 1.04;
  margin: 32px auto 20px;
  max-width: 860px;
  letter-spacing: -0.035em;
}
.hero p.lead {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto 28px;
}

.stores {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  line-height: 1.2;
}
.store small {
  font-size: 12px;
  opacity: 0.8;
}
.store strong {
  font-size: 18px;
}
.store[aria-disabled='true'] {
  cursor: default;
}
.soon {
  display: block;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 14px;
}

/* Sections */
section {
  padding: 80px 0;
}
section.alt {
  background: var(--bg-soft);
}
h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.section-lead {
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 0 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.grid.features {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1000px) {
  .grid.features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .grid.features {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-soft-text);
  background: var(--accent-soft);
  font-size: 22px;
  margin-bottom: 12px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.card p {
  margin: 0;
  color: var(--text-soft);
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-soft-text);
  vertical-align: middle;
  margin-left: 6px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Documents (policy, terms, support) */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.doc h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  margin: 0 0 8px;
}
.doc h2 {
  font-size: 24px;
  margin-top: 36px;
}
.doc h3 {
  font-size: 19px;
  margin-top: 24px;
}
.doc .meta {
  color: var(--text-soft);
  font-size: 15px;
}
.draft {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 20px 0 28px;
  font-size: 15px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  background: var(--surface);
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-soft);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--text-soft);
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 48px 0 40px;
  }
  section {
    padding: 40px 0;
  }
  .site-nav {
    gap: 14px;
  }
  .doc {
    padding: 32px 16px 56px;
  }
}

/* Minimal start page: one screen, header + hero + footer */
body.minimal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.minimal main.hero {
  flex: 1;
  padding: 72px 20px 64px;
}
@media (max-width: 600px) {
  body.minimal main.hero {
    padding: 48px 16px 40px;
  }
}
.points {
  list-style: none;
  padding: 0;
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  max-width: 720px;
}
.points li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-soft-text);
  font-size: 15px;
}
