/* Başvuru ekranının stili (DP-233, DP-241). Renkler yalnız markanın değişkenleri (esnaf/CLAUDE.md → Marka), tema sistemden; başlık
   ve alt bilgi vitrinle (index.html) aynı görünür. Eski panelin stilinden bir şey alınmadı. */
@font-face { font-family: 'Figtree'; font-weight: 400 900; font-display: swap; src: url(/fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-weight: 400 900; font-display: swap; src: url(/fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light dark;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --brand: #4338ca; --brand-strong: #3730a3; --brand-ink: #ffffff; --brand-soft: #eceafd;
  --ink: #17162e; --muted: #5c5b76; --line: #e3e2ef; --bg: #f6f6fb; --surface: #ffffff;
  --ok: #15803d; --danger: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #a5a0ff; --brand-strong: #bcb8ff; --brand-ink: #12111f; --brand-soft: #27254a;
    --ink: #ecebf7; --muted: #a7a6c2; --line: #2e2c47; --bg: #12111f; --surface: #1b1a2e;
    --ok: #5fd08a; --danger: #ff8a8a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); }
h1:focus, h2:focus { outline: none; }
p, ul, figure, dl, dd { margin: 0; }
a { color: var(--brand); text-underline-offset: 0.15em; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.top-in { display: flex; align-items: center; min-height: 72px; }
.logo { display: inline-flex; }
.logo img { display: block; height: 32px; width: auto; }

.page { padding-top: 8px; padding-bottom: 56px; }
.stack { display: grid; gap: 20px; align-content: start; max-width: 640px; }
.stack .stack { max-width: none; }
.stack-wide { max-width: 880px; }
.lead { font-size: 1.125rem; color: var(--muted); }
.ask { font-size: 1.1875rem; font-weight: 600; line-height: 1.5; }
.optional { font-weight: 400; color: var(--muted); }

/* Form */
#apply-form { gap: 22px; }
.item { display: grid; gap: 6px; min-width: 0; }
.item > label, legend { font-weight: 600; }
.pair { display: grid; gap: 22px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; }
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
select:disabled { color: var(--muted); }
::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
[aria-invalid="true"] { border-color: var(--danger); }
.hint, .legal { font-size: 0.9375rem; color: var(--muted); }
.count { justify-self: end; margin-top: -2px; font-size: 0.8125rem; color: var(--muted); }
.err { font-size: 0.9375rem; font-weight: 600; color: var(--danger); }

.choices { margin: 0; padding: 0; border: 0; gap: 10px; }
.choices legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brand); }
.badge { margin-left: auto; font-size: 0.8125rem; font-weight: 700; color: var(--brand); }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0;
  border-radius: 10px; background: var(--brand); color: var(--brand-ink); font: 700 1.0625rem/1.2 var(--font); text-decoration: none;
  cursor: pointer; }
.btn:hover { background: var(--brand-strong); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 1rem; }
.btn-block { width: 100%; }
.cta-row { display: grid; gap: 10px; }
.link-btn { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--brand); font: 600 1rem var(--font);
  text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }

/* Bekleme */
.wait { justify-items: center; text-align: center; padding: 48px 0 24px; }
.spinner { width: 44px; height: 44px; border: 4px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%;
  animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* "Seni böyle anladık" */
.summary { padding: 20px; display: grid; gap: 14px; }
.summary-name { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.summary-line { margin-top: -10px; color: var(--muted); }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .i { margin-top: 2px; color: var(--brand); }
.notice { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid transparent; border-radius: 12px; background: var(--brand-soft); }
.notice-head { display: flex; align-items: flex-start; gap: 10px; }
.notice-head .i { margin-top: 2px; color: var(--brand); }
.notice-alert { background: var(--surface); border-color: var(--danger); }
.notice-alert .notice-head .i { color: var(--danger); }
.notice .cta-row { gap: 8px; }
.notice .btn-soft { background: var(--surface); }
fieldset.notice { margin: 0; }

/* Reklamın taslakları */
.mocks { display: grid; gap: 20px; align-items: start; }
.mock figcaption { margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.gad { padding: 16px; display: grid; gap: 6px; }
.gad-meta { font-size: 0.875rem; color: var(--muted); }
.gad-meta b { color: var(--ink); }
.gad-title { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; color: var(--brand); }
.gad-text { font-size: 0.9375rem; }
.gad-call { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--brand); }
.gad-call .i, .post-cta .i { width: 18px; height: 18px; }
.post { overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; line-height: 1.3; }
.post-head small { display: block; font-size: 0.8125rem; color: var(--muted); }
.post-avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); font-weight: 800; }
.post-media { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 16px; background: var(--bg); color: var(--muted);
  font-size: 0.9375rem; text-align: center; }
.post-media:has(img) { padding: 0; }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cta { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line);
  font-weight: 700; color: var(--brand); }
.post-text { padding: 12px 14px 16px; font-size: 0.9375rem; white-space: pre-line; overflow-wrap: anywhere; }

/* Kayıt */
#register-form { gap: 22px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }

/* Bütçe ve tahmin */
.budget { padding: 18px 20px 14px; display: grid; gap: 12px; }
.budget-head { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.budget-row { display: flex; align-items: center; gap: 12px; }
.budget-value { flex: 1; text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.step-btn { width: 52px; padding: 0; font-size: 1.5rem; }
.step-btn:disabled { opacity: 0.4; cursor: default; }
input[type="range"] { width: 100%; height: 32px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; margin-top: -6px; font-size: 0.8125rem; color: var(--muted); }
.sub { margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 8px; text-align: center; }
.stat dd { order: -1; font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.stat dt { font-size: 0.8125rem; line-height: 1.3; color: var(--muted); }
.note { font-size: 0.9375rem; color: var(--muted); }
.stats + .note { margin-top: 12px; }
.amount { padding: 16px 20px; display: grid; gap: 2px; }
.amount .sub { margin-bottom: 0; }
.amount-total { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }

/* Ödendi */
.receipt { padding: 16px 20px; display: grid; gap: 10px; }
.receipt div { display: flex; justify-content: space-between; gap: 16px; }
.receipt dt { color: var(--muted); }
.receipt dd { font-weight: 700; text-align: right; }

/* Alt bilgi: vitrinin görünüşü */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); background: var(--surface); font-size: 0.9375rem; color: var(--muted); }
.foot-in { display: grid; gap: 20px; }
.foot .logo img { height: 28px; }
.foot-lead { max-width: 40em; color: var(--ink); }
.facts { display: grid; gap: 12px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 0.8125rem; font-weight: 600; }
.facts dd { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { font-weight: 600; }
.foot-note { font-size: 0.8125rem; }

@media (min-width: 560px) {
  .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cta-row { grid-template-columns: repeat(2, max-content); }
  .cta-row > .btn:not(.btn-sm) { min-width: 160px; }
}
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
  .mocks { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}
@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .top-in { min-height: 88px; }
  .logo img { height: 40px; }
  .page { padding-top: 24px; padding-bottom: 72px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
