/* Kavis — kavisapp.com paylaşılan stil sayfası.
   Renk/tipografi tokenleri src/shared/theme/colors.ts ile birebir aynı —
   uygulamanın koyu temasını ve turuncu vurgusunu burada da kullanıyoruz.
   Bilinçli olarak TEK tema (koyu) — uygulama da v1 kapsamında sadece koyu
   temayı destekliyor (bkz. ana repo README'sindeki "Tasarım Kararları"). */

:root {
  --bg: #14171c;
  --surface: #1c2026;
  --surface-2: #20242b;
  --border: #2a2f37;
  /* Kartlar/başlıklar gibi salt dekoratif ayraçlar için --border yeterli
     (2a2f37 vs bg = 1.3:1) — ama input gibi gerçek bir etkileşim
     sınırının WCAG 1.4.11 (non-text contrast, >=3:1) karşılaması
     gerekiyor, bu yüzden ayrı bir token: */
  --border-strong: #636b76;
  --text: #f2f3f5;
  --text-secondary: #9aa0a6;
  /* Eskiden #5b6068'ti (bg üzerinde 2.84:1 — WCAG AA metin eşiği 4.5:1'in
     altında kalıyordu, footer/"son güncelleme" gibi gerçek okunan metinde
     kullanıldığı için düzeltildi). #838a96, bg üzerinde 5.17:1. */
  --text-tertiary: #838a96;
  --accent: #ff7a1a;
  --accent-pressed: #e56a10;
  --accent-ink: #1c1002;
  --warning: #ffc107;
  --warning-bg: #3a2f14;
  --warning-border: #7a5f1e;
  --lane: #2a2f37;
  --success: #3ddc84;
  --success-bg: #14261c;
  --success-border: #276b45;
  --danger: #e5484d;
  --max-width: 880px;
  --max-width-wide: 1120px;
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------------
   Üst bilgi / nav — tüm sayfalarda ortak
--------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px clamp(18px, 5vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.wordmark::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.wordmark:hover {
  text-decoration: none;
}

.site-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(16px, 3.5vw, 32px);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(14px, 3vw, 28px);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--text-secondary);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* ikon linkler — Instagram (header + footer ortak) */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-link:hover,
.icon-link:focus-visible {
  color: var(--text);
  border-color: var(--border-strong);
  text-decoration: none;
}
.icon-link svg {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------------------
   Genel sayfa iskeleti
--------------------------------------------------------------------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 32px);
}

/* Landing page (body.page-home), header/footer/main dahil daha geniş bir
   ızgara kullanır — yasal sayfalar uzun metin okunurluğu için 880px'te
   kalıyor (bkz. --max-width). CSS custom property'nin cascade'i sayesinde
   tek bir override yeterli. */
body.page-home {
  --max-width: var(--max-width-wide);
}

.lane {
  height: 0;
  border-top: 3px dashed var(--lane);
  margin: 24px 0 32px;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 72px;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px clamp(18px, 5vw, 32px) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.site-footer a {
  color: var(--text-tertiary);
}
.site-footer a:hover {
  color: var(--text-secondary);
}
.site-footer .icon-link {
  color: var(--text-tertiary);
}
.site-footer .icon-link:hover,
.site-footer .icon-link:focus-visible {
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------------
   Landing sayfası — hero
--------------------------------------------------------------------- */

.hero {
  padding: clamp(48px, 10vw, 88px) 0 clamp(32px, 6vw, 56px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--warning);
}

.hero h1 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 20px;
  text-wrap: balance;
  max-width: 14ch;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lede {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0;
}

/* --- e-posta kayıt formu ("Çıkınca haber ver") --- */

.waitlist-form {
  margin-top: clamp(24px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
}

.waitlist-form .field {
  flex: 1 1 220px;
}

.waitlist-form input[type="email"] {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: "Literata", Georgia, serif;
  font-size: 15px;
  padding: 0 16px;
}
.waitlist-form input[type="email"]::placeholder {
  color: var(--text-tertiary);
}

/* .sr-only ile aynı teknik (clip + negatif margin) — bilerek "position:
   absolute; left:-9999px" KULLANILMADI: .waitlist-form konumlanmış bir
   ata değil, bu yüzden -9999px, en yakın konumlanmış atanın (genelde
   <html>) sol kenarına göre hesaplanıp sayfanın tamamında yatay taşmaya
   (mobilde kırılmaya) yol açıyordu. Bu teknik elemanı kendi normal akış
   konumunda 1x1px'e sıkıştırıp kırpıyor, hiçbir atanın konumlanmış olup
   olmamasından etkilenmiyor. */
.waitlist-form .hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-form button {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 26px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.waitlist-form button:hover {
  background: var(--accent-pressed);
}
.waitlist-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.waitlist-status {
  width: 100%;
  margin: 4px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  min-height: 1.2em;
}
.waitlist-status.is-success {
  color: var(--success);
}
.waitlist-status.is-error {
  color: var(--danger);
}

/* --- telefon mockup (görsel yer tutucu) --- */

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(300px, 62vw);
  aspect-ratio: 9 / 19.5;
  background: #0b0d10;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px var(--border),
    0 44px 90px -30px rgba(0, 0, 0, 0.65);
}

.phone-notch {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 20px;
  background: #0b0d10;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 55%, var(--bg) 100%);
}

/* Ekran görüntüsü eklenene kadar hafif bir "arayüz" izlenimi versin diye
   birkaç bulanık blok — gerçek görsel geldiğinde img onun üstünü kapatır. */
.phone-screen::before {
  content: "";
  position: absolute;
  inset: 18% 14% auto 14%;
  height: 46%;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 122, 26, 0.14), rgba(255, 122, 26, 0) 70%);
}

.phone-screen img,
.feature-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------------
   Özellik kartları
--------------------------------------------------------------------- */

.features {
  padding: clamp(24px, 5vw, 40px) 0 clamp(56px, 8vw, 88px);
}

.features-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 20px;
}

.feature-grid {
  display: grid;
  /* 5 kart var — 340px eşiği geniş ekranda 3 sütuna sabitliyor (3+2 satır,
     4 sütunlu bir 4+1'den çok daha dengeli görünüyor), dar ekranda 2'ye,
     mobilde 1'e düşüyor. */
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.feature-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
}

/* Her karta hafif farklı bir renk vurgusu — gerçek ekran görüntüleri
   gelene kadar kartların birbirinden ayırt edilmesine yardımcı olur. */
.feature-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, var(--thumb-tint, rgba(255, 122, 26, 0.16)), transparent 60%);
}

.feature-card-body {
  padding: 20px 22px 26px;
}

.feature-card h3 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 16.5px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------------------------------------------------------------------
   Yasal belge sayfaları (Gizlilik / Koşullar)
--------------------------------------------------------------------- */

.legal-header {
  padding: clamp(32px, 6vw, 56px) 0 0;
}

.legal-header h1 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 40px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 6px;
  text-wrap: balance;
}

.updated {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.draft-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.draft-banner svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--warning);
}

.draft-banner p {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--warning);
  letter-spacing: 0.01em;
}

.legal-body {
  padding-bottom: clamp(40px, 8vw, 72px);
}

.clause {
  padding: 26px 0;
  border-bottom: 1px dashed var(--border);
}
.clause:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.clause h2 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 18.5px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 10px;
  text-wrap: balance;
}

.clause p {
  margin: 0 0 12px;
  max-width: 66ch;
  color: var(--text-secondary);
}
.clause p:last-child {
  margin-bottom: 0;
}

.other-doc-link {
  display: inline-block;
  margin-top: 4px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------------
   "Kavis Hakkında"
--------------------------------------------------------------------- */

.about {
  padding: clamp(24px, 5vw, 40px) 0 clamp(56px, 9vw, 96px);
}

.about h2 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 20px;
  text-wrap: balance;
}

.about-card {
  max-width: 68ch;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 26px);
  background: var(--surface);
}

.about-card .about-tag {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.about-card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
}
.about-card p:last-of-type {
  margin-bottom: 0;
}

.about-card em {
  color: var(--text);
  font-style: italic;
}

.about-card a {
  font-weight: 500;
}

.about-signature {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.about-signature .about-name {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--text);
}

.about-signature .about-role {
  margin-top: 2px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
}

/* ---------------------------------------------------------------------
   Responsive — hero grid ve dar ekranlar
--------------------------------------------------------------------- */

@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    margin-bottom: 8px;
  }
  .phone-frame {
    width: min(220px, 52vw);
  }
}

@media (max-width: 520px) {
  .clause p {
    margin-left: 0;
  }
  .waitlist-form {
    max-width: none;
  }
  .waitlist-form .field,
  .waitlist-form button {
    flex: 1 1 100%;
  }
}
