/* Suture — sutureapp.com
   Tek stil dosyası: ana sayfa, gizlilik, koşullar, destek.
   Yazı tipleri sitenin kendi klasöründen yüklenir; dışarıya istek gitmez. */

/* —— Yazı tipleri (SIL OFL 1.1; lisans metinleri fonts/ klasöründe) —— */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-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;
}
@font-face {
  /* Ğ ğ İ Ş ş */
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-tr.woff2") format("woff2");
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-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;
}
@font-face {
  /* Ğ ğ İ Ş ş */
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-tr.woff2") format("woff2");
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}

/* —— Temel —— */
:root {
  --navy: #0a2a5e;
  --blue: #0d47a1;
  --blue-soft: #1565c0;
  --ink: #10203a;
  --muted: #55637a;
  --paper: #f6f8fc;
  --line: #dbe3f0;
  --seam: #b6c5dc;
  --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; text-wrap: balance; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.top a:focus-visible { outline-color: #ffd27a; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 10; background: var(--white); color: var(--blue); font-weight: 600; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* —— Üst bölüm (bütün sayfalar) —— */
.top { background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 60%, var(--blue-soft) 100%); color: var(--white); position: relative; overflow: hidden; }
.top nav { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px 0; }
.mark { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.top nav ul { display: flex; gap: 28px; list-style: none; font-size: 0.95rem; }
.top nav ul a { text-decoration: none; opacity: 0.85; }
.top nav ul a:hover { opacity: 1; }

.hero { padding: 72px 0 120px; max-width: 680px; position: relative; z-index: 1; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 540px; margin-bottom: 36px; }
.btn { display: inline-block; background: var(--white); color: var(--blue); font-weight: 600; text-decoration: none; padding: 14px 26px; border-radius: 10px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(4, 20, 50, 0.3); }
.btn-dark { background: var(--blue); color: var(--white); }

/* Dikiş çizgisi */
.stitch { position: absolute; left: 0; right: 0; bottom: 28px; width: 100%; height: 60px; opacity: 0.55; }

/* —— Ana sayfa —— */
.home section { padding: 88px 0; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.home section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.015em; margin-bottom: 48px; max-width: 620px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.num { font-family: "Fraunces", Georgia, serif; font-size: 0.95rem; color: var(--blue); display: block; margin-bottom: 18px; }

.home .steps { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px dashed var(--blue); padding-top: 22px; }
.steps li::before { content: counter(s); font-family: "Fraunces", Georgia, serif; font-size: 2.2rem; color: var(--blue); display: block; line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.98rem; }

.contact { text-align: center; }
.home .contact h2 { margin: 0 auto 16px; }
.contact p { color: var(--muted); max-width: 520px; margin: 0 auto 32px; }

/* —— Alt bilgi (bütün sayfalar) —— */
footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.9rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--blue); }

/* —— Belge sayfaları: gizlilik, koşullar, destek —— */
.top-doc nav ul { gap: 24px; flex-wrap: wrap; }
.top-doc nav ul a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.doc-hero { padding: 30px 0 104px; max-width: 700px; position: relative; z-index: 1; }
.doc-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.2rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.doc-hero p { font-size: 1.05rem; opacity: 0.88; max-width: 560px; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 44px; padding-bottom: 96px; }
.doc-body { max-width: 700px; font-size: 1.0625rem; line-height: 1.7; }

/* İçindekiler: dar ekranda açılır kutu, geniş ekranda yanda sabit liste */
.toc ol { list-style: none; }
.toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 0.94rem; line-height: 1.35; }
.toc a:hover { color: var(--blue); }
.toc-desktop { display: none; }
.toc-mobile { margin-bottom: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.toc-mobile summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 1rem; font-weight: 600; cursor: pointer; list-style: none; border-radius: 14px; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: ""; width: 9px; height: 9px; margin-top: -5px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); }
.toc-mobile[open] summary::after { margin-top: 5px; transform: rotate(-135deg); }
.toc-mobile ol { padding: 0 18px 14px; }

.meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; font-size: 0.97rem; line-height: 1.5; padding-bottom: 24px; margin-bottom: 26px; border-bottom: 2px dashed var(--seam); }
.meta dt { color: var(--muted); }
.meta dd { font-weight: 500; overflow-wrap: anywhere; }

.doc-body .lead { font-size: 1.16rem; line-height: 1.65; }
.nowrap { white-space: nowrap; }

.summary { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin-top: 30px; }
.doc-body .summary h2 { font-size: 1.3rem; margin-bottom: 12px; }

.doc-section { margin-top: 44px; padding-top: 40px; border-top: 2px dashed var(--seam); scroll-margin-top: 16px; }
.doc-section.first { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h2 { font-size: clamp(1.45rem, 3.4vw, 1.75rem); letter-spacing: -0.012em; margin-bottom: 16px; }
.doc-body h3 { font-size: 1.2rem; margin: 30px 0 10px; scroll-margin-top: 16px; }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body .table-wrap { margin-bottom: 16px; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li + li { margin-top: 7px; }
.doc-body li::marker { color: var(--blue); }
.doc-body strong { font-weight: 600; }
.doc-body a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-body a:hover { text-decoration-thickness: 2px; }
.doc-body .summary > :last-child,
.doc-body .doc-section > :last-child { margin-bottom: 0; }

/* Tablolar: geniş ekranda tablo, dar ekranda satır satır kart */
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 0.96rem; line-height: 1.5; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.doc-body thead th { font-weight: 600; background: #edf1f8; }
.doc-body tbody tr:last-child td { border-bottom: 0; }
.doc-body td:first-child { font-weight: 500; }

/* Destek sayfası */
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.contact-card .label { color: var(--muted); font-size: 0.95rem; margin-bottom: 4px; }
.doc-body .contact-card .addr { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(1.3rem, 5.2vw, 1.75rem); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 14px; overflow-wrap: anywhere; }
.doc-body .contact-card .addr a { color: var(--ink); text-decoration: none; }
.doc-body .contact-card .addr a:hover { color: var(--blue); }
.doc-body .contact-card p { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.doc-body .contact-card .btn { margin-top: 6px; }
.doc-body a.btn { text-decoration: none; }
.doc-body a.btn-dark { color: var(--white); }

/* 404 */
.notfound { padding-top: 72px; padding-bottom: 120px; }
.notfound h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 14px; }
.notfound p { color: var(--muted); margin-bottom: 28px; max-width: 520px; }

@media (min-width: 980px) {
  .doc.has-toc { grid-template-columns: 236px minmax(0, 700px); column-gap: 60px; }
  .toc-mobile { display: none; }
  .toc-desktop { display: block; position: sticky; top: 28px; align-self: start; max-height: calc(100vh - 56px); overflow-y: auto; padding-bottom: 8px; }
  .toc-title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.05rem; margin-bottom: 10px; }
  .toc-desktop ol { border-left: 2px dashed var(--seam); padding-left: 16px; }
}

@media (max-width: 760px) {
  .home .top nav ul { display: none; }
  .top-doc nav ul { gap: 18px; font-size: 0.92rem; }
  .hero { padding: 48px 0 110px; }
  .doc-hero { padding: 18px 0 96px; }
  .grid, .steps ol { grid-template-columns: 1fr; }
  .home section { padding: 64px 0; }
  .doc { padding-top: 32px; padding-bottom: 72px; }
  .summary, .contact-card { padding: 22px 20px; }
  .doc-body .lead { font-size: 1.09rem; }
}

@media (max-width: 640px) {
  .doc-body table, .doc-body tbody, .doc-body tr, .doc-body td { display: block; }
  .doc-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .doc-body tr { padding: 15px 16px; border-bottom: 1px solid var(--line); }
  .doc-body tbody tr:last-child { border-bottom: 0; }
  .doc-body td { padding: 0; border: 0; }
  .doc-body td:first-child { font-weight: 600; font-size: 1rem; }
  .doc-body td + td { margin-top: 9px; }
  .doc-body td + td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .top { background: none; color: #000; overflow: visible; }
  .top nav { padding: 0 0 8pt; }
  .top nav ul, .stitch, .toc, .skip, footer .links { display: none; }
  .doc-hero { padding: 0 0 12pt; }
  .doc { display: block; padding: 0; }
  .doc-body { max-width: none; }
  .doc-body a { color: inherit; text-decoration: none; }
  .summary, .table-wrap, .contact-card { border-color: #999; }
  .doc-section { border-top-color: #999; }
  h2, h3 { break-after: avoid; }
  tr, li { break-inside: avoid; }
}
