/* ==========================================================================
   Katharo — getkatharo.com
   Tek stil dosyası. Üçüncü taraf istek YOK: sistem yazı tipi, yerel SVG ikonlar, satır içi grain.
   Dünya: "karanlık oda" — koyu marka zemini, içerik tek ışık kaynağı. Renk yalnızca anlam taşır:
   turkuaz = marka/eylem, kırmızı/yeşil/sarı = sil/sakla/favori.
   Kaynak: marketing/site-mock (Yön B), 2026-09-27.
   ========================================================================== */


:root {
  --bg: #061211;
  --bg-deep: #030a09;
  --brand: #2edcc8;
  --brand-deep: #0d6b61;
  --text: #ffffff;
  --dim: rgba(255, 255, 255, .72);   /* ≈ 9.8:1 zeminde */
  --faint: rgba(255, 255, 255, .58); /* ≈ 6.5:1 zeminde — en küçük metin bile AA */
  --line: rgba(255, 255, 255, .10);
  --line-brand: rgba(46, 220, 200, .24);
  --surface: rgba(255, 255, 255, .045);
  --glass: rgba(14, 34, 32, .62);

  /* Karar renkleri (iOS koyu görünüm karşılıkları — uygulamayla aynı anlam) */
  --delete: #ff453a;
  --keep: #32d74b;
  --fav: #ffd60a;
  --pro: #bf5af2;
  --pro-ink: #d7a0f7;

  /* Grup renkleri (Sources/Grouping/*: accent) */
  --g-screenshot: #0a84ff;
  --g-video: #ff375f;
  --g-burst: #40c8e0;
  --g-selfie: #63e6e2;
  --g-month: #98989d;
  --g-dup: #bf5af2;
  --g-similar: #7d7aff;
  --g-lowq: #ff9f0a;
  --g-doc: #ac8e68;

  --r-card: 24px;
  --r-tile: 16px;
  --gutter: 16px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

@media (min-width: 600px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-deep); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(ellipse 110% 70% at 50% -10%, rgba(46, 220, 200, .16), rgba(13, 107, 97, .07) 45%, transparent 72%) no-repeat,
    linear-gradient(180deg, var(--bg) 0, var(--bg-deep) 1100px) no-repeat,
    var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Işık havuzları (::before) kenardan taşar; kırpma main'de: iOS Safari gövdedeki overflow'u
   görünüm alanına her zaman yaymıyor, main'deki clip ise kaydırma kabı yaratmadan keser. */
main { overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: #000; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; }

/* Dil görünürlüğü: <html lang> neyse o blok görünür. Betik yoksa varsayılan TR. */
html[lang="tr"] [data-lang="en"],
html[lang="en"] [data-lang="tr"] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografi ---------- */
.hl { color: var(--brand); }
.lead { font-size: clamp(17px, 2.1vw, 20px); line-height: 1.5; color: var(--dim); max-width: 34em; }
/* ---------- Başlık ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--maxw); margin-inline: auto; padding: 12px var(--gutter);
  position: relative; z-index: 10;
}
.brandmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 650; font-size: 18px; letter-spacing: -.015em; text-decoration: none;
}
.brandmark img { width: 30px; height: 30px; border-radius: 7px; }

/* ---------- Dil seçici (segment) ---------- */
.lang {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
}
.lang button {
  font: inherit; font-size: 13px; font-weight: 650; letter-spacing: .04em;
  min-width: 46px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 999px;
  color: var(--dim); background: transparent; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, .15); color: var(--text); }

/* ---------- CTA ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  background: #fff; color: #000; text-decoration: none;
  font-size: 17px; font-weight: 700; letter-spacing: -.005em;
  box-shadow: 0 14px 40px -8px rgba(0, 0, 0, .55);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.cta .ico { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 48px -10px rgba(0, 0, 0, .6); }
.cta:hover .ico { transform: translateX(3px); }
.cta:active { transform: translateY(0) scale(.98); }
.cta:focus-visible { outline-offset: 4px; border-radius: 999px; }
.cta-block { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-block.center { align-items: center; text-align: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--brand); font-weight: 600; text-decoration: none;
}
.textlink .ico { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.textlink:hover .ico { transform: translateX(3px); }

/* ---------- Alt bilgi ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 36px 44px; color: var(--dim); font-size: 15px; }
.foot-grid { display: grid; gap: 20px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.foot-links .ico { width: 18px; height: 18px; color: var(--faint); }
.foot-meta { font-size: 13px; color: var(--faint); line-height: 1.6; }

/* ---------- Hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Premium katman ---------- */
body.b {
  --dim: rgba(255, 255, 255, .74);   /* ≈ 10:1 */
  --faint: rgba(255, 255, 255, .60); /* ≈ 7:1  */
  --hair: rgba(255, 255, 255, .11);
  --sec: clamp(96px, 13vw, 184px);
  --r-glass: 28px;
  font-size: 18px;
  line-height: 1.6;
  /* 1) grain: satır içi SVG gürültüsü (yerel, istek yok) · 2) üstte turkuaz ışık · 3) zemin geçişi */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat,
    radial-gradient(ellipse 80% 55% at 72% -8%, rgba(46, 220, 200, .15), rgba(13, 107, 97, .06) 45%, transparent 72%) no-repeat,
    linear-gradient(180deg, var(--bg) 0, var(--bg-deep) 1300px) no-repeat,
    var(--bg-deep);
}

/* ---------- Tipografi ---------- */
.b-h1 { font-size: clamp(42px, 10.6vw, 86px); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.b-h2 { font-size: clamp(34px, 7.8vw, 62px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.b-h3 { font-size: clamp(22px, 2.5vw, 27px); line-height: 1.22; letter-spacing: -.02em; font-weight: 650; }
.b-lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: var(--dim); max-width: 31em; }
.b-text { font-size: 18px; line-height: 1.6; color: var(--dim); max-width: 34em; }
.b-fine { font-size: 15px; line-height: 1.4; color: var(--faint); }

/* ---------- Bölüm ritmi ---------- */
.b-sec { position: relative; padding-block: var(--sec); }
.b-rule::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 2 * var(--gutter))); height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair) 16%, var(--hair) 84%, transparent);
}
/* Ton değişimi: bölüm hafifçe yükselir, kenarlarda zemine erir */
.b-band {
  background: linear-gradient(180deg, rgba(9, 27, 25, 0), rgba(9, 27, 25, .78) 20%, rgba(9, 27, 25, .78) 80%, rgba(9, 27, 25, 0));
}
.b-glow { isolation: isolate; }
.b-glow::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: var(--gx, 50%); top: var(--gy, 50%); width: min(1000px, 140vw); aspect-ratio: 1.5;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(46, 220, 200, .13), rgba(13, 107, 97, .05) 58%, transparent);
}

/* ---------- Cam kart (ince gradyan kenarlık) ---------- */
.b-glass {
  border: 1px solid transparent;
  border-radius: var(--r-glass);
  background:
    linear-gradient(180deg, rgba(18, 40, 38, .72), rgba(7, 18, 17, .72)) padding-box,
    linear-gradient(145deg, rgba(46, 220, 200, .50), rgba(255, 255, 255, .10) 34%, rgba(255, 255, 255, .03) 66%, rgba(46, 220, 200, .20)) border-box;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}

/* ---------- İnce çizgili liste ---------- */
.b-list { list-style: none; margin: 0; padding: 0; }
.b-list > li { padding-block: 18px; border-top: 1px solid var(--hair); }
.b-list > li:last-child { border-bottom: 1px solid var(--hair); }

/* ---------- iPhone çerçevesi ----------
   Titanyum kenar (çok duraklı metal gradyan + iç parıltı), siyah çerçeve, gerçekçi köşe yarıçapı
   (ekranın ~%13'ü), Dynamic Island, yan tuşlar, çok katmanlı yumuşak gölge, çok hafif yansıma.
   Tüm ölçüler --w'ye orantılı; --w bir uzunluk olmalı (ör. min(64vw, 300px)). */
.device {
  --w: 280px;
  position: relative; flex: none; width: var(--w); margin: 0;
  padding: calc(var(--w) * .012);
  border-radius: calc(var(--w) * .166);
  background: linear-gradient(145deg, #7a8384 0%, #2c3233 14%, #15191a 36%, #343b3c 58%, #121516 80%, #626a6a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 1px 0 rgba(255, 255, 255, .30),
    0 0 0 1px rgba(0, 0, 0, .55),
    0 2px 4px rgba(0, 0, 0, .35),
    0 26px 50px -18px rgba(0, 0, 0, .62),
    0 80px 130px -46px rgba(0, 0, 0, .8);
}
.device::before, .device::after {
  content: ""; position: absolute; width: calc(var(--w) * .011);
  background: linear-gradient(90deg, #5d6566, #2b3132);
}
.device::before { /* ses tuşları */
  left: calc(var(--w) * -.009); top: 25%; height: 15%; border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #4a5152 0 44%, transparent 44% 56%, #4a5152 56% 100%);
}
.device::after { /* yan tuş */
  right: calc(var(--w) * -.009); top: 28%; height: 10%; border-radius: 0 2px 2px 0;
}
.device-screen {
  position: relative; padding: calc(var(--w) * .024);
  border-radius: calc(var(--w) * .154); background: #000;
}
.device-screen img {
  width: 100%; height: auto; aspect-ratio: 600 / 1305;
  border-radius: calc(var(--w) * .128); background: #000;
}
.device-screen::before { /* Dynamic Island */
  content: ""; position: absolute; z-index: 2; left: 50%; transform: translateX(-50%);
  top: calc(var(--w) * .042); width: calc(var(--w) * .27); height: calc(var(--w) * .078);
  border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.device-screen::after { /* yansıma */
  content: ""; position: absolute; z-index: 3; inset: calc(var(--w) * .024); pointer-events: none;
  border-radius: calc(var(--w) * .128);
  background: linear-gradient(118deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .025) 28%, transparent 44%);
}

/* Kahraman: üç cihaz, hafif derinlik. Öndeki tam, arkadakiler kısmen görünür (kenardan taşanı main kırpar). */
.trio { position: relative; display: flex; justify-content: center; padding-block: 12px 24px; }
.trio::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 46%; width: 170%; aspect-ratio: 1.3;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(46, 220, 200, .24), rgba(13, 107, 97, .09) 55%, transparent);
}
.trio { isolation: isolate; --front: min(64vw, 300px); }
.trio .device--front { --w: var(--front); z-index: 2; }
.trio .device--back {
  --w: calc(var(--front) * .82);
  position: absolute; top: calc(12px + var(--front) * .15); left: 50%; z-index: 1;
  filter: brightness(.58) saturate(.9);
}
.trio .device--back.l { transform: translate3d(calc(-50% - var(--front) * .50), var(--py, 0px), 0); }
.trio .device--back.r { transform: translate3d(calc(-50% + var(--front) * .50), var(--py, 0px), 0); }

/* ---------- Adımlar ---------- */
.b-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: s; }
.b-steps li { padding-top: 22px; border-top: 1px solid var(--hair); }
.b-steps .n { display: block; font-size: 17px; font-weight: 650; color: var(--brand); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.b-steps p { margin-top: 10px; color: var(--dim); font-size: 18px; line-height: 1.55; max-width: 24em; }
@media (min-width: 900px) { .b-steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ---------- Deneme destesi (Yön A'dan, B diliyle) ---------- */
.b .deck { width: min(78vw, 340px); border-radius: 28px; margin-inline: auto; }
.b .deck:focus-visible { outline-offset: 12px; }
.b .deck-top { display: flex; justify-content: center; margin-bottom: 18px; }
.b .deck-count { font-size: 15px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
.b .deck-stack { position: relative; aspect-ratio: 3 / 4; }
.b .deck-card {
  position: absolute; inset: 0; margin: 0; border-radius: 26px; overflow: hidden; background: #111;
  transform-origin: 50% 90%; transition: transform .45s var(--ease-out), opacity .3s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  /* pan-y: dikey kaydırma sayfaya kalır, yatay sürükleme desteye geçer (yön kilidi deck.js'te) */
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent; will-change: transform;
}
.b .deck-card.is-top {
  cursor: grab;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -20px rgba(0, 0, 0, .65), 0 70px 110px -50px rgba(0, 0, 0, .8);
}
.b .deck-card.is-dragging { cursor: grabbing; }
.b .deck-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.b .deck-tint { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.b .deck-stamp {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  padding: 8px 18px; border-radius: 12px; opacity: 0; pointer-events: none;
  font-size: 22px; font-weight: 800; letter-spacing: .04em; color: #000;
}
.b .deck-stamp[data-stamp="delete"] { background: var(--delete); }
.b .deck-stamp[data-stamp="keep"] { background: var(--keep); }
.b .deck-stamp[data-stamp="fav"] { background: var(--fav); }
.b .deck-done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  padding: 28px; text-align: center;
}
.b .deck-done[hidden] { display: none; }
.b .deck-done .ico-big { width: 52px; height: 52px; padding: 13px; border-radius: 50%; color: #04201d; background: var(--brand); margin-bottom: 4px; }
.b .deck-done p { color: var(--dim); font-size: 17px; max-width: 17em; text-wrap: balance; }
.b .deck-done [data-sum] { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.b .restart {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .05); color: var(--text);
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.b .restart .ico { width: 18px; height: 18px; }
.b .deck-actions { display: flex; justify-content: center; gap: 28px; margin-top: 30px; }
.b .act { touch-action: manipulation; -webkit-tap-highlight-color: transparent; display: grid; justify-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--dim); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.b .act .ring {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--c);
  background: rgba(255, 255, 255, .06); border: 1.5px solid color-mix(in srgb, var(--c) 42%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.b .act .ico { width: 26px; height: 26px; }
.b .act:hover .ring { transform: scale(1.06); background: color-mix(in srgb, var(--c) 14%, transparent); }
.b .act:active .ring { transform: scale(.94); }
.b .act:focus-visible { outline: none; }
.b .act:focus-visible .ring { outline: 2px solid var(--brand); outline-offset: 4px; }
.b .act:disabled { opacity: .35; cursor: default; }
.b .act:disabled .ring { transform: none; }
.b-howto { display: grid; gap: 0; }
.b-howto li { display: flex; align-items: center; gap: 14px; font-size: 18px; color: var(--dim); }
.b-howto .ico { width: 22px; height: 22px; color: var(--c); }
.b-howto strong { color: var(--text); font-weight: 600; }
/* Dokunmatikte yukarı kaydırma sayfayı kaydırır (pan-y); orada favori = yıldız düğmesi. */
.b-howto .on-coarse { display: none; }
@media (hover: none), (pointer: coarse) {
  .b-howto .on-fine { display: none; }
  .b-howto .on-coarse { display: flex; }
}

/* ---------- Başlık, alt bilgi, CTA ince ayarı ---------- */
.b .cta { min-height: 58px; padding: 0 32px; font-size: 18px; font-weight: 650; }
.b .site-foot { font-size: 16px; padding-block: 44px 56px; border-top-color: var(--hair); }
.b .foot-meta { font-size: 14px; }
.b .app-icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 70px -14px rgba(46, 220, 200, .42); }

/* ---------- Hareket: ince scroll-reveal ----------
   .motion sınıfını <head>'deki satır içi betik ekler (yalnızca hareket tercihi açıksa); motion.js
   2.5 sn içinde yüklenmezse sınıf geri alınır → içerik hiçbir koşulda gizli kalmaz. */
@media (prefers-reduced-motion: no-preference) {
  .motion [data-reveal] {
    opacity: 0; transform: translate3d(0, 26px, 0);
    transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
    transition-delay: var(--d, 0s);
  }
  .motion [data-reveal].is-in { opacity: 1; transform: none; }
}
