/* Sismik — tanıtım sitesi
   Zemin uygulamanın kendi açık temasından türetilir (iOS grouped background
   soyu): site, sattığı uygulamayla aynı yüzeyde durur. Büyüklük renkleri
   yalnızca anlam taşıdıkları yerde kullanılır, dekorasyon olarak asla. */

:root {
  color-scheme: light;

  --paper:   #F4F5F8;
  --card:    #FFFFFF;
  --ink:     #1B2430;
  --muted:   #5B6675;
  --line:    #E2E6EE;
  --brand:   #F0821A;
  --brand-deep: #C2650C;

  /* Uygulamadaki büyüklük ölçeğinden. Ölçülen/tahmini ayrımını taşır. */
  --measured: #2E9E63;
  --severe:   #C8352B;

  --measure: 68ch;
  --page: 1080px;
  --gap: clamp(56px, 8vw, 104px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(var(--page), calc(100% - 44px)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.muted { color: var(--muted); }

/* ── Tipografi ────────────────────────────────────────────────────────────
   Tek aile, iki karakter: başlıklar genişletilmiş ve ağır, gövde normal.
   Ayrımı genişlik ekseni taşır, ikinci bir yazı ailesi değil. */

h1, h2, h3 { margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-variation-settings: "wdth" 116, "wght" 800;
}
h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-variation-settings: "wdth" 112, "wght" 720;
}
h3 {
  font-size: 1.06rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
  font-variation-settings: "wdth" 104, "wght" 680;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--muted); }

/* ── Üst çubuk ────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; flex: none; }
.brand .mark svg { width: 20px; height: 20px; }
.brand b { font-size: 1.02rem; letter-spacing: -0.02em; font-variation-settings: "wdth" 108, "wght" 720; }

.topnav { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: .92rem; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--ink); }

.langswitch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.langswitch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .78rem; font-variation-settings: "wght" 640;
  color: var(--muted); padding: 5px 11px;
}
.langswitch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ── Düğmeler ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px;
  font-size: .96rem; font-variation-settings: "wght" 660;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -10px rgba(240,130,26,.8); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.btn-quiet { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: #C9D0DC; color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { padding: clamp(48px, 8vw, 92px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { max-width: 34ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-shot { justify-self: center; width: min(300px, 78vw); aspect-ratio: 300 / 452;
  object-fit: cover; object-position: 50% 96%;
  border-radius: 26px; box-shadow: 0 34px 70px -34px rgba(27,36,48,.42); }

/* Sismogram: sayfadaki tek süsleme, ve tam olarak iki kez görünür.
   Açılışta bir kez kendini çizer — sayfanın tek hareket anı. */
.trace { display: block; width: 100%; height: 74px; margin-top: clamp(36px, 6vw, 64px); overflow: visible; }
.trace path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.trace .peak { stroke: var(--brand); opacity: 1; stroke-width: 2.4; }
@media (prefers-reduced-motion: no-preference) {
  .trace path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1.5s cubic-bezier(.5,.05,.2,1) .25s forwards; }
  .trace .peak { animation-delay: .75s; animation-duration: 1.1s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Kaynak şeridi ────────────────────────────────────────────────────── */

.sources { margin-top: clamp(28px, 4vw, 44px); padding: 22px 0 0; border-top: 1px solid var(--line); }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.sources li b { display: block; font-size: 1rem; font-variation-settings: "wdth" 108, "wght" 700; letter-spacing: -.01em; }
.sources li span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; }

/* ── Bölümler ─────────────────────────────────────────────────────────── */

section + section { margin-top: var(--gap); }
.section-head { max-width: 46ch; margin-bottom: clamp(28px, 4vw, 40px); }
.section-head h2 { margin-bottom: 10px; }

/* Özellik ızgarası bilerek eşit DEĞİL: ilk iki özellik ürünün omurgası,
   geri kalanı destek. Boyut farkı bu hiyerarşiyi taşır. */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.feature { grid-column: span 2; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature.wide { grid-column: span 3; }
.feature.full { grid-column: span 6; display: flex; align-items: center; gap: 20px; }
.feature.full .glyph { margin-bottom: 0; }
.feature.full div { min-width: 0; }
.feature h3 { margin-bottom: 7px; }
.feature p { font-size: .9rem; color: var(--muted); }
.feature .glyph { display: block; width: 34px; height: 34px; margin-bottom: 14px; color: var(--brand); flex: none; }
.feature .glyph svg { width: 100%; height: 100%; }

/* ── Ekran şeridi ─────────────────────────────────────────────────────── */

.rail { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
/* `flex-basis` tek başına yetmiyor: flex öğesinin varsayılan
   `min-width:auto` değeri görselin doğal genişliğini (760px) taban kabul
   edip taşırıyordu. Genişlik açıkça verilir. */
.rail img { flex: 0 0 auto; width: 236px; min-width: 0; height: auto;
  scroll-snap-align: center; border-radius: 18px; border: 1px solid var(--line); }

/* ── Ölçülen mi, tahmin mi ────────────────────────────────────────────── */

.honesty { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.honesty > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.honesty .badge { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-variation-settings: "wght" 700; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.honesty .measured .badge { background: color-mix(in srgb, var(--measured) 13%, #fff); color: var(--measured); }
.honesty .estimated .badge { background: color-mix(in srgb, var(--brand) 15%, #fff); color: var(--brand-deep); }
.honesty p { font-size: .92rem; color: var(--muted); }
.honesty strong { color: var(--ink); font-variation-settings: "wght" 640; }

/* ── Gizlilik ─────────────────────────────────────────────────────────── */

.privacy { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(26px, 4vw, 40px); }
.privacy ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px 26px; }
.privacy li b { display: block; font-variation-settings: "wght" 680; font-size: .95rem; }
.privacy li span { font-size: .87rem; color: var(--muted); }

/* ── Kapanış ──────────────────────────────────────────────────────────── */

.closing { text-align: center; padding: clamp(40px, 6vw, 64px) 0; }
.closing h2 { margin: 0 auto 20px; max-width: 20ch; }

/* ── Alt bilgi ────────────────────────────────────────────────────────── */

footer { margin-top: var(--gap); border-top: 1px solid var(--line); padding: 34px 0 46px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.footer-note { font-size: .84rem; color: var(--muted); max-width: 52ch; }
.footer-note strong { color: var(--ink); font-variation-settings: "wght" 660; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; justify-content: flex-end; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ── Belge sayfaları ──────────────────────────────────────────────────── */

.doc { padding: clamp(36px, 6vw, 64px) 0 0; }
.doc h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); margin-bottom: 10px; }
.doc .issued { font-size: .84rem; color: var(--muted); margin-bottom: 34px; }
.doc h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin: 40px 0 12px; }
.doc h3 { margin: 26px 0 8px; }
.doc p, .doc li { font-size: .95rem; }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc .note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 12px; padding: 16px 18px; margin: 20px 0; font-size: .92rem; }
.doc .note.warn { border-left-color: var(--severe); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: .88rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.doc th { font-size: .8rem; color: var(--muted); font-variation-settings: "wght" 660; }
.doc td small { display: block; color: var(--muted); font-size: .8rem; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-variation-settings: "wght" 680; white-space: nowrap; }
.tag.ok { background: color-mix(in srgb, var(--measured) 13%, #fff); color: var(--measured); }
.tag.est { background: color-mix(in srgb, var(--brand) 15%, #fff); color: var(--brand-deep); }

/* Görünmeyen dil kesin olarak gizlenir; görünen dil kendi doğal display
   değerini korur (satır içi, blok, ızgara öğesi — hangisiyse). */
[data-lang]:not(.on) { display: none !important; }

/* ── Dar ekran ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { grid-row: 1; }
  .hero .lede { max-width: none; }
  .sources ul { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .feature, .feature.wide { grid-column: span 2; }
  .feature.full { grid-column: span 4; }
  .honesty { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .topnav a:not(.nav-keep) { display: none; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature.wide, .feature.full { grid-column: span 1; }
  .feature.full { display: block; }
  .feature.full .glyph { margin-bottom: 14px; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc td { border: 0; padding: 3px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
}
