/*
 * kora.id homepage. Values copied from libs/design-tokens/kora.css ("quiet infrastructure",
 * KORA-111); this site has no build step, so keep the two in step by hand.
 * Public Sans is self-hosted from /fonts/ (SIL OFL 1.1, licence in fonts/OFL.txt); never load it
 * from a font CDN, which would send every visitor's IP address to a third party.
 */

@font-face {
  font-family: 'Public Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/public-sans-latin-ext-wght-normal.woff2') format('woff2');
  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: 'Public Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/public-sans-latin-wght-normal.woff2') format('woff2');
  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;
}


:root {
  color-scheme: light;
  --color-primary: #3b5ba9;
  --color-primary-hover: #2f4a8c;
  --color-primary-soft: #e6ecf8;
  --color-success: #1f7a4d;
  --color-warning: #8a5a00;
  --color-background: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-2: #eef1f7;
  --color-border: #d9dfea;
  --color-text-primary: #101828;
  --color-text-secondary: #475467;
  --color-text-muted: #667085;
  --font-sans:
    'Public Sans Variable', 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --max: 68rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

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

a:hover {
  color: var(--color-primary-hover);
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-surface);
  padding: 0.5rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  z-index: 10;
}

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

/* --- Header --- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--color-primary);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.header-links a {
  text-decoration: none;
}

.header-links .lang {
  color: var(--color-text-secondary);
}

/* --- Buttons --- */
.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-primary);
}

.button-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
}

.button-quiet {
  background: transparent;
  color: var(--color-primary);
}

/* --- Sections --- */
section {
  padding: 4rem 0;
}

section + section {
  border-top: 1px solid var(--color-border);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 1rem;
  max-width: 22ch;
}

h2 {
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--color-text-secondary);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.section-intro {
  color: var(--color-text-secondary);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

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

/* --- Hero --- */
.hero {
  background: var(--color-surface);
  padding: 4.5rem 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* The hero figure: one account, several memberships, rights per product. */
.account-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.9375rem;
}

.account-card .who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.account-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 1rem 0 0.4rem;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.4rem;
}

.row small {
  color: var(--color-text-secondary);
  display: block;
}

.status {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-granted {
  color: var(--color-success);
}

.status-pending {
  color: var(--color-warning);
}

/* --- Grids --- */
.grid-2,
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card p {
  margin: 0;
  color: var(--color-text-secondary);
}

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

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--color-success);
  border-bottom: 2px solid var(--color-success);
  transform: rotate(-45deg);
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-list li {
  border-left: 3px solid var(--color-border);
  padding-left: 1rem;
  color: var(--color-text-secondary);
}

.problem-list strong {
  display: block;
  color: var(--color-text-primary);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.facts div {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.facts div:nth-child(odd) {
  border-right: 1px solid var(--color-border);
}

.facts div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  margin: 0.25rem 0 0;
  color: var(--color-text-secondary);
}

.note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  max-width: 46rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.steps p {
  margin: 0;
  color: var(--color-text-secondary);
}

.products {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.products li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.products small {
  font-weight: 400;
  color: var(--color-text-secondary);
}

.cta {
  background: var(--color-surface);
  text-align: center;
}

.cta .lead {
  margin-left: auto;
  margin-right: auto;
}

.cta .actions {
  justify-content: center;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 0 3rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

@media (max-width: 52rem) {
  .hero .wrap,
  .grid-2,
  .grid-3,
  .problem-list,
  .steps,
  .facts {
    grid-template-columns: 1fr;
  }

  .facts div:nth-child(odd) {
    border-right: 0;
  }

  .facts div:nth-last-child(2) {
    border-bottom: 1px solid var(--color-border);
  }

  section {
    padding: 3rem 0;
  }

  .header-links .hide-sm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.steps + .actions {
  margin-top: 2rem;
}

.cta .steps {
  text-align: left;
}

/* --- Legal pages --- */
.legal {
  max-width: 46rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.legal p {
  color: var(--color-text-secondary);
}

.legal .updated {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
