/*
 * us2us website. The Nocturne design system (tokens, .btn, .tag, .seg,
 * .card, .elev-*, .hr, .table) plus the layout of the design
 * ("us2us Web"), with every inline style of the design moved here so the
 * CSP can stay `style-src 'self'`. Fonts are served from /fonts (SIL OFL,
 * licences next to the files); nothing is loaded from another origin.
 */

/* ── fonts ─────────────────────────────────────────────────────────────── */
/* Per family: latin-ext, latin, then a few-KB cut of latin-ext with only the
   Turkish letters (ğ Ğ ş Ş İ; scripts/fetch-fonts.py). Overlapping
   unicode-ranges are tried from the last rule up, so Turkish text loads the
   small file and never the whole latin-ext one. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-v20-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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-v20-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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-v20-tr.woff2') format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: 'Doto';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/fonts/doto-v3-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: 'Doto';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/fonts/doto-v3-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: 'Doto';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('/fonts/doto-v3-tr.woff2') format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/martian-mono-v6-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: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/martian-mono-v6-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: 'Martian Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/martian-mono-v6-tr.woff2') format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}

/* ── tokens (Nocturne, dark by default) ────────────────────────────────── */

:root {
  color-scheme: dark;
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  --color-accent-100: #f5f4ff;
  --color-accent-200: #e7e5fe;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-500: #968ae0;
  --color-accent-600: #796cbf;
  --color-accent-700: #5d5294;
  --color-accent-800: #423a6a;
  --color-accent-900: #2b2741;

  --color-section: #262a60;

  --font-heading: "Inter", system-ui, sans-serif;
  --font-heading-weight: 500;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Doto", "Inter", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, monospace;

  --space-1: 2.8px;
  --space-2: 5.6px;
  --space-3: 8.4px;
  --space-4: 11.2px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 0 0 1px #3f424d;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0, 0, 0, 0.65);

  --u-online: oklch(0.74 0.15 155);
  --u-danger: oklch(0.7 0.16 25);

  /* Muted text steps of the design. The light theme raises the faint ones
     so that small text keeps WCAG AA contrast (an intentional departure
     from the design's LIGHT map; see the README). */
  --fg-86: color-mix(in srgb, var(--color-text) 86%, transparent);
  --fg-74: color-mix(in srgb, var(--color-text) 74%, transparent);
  --fg-72: color-mix(in srgb, var(--color-text) 72%, transparent);
  --fg-70: color-mix(in srgb, var(--color-text) 70%, transparent);
  --fg-66: color-mix(in srgb, var(--color-text) 66%, transparent);
  --fg-60: color-mix(in srgb, var(--color-text) 60%, transparent);
  --fg-55: color-mix(in srgb, var(--color-text) 55%, transparent);
  /* Accent for small text: the accent itself on the dark ground (5.4:1),
     the deeper ramp step on the light one (the readme's rule). */
  --accent-text: var(--color-accent);

  --gutter: clamp(20px, 5vw, 56px);
  /* 14px + the wordmark's 34px line box (22px × 1.55) + 14px, as designed. */
  --header-h: 62px;
}

/* The design's LIGHT map. */
:root[data-theme="light"] {
  color-scheme: light;
  --color-bg: #f3f5fe;
  --color-surface: #e4e7f5;
  --color-text: #292b31;
  --color-accent: #796cbf;
  --color-divider: color-mix(in srgb, #292b31 16%, transparent);
  --color-neutral-100: #292b31;
  --color-neutral-200: #3f424d;
  --color-neutral-300: #595d6c;
  --color-neutral-400: #75798c;
  --color-neutral-600: #b2b6ca;
  --color-neutral-700: #cfd3e5;
  --color-neutral-800: #dfe2f0;
  --color-neutral-900: #f3f5fe;
  --color-accent-100: #2b2741;
  --color-accent-200: #423a6a;
  --color-accent-300: #5d5294;
  --color-accent-400: #796cbf;
  --color-accent-600: #b5abfc;
  --color-accent-700: #d2cefd;
  --color-accent-800: #e7e5fe;
  --color-accent-900: #f5f4ff;
  --shadow-sm: 0 0 0 1px #cfd3e5;
  --shadow-md: 0 0 0 1px #b2b6ca, 0 6px 18px rgba(41, 43, 49, 0.10);
  --shadow-lg: 0 0 0 1px #b2b6ca, 0 16px 40px rgba(41, 43, 49, 0.14);
  --u-online: oklch(0.58 0.15 155);
  --u-danger: oklch(0.55 0.18 25);
  /* The backdrop's lower glow: a lavender tint here, where the dark
     section indigo would read as a smudge. */
  --color-section: #d2cefd;
  /* WCAG AA for 11–14px text on the light ground and surface (the design's
     66/60/55% and #796cbf measure 3.4–4.2:1 there). */
  --fg-66: color-mix(in srgb, var(--color-text) 76%, transparent);
  --fg-60: color-mix(in srgb, var(--color-text) 74%, transparent);
  --fg-55: color-mix(in srgb, var(--color-text) 72%, transparent);
  --accent-text: var(--color-accent-300);
}

/* ── base ──────────────────────────────────────────────────────────────── */

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

html {
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* site.js steps the scroll itself while gliding to a section. */
html.gliding { scroll-behavior: auto; }
/* Sections take focus after a glide; the outline would frame a whole screen. */
main section[tabindex="-1"]:focus-visible { outline: none; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); font-weight: var(--font-heading-weight); }
p, figure, ul, ol { margin: 0; }
a { color: var(--color-accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-300); }
svg { display: block; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.icon { display: inline-block; width: 1em; height: 1em; flex: none; }

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

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 50;
  padding: 10px 16px; border-radius: var(--radius-md);
  background: var(--color-surface); color: var(--color-text);
  box-shadow: var(--shadow-md);
  transform: translateY(-200%);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }

/* Headings use the body font for sentence-ending full stops. */
.dot { font-family: var(--font-body); font-weight: 700; }

/* ── Nocturne components ───────────────────────────────────────────────── */

.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:not(.store):hover, .btn[aria-disabled="true"]:not(.store):active { background: transparent; }

.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-800); color: var(--color-accent-100); }
.tag-neutral { background: var(--color-neutral-800); color: var(--color-neutral-100); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--accent-text); }

.seg {
  display: inline-flex; overflow: hidden; padding: 0; list-style: none;
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.seg-opt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 13px; color: var(--color-text);
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt[aria-current="true"] { color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--color-accent); }
a.seg-opt:not([aria-current="true"]):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
a.seg-opt:focus-visible { outline-color: var(--color-text); outline-offset: -3px; }

.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 17px; line-height: 1.2; }
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; vertical-align: bottom; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-70); padding: 10px var(--space-3);
}
.table td { padding: 12px var(--space-3); vertical-align: top; }
.table thead tr { background: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px; }
.table tbody tr { background: linear-gradient(to right, transparent, color-mix(in srgb, var(--color-text) 8%, transparent) 48px, color-mix(in srgb, var(--color-text) 8%, transparent) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px; }
.table tbody tr:last-child { background: none; }

/* ── backdrop ──────────────────────────────────────────────────────────── */

.bg-glow, .bg-dots, .scene-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-glow {
  background:
    radial-gradient(55% 45% at 78% 38%, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, color-mix(in srgb, var(--color-section) 60%, transparent), transparent 70%);
}
.bg-dots {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--color-text) 15%, transparent) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(75% 65% at 72% 38%, #000, transparent 78%);
  mask-image: radial-gradient(75% 65% at 72% 38%, #000, transparent 78%);
}
.scene-canvas { display: block; width: 100%; height: 100%; }

/* ── header ────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: color-mix(in srgb, var(--color-bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-nav {
  max-width: 1240px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-text); margin-right: auto; }
.brand:hover { color: var(--color-text); }
.mark { display: inline-flex; align-items: center; }
.mark > span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--color-accent); }
.mark > span:nth-child(2) { height: 2px; border: 0; border-radius: 0; background: var(--color-accent); }
.mark-sm > span { width: 10px; height: 10px; }
.mark-sm > span:nth-child(2) { height: 2px; }
.wordmark { font-family: var(--font-display); font-variation-settings: 'ROND' 100; font-size: 22px; font-weight: 900; letter-spacing: 0; }
.wordmark-sm { font-size: 17px; }

.section-links { display: flex; gap: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }
.section-links a { color: var(--color-text); }
.section-links a:hover { color: var(--color-accent-300); }
.section-links a[aria-current="page"] { color: var(--accent-text); }
/* The link to the "why we built it" page (not in the design) shows at every
   width from 360px: on phones under its short label ("Neden?", the full one
   stays for screen readers), with the header's gaps narrowed so it fits
   between the mark and the controls. The landing page's sections join it,
   to its left, where all five fit beside the controls (the English labels
   need about 990px; the design's four fitted from 860px). Under 360px it
   is only the footer's first link. */
.section-links a:not(.nav-page), .nav-page-short { display: none; }
@media (min-width: 1000px) { .section-links a:not(.nav-page) { display: inline; } }
@media (max-width: 599px) {
  .site-nav { gap: 16px; }
  .nav-page-full {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .nav-page-short { display: inline; }
}
@media (max-width: 359px) { .section-links { display: none; } }

.header-controls { display: flex; align-items: center; gap: 10px; }
.lang-switch .seg-opt { padding: 5px 10px; }
.theme-toggle { width: 32px; height: 32px; font-size: 17px; }
.theme-moon, :root[data-theme="light"] .theme-sun { display: none; }
:root[data-theme="light"] .theme-moon { display: inline-block; }
/* Without JavaScript there is nothing to toggle (theme.js wires it). */
:root:not(.js) .theme-toggle { display: none; }

/* The controls keep the design's size; an invisible box around each one
   makes the touch target about 44px (WCAG 2.5.5) without moving anything.
   The segmented control's corners are rounded per option instead of
   clipped, so the targets can reach past it. */
.lang-switch { overflow: visible; }
.lang-switch .seg-opt { position: relative; }
.lang-switch .seg-opt:first-child { border-radius: calc(var(--radius-md) - 1px) 0 0 calc(var(--radius-md) - 1px); }
.lang-switch .seg-opt:last-child { border-radius: 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0; }
.lang-switch .seg-opt::after, .header-controls .btn-icon::after, .section-links a::after {
  content: ''; position: absolute; inset: -7px 0;
}
.lang-switch .seg-opt:first-child::after { left: -5px; }
.lang-switch .seg-opt:last-child::after { right: -5px; }
.header-controls .btn-icon { position: relative; }
.header-controls .btn-icon::after { inset: -6px -5px; }
.section-links a { position: relative; }
.section-links a::after { inset: -12px -6px; }

/* ── sections ──────────────────────────────────────────────────────────── */

.site-main { position: relative; z-index: 1; display: block; }
.site-main:focus { outline: none; }
.section { position: relative; z-index: 1; }
.section-full { min-height: 100vh; display: flex; align-items: center; }
.container { max-width: 1240px; width: 100%; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-pad { padding-top: clamp(96px, 14vh, 160px); padding-bottom: clamp(96px, 14vh, 160px); }

.section-copy { display: flex; flex-direction: column; gap: 18px; }
.copy-540 { max-width: 540px; }
.copy-560 { max-width: 560px; }
.copy-600 { max-width: 600px; gap: 20px; }
.copy-620 { max-width: 620px; gap: 22px; }
.copy-640 { max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent-300);
}
.eyebrow::before {
  content: ''; width: 22px; height: 4px; flex: none;
  background: radial-gradient(circle, currentColor 1.4px, transparent 1.9px) 0 50% / 6px 4px repeat-x;
}

.display, .h2 { font-family: var(--font-display); font-variation-settings: 'ROND' 100; letter-spacing: -0.01em; text-wrap: balance; }
.display { font-weight: 900; font-size: clamp(44px, 6.2vw, 88px); line-height: 1; }
.h2 { font-weight: 800; font-size: clamp(30px, 3.9vw, 50px); line-height: 1.06; }
.h2-lg { font-size: clamp(32px, 4.1vw, 54px); }
.h2-xl { font-size: clamp(38px, 5.4vw, 76px); }
/* The design balances every heading but this one ("Bildirim yok. / Bilerek."). */
.h2-wrap { text-wrap: wrap; }

.lead { font-size: 17px; line-height: 1.6; color: var(--fg-74); text-wrap: pretty; }
.lead-lg { font-size: 18px; }

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero { min-height: 100vh; display: flex; align-items: center; }
.hero-inner { padding-top: 120px; padding-bottom: 96px; }
.hero-copy { max-width: 620px; display: flex; flex-direction: column; gap: 24px; }
.hero-badge { align-self: flex-start; gap: 8px; padding: 5px 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; }
.hero-badge .icon { font-size: 14px; }
.hero-heading { display: flex; flex-direction: column; gap: 10px; }
.kicker { font-family: var(--font-mono); font-size: clamp(13px, 1.2vw, 16px); color: var(--color-accent-300); letter-spacing: 0.02em; }
.hero-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 540px; color: var(--fg-74); text-wrap: pretty; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.hero .stores { margin-top: 4px; }
/* The design's buttons are 46px (hero) and 48px (CTA) tall: the icon font's
   20px line box. The inline icons are 20px and 19px, so the height is set. */
.store { position: relative; min-height: 46px; padding: 12px 20px; font-size: 15px; gap: 10px; }
/* The buttons keep their outline look; a faint ground keeps the label
   legible where the 3D scene passes behind them on narrow screens (also on
   hover: they are not links yet). While the scene runs, a denser ground
   replaces the blur, which would be redrawn on every frame. */
.btn.store { --store-bg: color-mix(in srgb, var(--color-bg) 55%, transparent); background: var(--store-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn.store[aria-disabled="true"]:is(:hover, :active) { background: var(--store-bg); }
.scene .btn.store { --store-bg: color-mix(in srgb, var(--color-bg) 72%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
.cta .store { min-height: 48px; padding: 13px 22px; }
.btn-primary.store { color: var(--color-accent-300); }
.btn-secondary.store { color: var(--color-text); }
.store-icon { font-size: 20px; }
.store-icon-play { font-size: 19px; }
/* The device availability line under the buttons: the facts'
   mono voice, drawn close to the buttons it explains, after a small accent
   dot whose ring breathes out (transform and opacity only; still with
   reduced motion). The dot sits on the first line's centre. */
.stores-note {
  display: flex; align-items: flex-start; gap: 9px; max-width: 620px; margin-top: -10px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; letter-spacing: 0.02em;
  color: var(--fg-70); text-wrap: pretty;
}
.beta-dot {
  position: relative; width: 7px; height: 7px; flex: none; margin-top: calc(0.8em - 3.5px);
  border-radius: 50%; background: var(--color-accent);
}
.beta-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--color-accent);
  opacity: 0; animation: u2-beta-ring 3.2s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}
@keyframes u2-beta-ring { 0% { transform: scale(1); opacity: 0.55; } 60%, 100% { transform: scale(2.8); opacity: 0; } }
/* In the hero it comes in between the buttons and the facts (see motion). */

.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-70); }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .icon { font-size: 16px; color: var(--color-accent); }

/* ── stat band ─────────────────────────────────────────────────────────── */

.band {
  overflow: hidden; color: var(--color-text);
  background:
    radial-gradient(50% 130% at 50% 0%, color-mix(in srgb, var(--color-accent) 13%, transparent), transparent 72%),
    linear-gradient(180deg, var(--color-surface), var(--color-bg));
}
.band::before, .band::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-text) 26%, transparent) 0.9px, transparent 1.3px) 0 0 / 6px 2px repeat-x;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.band::before { top: 0; }
.band::after { bottom: 0; }
.band-inner { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 88px) var(--gutter) clamp(48px, 7vw, 80px); }
.band-line { display: flex; align-items: center; }
.band-end {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid var(--color-accent-400);
  box-shadow: 0 0 16px color-mix(in srgb, var(--color-accent) 45%, transparent);
}
.band-wire {
  position: relative; flex: 1; height: 2px;
  background: linear-gradient(90deg, var(--color-accent-400), color-mix(in srgb, var(--color-accent-400) 30%, transparent) 50%, var(--color-accent-400));
}
/* A packet is a wire-wide box moved with transform (no layout per frame);
   its glow sits on the box's left edge, so 0 → 100% runs end to end. */
.packet {
  position: absolute; inset: 0; opacity: 0;
  animation: u2-packet-r 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.packet::before {
  content: ''; position: absolute; top: 50%; left: -32px; width: 64px; height: 4px; margin-top: -2px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--color-accent-200), transparent);
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--color-accent) 50%, transparent);
}
.packet-l { animation-name: u2-packet-l; animation-delay: 3.5s; }
@keyframes u2-packet-r { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 54% { opacity: 1; } 60% { transform: translateX(100%); opacity: 0; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes u2-packet-l { 0% { transform: translateX(100%); opacity: 0; } 6% { opacity: 1; } 54% { opacity: 1; } 60% { transform: translateX(0); opacity: 0; } 100% { transform: translateX(0); opacity: 0; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-left: 6px; padding: 0; list-style: none; }
.stat {
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(28px, 4vw, 44px) 28px 12px;
  border-left: 2px dotted color-mix(in srgb, var(--color-text) 26%, transparent);
}
.stat-value { font-family: var(--font-display); font-variation-settings: 'ROND' 100; font-size: clamp(96px, 10vw, 148px); line-height: 0.8; font-weight: 900; letter-spacing: 0; color: var(--color-accent-100); }
.stat-copy { display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-300); }
.stat-text { font-size: 15px; line-height: 1.55; max-width: 30ch; color: var(--fg-72); text-wrap: pretty; }

/* ── how it works ──────────────────────────────────────────────────────── */

.points {
  margin-top: 56px; max-width: 900px; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px;
}
.point {
  padding: 22px; gap: 10px;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.scene .point { background: color-mix(in srgb, var(--color-surface) 95%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
.point-head { display: flex; align-items: center; justify-content: space-between; }
.point-icon { font-size: 24px; color: var(--color-accent); }
.point-n { font-family: var(--font-mono); font-size: 11px; color: var(--fg-60); }
.point-title { font-size: 18px; }
.point-body { font-size: 14px; line-height: 1.55; opacity: 0.82; }

/* ── pinned sections: statuses and ghost mode ──────────────────────────── */

.track { position: relative; }
.pin { min-height: 100vh; display: flex; align-items: center; }
.pin > .container { padding-top: clamp(88px, 12vh, 120px); padding-bottom: clamp(56px, 8vh, 96px); }

/* site.js pins a section (.is-pinned) only when its content fits between
   the header and the bottom of the smallest viewport, and re-checks on
   resize and when the fonts arrive (text zoom, short phones). The status
   section then highlights one status per scroll step; the ghost section
   pins only while the 3D scene can run. */
.track-status.is-pinned { height: 340vh; }
.track-ghost.is-pinned { height: 260vh; }
.track.is-pinned > .pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.track.is-pinned > .pin > .container { padding-top: calc(var(--header-h) + 12px); padding-bottom: 24px; }
/* site.js measures the smallest viewport height with this. */
.svh-probe { position: fixed; top: 0; left: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }

.status-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.status { display: grid; grid-template-columns: 3px 40px 1fr; gap: 14px; align-items: center; padding: 10px 0; }
.status-mark { align-self: stretch; border-radius: 2px; background: transparent; }
.status-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--color-surface); box-shadow: var(--shadow-sm);
  font-size: 20px; color: var(--fg-70);
}
.tone-accent .status-icon { color: var(--color-accent); }
.tone-danger .status-icon { color: var(--u-danger); }
.status-text { display: flex; flex-direction: column; gap: 2px; }
.status-label { font-size: 17px; font-weight: 500; }
.status-desc { font-size: 14px; line-height: 1.45; color: var(--fg-72); }
/* While stepping, the other statuses fade: their icon to 40%, their text to
   a muted colour that still meets WCAG AA (5.2:1 dark, 5.5:1 light). The
   accent mark and full colour show the current one. */
.status-icon, .status-label, .status-desc { transition: opacity 300ms ease, color 300ms ease; }
.status-list.is-stepping .status:not(.is-active) .status-icon { opacity: 0.4; }
.status-list.is-stepping .status:not(.is-active) :is(.status-label, .status-desc) { color: var(--fg-55); }
.status.is-active .status-mark { background: var(--color-accent); }
@media (prefers-contrast: more) {
  .status-list.is-stepping .status:not(.is-active) .status-icon { opacity: 1; }
  .status-list.is-stepping .status:not(.is-active) :is(.status-label, .status-desc) { color: inherit; }
  .status-list.is-stepping .status:not(.is-active) .status-desc { color: var(--fg-72); }
}

.ghost-card { margin-top: 12px; padding: 14px 16px; flex-direction: row; align-items: center; gap: 12px; max-width: 440px; }
.avatar {
  position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-accent-800); color: var(--color-accent-100); font-weight: 500;
}
.avatar::after {
  content: ''; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--u-online); box-shadow: 0 0 0 2px var(--color-surface);
}
.ghost-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ghost-name { font-size: 16px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.ghost-name .icon { font-size: 15px; color: var(--color-accent); }
.ghost-presence { font-size: 13px; color: var(--fg-66); }
.countdown { gap: 6px; font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.countdown .icon { font-size: 15px; }
.window-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.window-label { font-size: 13px; color: var(--fg-66); }

/* ── features ──────────────────────────────────────────────────────────── */

.features {
  margin-top: 48px; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px;
}
.feature { padding: 22px; gap: 10px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: grid; place-items: center; font-size: 21px; color: var(--color-accent);
  background: var(--color-accent-900); box-shadow: inset 0 0 0 1px var(--color-accent-800);
}
.feature-title { margin-top: 4px; }
.feature-body { font-size: 14px; line-height: 1.55; }
.kinds { margin-top: 56px; display: flex; flex-direction: column; gap: 16px; }
.kinds-title { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--fg-66); }
.kind-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.kind { gap: 7px; font-size: 13px; padding: 7px 12px; }
.kind .icon { font-size: 16px; color: var(--color-accent-300); }

/* ── verification ──────────────────────────────────────────────────────── */

.verify-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px; align-items: center; }
.verify-card { padding: 24px; gap: 20px; max-width: 440px; width: 100%; justify-self: end; }
@media (max-width: 959px) { .verify-card { justify-self: start; } }
.verify-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verify-who { display: flex; flex-direction: column; }
.verify-name { font-size: 17px; font-weight: 500; }
.verify-sub { font-size: 13px; color: var(--fg-66); }
.verify-tag { gap: 6px; font-size: 12px; }
.verify-tag .icon { font-size: 14px; }
.verify-body { display: grid; grid-template-columns: 148px 1fr; gap: 20px; align-items: center; }
/* A QR code is always dark on light, whatever the theme. */
.qr { width: 148px; height: 148px; padding: 10px; border-radius: var(--radius-md); background: #f3f5fe; }
.qr svg { width: 100%; height: 100%; fill: #292b31; }
.safety { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 12px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; color: var(--fg-86); }
.verify-scan { padding: 11px 14px; font-size: 15px; gap: 8px; margin-top: 0; cursor: default; color: var(--accent-text); }
.verify-scan:hover { background: transparent; }
.verify-scan .icon { font-size: 18px; }
.verify-note { margin-top: -6px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--fg-66); }
@media (max-width: 420px) {
  .verify-card { padding: 20px; }
  .verify-body { grid-template-columns: 112px 1fr; gap: 14px; }
  .qr { width: 112px; height: 112px; padding: 8px; }
  .safety { font-size: 11.5px; gap: 6px 8px; }
}

/* ── call to action ────────────────────────────────────────────────────── */

.cta { min-height: 92vh; display: flex; align-items: center; }

/* ── footer ────────────────────────────────────────────────────────────── */

.site-footer { position: relative; z-index: 1; background: color-mix(in srgb, var(--color-bg) 82%, transparent); }
.footer-inner { padding-bottom: 40px; }
.footer-inner > .hr { margin: 0 0 28px; }
/* As designed, the links are items of the row, so on a phone the first one
   shares the brand's line. The licence note (not in the design) comes last,
   in the muted colour of "© 2026". */
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.footer-note { color: var(--fg-55); }
.footer-link { position: relative; color: var(--fg-74); }
.footer-link:hover { color: var(--color-accent-300); }
.footer-link.footer-legal { color: var(--fg-55); }
.footer-link.footer-legal:hover { color: var(--color-accent-300); }
/* About 38px tall touch targets that do not move the text (WCAG 2.5.8). */
.footer-link::after { content: ''; position: absolute; inset: -8px -6px; }
/* Fine print under the row (not in the design), in the muted mono of the notes. */
.footer-fine { margin-top: 20px; font-family: var(--font-mono); font-size: 11px; line-height: 1.6; letter-spacing: 0.02em; color: var(--fg-55); text-wrap: pretty; }
/* "Other products" above the row (not in the design): a card per app, each a
   link to that app's own site, in the surface colour of the page's cards. */
.footer-products { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 36px; }
.footer-products-title { margin: 0; font-weight: 400; }
.footer-product-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 1000px) { .footer-product-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) { .footer-product-list { grid-template-columns: 1fr; } }
.footer-product { height: 100%; padding: 18px 20px; color: var(--color-text); transition: box-shadow 200ms ease; }
.footer-product:hover { box-shadow: var(--shadow-md); }
.footer-product-arrow { color: var(--accent-text); }
.footer-product .card-body { text-wrap: pretty; }
.footer-product-host { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--fg-55); }

/* ── privacy, support and error pages ──────────────────────────────────── */

.page-pad { padding-top: clamp(120px, 18vh, 168px); padding-bottom: clamp(80px, 12vh, 128px); }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.display-page { font-size: clamp(40px, 5.6vw, 72px); }
.updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg-66); margin-bottom: 6px; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--fg-86); }
.prose .lead { font-size: 18px; line-height: 1.6; color: var(--fg-74); }
.prose a:not(.btn) { color: var(--color-accent-300); text-decoration: underline; text-decoration-thickness: 1px; }
.prose a:not(.btn):hover { text-decoration-thickness: 2px; }
.h2-prose { font-size: clamp(24px, 2.8vw, 34px); margin-top: 30px; }
.prose-section { display: flex; flex-direction: column; gap: 18px; }
.dot-list { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.dot-list li { position: relative; padding-left: 22px; }
.dot-list li::before { content: ''; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.table-card { padding: 6px 10px; overflow-x: auto; }
.table-card .table td { color: var(--fg-86); line-height: 1.55; }
.table-card .table td:first-child { width: 55%; }
.contact-card { gap: 4px; padding: 18px 20px; align-self: flex-start; }
.prose .contact-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-300); }
.prose .contact-email { font-size: 20px; line-height: 1.4; }
.faq { display: flex; flex-direction: column; }
.faq-item { background: linear-gradient(to right, transparent, var(--color-divider) 48px, var(--color-divider) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px; }
.faq-item summary {
  position: relative; display: flex; align-items: center; min-height: 52px;
  padding: 14px 40px 14px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 18px; color: var(--color-accent);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: var(--color-accent-300); }
.faq-item summary:focus-visible { outline-offset: -2px; border-radius: var(--radius-sm); }
.faq-item p { padding: 0 40px 18px 0; color: var(--fg-74); }
/* The support page's beta notes (not in the design): the feature cards of
   the landing page, laid flat with the icon beside the text; a warning
   takes the danger tone of "İletilemedi". */
.notes { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; }
.note { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; }
.note-copy { display: flex; flex-direction: column; gap: 8px; }
.note-title { margin-top: 10px; }
.prose .note-body { font-size: 15px; line-height: 1.6; color: var(--fg-74); }
.prose .note-email { align-self: flex-start; padding: 3px 0; font-family: var(--font-mono); font-size: 13px; }
.note-danger .note-icon {
  color: var(--u-danger);
  background: color-mix(in srgb, var(--u-danger) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u-danger) 34%, transparent);
}
@media (max-width: 480px) {
  .note { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .note-title { margin-top: 0; }
}
.error-page { display: flex; flex-direction: column; gap: 18px; min-height: 80vh; justify-content: center; }
.error-page .display-page { font-size: clamp(96px, 12vw, 168px); line-height: 0.9; }
.error-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.error-links .btn { padding: 12px 20px; font-size: 15px; min-height: 44px; }

/* ── "why we built it" (not in the design): the team's statement as a
   press release, in the privacy page's frame, with a narrower measure for
   long reading. Pull quotes hang off a dotted rule (the eyebrow's dots);
   citation marks are small mono numbers that link to the sources, and the
   source a mark leads to lights up. ────────────────────────── */

.prose.why { max-width: 700px; }
.prose .why-standfirst { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--fg-86); }
.why .prose-section > p { font-size: 17px; line-height: 1.7; }
.pull-quote { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 10px 0; padding: 4px 0 4px 28px; }
.pull-quote::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px;
  background: radial-gradient(circle, var(--color-accent) 1.4px, transparent 1.9px) 50% 0 / 4px 6px repeat-y;
}
.pull-quote blockquote { margin: 0; }
.prose .pull-quote p { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: clamp(22px, 2.5vw, 28px); line-height: 1.35; color: var(--color-text); text-wrap: balance; }
.pull-quote blockquote p::before { content: '“'; }
.pull-quote blockquote p::after { content: '”'; }
.pull-quote figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-300); }
.cite { position: relative; margin-left: 1px; font-size: 100%; line-height: 0; vertical-align: 0.5em; }
.prose .cite a { position: relative; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--accent-text); text-decoration: none; }
.prose .cite a:hover { text-decoration: underline; }
.cite a::after { content: ''; position: absolute; inset: -12px -5px; }
/* "Back to the text" lands with a few lines of the text above the mark. */
.cite a { scroll-margin-top: 22vh; }
.why-cta { margin-top: 12px; }
.why-cta-links { display: flex; flex-wrap: wrap; gap: 12px; }
.why-cta-links .btn { min-height: 44px; padding: 12px 20px; font-size: 15px; }
.prose .why-cta .stores-note { font-size: 11.5px; line-height: 1.6; color: var(--fg-70); }
.about-card { gap: 12px; margin-top: 30px; padding: 22px 24px; }
.prose .about-body { font-size: 15px; line-height: 1.65; color: var(--fg-74); }
.prose .about-press { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; }
.sources { display: flex; flex-direction: column; gap: 4px; padding: 0; list-style: none; }
.source { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 14px 12px 4px; border-radius: var(--radius-md); }
.prose .source-n { font-family: var(--font-mono); font-size: 13px; line-height: 1.85; text-align: right; color: var(--accent-text); }
.source-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prose .source-title { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.prose .source-meta { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; letter-spacing: 0.02em; color: var(--fg-66); }
.source-meta time { white-space: nowrap; }
.prose .source-back { align-self: flex-start; padding: 2px 0; font-family: var(--font-mono); font-size: 11.5px; }
/* The arrow is drawn, not read (empty alternative text where supported). */
.source-back::before { content: '↑ '; content: '↑ ' / ''; }
/* :target after a jump (marks and back links use the browser's own scroll); :focus where focus lands. */
.source:is(:target, :focus) { background: color-mix(in srgb, var(--color-accent) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 45%, transparent); }

/* ── motion ────────────────────────────────────────────────────────────── */
/* Calm and short. Only transform and opacity move (small controls also fade
   their colours), so nothing shifts the layout, and all of it waits for
   `prefers-reduced-motion: no-preference`. Everything is in place without
   JavaScript or if a script fails: the hero and page-top entrances are CSS
   animations that always finish (theme.js sets .js before the first paint),
   and the blocks further down wait hidden only once site.js watches them
   (.reveal on <html>, .rv on each block, .is-in as it comes into view, once). */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes u2-rise { from { opacity: 0; translate: 0 16px; } }
@keyframes u2-open { from { opacity: 0; translate: 0 -4px; } }
@keyframes u2-fade { from { opacity: 0; } }
@keyframes u2-ping { 45% { transform: scale(1.3); } }
@keyframes u2-turn { from { opacity: 0; transform: rotate(-80deg) scale(0.6); } }
@keyframes u2-focus { from { outline-offset: 6px; outline-color: transparent; } }
@keyframes u2-quarter { from { rotate: -90deg; } }
@keyframes u2-scan { from { translate: 0 -100%; } to { translate: 0 100%; } }
@keyframes u2-drift { to { transform: translate3d(0, 12vh, 0); } }
@keyframes u2-dots { to { transform: translate3d(0, -240px, 0); } }

/* Hover and focus. Section and footer links grow a dotted underline (the
   eyebrow's dots); content cards light a soft accent ring. */
.section-links a::before, .footer-link::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; pointer-events: none;
  background: radial-gradient(circle, currentColor 0.8px, transparent 1.2px) 0 50% / 4px 2px repeat-x;
  opacity: 0; transform: scaleX(0); transform-origin: left center;
}
.section-links a:hover::before, .footer-link:hover::before { opacity: 1; transform: none; }
.section-links a[aria-current="page"]::before { opacity: 1; transform: none; }
.point, .feature { position: relative; }
.point::after, .feature::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 60%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--color-accent) 50%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .point:hover::after, .feature:hover::after { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .faq-item summary { transition: color 200ms ease; }
  .btn, .seg-opt { transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms var(--ease-out); }
  :is(a, button).btn:not([aria-disabled="true"]):active { transform: scale(0.97); transition-duration: 80ms; }
  .skip-link { transition: transform 300ms var(--ease-out); }
  :focus-visible:not(.seg-opt, summary) { animation: u2-focus 260ms var(--ease-out); }
  .section-links a::before, .footer-link::before { transition: opacity 200ms ease, transform 450ms var(--ease-out); }
  .point, .feature { transition: transform 450ms var(--ease-out); }
  .point::after, .feature::after { transition: opacity 350ms ease; }
  .point-icon, .feature-icon { transition: transform 450ms var(--ease-out); }

  /* The mark on hover: one end, then the other, like a message crossing. */
  .brand:hover .mark > span:first-child { animation: u2-ping 650ms var(--ease-out); }
  .brand:hover .mark > span:last-child { animation: u2-ping 650ms var(--ease-out) 200ms; }

  /* The theme toggle turns its new icon in (theme.js sets .theme-switched on
     the first switch, so nothing turns at load) and the page cross-fades. */
  .theme-toggle .icon { transition: transform 500ms var(--ease-out); }
  .theme-switched .theme-toggle .icon { animation: u2-turn 550ms var(--ease-out); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 450ms; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }

  /* The hero (and the invite page's) comes in line by line, its full stop
     last; the privacy, support and 404 pages do the same with their first
     lines. */
  :root.js :is(.hero, .page-invite) :is(.hero-badge, .kicker, .display, .hero-lead, .stores, .stores-note, .facts, .section-copy),
  :root.js :is(.page-pad > .prose, .error-page) > :nth-child(-n+5) { animation: u2-rise 1000ms var(--ease-out) backwards; }
  :root.js :is(.hero, .page-invite) .kicker, :root.js :is(.page-pad > .prose, .error-page) > :nth-child(2) { animation-delay: 90ms; }
  :root.js :is(.hero, .page-invite) .display, :root.js :is(.page-pad > .prose, .error-page) > :nth-child(3) { animation-delay: 170ms; }
  :root.js :is(.hero, .page-invite) .hero-lead, :root.js :is(.page-pad > .prose, .error-page) > :nth-child(4) { animation-delay: 290ms; }
  :root.js :is(.hero, .page-invite) .stores, :root.js :is(.page-pad > .prose, .error-page) > :nth-child(5) { animation-delay: 390ms; }
  :root.js :is(.hero, .page-invite) .stores-note { animation-delay: 450ms; }
  :root.js :is(.hero, .page-invite) .facts { animation-delay: 520ms; }
  :root.js :is(.hero, .page-invite) .section-copy { animation-delay: 620ms; }
  :root.js .hero .display .dot { animation: u2-fade 700ms ease 1050ms backwards; }
  /* A link target (/tr/destek#beta) only fades: the browser scrolls to it
     while it would still be rising, and would land that much off. */
  :root.js :is(.page-pad > .prose, .error-page) > [id]:nth-child(-n+5) { animation-name: u2-fade; }

  /* The current status: its accent mark grows, its icon lifts a little. */
  .status-mark { background: var(--color-accent); opacity: 0; transform: scaleY(0.3); transition: opacity 300ms ease, transform 500ms var(--ease-out); }
  .status.is-active .status-mark { opacity: 1; transform: none; }
  .status-icon { transition: opacity 300ms ease, color 300ms ease, transform 500ms var(--ease-out); }
  .status-list.is-stepping .status.is-active .status-icon { transform: scale(1.08); }

  .faq-item[open] > p { animation: u2-open 450ms var(--ease-out); }
  .source { transition: background-color 500ms ease, box-shadow 500ms ease; }
  .faq-item[open] summary::after { animation: u2-quarter 350ms var(--ease-out); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .point:hover, .feature:hover { transform: translateY(-3px); }
  .point:hover .point-icon { transform: rotate(-8deg) scale(1.06); }
  .feature:hover .feature-icon { transform: translateY(-1px) scale(1.06); }
  .theme-toggle:hover .theme-sun { transform: rotate(45deg); }
  .theme-toggle:hover .theme-moon { transform: rotate(-18deg); }
}

/* Scroll reveal (site.js). A block rises 20px as it fades in; blocks that
   arrive together follow each other by 70ms (--rv-delay). Hiding has no
   transition, so a block never fades out. */
@media screen and (prefers-reduced-motion: no-preference) {
  .reveal .rv:not(.is-in, :focus-within) { opacity: 0; translate: 0 20px; }
  /* Link targets (#guvenlik, #lisanslar) only fade, so an anchor link or the
     slow scroll lands where scroll-padding says, not 20px under the header. */
  .reveal .rv:is([id], :has([id])):not(.is-in) { translate: none; }
  .reveal .rv.is-in { transition: opacity 800ms var(--ease-out) var(--rv-delay, 0ms), translate 1000ms var(--ease-out) var(--rv-delay, 0ms); }
  .reveal :is(.point, .feature).rv.is-in { transition: opacity 800ms var(--ease-out) var(--rv-delay, 0ms), translate 1000ms var(--ease-out) var(--rv-delay, 0ms), transform 450ms var(--ease-out); }

  /* A heading's full stop lands a moment after it; an eyebrow draws its dots. */
  .reveal .rv:not(.is-in) .dot { opacity: 0; }
  .reveal .rv.is-in .dot { transition: opacity 600ms ease calc(var(--rv-delay, 0ms) + 450ms); }
  .reveal .eyebrow.rv::before { transform-origin: left center; }
  .reveal .eyebrow.rv:not(.is-in)::before { transform: scaleX(0); }
  .reveal .eyebrow.rv.is-in::before { transition: transform 700ms var(--ease-out) calc(var(--rv-delay, 0ms) + 150ms); }

  /* The band: one end lights, the wire is drawn across, the other end
     lights, then the packets start to travel. */
  .reveal .band-line.rv .band-wire { transform-origin: left center; }
  .reveal .band-line.rv:not(.is-in) .band-wire { transform: scaleX(0); }
  .reveal .band-line.rv:not(.is-in) .band-end { opacity: 0; transform: scale(0.4); }
  .reveal .band-line.rv:not(.is-in) .packet { visibility: hidden; }
  .reveal .band-line.rv.is-in .band-wire { transition: transform 1200ms var(--ease-in-out) calc(var(--rv-delay, 0ms) + 150ms); }
  .reveal .band-line.rv.is-in .band-end { transition: opacity 500ms ease, transform 700ms var(--ease-out); transition-delay: var(--rv-delay, 0ms); }
  .reveal .band-line.rv.is-in .band-end:last-child { transition-delay: calc(var(--rv-delay, 0ms) + 1250ms); }
  .reveal .band-line.rv.is-in .packet { transition: visibility 0s linear calc(var(--rv-delay, 0ms) + 1450ms); }

  /* The example QR code is scanned once. */
  .reveal .verify-card.rv .qr { position: relative; overflow: hidden; }
  .reveal .verify-card.rv.is-in .qr::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(transparent 40%, color-mix(in srgb, var(--color-accent) 55%, transparent) 50%, transparent 60%);
    animation: u2-scan 1600ms var(--ease-in-out) calc(var(--rv-delay, 0ms) + 600ms) both;
  }
}

/* Parallax, where the browser drives it from the scroll position on its own
   (scroll-driven animations; elsewhere nothing moves): the dot grid drifts
   up a little slower than the page, and the landing hero's copy lags behind
   as it leaves (only there: the invite page's .hero-copy is the whole page).
   The dots move inside .bg-dots, so its mask stays where it is. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .bg-dots { background: none; }
    .bg-dots::before {
      content: ''; position: absolute; inset: 0 0 -240px;
      background: radial-gradient(circle, color-mix(in srgb, var(--color-text) 15%, transparent) 1px, transparent 1.6px) 0 0 / 22px 22px;
      animation: u2-dots linear both;
      animation-timeline: scroll(root);
    }
    .hero .hero-copy {
      animation: u2-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0px 100vh;
    }
  }
}

/* ── reduced motion: no packets, no transitions (and site.js neither loads
   the 3D scene nor runs the countdown) ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .packet { display: none; }
  .beta-dot::after { animation: none; }
  .status-icon, .status-label, .status-desc { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ── forced colours (Windows High Contrast): box-shadows and backgrounds are
   dropped, so the current option and the current status get an outline or
   a system colour, and nothing is faded. ─────────────────────────────── */

@media (forced-colors: active) {
  .seg-opt[aria-current="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
  a.seg-opt:focus-visible { outline: 2px solid CanvasText; outline-offset: 1px; }
  .status.is-active .status-mark { forced-color-adjust: none; background: Highlight; }
  .status-list.is-stepping .status:not(.is-active) .status-icon { opacity: 1; }
  .qr { forced-color-adjust: none; }
  .footer-product { border: 1px solid CanvasText; }
  .source:is(:target, :focus) { outline: 2px solid Highlight; outline-offset: -2px; }
}
