/* Morfran site.css — public sayfalarin tek stil kaynagi (2026-11-21).
   Yon: Alternatif A (Utku onayi), palet 1 "Sicak enerji" (Utku onayi). Kurallar: ../DESIGN.md.
   Kit (Taste) public sayfalarda yuklenmez; sayfa CSS'inin kullandigi kit degiskenleri asagida takma ad olarak var. */

:root {
  /* palet 1 — Sicak enerji (kontrastlar WCAG ile olculdu) */
  --bg: #fbf7f2; --paper: #ffffff; --surface: #f1ebe2;
  --ink: #15131a; --muted: #5c5b56; --line: color-mix(in srgb, #15131a 12%, transparent);
  --inv: #15131a; --inv-2: #221f29; --inv-ink: #fbf7f2; --inv-muted: #aaa5b3;
  --accent: #ff5a1f;      /* ana renk: dolgu (ustunde --ink 5,91) ve koyu zeminde metin */
  --hi: #c2410c;          /* acik zeminde turuncu METIN gerekiyorsa (4,85) */
  --a2: #6b3cff; --a2-ink: #ffffff;   /* elektrik moru: dolgu (beyaz 5,65) ya da acik zeminde metin (5,3) */
  --a3: #c6f432; --a3-ink: #15131a;   /* limon: YALNIZ dolgu, ustunde --ink (14,4) */
  --cta: var(--accent); --cta-ink: var(--ink);

  --sans: "Instrument Sans", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, monospace;
  --max: 1280px; --gut: max(16px, 4vw); --nav: 68px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --ease: cubic-bezier(.16,1,.3,1); --dur-fast: 140ms; --dur: 240ms; --dur-slow: 400ms;

  /* kit takma adlari (sayfa CSS'i icin) */
  --p-bg: var(--bg); --p-surface: var(--surface); --p-ink: var(--ink); --p-muted: var(--muted);
  --p-accent: var(--accent); --p-action: var(--ink); --p-action-ink: var(--bg);
  --p-inv-bg: var(--inv); --p-inv-surface: var(--inv-2); --p-inv-ink: var(--inv-ink); --p-inv-muted: var(--inv-muted); --p-inv-accent: var(--accent);
  --font-mono: var(--mono); --font-text: var(--sans); --font-display: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
code { font: .88em var(--mono); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .ground-inverse :focus-visible { outline-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 12px; border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografi ---------- */
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.028em; font-stretch: 96%; }
h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.mono, .t-label { font: 500 13px/1.4 var(--mono); letter-spacing: .02em; }
.t-lead, .lead { color: var(--muted); font-size: 18px; max-width: 60ch; }
.t-small { font-size: 14px; }
.t-card { font-weight: 600; }
.t-stat { font: 500 clamp(36px, 4vw, 48px)/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow { color: var(--hi); }
.dark .t-lead, .dark .lead, .dark .muted, .ground-inverse .t-lead, .ground-inverse .muted { color: var(--inv-muted); }
.dark .eyebrow, .ground-inverse .eyebrow { color: var(--accent); }

/* ---------- yerlesim ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 8vw, 112px); }
main > .section:first-child { padding-top: clamp(40px, 6vw, 80px); }
.dark, .ground-inverse { background: var(--inv); color: var(--inv-ink); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); }
/* span genisligi degiskende; start-N onu korur (start-7 tek basina span'i ezmesin) */
.span-2 { --span: 2; } .span-3 { --span: 3; } .span-4 { --span: 4; } .span-5 { --span: 5; } .span-6 { --span: 6; } .span-7 { --span: 7; } .span-8 { --span: 8; } .span-12 { --span: 12; }
[class*="span-"] { grid-column: span var(--span); }
.start-4 { grid-column: 4 / span var(--span, 1); } .start-5 { grid-column: 5 / span var(--span, 1); } .start-7 { grid-column: 7 / span var(--span, 1); } .start-10 { grid-column: 10 / span var(--span, 1); }
.duo { align-items: start; }
.duo .btn-row { margin-top: 24px; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 72ch; }
.section-head--split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; max-width: none; }
.section-head--split .t-lead, .section-head--split .lead { max-width: 48ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; font: 500 13px/1.4 var(--mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* ---------- dugmeler: tek dolu renk = turuncu, ustunde murekkep ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 500 16px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cta); color: var(--cta-ink); }
.btn--primary:hover { box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn--secondary, .btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.dark .btn--secondary, .dark .btn--ghost, .ground-inverse .btn--secondary { border-color: var(--inv-ink); color: var(--inv-ink); }
.link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ust gezinme ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; min-height: var(--nav); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; }
.logo svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.nav__links { display: flex; gap: 22px; flex: 1; font-size: 15px; }
.nav__links a { text-decoration: none; }
.nav__links a:hover, .nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.nav__end { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- ana sayfa hero: 6 yuva (14/20/12/24/18) ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: .98; margin-bottom: 20px; }
.hero__eyebrow { margin-bottom: 14px; }
.hero__desc { margin-bottom: 12px; }
.hero__claim { margin-bottom: 24px; font-weight: 500; font-size: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero__trust { color: var(--muted); }
.sheet { background: var(--inv); color: var(--inv-ink); border-radius: 20px; padding: 18px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.sheet figure { margin: 0; position: relative; }
.sheet img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; }
.sheet figure:first-child { grid-row: span 2; }
.sheet figure:first-child img { height: 100%; aspect-ratio: auto; }
.sheet figcaption { position: absolute; left: 10px; bottom: 10px; font: 500 12px/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--inv) 82%, transparent); }
.sheet figure:nth-child(1) figcaption { background: var(--accent); color: var(--ink); }
.sheet figure:nth-child(2) figcaption { background: var(--a2); color: var(--a2-ink); }
.sheet figure:nth-child(3) figcaption { background: var(--a3); color: var(--a3-ink); }

/* bir bakista: yalniz dogrulanmis bilgi, ustte renkli cizgi */
.glance { border-block: 1px solid var(--line); }
.glance .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.glance div { padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--accent); }
.glance div:nth-child(2) { box-shadow: inset 0 3px 0 var(--a2); }
.glance div:nth-child(3) { box-shadow: inset 0 3px 0 var(--a3); }
.glance div:last-child { border-right: 0; }
.glance b { font: 500 28px/1 var(--sans); letter-spacing: -.02em; }
.glance div:first-child b { color: var(--hi); }
.glance span { color: var(--muted); font-size: 14px; }

/* ---------- kart (kanonik) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
a.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--ink) 45%, transparent); }
.card > img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body p { color: var(--muted); font-size: 15px; }
.card__cost { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font: 500 13px/1.4 var(--mono); }
.tag { padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 500 13px/1.4 var(--mono); white-space: nowrap; }
.tag--2 { background: var(--a2); color: var(--a2-ink); } .tag--3 { background: var(--a3); color: var(--a3-ink); }

/* ---------- adimlar ---------- */
.stepgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.stepgrid > li { border-top: 2px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.stepgrid > li:nth-child(2) { border-top-color: var(--a2); } .stepgrid > li:nth-child(3) { border-top-color: var(--a3); }
.stepgrid p { color: var(--muted); }
.steps { margin: 24px 0 0; padding-left: 0; list-style-position: inside; display: flex; flex-direction: column; gap: 12px; }

/* ---------- gelistirici bandi + kod ---------- */
.dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.dots { margin: 24px 0 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dots li { position: relative; padding-left: 20px; }
.dots li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--a3); }
.code, .code-card { background: var(--inv-2); color: var(--inv-ink); border-radius: var(--r-md); padding: 20px; font: 13px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; min-width: 0; align-self: start; }
:not(.dark) > * > .code-card, .section:not(.dark) .code-card { background: var(--inv); }
.code .k, .code-card .k { color: var(--accent); }
.code .c, .code-card .c { color: var(--inv-muted); }

/* ---------- fiyat ---------- */
.packs, .price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pack, .price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.pack--hi, .price-card#pro { border: 2px solid var(--accent); padding: 25px; }
.pack__price { font: 500 44px/1 var(--sans); letter-spacing: -.03em; margin: 8px 0 2px; }
.pack .btn, .price-card .btn { margin-top: 16px; }

/* ---------- tablo ---------- */
.table-box { overflow-x: auto; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.table-box table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.table-box th, .table-box td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table-box tr:last-child td { border-bottom: 0; }
.table-box th { font: 500 13px/1.4 var(--mono); color: var(--muted); }

/* ---------- SSS ---------- */
.faq-head { margin: 64px 0 24px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.faq__item h3 { font-size: 18px; }
.faq__item p { color: var(--muted); }
.faq-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--hi); }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--muted); max-width: 62ch; }

/* ---------- once/sonra kaydirici ---------- */
.ba { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; --pos: 50%; width: 100%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; border-radius: inherit; }
.ba input::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; background: transparent; }
.ba input::-moz-range-thumb { width: 44px; height: 100%; background: transparent; border: 0; }
.ba__knob { position: absolute; top: 50%; left: var(--pos); width: 40px; height: 40px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 0 0 3px #fff; }
.ba--wide { aspect-ratio: 4 / 3; }
.ba-label { display: block; margin-bottom: 8px; }

/* ---------- form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form > :is(.field--full, .btn-row, p) { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.field :is(input, select, textarea), .input { font: 400 16px/1.4 var(--sans); min-height: 48px; padding: 10px 14px; border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--r-md); background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }

/* ---------- kapanis + footer (tum public sayfalar) ---------- */
.site-foot { padding-block: clamp(72px, 9vw, 120px) 32px; text-align: center; }
.site-foot h2 { font-size: clamp(36px, 5vw, 64px); max-width: 16ch; margin: 0 auto 18px; }
.site-foot .lead { margin: 0 auto 28px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: left; margin-top: 72px; padding-top: 32px; border-top: 1px solid color-mix(in srgb, var(--inv-ink) 14%, transparent); }
.foot-cols h3 { font: 500 13px/1.4 var(--mono); color: var(--inv-muted); margin-bottom: 12px; }
.foot-cols ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot-cols a { text-decoration: none; } .foot-cols a:hover { text-decoration: underline; }
.foot-legal { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--inv-muted); text-align: left; }

/* ---------- duyarli ---------- */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .hero .wrap, .dev, .faq-split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance div:nth-child(2) { border-right: 0; }
  .grid > [class*="span-"], .grid > [class*="start-"] { grid-column: 1 / -1; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .nav__end a:not(.btn) { display: none; }
  .cards, .stepgrid, .packs, .price-cards, .faq, .form { grid-template-columns: 1fr; }
  .sheet { grid-template-columns: 1fr 1fr; }
  .sheet figure:first-child { grid-column: span 2; grid-row: auto; }
  .sheet figure:first-child img { aspect-ratio: 4/5; }
}

/* ================= Razor sitesine ozel eklemeler (2026-11-21) ================= */

/* dar ekran menusu: prototipte 1023 px alti menu yoktu */
.nav__mobile { display: none; position: relative; }
.nav__mobile summary { list-style: none; cursor: pointer; min-height: 42px; display: inline-flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; font: 500 15px/1 var(--sans); }
.nav__mobile summary::-webkit-details-marker { display: none; }
.nav__mobile summary::after { content: none; }
.nav__mobile nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; display: flex; flex-direction: column; box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--ink) 45%, transparent); }
.nav__mobile nav a { text-decoration: none; padding: 12px; border-radius: var(--r-sm); }
.nav__mobile nav a:hover { background: var(--surface); }
.nav details.nav__mobile { border: 0; padding: 0; }
@media (max-width: 1023px) { .nav__mobile { display: block; } .nav__end { margin-left: auto; } }

/* yasal sayfalar (gizlilik, sartlar): yan icindekiler + okunur metin olcusu */
.legal { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; align-items: start; }
.legal__nav { position: sticky; top: calc(var(--nav) + 24px); display: flex; flex-direction: column; gap: 4px; }
.legal__nav b { font: 500 13px/1.4 var(--mono); color: var(--muted); margin-bottom: 8px; }
.legal__nav a { text-decoration: none; font-size: 15px; padding: 4px 0; }
.legal__nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.legal__body { display: flex; flex-direction: column; gap: 48px; max-width: 72ch; min-width: 0; }
.legal__body h1 { margin-bottom: 16px; }
.legal__body h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 12px; scroll-margin-top: calc(var(--nav) + 24px); }
.legal__body p + p, .legal__body .table-box + p { margin-top: 12px; }
.legal__body ul { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal__body .table-box { margin-top: 12px; }
.legal__body td { vertical-align: top; }
.legal__body a { text-underline-offset: 3px; }
@media (max-width: 1023px) { .legal { grid-template-columns: 1fr; } .legal__nav { position: static; } }

/* metin gibi gorunen dugme (cerez ayarlari) */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.foot-cols .link-btn { text-decoration: none; } .foot-cols .link-btn:hover { text-decoration: underline; }

/* cerez onayi (Consent Mode v2, varsayilan red): koyu kutu, tek dolu dugme turuncu */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__box { pointer-events: auto; max-width: 560px; width: 100%; background: var(--inv); color: var(--inv-ink); border-radius: var(--r-md); padding: 20px; box-shadow: 0 12px 40px rgb(0 0 0 / .25); display: flex; flex-direction: column; gap: 12px; }
.consent__title { font-weight: 600; }
.consent__box a { color: inherit; }
.consent__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.consent .btn--secondary { border-color: var(--inv-ink); color: var(--inv-ink); }
.nav__balance { color: var(--muted); }
