@font-face {
  font-family: Inter;
  src: url(assets/fonts/Inter.woff) format('woff');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sinhala';
  src: url(assets/fonts/NotoSansSinhala.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0964-0965, U+0D81-0DF4, U+1CF2, U+200C-200D, U+25CC, U+111E1-111F4;
}

:root {
  color-scheme: light;
  --canvas: #F7F7F5;
  --surface1: #FFFFFF;
  --surface2: #EFEEEA;
  --surface3: #E6E5E0;
  --hairline: #D8DAD4;
  --hairlineStrong: #C4C8C0;
  --ink: #20241F;
  --muted: #5B635B;
  --tertiary: #686E67;
  --accent: #285247;
  --onAccent: #FFFFFF;
  --accentTint: #E8EFE8;
  --accentTint2: #D3E2D8;
  --positive: #356242;
  --positiveTint: #E3EEE4;
  --negative: #9A463F;
  --negativeTint: #F6E7E4;
  --caution: #7A5212;
  --cautionTint: #F5EAD5;
  --pool: #2F4F7A;
  --poolTint: #E3EAF4;
  --passFill: #285247;
  --bankFill: #2A2E2B;
  --passForeground: #F4F8F5;
  --passSubtle: #B8D2C6;
  --material: rgba(247, 247, 245, .84);
  --specular: rgba(255, 255, 255, .95);
  --passSpecular: rgba(255, 255, 255, .24);
  --stage: #E7EBE4;
  --stageLine: #BECDBF;
  --frame: #262C28;
  --lens: #171C18;
  --shadow: 0 4px 14px rgba(32, 36, 31, .04);
  --shadowLift: 0 12px 28px rgba(32, 36, 31, .11);
  --phoneShadow: 0 28px 56px rgba(33, 60, 47, .21), 0 5px 12px rgba(33, 60, 47, .17);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-privacy: cubic-bezier(.33, 1, .68, 1);
  --spring: cubic-bezier(.23, 1, .32, 1);
  --blur-time: 220ms;
  --nav-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --canvas: #0D0D0F;
    --surface1: #18181B;
    --surface2: #222225;
    --surface3: #2B2B2F;
    --hairline: #37373A;
    --hairlineStrong: #4A4A4F;
    --ink: #F0F0ED;
    --muted: #B0B2AB;
    --tertiary: #96988F;
    --accent: #A5CBBB;
    --onAccent: #19392F;
    --accentTint: #1C2B25;
    --accentTint2: #24392F;
    --positive: #A2C9A5;
    --positiveTint: #1A2A1C;
    --negative: #F0ABA3;
    --negativeTint: #301D1B;
    --caution: #E8C47E;
    --cautionTint: #2C2416;
    --pool: #A9C0E2;
    --poolTint: #1A2333;
    --passFill: #1F3D34;
    --bankFill: #222225;
    --passForeground: #EAF3EE;
    --passSubtle: #9EC3B3;
    --material: rgba(13, 13, 15, .84);
    --specular: rgba(255, 255, 255, .06);
    --passSpecular: rgba(255, 255, 255, .16);
    --stage: #19221F;
    --stageLine: #30463D;
    --frame: #313633;
    --lens: #090A0A;
    --shadow: 0 4px 14px rgba(0, 0, 0, .2);
    --shadowLift: 0 14px 34px rgba(0, 0, 0, .48);
    --phoneShadow: 0 26px 50px rgba(0, 0, 0, .4);
  }
}

:root[data-theme=dark] {
  color-scheme: dark;
  --canvas: #0D0D0F;
  --surface1: #18181B;
  --surface2: #222225;
  --surface3: #2B2B2F;
  --hairline: #37373A;
  --hairlineStrong: #4A4A4F;
  --ink: #F0F0ED;
  --muted: #B0B2AB;
  --tertiary: #96988F;
  --accent: #A5CBBB;
  --onAccent: #19392F;
  --accentTint: #1C2B25;
  --accentTint2: #24392F;
  --positive: #A2C9A5;
  --positiveTint: #1A2A1C;
  --negative: #F0ABA3;
  --negativeTint: #301D1B;
  --caution: #E8C47E;
  --cautionTint: #2C2416;
  --pool: #A9C0E2;
  --poolTint: #1A2333;
  --passFill: #1F3D34;
  --bankFill: #222225;
  --passForeground: #EAF3EE;
  --passSubtle: #9EC3B3;
  --material: rgba(13, 13, 15, .84);
  --specular: rgba(255, 255, 255, .06);
  --passSpecular: rgba(255, 255, 255, .16);
  --stage: #19221F;
  --stageLine: #30463D;
  --frame: #313633;
  --lens: #090A0A;
  --shadow: 0 4px 14px rgba(0, 0, 0, .2);
  --shadowLift: 0 14px 34px rgba(0, 0, 0, .48);
  --phoneShadow: 0 26px 50px rgba(0, 0, 0, .4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 18px);
  accent-color: var(--accent);
  scrollbar-color: var(--hairlineStrong) transparent;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.6 Inter, 'Noto Sinhala', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accentTint2);
  color: var(--ink);
}

[lang=si] {
  font-family: 'Noto Sinhala', Inter, system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.72;
}

[lang=si] strong { font-weight: 700; }

[lang=si] h1,
[lang=si] h2,
[lang=si] h3 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.38;
}

img { display: block; max-width: 100%; object-fit: contain; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
p { color: var(--muted); text-wrap: pretty; }
li { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .23em; }
button { font: inherit; cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

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

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.skip {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 9;
  padding: .75rem 1.25rem;
  background: var(--surface1);
  border: 1px solid var(--accent);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}
.skip:focus { transform: none; }

.container { width: min(100% - 80px, 1200px); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--material);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: .5px solid var(--hairline);
}

.nav-layout {
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 720;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  background: center/contain no-repeat url(assets/brand/sidekick-light.svg);
}

.nav-links, .nav-actions { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 560;
  transition: color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--accent); text-decoration: underline; }
}
.nav-links a[aria-current=page] { color: var(--accent); text-decoration: underline; }
.nav-actions { justify-content: end; gap: 12px; }

.button,
.icon-button,
.stage-toggle,
.wallet button,
.chip-copy,
.feature-tabs button,
.phone-tabs button,
.segmented button,
.month-nav button,
.language-buttons button {
  transition: transform 240ms var(--spring), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

:is(.button, .icon-button, .stage-toggle, .wallet button, .chip-copy, .feature-tabs button, .phone-tabs button, .segmented button, .month-nav button, .language-buttons button):active {
  transform: scale(.97);
  transition-duration: 90ms;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .65rem 1.04rem;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-size: .875rem;
  line-height: 1.3;
  font-weight: 650;
  text-align: center;
}
.button .icon { width: 19px; height: 19px; }
.primary { background: var(--accent); color: var(--onAccent); }
.secondary { background: var(--surface1); border-color: var(--hairlineStrong); color: var(--ink); }
.nav-cta { min-height: 42px; }

@media (hover: hover) and (pointer: fine) {
  .primary:hover { background: color-mix(in srgb, var(--accent) 89%, var(--ink)); }
  .secondary:hover, .icon-button:hover { background: var(--accentTint); }
  .stage-toggle:hover { color: var(--ink); }
  .wallet button:hover { background: rgba(255, 255, 255, .24); }
  .feature-tabs button:hover, .language-buttons button:hover { color: var(--accent); }
  .phone-tabs button:hover { background: var(--accentTint); color: var(--accent); }
  .chip-copy:hover { border-color: var(--accent); background: var(--accentTint); color: var(--accent); }
}

.icon-button {
  border: 1px solid var(--hairline);
  background: var(--surface1);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  padding: 0;
}

.menu-button, .sun, .eye-off, [aria-pressed=true] > .eye { display: none; }
[aria-pressed=true] > .eye-off { display: block; }

:root[data-theme=dark] .brand-mark { background-image: url(assets/brand/sidekick-dark.svg); }
:root[data-theme=dark] .sun { display: block; }
:root[data-theme=dark] .moon { display: none; }
:root[data-theme=dark] { --icon-filter: invert(.78) sepia(.16) saturate(.43); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --icon-filter: invert(.78) sepia(.16) saturate(.43); }
  :root:not([data-theme]) .brand-mark { background-image: url(assets/brand/sidekick-dark.svg); }
  :root:not([data-theme]) .sun { display: block; }
  :root:not([data-theme]) .moon { display: none; }
}

img[src^="assets/icons/"] { filter: var(--icon-filter, none); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, .94fr);
  align-items: center;
  gap: clamp(32px, 5vw, 82px);
  padding-block: 52px 48px;
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(2.75rem, 4.4vw, 4.05rem);
  line-height: 1.045;
  letter-spacing: -.04em;
  font-weight: 720;
  max-width: 13.5ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede {
  font-size: clamp(1rem, 1.38vw, 1.15rem);
  max-width: 44ch;
  margin-top: 20px;
  line-height: 1.65;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 0;
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  font-size: .875rem;
  font-weight: 560;
  color: var(--muted);
}
.hero-facts li { display: flex; align-items: center; gap: 6px; }
.hero-facts li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-inline: 11px;
  background: var(--hairlineStrong);
  border-radius: 50%;
}
.hero-facts .icon { width: 17px; height: 17px; color: var(--accent); }

.actions, .platform-strip, .text-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.platform-strip { gap: 10px; margin-top: 14px; font-size: .8125rem; }
.platform-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  padding: .35rem .65rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-weight: 570;
  background: var(--surface1);
}
.platform-strip small { font-size: .75rem; font-weight: 500; color: var(--tertiary); }
.release-status { font-size: .8125rem; margin-top: 9px; min-height: 1.4em; }
.release-status:focus { outline: none; color: var(--accent); font-weight: 650; }

/* Interactive 6.1" Phone Stage */
.hero-stage {
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 16px 54px;
  background: var(--stage) url(assets/brand/dot-grid.svg);
  border: 1px solid var(--stageLine);
  border-radius: 26px;
  display: grid;
  justify-items: center;
}
.stage-diagram {
  position: absolute;
  z-index: -1;
  inset: 45% auto auto 50%;
  width: min(93%, 460px);
  aspect-ratio: 1;
  border: 1px solid var(--stageLine);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 26px color-mix(in srgb, var(--stageLine) 30%, transparent), inset 0 0 0 42px color-mix(in srgb, var(--stageLine) 18%, transparent);
}
.stage-diagram::before, .stage-diagram::after {
  content: "";
  position: absolute;
  inset: 50% -12%;
  border-top: 1px solid var(--stageLine);
}
.stage-diagram::after { transform: rotate(90deg); }
.hero-stage figcaption {
  position: absolute;
  inset: auto 16px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .75rem;
  color: var(--muted);
}
.stage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  background: none;
  border: 0;
  font-size: .8125rem;
  font-weight: 680;
  color: var(--accent);
  padding: 0 .15rem;
}
.stage-toggle .icon { width: 17px; height: 17px; }

.phone {
  width: min(100%, 334px);
  container-type: inline-size;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--frame) 78%, var(--hairlineStrong));
  border-radius: 43px;
  background: var(--frame);
  box-shadow: var(--phoneShadow), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.phone-display {
  aspect-ratio: 390 / 844;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border-radius: 37px;
  background: var(--canvas);
  padding: 8px 9px 6px;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 12px;
  height: 26px;
  font-size: .75rem;
  font-weight: 700;
}
.phone-status > span:last-child { display: flex; gap: 4px; }
.phone-status .icon { width: 14px; height: 14px; }
.phone-camera {
  position: absolute;
  width: 71px;
  height: 19px;
  border-radius: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lens);
}
.phone-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 6px 10px;
}
.phone-date { font-size: .6875rem; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.phone-title h2 { font-size: 1.8rem; line-height: 1.02; letter-spacing: -.045em; margin-top: 2px; }
.privacy-button {
  background: var(--accentTint);
  border-color: transparent;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.privacy-button[aria-pressed=true] { background: var(--accent); color: var(--onAccent); }

.phone-screen { overflow: auto; scrollbar-width: thin; padding-right: 1px; }
.phone-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 3.1cqi, 10px);
  min-height: 100%;
  padding-bottom: 6px;
}
.phone-panel:focus-visible { outline-offset: -2px; }

.phone-panel.is-active, .feature-panel.is-active {
  animation: panel-in 180ms var(--ease-out) both;
}
@keyframes panel-in {
  from { opacity: .01; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.phone-metric {
  min-height: clamp(92px, 36cqi, 118px);
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--hairline);
  border-radius: 15px;
  background: var(--surface1) url(assets/brand/register-grid.svg);
  box-shadow: inset 0 1px var(--specular), var(--shadow);
}
.phone-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.phone-metric-head > span,
.phone-metric > span { color: var(--accent); font-weight: 650; font-size: .72rem; }

.segmented {
  display: inline-flex;
  background: var(--surface2);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.segmented button {
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: .6875rem;
  font-weight: 650;
  line-height: 1.2;
}
.segmented button[aria-pressed=true] {
  background: var(--surface1);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.month-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--surface2);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 1px 3px;
}
.month-nav button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--accent);
  padding: 0;
}
.month-nav button .icon { width: 13px; height: 13px; }
.month-nav span { font-size: .6875rem; font-weight: 660; color: var(--ink); padding-inline: 3px; }

.metric { display: block; font-size: 2.02rem; line-height: 1.12; letter-spacing: -.045em; color: var(--ink); }
.metric.compact { font-size: 1.48rem; }
.phone-panel small { font-size: .6875rem; color: var(--muted); line-height: 1.38; }

.secret {
  display: inline-grid;
  grid-template-areas: 'content';
  justify-self: start;
  text-align: left;
  white-space: nowrap;
}
.secret > span { grid-area: content; transition: opacity var(--blur-time) var(--ease-privacy); }
.secret-mask { opacity: 0; user-select: none; }
.secret.is-masked .secret-mask { opacity: 1; }
.secret.is-masked .secret-value { opacity: 0; user-select: none; }
.secret-blur { opacity: 0; filter: blur(7px); user-select: none; pointer-events: none; }
.secret.is-masked .secret-blur { animation: mask-crossfade var(--blur-time) var(--ease-privacy) both; }
@keyframes mask-crossfade {
  0%, 100% { opacity: 0; }
  35% { opacity: .78; }
}

.phone-pass {
  display: grid;
  gap: 3px;
  min-height: clamp(68px, 28cqi, 88px);
  align-content: center;
  padding: 9px 12px;
  border-radius: 13px;
  background: var(--passFill) url(assets/textures/pass-exam-watermark.svg) right center/auto 115% no-repeat;
  color: var(--passForeground);
  box-shadow: inset 0 1px var(--passSpecular);
  font-size: .6875rem;
}
.phone-pass strong { font-size: .81rem; font-weight: 680; }
.phone-pass span { color: var(--passSubtle); }
.phone-pass-label { font-size: .6875rem; font-weight: 690; letter-spacing: .04em; }

.phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: clamp(46px, 18cqi, 56px);
  padding: 7px 10px;
  border-radius: 11px;
  background: var(--surface1);
  border: 1px solid var(--hairline);
}
.phone-row > div { display: grid; min-width: 0; }
.phone-row strong { font-size: .8rem; font-weight: 650; line-height: 1.32; }
.phone-row :is(.icon, img) { color: var(--accent); width: 19px; height: 19px; flex: none; }
.phone-pool { background: var(--poolTint); border-color: color-mix(in srgb, var(--pool) 28%, var(--hairline)); color: var(--pool); }
.phone-pool small { color: var(--pool); }
.phone-caution { background: var(--cautionTint); border-color: color-mix(in srgb, var(--caution) 28%, var(--hairline)); }
.phone-caution .icon { color: var(--caution); }
.phone-positive { color: var(--positive); font-weight: 650; }
.phone-negative { color: var(--negative); font-weight: 650; }
.phone-next { margin-top: auto; justify-content: space-between; background: var(--accentTint); border-color: transparent; }
.phone-next time { color: var(--accent); font-size: .6875rem; font-weight: 680; white-space: nowrap; }

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  border-top: .5px solid var(--hairline);
  padding-top: 4px;
}
.phone-tabs button {
  background: none;
  border: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  padding: 3px 0;
  min-height: 44px;
  border-radius: 8px;
  font-size: .6875rem;
  letter-spacing: -.01em;
  line-height: 1.2;
  font-weight: 620;
  color: var(--muted);
}
.phone-tabs .icon { width: 19px; height: 19px; }
.phone-tabs [aria-selected=true] { background: var(--accentTint); color: var(--accent); }
.phone-bar { height: 4px; width: 92px; background: var(--hairlineStrong); margin: 8px auto 2px; border-radius: 99px; }

/* Trust Strip */
.trust { border-block: .5px solid var(--hairline); background: var(--surface1); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 29px; gap: 0; }
.trust article { padding-inline: 23px; border-inline-start: .5px solid var(--hairline); }
.trust article:first-child { padding-left: 0; border: 0; }
.trust article:last-child { padding-right: 0; }
.trust img, .trust .icon { display: block; width: 24px; height: 24px; color: var(--accent); margin-bottom: 10px; }
.trust h2 { font-size: 1rem; font-weight: 680; letter-spacing: -.025em; margin-bottom: 7px; }
.trust p { font-size: .875rem; line-height: 1.5; }

/* Sections & Feature Tabs */
.section { padding-block: clamp(54px, 8vw, 100px); }
.section-intro { max-width: 720px; margin-bottom: 30px; }
.section-intro h2, .legal h1 { font-size: clamp(2.1rem, 4.3vw, 3.45rem); text-wrap: balance; font-weight: 700; }
.section-intro p { margin-top: 14px; font-size: 1.0625rem; max-width: 60ch; }

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--hairline);
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 14px;
  width: max-content;
  max-width: 100%;
}
.feature-tabs button, .language-buttons button {
  border: 1px solid transparent;
  background: none;
  border-radius: 9px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 630;
  min-height: 44px;
  padding: .55rem .82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.feature-tabs [aria-selected=true], .language-buttons [aria-pressed=true] {
  background: var(--surface1);
  border-color: var(--hairline);
  box-shadow: var(--shadow);
  color: var(--accent);
}
.feature-tabs .icon { width: 18px; height: 18px; }

.feature-panel {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(0, 1.45fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  padding: 28px 0 0;
  border-top: .5px solid var(--hairline);
}
.feature-lead h3 { font-size: clamp(1.7rem, 2.7vw, 2.5rem); max-width: 16ch; }
.feature-lead p { margin-top: 14px; }
.panel-note, .copy-feedback { font-size: .875rem; }
.copy-feedback { color: var(--accent); font-weight: 600; overflow-wrap: anywhere; min-height: 1.4em; }

.quick-copy-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: .42rem .75rem;
  border-radius: 9px;
  border: 1px solid var(--hairline);
  background: var(--surface2);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 590;
}
.chip-copy .icon { width: 15px; height: 15px; color: var(--accent); }

.wallet-stack { display: grid; gap: 14px; }
.wallet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; perspective: 900px; }
.wallet {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 18px 14px 12px;
  background: var(--passFill) url(assets/textures/pass-exam-watermark.svg) right top/65% auto no-repeat;
  color: var(--passForeground);
  border-radius: 17px;
  box-shadow: inset 0 1px var(--passSpecular), 0 12px 25px rgba(32, 36, 31, .12);
  transition: transform 280ms var(--spring), box-shadow 240ms var(--ease-out);
  transform-style: preserve-3d;
}
.bank-card { background: var(--bankFill) url(assets/textures/pass-bank-watermark.svg) right top/65% auto no-repeat; }
.bank-card::before, .exam-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url(assets/textures/card-specular-grid.svg) right top/80% auto no-repeat;
  pointer-events: none;
}
.wallet > * { position: relative; }

@media (hover: hover) and (pointer: fine) {
  .wallet:hover {
    box-shadow: inset 0 1px var(--passSpecular), var(--shadowLift);
  }
}

.wallet-top { display: flex; align-items: center; gap: 7px; font-size: .69rem; letter-spacing: .045em; font-weight: 690; color: var(--passSubtle); }
.wallet-top .icon { width: 18px; height: 18px; }
.wallet h4 { font-size: 1.2rem; margin-top: 18px; }
.wallet p { color: var(--passSubtle); font-size: .78rem; margin-top: 4px; }
.wallet-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px dashed var(--passSpecular);
  padding-top: 9px;
  margin-top: 16px;
}
.wallet-bottom::before, .wallet-bottom::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--canvas);
  top: -6px;
  left: -20px;
}
.wallet-bottom::after { left: auto; right: -20px; }
.wallet-bottom > span { font-size: .75rem; line-height: 1.4; color: var(--passForeground); }
.wallet button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  border: 1px solid var(--passSpecular);
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
  color: var(--passForeground);
  padding: 4px 8px;
  font-size: .75rem;
  font-weight: 660;
}
.wallet button:focus-visible { outline-color: var(--passForeground); }
.wallet button .icon { width: 15px; height: 15px; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { display: flex; gap: 15px; padding: 13px 0; align-items: flex-start; }
.feature-list li + li { border-top: 1px solid var(--hairline); }
.feature-list :is(img, .icon) { width: 24px; height: 24px; margin-top: 2px; flex: none; color: var(--accent); }
.feature-list strong { display: inline-block; font-weight: 660; color: var(--ink); }
.feature-list p { font-size: .9375rem; margin-top: 3px; }
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: .6875rem;
  font-weight: 650;
  vertical-align: middle;
  background: var(--surface2);
  border: .5px solid var(--hairline);
  color: var(--muted);
}
.badge-pool {
  background: var(--poolTint);
  border-color: color-mix(in srgb, var(--pool) 30%, transparent);
  color: var(--pool);
}

/* Guide / Architecture Band */
.guide-band { border-block: .5px solid var(--hairline); background: var(--accentTint) url(assets/brand/archive-rules.svg); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.flow li { position: relative; padding-top: 2px; min-width: 0; }
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 61px;
  right: -9px;
  top: 24px;
  border-top: 1px dashed var(--hairlineStrong);
}
.flow-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--surface1);
  color: var(--accent);
}
.flow-icon img { width: 23px; height: 23px; }
.flow-step { display: block; color: var(--accent); font-size: .8125rem; font-weight: 650; margin-top: 15px; }
.flow h3 { font-size: 1.4rem; margin-top: 6px; }
.flow p { margin-top: 7px; max-width: 33ch; font-size: .9375rem; }
.guide-link { font-size: .9rem; margin-top: 28px; }
.guide-link span { padding-inline: 5px; }

/* Contact */
.contact {
  max-width: 760px;
  margin-inline: auto;
  border: 1px solid var(--hairline);
  background: var(--surface1) url(assets/textures/lock-dot-matrix.svg) right top/128px auto no-repeat;
  border-radius: 20px;
  padding: 28px;
  box-shadow: inset 0 1px var(--specular), var(--shadow);
}
.contact h2 { font-size: 1.5rem; }
.contact p { margin-block: 8px 12px; }
.contact > .icon { color: var(--accent); margin-bottom: 9px; }
.text-links { gap: .55rem 1.1rem; font-size: .875rem; font-weight: 600; }
.form-status { font-size: .875rem; }

/* Footer */
.site-footer { border-top: .5px solid var(--hairline); background: var(--surface2); }
.footer-layout { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px; }
.footer-layout p { font-size: .8125rem; margin-top: 6px; }
.footer-layout nav { display: flex; flex-wrap: wrap; gap: 5px 19px; }
.footer-layout nav a { font-size: .875rem; color: var(--muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-layout nav a:hover { text-decoration: underline; color: var(--accent); }
}

/* Legal Pages */
.legal { max-width: 58ch; padding-block: 58px 82px; }
.legal-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.legal-tools > a { font-size: .875rem; font-weight: 630; }
.language-buttons {
  display: flex;
  gap: 3px;
  background: var(--surface2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 3px;
}
.legal h1 { letter-spacing: -.04em; }
.legal .legal-meta { font-size: .875rem; margin-top: 10px; }
.legal .legal-intro { font-size: 1.125rem; margin-top: 20px; color: var(--ink); line-height: 1.65; }
.legal article section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.legal h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); letter-spacing: -.03em; }
.legal article :is(h2 + p, p + p, li + li, h2 + ul, h2 + ol) { margin-top: 10px; }
.legal article :is(ul, ol) { padding-left: 1.4rem; color: var(--muted); }
.legal article p, .legal article li { overflow-wrap: anywhere; }
.legal article strong { color: var(--ink); }
.legal article code { font-size: .88em; padding: 1px 5px; border-radius: 5px; background: var(--surface2); border: .5px solid var(--hairline); }
.legal [lang=si] :is(h1, h2) { letter-spacing: 0; line-height: 1.38; }
.legal [lang=si] strong { font-weight: 700; }
.legal .legal-note { padding: 12px 16px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--accentTint); margin-top: 18px; color: var(--ink); }

/* Scroll Reveals — visible by default; only below-fold elements stage when JS enables reveal-ready */
.reveal-ready { opacity: 0; transform: translateY(12px); }
.reveal-shown {
  animation: rise 360ms var(--ease-out) both;
  animation-delay: var(--stagger, 0ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.trust article:nth-child(2), .flow li:nth-child(2) { --stagger: 45ms; }
.trust article:nth-child(3), .flow li:nth-child(3) { --stagger: 90ms; }
.trust article:nth-child(4) { --stagger: 135ms; }

@media (max-width: 1040px) {
  .container { width: min(100% - 56px, 1200px); }
  .nav-links { gap: 17px; }
  .hero { gap: 30px; }
  .hero h1 { font-size: clamp(2.65rem, 5.3vw, 3.7rem); }
  .trust article { padding-inline: 15px; }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-lead h3 { max-width: none; }
}

@media (max-width: 780px) {
  :root { --nav-height: 62px; }
  .nav-layout { grid-template-columns: 1fr auto; gap: 10px; }
  .menu-button { display: grid; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 20px;
    padding: 6px 14px;
    background: var(--surface1);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow);
  }
  .site-header.menu-open .nav-links { display: flex; }
  .nav-actions { gap: 7px; }
  .nav-cta { padding-inline: .65rem; }
  .container { width: calc(100% - 40px); }
  .hero { padding-block: 36px; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); gap: 20px; }
  .hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.2rem); }
  .hero-stage { padding-inline: 9px; }
  .hero-stage figcaption { inset-inline: 9px; }
  .phone-tabs button { font-size: .6875rem; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .trust article:nth-child(3) { padding-left: 0; border-left: 0; }
  .people-grid { grid-template-columns: 1fr; }
  .footer-layout { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 650px) {
  .hero { grid-template-columns: 1fr; gap: 25px; padding-top: 30px; }
  .hero h1 { font-size: clamp(2.35rem, 9.2vw, 3.3rem); max-width: 16ch; }
  .hero-lede { margin-top: 14px; }
  .hero-facts { margin-block: 16px 20px; }
  .hero-stage { padding-inline: 12px; }
  .hero-stage figcaption { inset-inline: 13px; }
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow li { padding-left: 62px; min-height: 70px; }
  .flow li:not(:last-child)::after { left: 22px; right: auto; top: 54px; bottom: -13px; border-top: 0; border-left: 1px dashed var(--hairlineStrong); }
  .flow-icon { position: absolute; top: 2px; left: 0; }
  .flow-step { margin-top: 0; }
  .flow p { max-width: none; }
  .section-intro { margin-bottom: 23px; }
  .feature-tabs { gap: 3px; }
  .feature-tabs button { padding-inline: .54rem; }
  .feature-tabs .icon { width: 15px; height: 15px; }
}

@media (max-width: 440px) {
  .container { width: calc(100% - 32px); }
  .brand { font-size: 1.12rem; gap: 7px; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-facts { font-size: .8125rem; }
  .hero-facts li + li::before { margin-inline: 7px; }
  .actions { gap: 8px; }
  .actions .button { padding-inline: .6rem; font-size: .8125rem; }
  .platform-strip span { align-items: flex-start; flex-direction: column; gap: 1px; }
  .wallet-grid { grid-template-columns: 1fr; }
  .maker { align-items: flex-start; gap: 14px; padding: 18px; }
  .portrait { width: 67px; font-size: 1.33rem; }
  .legal { padding-top: 35px; }
}

@media (max-width: 350px) {
  .nav-cta { display: none; }
  .hero-facts li + li::before { margin-inline: 6px; }
  .phone-tabs .icon { width: 16px; }
  .phone-tabs button { font-size: .6875rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust article { border-inline-start: 0; padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready { opacity: 1; transform: none; }
  .wallet:hover, .wallet:active, button:active, .button:active { transform: none !important; }
  .secret.is-masked .secret-value { filter: none; }
}

@media print {
  :root, :root:not([data-theme]), :root[data-theme=dark] {
    color-scheme: light;
    --canvas: #fff;
    --surface1: #fff;
    --surface2: #fff;
    --ink: #000;
    --muted: #333;
    --accent: #173b30;
    --hairline: #bbb;
  }
  .site-header, .site-footer, .legal-tools, .skip { display: none !important; }
  .container.legal { width: 100%; max-width: none; padding: 0; }
  .legal h1 { font-size: 24pt; }
  .legal h2 { break-after: avoid; }
  .legal .legal-note { background: white; }
}
