/* ==========================================================================
   Cupolog — warm editorial paper
   Tek stil dosyasi. Harici font/CDN yok: tamamen self-contained, hizli.
   ========================================================================== */

:root {
  /* Kagit & murekkep */
  --paper:        oklch(97.5% 0.012 82);
  --paper-deep:   oklch(94.5% 0.020 78);
  --paper-card:   oklch(99% 0.006 85);
  --ink:          oklch(22% 0.028 45);
  --ink-soft:     oklch(42% 0.024 48);
  --ink-faint:    oklch(58% 0.018 52);
  --rule:         oklch(88% 0.020 72);

  /* Kavrulmus vurgu */
  --ember:        oklch(56% 0.145 48);
  --ember-deep:   oklch(44% 0.128 44);
  --ember-wash:   oklch(94% 0.032 62);

  /* Tipografi olcegi */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --t-display: clamp(2.75rem, 1.6rem + 5.2vw, 5.5rem);
  --t-title:   clamp(1.9rem, 1.35rem + 2.4vw, 3rem);
  --t-head:    clamp(1.15rem, 1.02rem + 0.6vw, 1.4rem);
  --t-body:    clamp(1rem, 0.96rem + 0.22vw, 1.09rem);
  --t-small:   0.875rem;
  --t-micro:   0.75rem;

  /* Ritim */
  --gutter:  clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --section: clamp(3.5rem, 2.2rem + 5vw, 7rem);
  --measure: 34rem;

  --radius:    14px;
  --radius-lg: 22px;

  --dur: 260ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Koyu tema: sadece token'lari devirir, rolleri korur. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      oklch(17% 0.016 48);
    --paper-deep: oklch(13.5% 0.014 46);
    --paper-card: oklch(21% 0.018 50);
    --ink:        oklch(93% 0.014 78);
    --ink-soft:   oklch(76% 0.016 70);
    --ink-faint:  oklch(60% 0.014 62);
    --rule:       oklch(30% 0.020 52);
    --ember:      oklch(70% 0.132 56);
    --ember-deep: oklch(80% 0.110 62);
    --ember-wash: oklch(26% 0.040 50);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Kagit dokusu — tek bir SVG gurultu, ~200 bayt. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

/* --- Tipografi -------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ember-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--ember); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

strong { font-weight: 650; color: var(--ink); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-micro);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 0.85rem;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.55vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
}

/* --- Iskelet ---------------------------------------------------------- */

.wrap {
  width: min(100% - calc(var(--gutter) * 2), 68rem);
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - calc(var(--gutter) * 2), 46rem); }

/* --- Ust bar ---------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--ember) 0%, var(--ember-deep) 100%);
  display: grid;
  place-items: center;
  color: oklch(98% 0.02 80);
  font-size: 0.95rem;
  box-shadow: 0 2px 8px -2px oklch(44% 0.128 44 / 0.5);
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  font-size: var(--t-small);
}
.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ember);
}

/* Dil anahtari */
.langswitch {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-card);
}
.langswitch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: var(--t-micro);
  font-weight: 650;
  letter-spacing: 0.06em;
  padding: 0.34rem 0.7rem;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.langswitch button:hover { color: var(--ink); }
.langswitch button[aria-pressed="true"] {
  background: var(--ember);
  color: oklch(98% 0.02 80);
}

/* JS ile dil secimi. JS yoksa iki dil de gorunur (review icin guvenli). */
html[data-lang="tr"] [lang="en"] { display: none; }
html[data-lang="en"] [lang="tr"] { display: none; }

/* --- Hero ------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) var(--section);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(120% 90% at 82% 0%, var(--ember-wash) 0%, transparent 58%),
    var(--paper);
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 6vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero h1 { font-size: var(--t-display); margin-bottom: 1.1rem; }
.hero h1 em {
  font-style: italic;
  color: var(--ember-deep);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  font-size: var(--t-small);
  font-weight: 620;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 24px -12px oklch(22% 0.028 45 / 0.75);
}
.btn--primary:hover {
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px oklch(22% 0.028 45 / 0.85);
}
.btn--ghost {
  border-color: var(--rule);
  color: var(--ink-soft);
  background: var(--paper-card);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--ember);
  transform: translateY(-2px);
}
.btn:active { transform: translateY(0); }

/* Fincan illustrasyonu — saf CSS, gorsel indirilmez. */
.cupfig {
  position: relative;
  aspect-ratio: 1;
  max-width: 22rem;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.cupfig__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--rule);
}
.cupfig__ring:nth-child(2) { inset: 11%; opacity: 0.7; }
.cupfig__ring:nth-child(3) { inset: 22%; opacity: 0.45; }
.cupfig__disc {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, oklch(46% 0.09 52) 0%, oklch(28% 0.06 44) 55%, oklch(20% 0.04 40) 100%);
  box-shadow:
    inset 0 -8px 22px oklch(14% 0.03 38 / 0.65),
    0 22px 50px -22px oklch(30% 0.07 44 / 0.7);
}

/* --- Bolumler --------------------------------------------------------- */

section[id] { scroll-margin-top: 5.5rem; }

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }

.section__head { margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.section__head--tight { margin-bottom: 1.75rem; }
.section__head h2 { font-size: var(--t-title); margin-bottom: 0.75rem; }

/* Metin ici teknik deger (orn. e-posta alan adi) */
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--ember-wash);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  color: var(--ink);
}

/* Bento — esit olmayan ritim, sablon gorunumunden kacinmak icin. */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento > :nth-child(1) { grid-column: span 4; }
  .bento > :nth-child(2) { grid-column: span 2; }
  .bento > :nth-child(3) { grid-column: span 2; }
  .bento > :nth-child(4) { grid-column: span 4; }
}

.card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 1rem + 1.2vw, 2rem);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--ember) 45%, var(--rule));
  box-shadow: 0 18px 40px -26px oklch(30% 0.07 44 / 0.6);
}
.card h3 {
  font-size: var(--t-head);
  margin-bottom: 0.5rem;
}
.card p { color: var(--ink-soft); font-size: var(--t-small); line-height: 1.6; }
.card__num {
  font-family: var(--mono);
  font-size: var(--t-micro);
  color: var(--ember);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.9rem;
}

/* Gizlilik ozeti — landing'de guven veren serit */
.pledge {
  background: var(--paper-deep);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--rule);
}
.pledge ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 46rem) {
  .pledge ul { grid-template-columns: 1fr 1fr; gap: 0.7rem 2rem; }
}
.pledge li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.pledge li::before {
  content: "✓";
  color: var(--ember);
  font-weight: 700;
  flex: none;
  line-height: 1.55;
}

/* --- Hukuki metin duzeni --------------------------------------------- */

.doc { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--section); }

.doc__header {
  padding-bottom: 1.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--ink);
}
.doc__header h1 {
  font-size: var(--t-title);
  margin-bottom: 0.6rem;
}
.doc__meta {
  font-size: var(--t-micro);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.doc__body h2 {
  font-size: var(--t-head);
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}
.doc__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc__body h2 .n {
  font-family: var(--mono);
  font-size: 0.72em;
  color: var(--ember);
  flex: none;
}
.doc__body h3 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 650;
  margin: 1.5rem 0 0.4rem;
  color: var(--ink);
}
.doc__body p,
.doc__body li { color: var(--ink-soft); }
.doc__body ul { padding-left: 1.15rem; margin: 0 0 1.05em; max-width: var(--measure); }
.doc__body li { margin-bottom: 0.45em; }
.doc__body li::marker { color: var(--ember); }

.doc__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
  margin: 0 0 1.5em;
}
.tablescroll { overflow-x: auto; margin: 0 0 1.5em; }
.tablescroll table { margin-bottom: 0; min-width: 30rem; }
.doc__body th,
.doc__body td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.doc__body th {
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 650;
  border-bottom-color: var(--ink);
}
.doc__body td { color: var(--ink-soft); }

.callout {
  background: var(--ember-wash);
  border-left: 3px solid var(--ember);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.6em;
  max-width: var(--measure);
}
.callout p { font-size: var(--t-small); color: var(--ink); margin-bottom: 0.6em; }
.callout p:last-child { margin-bottom: 0; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 1.6em;
  display: grid;
  gap: 0.8rem;
  max-width: var(--measure);
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: var(--t-small);
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--ember);
  color: oklch(98% 0.02 80);
  font-family: var(--mono);
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.contactcard {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  margin: 0 0 1.6em;
  max-width: var(--measure);
}
.contactcard dl { margin: 0; display: grid; gap: 0.6rem; }
.contactcard dt {
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 650;
}
.contactcard dd { margin: 0 0 0.6rem; font-size: var(--t-small); }
.contactcard dd:last-child { margin-bottom: 0; }

/* --- Alt bilgi -------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-size: var(--t-small);
}
.foot__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--ember); text-decoration: underline; }
.foot__legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: var(--t-micro);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.6rem;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}
