/* The public site, EN and TR: the Blue Stage. Home, Tour, Security, About.
 *
 * Not styles.css: that file still dresses the draft legal pages, which will be
 * restyled when they are published.
 *
 * The landing runs NO script (CSP script-src 'none') and allows no inline style
 * (style-src 'self'), so every moving or choosable part below is CSS alone:
 * keyframes, radio buttons and <details>. Each animation has a
 * prefers-reduced-motion fallback that shows its first state, still.
 *
 * Colour is the app's own: its light greys as the ground, its petrol blue as the
 * stage, its dark panels for the product fragments. Amber appears only on the
 * primary action. Light only for now; the app's dark theme is not mirrored here. */

@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("/fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/onest-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: light;
  --bg: #F0F3F5; --surface: #E3E9EE; --rule: #CBD5DD;
  --ink: #141A20; --ink-2: #2E3A45; --muted: #4A5568; --dim: #5F6E7B;
  --stage: #006E90; --on-stage: #FFFFFF;
  --frag: #161A1D; --frag-2: #242B32; --frag-line: #2E3840; --ui: #E8EDF2; --ui-2: #9BAAB5;
  --loss: #EE6A6A; --check: #006E90; --cross: #B42318;
  --accent: #F0A03C; --accent-ink: #141A20;
  --display: "Unbounded", "Arial Black", Arial, sans-serif;
  --text: "Onest", Arial, sans-serif;
  /* Page margin: grows on very wide screens so content never runs past ~1680px. */
  --m: max(clamp(16px, 2.8vw, 40px), calc((100vw - 1680px) / 2));
  --gap-section: clamp(96px, 11vw, 168px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--text); overflow-x: clip; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--stage); outline-offset: 3px; }

/* Clipped to nothing until focused, so it never sits on the page as a label. */
.skip { position: absolute; left: var(--m); top: 12px; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; background: var(--ink); color: #fff; padding: 0; border-radius: 999px; z-index: 10; text-decoration: none; }
.skip:focus { width: auto; height: auto; clip: auto; padding: 10px 16px; }

/* One button shape, everywhere: the pill. */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 15px 26px; border-radius: 999px; font: 600 16px/1 var(--text); white-space: nowrap; }
.btn:hover { background: #F4B25E; }
.link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--m); font-size: 15px; }
/* The wordmark carries its own tagline, so it needs real height to be read at all. */
.brand img { height: 60px; width: auto; display: block; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { padding: 11px 18px; font-size: 15px; }
.lang { display: flex; gap: 2px; }
.lang a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; color: var(--muted); }
.lang img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; display: block; }
.lang a:not([aria-current]) img { opacity: .75; }
.lang a:hover img { opacity: 1; }
.lang a[aria-current] { color: var(--ink); font-weight: 600; background: var(--surface); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
/* Two lines at every width, authored. Unbounded is wide, so the size is set by
 * the longer second line, not by taste: about 100px at 1440, about 28px at 390. */
/* Leading 1.06: at 0.95 the y of the first line touched the dot of the i below it. */
h1 { margin: 0; padding: 2vh var(--m) 0; font: 800 min(6.75vw, 104px)/1.06 var(--display); letter-spacing: -0.055em; }
h1 span { display: block; white-space: nowrap; }
.under { display: grid; grid-template-columns: 4fr 8fr; gap: 3vw; margin-top: clamp(28px, 4vh, 48px); }
.under .copy { padding-left: var(--m); }
.under .copy p { margin: 0 0 26px; max-width: 32ch; font-size: clamp(18px, 1.3vw, 21px); color: var(--ink-2); }
.under .act { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.under .copy .small { font-size: 14px; color: var(--muted); margin: 22px 0 0; }

.stage { background: var(--stage); clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%, 0 64px); padding: 48px var(--m) 0 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; min-width: 0; }
.panel { background: var(--frag); color: var(--ui); border-radius: 12px 12px 0 0; overflow: hidden; font-size: 15px; min-width: 0; }
.panel .bar { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; color: var(--ui-2); font-size: 13px; border-bottom: 1px solid var(--frag-line); } /* taste-skill-ignore: inside a data-ui fragment, the app's own panel rule */

/* Panel 1: the number over one picture: trading screens, gold and paper, with
 * a bold chart climbing through them. The picture holds still and is dimmed so
 * the white figure reads over it; the three currencies take turns on top. */
.scene { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(.9); }
.nv { position: absolute; left: 20px; right: 20px; bottom: 18px; opacity: 0; animation: nv 18s infinite; }
.nv:nth-of-type(2) { animation-delay: 6s; }
.nv:nth-of-type(3) { animation-delay: 12s; }
@keyframes nv { 0%, 3% { opacity: 0; } 6%, 30% { opacity: 1; } 33.3%, 100% { opacity: 0; } }
.nv small { display: block; color: #C9D3DB; font-size: 14px; }
.nv b { display: block; font: 600 clamp(30px, 3.1vw, 52px)/1 var(--display); letter-spacing: -0.045em; margin-top: 6px; color: #fff; }
.moved { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 14px 18px 18px; border-top: 1px solid var(--frag-line); } /* taste-skill-ignore: inside a data-ui fragment */
.moved b { color: var(--loss); font-weight: 600; }

/* Panel 2: three questions retype in turn; each answer arrives once its
 * question is typed. */
.ask { --cycle: 15s; padding: 16px 18px 24px; }
.tline { position: relative; margin: 0; overflow: hidden; font: 500 clamp(17px, 1.35vw, 21px)/1.2 var(--text); background: var(--frag-2); padding: 15px 14px; border-radius: 8px; min-height: 54px; }
.tq { position: absolute; left: 14px; top: 15px; white-space: nowrap; overflow: hidden; max-width: 0; opacity: 0; padding-right: .06em; border-right: .07em solid currentColor; animation: tq var(--cycle) infinite; }
.tq:nth-child(2) { animation-delay: calc(var(--cycle) / 3); }
.tq:nth-child(3) { animation-delay: calc(var(--cycle) * 2 / 3); }
@keyframes tq {
  0% { max-width: 0; opacity: 1; animation-timing-function: steps(28, end); }
  10% { max-width: 16em; opacity: 1; }
  31% { max-width: 16em; opacity: 1; }
  33.3%, 100% { max-width: 16em; opacity: 0; }
}
/* All three answers share one grid cell, so the panel is as tall as the longest. */
.tans { display: grid; margin-top: 14px; }
.ta { grid-area: 1 / 1; margin: 0; opacity: 0; animation: ta var(--cycle) infinite; line-height: 1.5; }
.ta:nth-child(2) { animation-delay: calc(var(--cycle) / 3); }
.ta:nth-child(3) { animation-delay: calc(var(--cycle) * 2 / 3); }
@keyframes ta { 0%, 10% { opacity: 0; transform: translateY(10px); } 14%, 30% { opacity: 1; transform: none; } 33.3%, 100% { opacity: 0; transform: none; } }
.ta b { color: #fff; font-weight: 600; }
.ta .neg { color: var(--loss); }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: var(--gap-section) var(--m) 0; }
h2 { font: 600 clamp(30px, 3.6vw, 60px)/1.04 var(--display); letter-spacing: -0.045em; margin: 0 0 18px; max-width: 18ch; }
.sub { max-width: 56ch; color: var(--ink-2); margin: 0; }

/* What's still hot: a greyed list; choosing a name swaps the screen. Radios,
 * so arrow keys move through it and it works with no script. */
.index { display: grid; grid-template-columns: 4fr 8fr; gap: 4vw; align-items: start; margin-top: 48px; }
.index input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.names { display: grid; gap: 8px; align-content: start; }
.names label { cursor: pointer; font: 600 clamp(22px, 2.3vw, 38px)/1.12 var(--display); letter-spacing: -0.04em; color: var(--dim); }
.names label:hover { color: var(--ink-2); }
#s1:checked ~ .names [for=s1], #s2:checked ~ .names [for=s2], #s3:checked ~ .names [for=s3], #s4:checked ~ .names [for=s4], #s5:checked ~ .names [for=s5] { color: var(--stage); }
#s1:focus-visible ~ .names [for=s1], #s2:focus-visible ~ .names [for=s2], #s3:focus-visible ~ .names [for=s3], #s4:focus-visible ~ .names [for=s4], #s5:focus-visible ~ .names [for=s5] { outline: 2px solid var(--stage); outline-offset: 4px; border-radius: 4px; }
.names p { font-size: 15px; color: var(--muted); margin: 18px 0 0; }
.sheet { background: var(--frag); border-radius: 14px; padding: 14px; min-width: 0; }
.sheet figure { display: none; margin: 0; }
.sheet img { width: 100%; height: auto; display: block; border-radius: 8px; }
.sheet .pair { display: grid; gap: 10px; }
.sheet .narrow img { max-width: 560px; }
.sheet figcaption { color: var(--ui-2); font-size: 15px; padding: 14px 4px 4px; }
#s1:checked ~ .sheet .f1, #s2:checked ~ .sheet .f2, #s3:checked ~ .sheet .f3, #s4:checked ~ .sheet .f4, #s5:checked ~ .sheet .f5 { display: block; }

/* Growth in every currency: three tiles, the last on the stage blue. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 48px; }
.tiles div { background: var(--surface); padding: 28px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border-radius: 6px; }
.tiles .lbl { margin: 0; font-size: 19px; line-height: 1.4; }
.tiles .lbl span { display: inline-block; margin-top: 4px; font-weight: 600; }
.tiles div:last-child { background: var(--stage); color: var(--on-stage); }
.tiles .big { font: 600 clamp(44px, 4.8vw, 82px)/0.9 var(--display); letter-spacing: -0.05em; margin: 0; }

/* The held sentence: a highlight walks through it; the names that sync
 * themselves are underlined, with a callout on hover. The key line beneath says
 * the same thing for phones and screen readers, which never see a hover. */
/* Beside the sentence, the app's own proof of it: the All Assets list, where a
 * synced account says SYNC and one you add yourself shows its last update. */
.held { display: grid; grid-template-columns: 7fr 5fr; gap: 4vw; align-items: center; }
.accounts { margin: 0; justify-self: end; width: 100%; max-width: 520px; }
.accounts img { width: 100%; height: auto; display: block; border-radius: 14px; }
.accounts figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
/* A statement, not a headline: at most 36px on a desktop, 24px on a phone. */
.lit { font: 600 clamp(21px, 2.1vw, 30px)/1.28 var(--display); letter-spacing: -0.035em; margin: 0; color: var(--dim); }
.lit .lead { color: var(--ink); font-weight: 800; }
.lit > span { animation: lit 24s infinite; position: relative; }
.lit > span:nth-of-type(2) { animation-delay: 2s; } .lit > span:nth-of-type(3) { animation-delay: 4s; }
.lit > span:nth-of-type(4) { animation-delay: 6s; } .lit > span:nth-of-type(5) { animation-delay: 8s; }
.lit > span:nth-of-type(6) { animation-delay: 10s; } .lit > span:nth-of-type(7) { animation-delay: 12s; }
.lit > span:nth-of-type(8) { animation-delay: 14s; } .lit > span:nth-of-type(9) { animation-delay: 16s; }
.lit > span:nth-of-type(10) { animation-delay: 18s; } .lit > span:nth-of-type(11) { animation-delay: 20s; }
.lit > span:nth-of-type(12) { animation-delay: 22s; }
@keyframes lit { 0%, 7.6% { color: var(--ink); } 8.3%, 100% { color: var(--dim); } }
.lit .sync { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .16em; text-decoration-color: var(--stage); cursor: help; }
.lit .tip { display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: var(--frag); color: var(--ui); font: 500 14px/1 var(--text); letter-spacing: 0; padding: 9px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.lit .sync:hover .tip { display: block; }
.key { margin: 22px 0 0; color: var(--muted); font-size: 16px; }
.key::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--stage); vertical-align: middle; margin-right: 10px; }

/* The platform band: what syncs, and what Portfara prices itself. Two rows
 * drift past in opposite directions; each list is written twice, the second
 * hidden from screen readers, and both move by their own width, so the loop
 * has no seam. scripts/check_connection_band.py ties every entry to the
 * backend's registries. Logos are the owners' own colours, on the ground. */
.brands { padding: clamp(56px, 7vw, 96px) 0 0; display: grid; gap: 6px; }
.brow { display: grid; grid-template-columns: 12rem minmax(0, 1fr); align-items: center; gap: 20px; padding-left: var(--m); }
.blabel { margin: 0; font: 600 18px/1.2 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.bmarq { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.blist { display: flex; flex-shrink: 0; align-items: center; margin: 0; padding: 0; list-style: none; animation: brands 80s linear infinite; }
.brow + .brow .blist { animation-direction: reverse; animation-duration: 90s; }
.bmarq:hover .blist { animation-play-state: paused; }
.blist li { display: flex; align-items: center; gap: 10px; height: 76px; padding: 0 26px; flex-shrink: 0; white-space: nowrap; color: var(--ink-2); font: 600 17px/1 var(--text); }
.blist img { height: 34px; width: auto; max-width: 190px; object-fit: contain; }
.blist img.tall { height: 44px; }
.blist .mark img { height: 32px; }
.blist .word { font: 700 22px/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.blist .chip { height: auto; padding: 11px 18px; margin: 0 8px; border-radius: 999px; background: var(--surface); font-size: 16px; }
@keyframes brands { to { transform: translateX(-100%); } }

/* Two things you can check. */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.card { background: var(--surface); border-radius: 14px; padding: 26px; }
.card h3 { font: 600 22px/1.15 var(--display); letter-spacing: -0.035em; margin: 0 0 8px; }
.card > p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }
.card table { width: 100%; border-collapse: collapse; font-size: 16px; }
.card td { padding: 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.card td:last-child { text-align: right; padding-left: 12px; }
.card .total { display: flex; justify-content: space-between; font: 600 24px/1 var(--display); letter-spacing: -0.04em; padding-top: 14px; }
.card .mark { width: 36px; padding-right: 8px; text-align: left; }
/* The tick and the cross are drawn, not typed, so they look the same in every font. */
.yes, .no { position: relative; display: inline-block; width: 24px; height: 24px; border-radius: 50%; vertical-align: -6px; }
.yes { background: var(--check); }
.no { background: var(--cross); }
.yes::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.no::before, .no::after { content: ""; position: absolute; left: 6px; top: 10.75px; width: 12px; height: 2.5px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.no::after { transform: rotate(-45deg); }
.card td.mark + td { text-align: left; padding-left: 0; }
.card .more { display: inline-block; margin-top: 18px; }

/* Questions. */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 4vw; }
/* The heading travels with the questions, so its column is never an empty strip. */
.faq h2 { position: sticky; top: 32px; align-self: start; }
.faq details { background: var(--surface); border-radius: 12px; margin-bottom: 8px; padding: 0 24px; transition: background-color .3s ease, color .3s ease; }
.faq details[open] { background: var(--stage); color: var(--on-stage); }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 0 24px; max-width: 62ch; }
/* Opening: the answer stretches down and fades in. Every browser gets the
 * text animation; browsers that can animate the panel's own height (Chrome,
 * Edge) also grow the box smoothly, and close it the same way. */
.faq details[open] p { animation: faq-in .38s cubic-bezier(.2, .7, .2, 1) both; transform-origin: top; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px) scaleY(.94); } to { opacity: 1; transform: none; } }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .38s cubic-bezier(.2, .7, .2, 1), content-visibility .38s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* Closing band. */
.close { margin-top: var(--gap-section); background: var(--stage); color: var(--on-stage); padding: clamp(64px, 8vw, 112px) var(--m); display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; align-items: center; }
.close img { width: 100%; height: auto; border-radius: 12px; }
/* The chart is cut from the app's own stage, which is this same blue, so on
 * the band it had no edge. A light rim draws the edge; a deep shadow and a
 * soft cyan glow lift it off the ground. */
.close > img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 28px 70px -18px rgba(0, 24, 40, .7), 0 0 110px 6px rgba(120, 214, 245, .28); }
/* Two authored lines. Turkish runs longer ("takip etmeye başlayın" is 21 characters
 * to the English 14), so the size is set by the Turkish line. */
.close h2 { font-size: clamp(26px, 3.4vw, 56px); max-width: none; }
.close h2 span { display: block; white-space: nowrap; }
.close p { margin: 0 0 30px; max-width: 48ch; }

/* ── Inner pages: Tour, Security, About ───────────────────────────────────
 * Same header, closing band and footer as the home page. The h1 is a step
 * smaller: "yalnızca aracı kurum değil" is 26 characters on one line. */
.inner h1 { font-size: clamp(30px, 5.4vw, 84px); }
.intro-act { margin: 26px var(--m) 0; }
.nav > a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.intro { margin: clamp(24px, 3vh, 40px) var(--m) 0; max-width: 46ch; font-size: clamp(18px, 1.3vw, 21px); color: var(--ink-2); }
/* Measure in em, not ch: Onest's zero is wide, so 64ch ran to about 90 characters. */
.prose p, .claim p { max-width: 36em; margin: 0 0 18px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 44px); }
.side-fig { margin: 0; min-width: 0; }
.side-fig img { width: 100%; height: auto; display: block; border-radius: 12px; }
.side-fig.bottom { margin-top: 40px; }
.prose h2.minor { margin-top: 56px; font-size: clamp(22px, 2vw, 30px); }
.note { background: var(--surface); border-radius: 12px; padding: 20px 22px; max-width: 36em; margin-top: 22px; }

/* Security: the key check on the stage, the app's own words. */
.stage.one { grid-template-columns: minmax(0, 600px); }
.kc { padding: 18px 18px 24px; display: grid; gap: 10px; }
.kc-note { margin: 0 0 6px; color: var(--ui-2); font-size: 14px; line-height: 1.5; }
.kc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--frag-2); border-radius: 8px; padding: 14px 16px; }
.kc-key { color: var(--ui-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kc-state { display: flex; gap: 10px; align-items: center; line-height: 1.35; }
.kc-state .yes, .kc-state .no { flex: none; }
.kc-pill { background: var(--cross); color: #fff; border-radius: 999px; padding: 6px 12px; font: 600 13px/1 var(--text); }

/* Security: the claims, with their list pinned beside them. */
.doc { display: grid; grid-template-columns: 4fr 8fr; gap: 4vw; padding: var(--gap-section) var(--m) 0; }
.toc { position: sticky; top: 32px; align-self: start; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 7px 0; text-decoration: none; font: 600 clamp(17px, 1.3vw, 21px)/1.25 var(--display); letter-spacing: -0.03em; color: var(--dim); }
.toc a:hover { color: var(--stage); }
.claims { min-width: 0; }
.claim { scroll-margin-top: 24px; }
.claim + .claim { margin-top: clamp(72px, 7vw, 120px); }
.claim section { padding: 0; }
.claim h2 { font-size: clamp(24px, 2.8vw, 44px); max-width: 20ch; }
/* A claim with its proof: the text, and beside it the picture or the app screen. */
.claim.has-fig { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3vw; align-items: start; }
.claim.has-fig h2 { font-size: clamp(24px, 2.3vw, 36px); }
.claim-fig { margin: 0; }
.claim-fig img { width: 100%; height: auto; display: block; border-radius: 12px; }
.claim-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.claim ul { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; max-width: 36em; }
.claim li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.claim li svg { width: 20px; height: 20px; color: var(--stage); margin-top: 4px; }
.updated { margin: 72px 0 0; color: var(--muted); font-size: 15px; }

/* About: the holdings strip as a band, then the four nots set large. */
.band { margin-top: clamp(40px, 5vw, 72px); background: var(--stage); padding: 28px var(--m); overflow: hidden; }
.track { display: flex; }
.track img { width: 100%; height: auto; display: block; border-radius: 8px; }
.track img + img { display: none; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4vw; align-items: start; }
.split .prose { min-width: 0; }
/* Rows divided by a thin rule, at Sarp's request (2026-10-29): without them the
 * four large statements ran together. The sentence is centred on its statement. */
.nots { list-style: none; margin: 0; padding: 0; display: grid; }
.nots li { display: grid; grid-template-columns: 7fr 5fr; gap: 4vw; align-items: center; padding-block: clamp(28px, 3vw, 48px); }
.nots li + li { border-top: 1px solid var(--rule); } /* taste-skill-ignore: rows separated at the owner's request */
.nots h3 { margin: 0; font: 800 clamp(26px, 4.4vw, 72px)/1.02 var(--display); letter-spacing: -0.05em; }
.nots p { margin: 0; max-width: 40ch; font-size: clamp(17px, 1.25vw, 20px); color: var(--ink-2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; }
.pair > div { min-width: 0; }

/* Tour: the video on the stage, the chapters beside it. */
.stage.film { margin: clamp(32px, 4vw, 56px) 0 0 var(--m); padding: 48px var(--m) 48px 48px; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: 32px; align-items: start; }
.film figure { margin: 0; min-width: 0; }
.film video { width: 100%; height: auto; display: block; border-radius: 12px; background: var(--frag); }
.chapters { color: var(--on-stage); }
.chapters h2 { font-size: clamp(22px, 2vw, 30px); }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 17px; }
.film-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; padding: 20px var(--m) 0; color: var(--muted); font-size: 14px; }
.film-foot .credit { margin: 0; max-width: 72ch; }
.film-foot .link { color: var(--ink); font-size: 16px; }
.scenes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.scenes img { width: 100%; height: auto; display: block; border-radius: 10px; }
.scenes p { margin: 12px 0 0; font-size: 16px; }

/* Footer. */
.foot { padding: 56px var(--m) 40px; color: var(--muted); font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot h3 { font: 600 14px/1.2 var(--text); color: var(--ink); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .brand img { height: 84px; }
.foot .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; font-size: 13px; }

/* ── Narrow screens ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .doc, .split, .pair, .nots li, .claim.has-fig { grid-template-columns: minmax(0, 1fr); }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nots li { gap: 10px; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .toc a { font-size: 16px; }
  .stage.film { margin-left: 16px; padding: 20px 16px; grid-template-columns: minmax(0, 1fr); clip-path: none; border-radius: 14px 0 0 14px; }
  .kc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .kc-key { grid-column: 1 / -1; }
  /* On a phone the holdings strip drifts past instead of shrinking to nothing. */
  .band { padding: 22px 0; }
  .track { width: max-content; animation: drift 60s linear infinite; }
  .track img { width: auto; height: 120px; margin-right: 16px; }
  .track img + img { display: block; }
  .nav .hide-sm { display: none; }
  .faq h2 { position: static; }
  .under, .stage, .index, .tiles, .checks, .faq, .held, .close { grid-template-columns: minmax(0, 1fr); }
  .accounts { justify-self: start; max-width: 440px; }
  .brow { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .blabel { font-size: 16px; }
  .blist li { height: 56px; padding: 0 18px; }
  .blist img { height: 24px; max-width: 130px; }
  .blist img.tall { height: 32px; }
  .blist .mark img { height: 22px; }
  .close h2 { font-size: 7vw; }
  .under .copy { padding-right: var(--m); }
  .stage { clip-path: none; padding: 20px 16px 0; margin-left: 16px; border-radius: 14px 0 0 0; }
  .ask { min-height: 0; }
  .tiles div { min-height: 160px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav { gap: 14px; }
  .head .btn { display: none; }
  .brand img { height: 44px; }
  .foot .brand img { height: 64px; }
  .lang a { padding: 6px 8px; gap: 5px; }
}

/* Below 420px the language switch is flags only: with "Giriş yap" and the
 * wordmark, the coded pills overlapped at 375px. The code stays for screen readers. */
@media (max-width: 420px) {
  .brand img { height: 38px; }
  .nav { gap: 10px; }
  .lang a { padding: 6px 7px; }
  .lang .code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .nv, .tq, .ta, .lit > span, .faq details[open] p, .track, .blist { animation: none; }
  .bmarq { -webkit-mask-image: none; mask-image: none; padding-right: var(--m); }
  .blist { flex-wrap: wrap; flex-shrink: 1; }
  .blist[aria-hidden] { display: none; }
  .band { overflow-x: auto; }
  .faq details { transition: none; }
  .faq details::details-content { transition: none; }
  .nv:first-of-type { opacity: 1; }
  .tq:first-child { max-width: none; opacity: 1; border-right: 0; }
  .ta:first-child { opacity: 1; }
  .lit, .lit > span { color: var(--ink); }
}

/* Entrances, CSS only: each section's parts rise in as they scroll into view,
 * heading first, then its text, then its picture. Browsers without
 * scroll-driven animation (and visitors who ask for less motion) simply see
 * everything in place. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    section h2, .sub, .index > .names, .index > .sheet, .tiles > div, .lit, .key, .accounts, .checks > .card, .faq details, .close > div, .close > img, .claim, .nots li, .pair > div, .split .prose, .side-fig, .scenes li, .chapters li {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
    .sub, .key, .index > .sheet, .tiles > div:nth-child(2), .checks > .card:nth-child(2), .faq details:nth-child(2), .close > img { animation-range: entry 8% entry 80%; }
    .accounts, .tiles > div:nth-child(3), .faq details:nth-child(3) { animation-range: entry 16% entry 90%; }
    .faq details:nth-child(n+4) { animation-range: entry 22% entry 95%; }
  }
}
/* Starts part-visible, never invisible: a page captured without scrolling
 * (a link preview, a screenshot) must still show every section. */
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: .35; transform: translateY(32px); } to { opacity: 1; transform: none; } }
