/* Tek sayfa + gizlilik sayfası stilleri. Önce mobil, açık tema, sistem yazı tipleri (dış bağlantı yok). */

:root {
  color-scheme: light;

  --bg: #f7f6f2;
  --surface: #ffffff;
  --tint: #edf4f3;
  --ink: #15212b;
  --ink-2: #3d4955;
  --muted: #5b6470;
  --line: #e3e0d7;
  --line-strong: #c9c5ba;

  --brand: #0f5e66;
  --brand-hover: #0b4a51;
  --brand-soft: #e2efee;
  --accent: #e9a23b;
  --accent-soft: #fcf0dc;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --success: #1c7a4a;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 33, 43, 0.05), 0 10px 30px -12px rgba(21, 33, 43, 0.18);
  --focus: 0 0 0 3px #ffffff, 0 0 0 5px var(--brand);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

/* "hidden" özniteliği, display tanımlayan sınıflardan her zaman üstün olsun */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-hover); }
svg { display: block; }
img { max-width: 100%; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* ---------- Üst bar ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.header-nav { display: none; gap: 24px; }
.header-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.header-nav a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 28px 0 48px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(15, 94, 102, 0.10), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(233, 162, 59, 0.10), transparent 60%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; margin-bottom: 18px;
  font-size: 0.85rem; font-weight: 600; color: var(--brand);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

h1 { font-size: clamp(2rem, 1.35rem + 3.2vw, 3.35rem); font-weight: 750; letter-spacing: -0.025em; }
.lead { margin-top: 14px; font-size: clamp(1.06rem, 1rem + 0.35vw, 1.2rem); color: var(--ink-2); max-width: 36em; }

/* ---------- Kayıt kartı ---------- */
.signup-card {
  scroll-margin-top: 72px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.signup-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label { font-weight: 600; font-size: 0.95rem; }

input[type="email"],
input[type="text"],
input[type="password"],
select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem; /* iOS'ta yakınlaştırmayı önler */
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #8a929b; }
input:hover, select:hover { border-color: #a8a499; }
input:focus-visible, select:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); border-radius: var(--radius-sm); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px var(--danger-soft) !important; }

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4955' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
select:invalid { color: #6f7780; }
select option { color: var(--ink); }

.field-check { grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.field-check input[type="checkbox"] {
  width: 22px; height: 22px; margin: 2px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.field-check label { font-size: 0.92rem; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.field-check .field-error { grid-column: 1 / -1; }

.field-error { color: var(--danger); font-size: 0.88rem; font-weight: 500; }
.field-error::before { content: "! "; font-weight: 700; }
.field-hint { font-size: 0.9rem; color: var(--ink-2); }
.link-button {
  font: inherit; color: var(--brand); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; font-weight: 600;
}

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px;
  font: inherit; font-weight: 650; font-size: 1.02rem; text-decoration: none;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  transition: background-color 0.15s, transform 0.05s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: 0.75; cursor: progress; }
.btn-block { width: 100%; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.45); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status:empty { display: none; }
.form-status { font-size: 0.92rem; font-weight: 500; }
.form-status.is-error { color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: 8px; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Tarih seçimi: Gün, Ay, Yıl (assets/date-select.js) ---------- */
.date-select { border: 0; margin: 0; padding: 0; min-width: 0; }
.date-select legend { padding: 0; margin-bottom: 2px; font-weight: 600; font-size: 0.95rem; }
.date-parts { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr) minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.date-part { display: grid; gap: 4px; min-width: 0; }
.date-part label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.date-part select {
  min-height: 52px; padding: 12px 30px 12px 12px;
  font-size: 1.05rem; font-variant-numeric: tabular-nums;
  background-position: right 8px center; background-size: 16px;
}
.date-readout { font-size: 0.95rem; font-weight: 600; color: var(--brand); }

/* ---------- Teşekkür durumu ---------- */
.thanks { display: grid; gap: 18px; }
.thanks:focus-visible { box-shadow: none; }
.thanks-head { display: flex; gap: 14px; align-items: flex-start; }
.thanks-icon {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff;
}
.thanks-icon svg { width: 24px; height: 24px; }
.thanks-title { font-size: 1.3rem; }
.thanks-text { margin-top: 4px; color: var(--ink-2); overflow-wrap: anywhere; }
.thanks-intro { padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.95rem; }
.question { display: grid; gap: 10px; }
.question-title { font-size: 1rem; font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 9px 14px;
  font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip[aria-pressed="true"]::before { content: "✓ "; content: "✓ " / ""; } /* ekran okuyucuya okunmaz */
.question-status { font-size: 0.88rem; color: var(--success); font-weight: 500; min-height: 1.4em; }
.question-status.is-error { color: var(--danger); }

/* ---------- Sonuçtan sonraki anonim sorular (kayıt kapalıyken) ---------- */
.feedback-card { display: grid; gap: 18px; }
.feedback-card .signup-title { margin-bottom: 0; }
.feedback-intro { color: var(--ink-2); font-size: 0.95rem; margin-top: -10px; }
.follow { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.follow .btn { text-align: center; }

/* ---------- Takvimini gör aracı ---------- */
.hero-stack { display: grid; gap: 20px; max-width: 760px; margin: 0 auto; }
.tool-card {
  display: grid; gap: 16px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  scroll-margin-top: 72px;
}
.tool-title { font-size: 1.35rem; }
.tool-status { display: grid; gap: 6px; }
.tool-form { display: grid; gap: 16px; }
.tool-countries { border: 0; margin: 0; padding: 0; min-width: 0; }
.tool-countries legend { padding: 0; margin-bottom: 6px; }
.choice-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  min-height: 56px; padding: 10px 14px;
  font: inherit; font-size: 1.05rem; font-weight: 650; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer;
}
.choice:hover { border-color: var(--brand); }
.choice[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tool-profile { padding-top: 0; }
.other-need { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.chips-sub { padding-left: 12px; border-left: 3px solid var(--line); }
.tool-result { scroll-margin-top: 72px; }
.tool-result-head h2 { font-size: 1.25rem; }
.tool-result-head h2:focus:not(:focus-visible) { box-shadow: none; }
.tool-choices { font-weight: 600; color: var(--ink) !important; }
/* Sonuç önceki seçimlere göre (ya da güncellenemedi): soluk; başında ne yapılacağı yazar */
.outdated-note {
  display: grid; gap: 10px; padding: 14px 16px;
  background: var(--accent-soft); border: 1px solid #f1d49d; border-left: 4px solid var(--accent); border-radius: 12px;
  color: #5c3b00;
}
.tool-result.is-outdated > :not(.outdated-note) { opacity: 0.5; }
.tool-disclaimer { font-size: 0.88rem; }
.signup-title { font-size: 1.15rem; margin-bottom: 6px; }
.signup-plan { margin-bottom: 14px; padding: 8px 12px; font-size: 0.92rem; color: var(--ink-2); background: var(--tint); border-radius: 8px; overflow-wrap: anywhere; }
.tag {
  flex: none; font-size: 0.75rem; font-weight: 600; color: var(--ink-2);
  background: var(--bg); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 3px 10px;
}

/* ---------- Bölümler ---------- */
.section { padding: 56px 0; }
.section-tint { background: var(--tint); }
.section-title { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.2rem); font-weight: 750; letter-spacing: -0.02em; }
.section-lead { margin-top: 10px; color: var(--ink-2); font-size: 1.05rem; }

.cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
  counter-increment: step;
}
.card::after {
  content: counter(step);
  position: absolute; top: 18px; right: 20px;
  font-size: 0.85rem; font-weight: 700; color: var(--muted);
}
.card h3 { font-size: 1.15rem; margin-top: 14px; }
.card p { margin-top: 8px; color: var(--ink-2); }
.card-icon, .reason-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
}
.card-icon svg, .reason-icon svg, .maker-line svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.reasons { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.reasons li { display: flex; gap: 14px; align-items: flex-start; }
.reason-icon { flex: none; background: var(--surface); }
.reasons h3 { font-size: 1.08rem; }
.reasons p { margin-top: 4px; color: var(--ink-2); }

.maker { padding: 40px 0; }
.maker-line {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  max-width: 640px; margin: 0 auto;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3rem); font-weight: 600; text-align: left;
  color: var(--ink);
}
.maker-line svg { flex: none; width: 28px; height: 28px; color: var(--accent); }

.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 18px;
  font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border: solid var(--ink-2); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq summary:focus-visible { border-radius: var(--radius-sm); }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); }

.cta { background: var(--surface); border-top: 1px solid var(--line); }
.cta-inner { text-align: center; display: grid; justify-items: center; gap: 4px; }
.cta .btn { margin-top: 18px; }

.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.disclaimer { color: var(--ink-2); max-width: 60em; }
.footer-meta { margin-top: 10px; }
.footer-meta a { color: var(--ink-2); }

/* KVKK yer tutucuları: yayından önce doldurulacak alanlar sarı görünür */
mark.placeholder { background: #ffe58f; color: #5c3b00; padding: 1px 4px; border-radius: 4px; font-weight: 600; }

/* ---------- Gizlilik / metin sayfaları ---------- */
.doc { padding: 32px 0 56px; }
.doc h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); }
.doc .doc-meta { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.doc h2 { font-size: 1.25rem; margin-top: 36px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.draft-note {
  margin-top: 20px; padding: 14px 16px;
  background: var(--accent-soft); border: 1px solid #f1d49d; border-left: 4px solid var(--accent); border-radius: 8px;
  color: #5c3b00 !important; font-size: 0.95rem;
}
.doc-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.93rem; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); }
.doc-table th { background: var(--bg); font-weight: 650; color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.back-link { display: inline-block; margin-top: 36px; font-weight: 600; }

.not-found { padding: 80px 0; text-align: center; }
.not-found p { margin-top: 12px; color: var(--ink-2); }
.not-found .btn { margin-top: 24px; }

/* ---------- Geniş ekranlar ---------- */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .signup-card { padding: 26px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .header-nav { display: flex; }
  .hero { padding: 64px 0 88px; }
  .tool-card { padding: 26px; }
  .section { padding: 88px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card { padding: 26px 24px; }
  .reasons { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .maker { padding: 56px 0; }
  .doc { padding: 56px 0 80px; }
}
/* Sonucun başlığı seyahat tarihini zaten söylüyor; özet kartında tekrar etmesin */
.tool-result .summary-anchor { display: none; }

/* ---------- Takvim aracı: sonuç düğmeleri ve yazdırma görünümü ---------- */
.tool-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-actions .field-hint { grid-column: 1 / -1; font-size: 0.85rem; }

@media print {
  .skip-link, .site-header, .hero-copy, .tool-card, .signup-card, main > .section, .site-footer,
  .tool-actions, .tool-cta, .done-toggle, .btn-link, .qa, .extras > summary .extras-unsure, .outdated-note { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .hero { padding: 0; background: none; }
  .container { max-width: none; padding: 0; }
  .hero-stack { max-width: none; gap: 10px; }
  .tool-result { display: grid !important; gap: 10px; }
  .tl-card, .doc, .cost, .place, .summary-card, .note-list > li, .source-list > li, .lead-step, .question-list li { break-inside: avoid; box-shadow: none !important; }
  .tl-item:not(:last-child)::before { display: none; }
  .preview-section.is-collapsible > summary, .tl-details > summary, .closures > summary { list-style: none; }
  .preview-section.is-collapsible { border-top: 0; }
  a { color: #000; text-decoration: none; }
  #t-kaynaklar a::after { content: " — " attr(href); font-size: 8.5pt; overflow-wrap: anywhere; }
  .tool-disclaimer { border: 1px solid #999; background: none; }
  .tool-result.is-outdated > * { opacity: 1 !important; }
}
