/*
 * Akada landing page stylesheet.
 * Colour, typography, spacing, touch targets, and rules come directly from design/tokens.json.
 */

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/atkinson-hyperlegible-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/atkinson-hyperlegible-400-latin.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;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/atkinson-hyperlegible-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/atkinson-hyperlegible-700-latin.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;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/ibm-plex-mono-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/ibm-plex-mono-400-latin.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;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/ibm-plex-mono-500-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/ibm-plex-mono-500-latin.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;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/ibm-plex-mono-600-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/ibm-plex-mono-600-latin.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 {
  --bg: #FAFAF7;
  --paper-warm: #F5F2EB;
  --bg-secondary: #F0F1EC;
  --surface: #FFFFFF;
  --ink: #15181D;
  --text-secondary: #4E5561;
  --text-muted: #5C6370;
  --rule: #D9DBDF;
  --rule-strong: #7F8794;
  --accent: #1D3FC4;
  --accent-pressed: #16329C;
  --on-accent: #FFFFFF;
  --accent-bg: #E7ECFB;
  --accent-text: #1A39B0;
  --rule-accent: #B8C7F4;

  --font-sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --rule-ink: 2px;
  --rule-double: 3px;
  --radius-medium: 4px;
  --touch-min: 44px;
  --touch-primary: 56px;

  --motion-fast: 120ms;
  --motion-ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--ink);
  border-top: 3px solid var(--ink);
}

/* Hide localizable copy briefly only when unrendered source HTML loads its default locale. */
html[data-i18n='loading'] [data-i18n] {
  opacity: 0;
}

[data-i18n] {
  transition: opacity var(--motion-fast) var(--motion-ease);
}

a {
  color: inherit;
}

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

.sheet {
  width: 100%;
  max-width: 680px;
  min-height: calc(100svh - 3px);
  margin: 0 auto;
  padding: clamp(20px, 4.5vh, 44px) clamp(20px, 6vw, 40px) clamp(20px, 3.5vh, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 5vh, 48px);
}

/* Top bar anchored by a 2px ink rule. */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: var(--rule-ink) solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: var(--touch-min);
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--motion-fast) var(--motion-ease);
}

.lang-label {
  display: inline-block;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn[aria-pressed='true'] {
  color: var(--accent-text);
  font-weight: 600;
}

.lang-btn[aria-pressed='true'] .lang-label {
  border-bottom-color: var(--accent);
}

.lang-sep {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--rule-strong);
  user-select: none;
}

/* Central editorial composition. */
.editorial {
  margin: auto 0;
  padding-bottom: clamp(12px, 4vh, 40px);
}

.eyebrow {
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.3;
}

.eyebrow-rule {
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: var(--accent);
  flex-shrink: 0;
}

.headline {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(2.125rem, 5.4vw, 3.125rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: var(--ink);
  max-width: 20ch;
  text-wrap: balance;
}

.lead {
  margin: 22px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 48ch;
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--touch-primary);
  padding: 0 26px;
  border-radius: var(--radius-medium);
  background-color: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.primary-cta:hover {
  background-color: var(--accent-pressed);
}

.primary-cta:active {
  background-color: var(--accent-pressed);
  transform: translateY(1px);
}

.cta-arrow {
  display: block;
  flex-shrink: 0;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.primary-cta:hover .cta-arrow {
  transform: translateX(3px);
}

/* Bottom ruled slip closure. */
.colophon {
  width: 100%;
}

.register {
  margin: 0;
  border-top: var(--rule-ink) solid var(--ink);
  border-bottom: var(--rule-double) double var(--ink);
}

.register-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--touch-min);
  padding: 8px 0;
}

.register-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.register-value {
  margin: 0;
  text-align: right;
}

.register-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--motion-fast) var(--motion-ease),
    text-decoration-color var(--motion-fast) var(--motion-ease);
}

.register-link:hover {
  color: var(--accent-text);
  text-decoration-color: var(--accent);
}

.colophon-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .sheet {
    gap: 24px;
  }

  .primary-cta {
    width: 100%;
  }

  .register-row {
    gap: 12px;
  }

  .register-link {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
