/* DM Sans (SIL OFL 1.1, fonts/OFL.txt), served from this site: no request to Google. Same faces as pandanota.gekaret.com. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/dm-sans-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: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/dm-sans-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; }

/* Tokens shared with the PandaNota page (GeKaReT colours: ink #0F172A, indigo #4F46E5, paper #F8FAFC). */
:root {
  --paper: #F8FAFC;
  --paper-2: #F1F5F9;
  --ink: #0F172A;
  --muted: #475569;
  --accent: #4F46E5;
  --accent-ledge: #3730A3;
  --amber: #D97706;  /* focus ring, as on the PandaNota page */
  --line: #E2E8F0;

  --m: clamp(16px, 2.2vw, 32px);
  --gap: 12px;
  --rad: clamp(20px, 2.4vw, 32px);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1.03rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-sub: clamp(1.5rem, 0.9rem + 1.8vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html[lang="tr"] [lang="en"], html[lang="en"] [lang="tr"] { display: none; }
body {
  min-height: 100svh; display: flex; flex-direction: column;
  background: linear-gradient(200deg, #F8FAFC 0%, #EDEBFC 60%, #E4E2FA 100%) fixed; /* the PandaNota sky, standing still */
  color: var(--ink);
  font: 400 var(--step-body)/1.5 "DM Sans", system-ui, sans-serif;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

.top, main, .foot { width: 100%; max-width: 1120px; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: var(--m); }
.brand { display: inline-flex; align-items: center; gap: .19em; min-height: 48px; text-decoration: none; font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1; }
.mark { width: 1.15em; height: 1.15em; color: var(--accent); flex: none; }
/* yatay kilitteki oran: yazı yüksekliği G'nin 0,615'i, aralık 0,27'si (G ≈ 1em) */
.name { height: .615em; width: auto; aspect-ratio: 174 / 32; flex: none; }
.lang {
  font-family: inherit; font-weight: 500; font-size: var(--step-small); line-height: 1; min-width: 48px; min-height: 48px;
  background: var(--paper); color: var(--ink); border: 0; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s;
}
.lang:hover { background: var(--paper-2); }
.lang:active { transform: scale(.94); }

main { flex: 1; padding: 0 var(--m); }

.intro { position: relative; isolation: isolate; padding: clamp(48px, 8vw, 120px) 0 clamp(56px, 8vw, 112px); }
.room { position: absolute; z-index: -1; top: clamp(24px, 4vw, 64px); right: 0; width: clamp(140px, 26vw, 340px); height: auto;
  fill: none; stroke: var(--accent); stroke-width: 2; opacity: .35; overflow: visible; }
h1 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; max-width: 14ch; }
.label { font-size: var(--step-small); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.intro .label { margin-top: clamp(48px, 7vw, 96px); }
.about { margin-top: 16px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.45; }

.apps { padding-bottom: clamp(72px, 10vw, 140px); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 20px; }
.card { position: relative; display: flex; align-items: center; gap: 20px; padding: clamp(20px, 2.6vw, 32px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--rad); transition: border-color .18s; }
.card:hover { border-color: var(--accent); }
.card h3 { font-size: var(--step-sub); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--rad); } /* the whole card is the link */
.card h3 a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.card p { margin-top: 6px; color: var(--muted); }
.icon { flex: none; width: clamp(64px, 7vw, 90px); height: clamp(64px, 7vw, 90px); border-radius: 22.5%; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px var(--m); border-top: 1px solid var(--line); font-size: var(--step-small); color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.links a { display: inline-block; padding: 12px 0; color: var(--ink); }
.links a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .room { display: none; } /* on a phone it would sit under the heading */
  .cards { grid-template-columns: 1fr; }
  .card { gap: 16px; }
}

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

/* ---------- Legal pages (gizlilik.html, kosullar.html) ---------- */
.doc { max-width: 68ch; padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 10vw, 120px); font-size: 1.0625rem; line-height: 1.65; }
.doc h1 { font-size: var(--step-sub); letter-spacing: -0.02em; line-height: 1.15; max-width: none; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: var(--step-small); }
.doc h2 { margin-top: 48px; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.doc h3 { margin-top: 28px; font-size: 1.0625rem; font-weight: 700; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc ul { list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent-ledge); }
