/* onlineşube — temel: tokenlar, sıfırlama, tipografi, butonlar, üst çubuk, alt bilgi, yasal sayfa, hareket kuralları
   Yön: "hesap defteri" — kâğıt beyazı zemin, mürekkep siyahı, defter yeşili tek vurgu, fosforlu kalem (lime) işaretleri.
   Geist + Geist Mono. Bağımlılık yok. */

:root {
  color-scheme: light;

  --bg: #F6F3EC;          /* kâğıt */
  --bg-2: #FFFFFF;        /* panel içi */
  --bg-3: #ECE8DE;        /* ikinci zemin, menü */
  --surface: #FFFFFF;     /* kartlar */
  --surface-2: #F1EEE6;   /* kart içi vurgu */
  --line: rgba(26, 28, 26, .10);
  --line-2: rgba(26, 28, 26, .20);

  --text: #1A1C1A;        /* mürekkep */
  --text-2: #4B4F4A;
  --muted: #68706A;       /* kâğıt üzerinde 5,2:1 */

  --green: #136F4B;       /* defter yeşili: marka vurgusu, CTA */
  --green-deep: #0E5338;
  --green-ink: #0B3B29;   /* koyu blok */
  --green-soft: #E3F0E8;
  --lime: #D9F56B;        /* fosforlu kalem */
  --lime-soft: #EEF9C8;
  --amber: #B7791F;       /* uyarı */
  --amber-soft: #FBF1DA;
  --red: #C8372D;         /* fark, zarar */
  --red-soft: #FBE5E2;

  --p-tgo: #F27A1A; --p-ys: #FA0050; --p-getir: #5D3EBC; --p-migros: #F58220;

  --font: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --text-hero: clamp(2.75rem, 1rem + 5.2vw, 5rem);
  --text-h2: clamp(2rem, 1.1rem + 3vw, 3.8rem);
  --text-h3: clamp(1.15rem, 1rem + .5vw, 1.45rem);
  --text-base: clamp(1rem, .96rem + .2vw, 1.125rem);

  --space: clamp(5rem, 3rem + 7vw, 11rem);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1200px;

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;

  --shadow: 0 1px 0 rgba(26,28,26,.04), 0 24px 60px -24px rgba(26,28,26,.28);
  --shadow-float: 0 40px 90px -36px rgba(26,28,26,.4);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur: .8s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--text-base); line-height: 1.55;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; position: relative;
}
/* kâğıt dokusu */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
strong { font-weight: 600; }
::selection { background: var(--lime); color: var(--text); }

/* fosforlu kalem: markanın çapası */
.mark { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.mark::before { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .04em; height: .42em; background: var(--lime); border-radius: .12em; z-index: -1; transform: skewX(-6deg) scaleX(0); transform-origin: left; animation: swipe .9s var(--ease) .5s forwards; }
@keyframes swipe { to { transform: skewX(-6deg) scaleX(1); } }
.js [data-reveal] .mark::before, .js [data-stagger] .mark::before { animation-play-state: paused; }
.js .is-in .mark::before { animation-play-state: running; }

.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--green); }
.lede { font-size: clamp(1.05rem, 1rem + .45vw, 1.35rem); color: var(--text-2); max-width: 40ch; line-height: 1.5; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
section { padding-block: var(--space); position: relative; }
.sec-head { display: grid; gap: 1.1rem; max-width: 58ch; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- Butonlar ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; line-height: 1; color: var(--text); background: var(--surface-2);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s, border-color .3s, color .3s; will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 12px 28px -12px rgba(19,111,75,.55); }
.btn-primary:hover { background: var(--green-deep); box-shadow: 0 18px 34px -12px rgba(19,111,75,.6); }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }
.btn-ghost .play { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--text); display: grid; place-items: center; font-size: .6rem; }

/* ---------- Üst çubuk ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; transform-origin: left; transform: scaleX(0); background: var(--green); }
.nav { position: sticky; top: 0; z-index: 50; padding-block: .9rem; transition: background .35s, box-shadow .35s, padding .35s; }
.nav.is-stuck { background: rgba(246, 243, 236, .8); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); padding-block: .6rem; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.wordmark { font-size: 1.25rem; letter-spacing: -.03em; line-height: 1; font-weight: 500; }
.wordmark .w2 { font-weight: 700; color: var(--green); }
.nav-links { display: flex; gap: .3rem; list-style: none; margin: 0; padding: .3rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--text-2); padding: .5rem .95rem; border-radius: 999px; transition: background .3s, color .3s; }
.nav-links a:hover { background: var(--surface-2); color: var(--text); }
.nav .btn { padding: .72rem 1.15rem; font-size: .9rem; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: .9rem; padding: .6rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 210px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow-float); list-style: none; margin: 0; padding: .5rem; display: grid; }
.menu ul a { display: block; padding: .7rem .85rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.menu ul a:hover { background: var(--surface-2); }
@media (max-width: 820px) { .nav-links { display: none; } .menu { display: block; } .nav .btn-primary { display: none; } }

/* ---------- Alt bilgi ---------- */
footer { border-top: 1px solid var(--line); padding-block: 3rem; font-size: .88rem; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
footer address { font-style: normal; line-height: 1.7; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
footer a { color: var(--text-2); text-decoration: none; transition: color .3s; }
footer a:hover { color: var(--green); }
footer .fine { grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-family: var(--mono); font-size: .75rem; }

/* ---------- Yasal sayfa ---------- */
.legal { max-width: 72ch; padding-block: 3rem 5rem; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; }
.legal p, .legal li { color: var(--text-2); margin-bottom: .8rem; }
.legal a { color: var(--green); }
.legal table { border-collapse: collapse; width: 100%; font-size: .9rem; margin-bottom: 1rem; }
.legal th, .legal td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- Görünür olunca ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger] > :nth-child(2) { transition-delay: .08s; } [data-stagger] > :nth-child(3) { transition-delay: .16s; } [data-stagger] > :nth-child(4) { transition-delay: .24s; } [data-stagger] > :nth-child(5) { transition-delay: .32s; } [data-stagger] > :nth-child(6) { transition-delay: .4s; }

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; transform: none; }
  .mark::before { transform: skewX(-6deg) scaleX(1); animation: none; }
}
