/* Kobim web sitesi
   Renkler uygulamayla aynı: marka rengi iOS'taki AccentColor.
   Yazı tipi cihazın kendi yazı tipi; dışarıdan dosya yüklenmez (KVKK). */

:root {
  --paper: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #1B2433;
  --muted: #566070;
  --line: #DFE3E8;
  --brand: #D9784F;
  --brand-ink: #A54E2A;
  --stamp: #2E7A57;
  --receipt: #FFFFFF;
  --receipt-text: #343A44;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 4.2vw, 2.75rem);
  --step-4: clamp(2.6rem, 6.4vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 34rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12171F;
    --surface: #1A212C;
    --ink: #E9ECF1;
    --muted: #A3ACB9;
    --line: #2B3442;
    --brand-ink: #EE9A76;
    --stamp: #4FB083;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--sans);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Üst şerit */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.site-header .nav { margin-left: auto; }
.site-header .lang { font-size: var(--step--1); color: var(--ink); font-weight: 600; text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.site-header .lang:hover { border-color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-size: var(--step--1); }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Kahraman */
.hero { padding: clamp(16px, 4vw, 48px) 0 clamp(48px, 7vw, 80px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 {
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 24px;
  max-width: 11ch;
}
.hero h1 .second { display: block; color: var(--brand-ink); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: var(--measure); margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 var(--step-0)/1 var(--sans); text-decoration: none;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
}
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.button:not(.primary):hover { background: var(--surface); }
.button[aria-disabled="true"] { cursor: default; opacity: 0.85; }
.button[aria-disabled="true"]:hover { background: var(--ink); border-color: var(--ink); }
.button svg { width: 18px; height: 18px; }
.note { font-size: var(--step--1); color: var(--muted); margin: 12px 0 0; }

/* Fiş yığını: sitenin tek gösterişli öğesi */
.receipts { position: relative; height: 560px; max-width: 440px; margin-left: auto; width: 100%; }
.receipt {
  position: absolute; left: 50%; top: 0; width: 300px; margin-left: -150px;
  background: var(--receipt); color: var(--receipt-text);
  font: 500 13.5px/1.6 var(--mono);
  padding: 22px 20px 30px;
  box-shadow: 0 1px 0 rgba(27,36,51,.06), 0 18px 40px -18px rgba(27,36,51,.35);
  /* Termal fişin yırtık alt kenarı */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}
.receipt p { margin: 0; white-space: pre; }
.receipt .head { text-align: center; font-weight: 700; margin-bottom: 2px; }
.receipt .center { text-align: center; }
.receipt .rule { border-top: 1px dashed currentColor; opacity: .5; margin: 8px 0; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .total { font-weight: 700; font-size: 15px; }
.receipt.back-1 { transform: translate(-78px, 22px) rotate(-8deg); }
.receipt.back-2 { transform: translate(74px, 4px) rotate(6deg); }
.receipt.front { transform: translate(0, 86px) rotate(-1.5deg); }
.stamp {
  position: absolute; left: calc(50% + 8px); top: 398px; z-index: 2;
  color: var(--stamp); border: 3px solid currentColor; border-radius: 10px;
  padding: 6px 14px 7px; font: 800 1.35rem/1 var(--sans); letter-spacing: .04em;
  transform: rotate(-12deg); background: color-mix(in srgb, var(--receipt) 70%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, currentColor 25%, transparent);
}
.stamp small { display: block; font: 600 .62rem/1.3 var(--sans); letter-spacing: .02em; margin-top: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .receipt { animation: settle .7s cubic-bezier(.2,.8,.2,1) both; }
  .receipt.back-1 { animation-delay: .05s; --from: translate(-120px, -40px) rotate(-18deg); }
  .receipt.back-2 { animation-delay: .15s; --from: translate(120px, -60px) rotate(14deg); }
  .receipt.front { animation-delay: .3s; --from: translate(0, -80px) rotate(4deg); }
  .stamp { animation: thump .35s cubic-bezier(.3,1.6,.5,1) 1.05s both; }
  @keyframes settle { from { transform: var(--from); opacity: 0; } }
  @keyframes thump { from { transform: rotate(-12deg) scale(1.8); opacity: 0; } }
}

/* Bölümler */
section { padding: clamp(56px, 9vw, 112px) 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.025em; font-weight: 750; margin: 0 0 16px; max-width: 20ch; }
h3 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 8px; }
.section-lede { color: var(--muted); max-width: var(--measure); margin: 0 0 48px; font-size: var(--step-1); }

/* Ay sonu: gerçekten sıralı bir süreç olduğu için numaralı */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: var(--step-2); color: var(--brand-ink); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.steps p { margin: 0; color: var(--muted); }

/* İki kitle */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); }
.audiences ul { list-style: none; padding: 0; margin: 16px 0 24px; }
.audiences li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.audiences li:first-child { border-top: 1px solid var(--line); }

/* Güven */
.facts { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.facts dl { margin: 0; }
.facts dt { font-weight: 700; margin-top: 24px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 4px 0 0; color: var(--muted); }

/* Müşavir çağrısı */
.callout { background: var(--ink); color: var(--paper); }
.callout + section, section + .callout { border-top: 0; }
.callout .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.callout h2 { margin: 0 0 8px; }
.callout p { margin: 0; color: color-mix(in srgb, var(--paper) 75%, transparent); max-width: var(--measure); }
.callout .button { border-color: var(--paper); color: var(--paper); }
.callout .button:hover { background: var(--paper); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  .callout { background: var(--surface); color: var(--ink); }
  .callout p { color: var(--muted); }
  .callout .button { border-color: var(--ink); color: var(--ink); }
  .callout .button:hover { background: var(--ink); color: var(--paper); }
}

/* Metin sayfaları (gizlilik, destek, başvuru) */
.page { padding: clamp(24px, 5vw, 56px) 0 clamp(64px, 9vw, 112px); }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 12px; }
.page .meta { color: var(--muted); font-size: var(--step--1); margin: 0 0 32px; }
.page h2 { font-size: var(--step-2); max-width: none; margin: 48px 0 12px; }
.page h3 { margin-top: 28px; }
.page p, .page li { max-width: 40rem; }
.page ul, .page ol { padding-left: 1.25rem; }
.page li { margin: 6px 0; }
.draft {
  border-left: 4px solid var(--brand); background: var(--surface);
  padding: 14px 18px; margin: 0 0 32px; font-size: var(--step--1); color: var(--muted);
}
.placeholder { background: color-mix(in srgb, var(--brand) 18%, transparent); padding: 0 4px; border-radius: 3px; }
.table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: var(--step--1); }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.table th { font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.contact { margin-top: 48px; padding-top: 24px; border-top: 3px solid var(--ink); }
.fields { margin: 16px 0 24px; padding-left: 1.25rem; }

/* Alt bilgi */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .audiences, .facts { grid-template-columns: 1fr; }
  .receipts { margin: 0 auto; height: 520px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .site-header .nav { order: 3; margin-left: 0; width: 100%; gap: 4px 18px; }
  .site-header .lang { margin-left: auto; }
  .receipts { transform: scale(.82); transform-origin: top center; height: 430px; }
}
