/* Posera kurumsal site — mobil uygulamayla birebir tasarım dili.
   Renkler app_colors.dart token'larından; açık + koyu tema. */

/* ── Koyu tema (varsayılan) ── */
:root {
  --bg: #273246;
  --bg-alt: #243044;
  --card: #2f3c56;
  --accent: #eddbc3;
  --on-accent: #273246;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.70);
  --faint: rgba(255, 255, 255, 0.38);
  --border: rgba(255, 255, 255, 0.10);
  --accent-soft: rgba(237, 219, 195, 0.12);
  --accent-border: rgba(237, 219, 195, 0.35);
  --nav-bg: rgba(39, 50, 70, 0.9);
  --shadow: rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --maxw: 1080px;
  --font: "Segoe UI", Roboto, Helvetica, Arial, system-ui, sans-serif;
}

/* ── Açık tema (manuel geçiş) ── */
:root[data-theme="light"] {
  --bg: #f2f3f5;
  --bg-alt: #e9ebef;
  --card: #ffffff;
  --accent: #273246;
  --on-accent: #ffffff;
  --text: #1a1f2b;
  --muted: #5a6474;
  --faint: #9aa3b2;
  --border: rgba(0, 0, 0, 0.08);
  --accent-soft: rgba(39, 50, 70, 0.07);
  --accent-border: rgba(39, 50, 70, 0.22);
  --nav-bg: rgba(242, 243, 245, 0.9);
  --shadow: rgba(0, 0, 0, 0.12);
}

/* ── Sistem açıksa (kullanıcı koyuyu ZORLAMADIYSA) açık tema ── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f3f5;
    --bg-alt: #e9ebef;
    --card: #ffffff;
    --accent: #273246;
    --on-accent: #ffffff;
    --text: #1a1f2b;
    --muted: #5a6474;
    --faint: #9aa3b2;
    --border: rgba(0, 0, 0, 0.08);
    --accent-soft: rgba(39, 50, 70, 0.07);
    --accent-border: rgba(39, 50, 70, 0.22);
    --nav-bg: rgba(242, 243, 245, 0.9);
    --shadow: rgba(0, 0, 0, 0.12);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── Üst menü ── */
header.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
/* Marka işareti: uygulama simgesi gibi HER TEMADA lacivert zemin + krem logo. */
.brand .mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: #273246; display: grid; place-items: center; padding: 5px;
}
.brand .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand .word { color: var(--accent); font-size: 20px; letter-spacing: 1.5px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav .login { color: var(--text); font-weight: 600; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--border); }
.nav .login:hover { text-decoration: none; border-color: var(--accent); }
.nav .cta { color: var(--on-accent) !important; background: var(--accent); padding: 9px 16px; border-radius: 11px; font-weight: 600; }
.nav .cta:hover { text-decoration: none; opacity: 0.92; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; font-size: 16px;
  display: grid; place-items: center;
}
.theme-toggle:hover { border-color: var(--accent); }

/* ── Hero ── */
.hero { padding: 84px 0 64px; text-align: center; }
.hero .badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--accent-border); color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.4px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.12; margin: 0 0 18px; font-weight: 800; }
.hero h1 .hl { color: var(--accent); }
.hero p.sub { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 13px; font-weight: 600; font-size: 16px; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { text-decoration: none; opacity: 0.92; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { text-decoration: none; border-color: var(--accent); }
.btn-ghost.soon { opacity: 0.55; cursor: default; }

/* ── Bölümler ── */
section { padding: 56px 0; }
.section-title { text-align: center; margin: 0 0 8px; font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 40px; }
.eyebrow { text-align: center; color: var(--accent); font-weight: 700; letter-spacing: 1.4px; font-size: 13px; text-transform: uppercase; margin-bottom: 10px; }

/* ── Özellik kartları ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ── Roller ── */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.role .tag { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.5px; }
.role h3 { margin: 6px 0 10px; color: var(--text); }
.role ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.role li { margin-bottom: 6px; }

/* ── CTA şerit ── */
.cta-band { text-align: center; }
.cta-band .inner {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 48px 24px;
}
.cta-band h2 { font-size: clamp(24px, 3.5vw, 32px); margin: 0 0 12px; color: var(--text); }
.cta-band p { color: var(--muted); margin: 0 0 24px; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border); padding: 44px 0 32px; margin-top: 20px;
  color: var(--muted);
}
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-col h4 { color: var(--text); font-size: 14px; margin: 0 0 12px; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-social { display: flex; gap: 12px; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  display: grid; place-items: center; margin: 0; color: var(--muted); font-weight: 600; font-size: 13px;
}
.foot-social a:hover { border-color: var(--accent); color: var(--accent); }
.foot-bottom { text-align: center; color: var(--faint); font-size: 13px; margin-top: 34px; }

/* ── Yasal metin sayfaları ── */
.legal { padding: 48px 0 60px; }
.legal .doc { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 6px; color: var(--text); }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 30px; }
.legal h2 { color: var(--accent); font-size: 20px; margin: 34px 0 10px; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal .note {
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 14px; margin: 20px 0;
}
.legal .toc a { display: inline-block; margin: 0 14px 8px 0; color: var(--muted); font-size: 14px; }
.back-home { display: inline-block; margin-bottom: 20px; color: var(--muted); font-size: 14px; }

/* ── İkonlar (SVG, çizgi stili) ── */
svg.icon {
  width: 24px; height: 24px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.foot-social a svg.icon { width: 18px; height: 18px; }
.btn svg.icon { width: 18px; height: 18px; }
.role .tag svg.icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

/* ── Yumuşak tema/hover geçişleri ── */
body, header.nav, .cta-band .inner, .theme-toggle, .foot-social a, .nav .cta {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.feature, .role {
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background-color .3s ease;
}
.feature:hover, .role:hover {
  transform: translateY(-5px); border-color: var(--accent-border);
  box-shadow: 0 14px 34px var(--shadow);
}
.btn { transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px var(--shadow); }
.btn-ghost.soon:hover { transform: none; border-color: var(--border); }
.nav .cta { transition: transform .2s ease, opacity .2s ease, background-color .3s ease; }
.nav .cta:hover { transform: translateY(-1px); }

/* ── Scroll-reveal animasyonu (yalnızca JS aktifken; aksi halde içerik görünür) ── */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ── Hero ışıması ── */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

/* ── Ürün gösterimi (telefon mockup — her zaman koyu app teması) ── */
.showcase { display: flex; justify-content: center; }
.phone {
  width: 284px; border-radius: 42px; padding: 12px;
  background: #1c2536; border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 80px var(--shadow);
}
.phone-screen { background: #273246; border-radius: 30px; padding: 20px 15px; color: #fff; }
.pm-title { font-weight: 800; font-size: 18px; }
.pm-sub { color: rgba(255, 255, 255, 0.55); font-size: 11px; margin-bottom: 16px; }
.pm-card { background: #2f3c56; border-radius: 14px; padding: 13px; margin-bottom: 11px; }
.pm-card .name { font-weight: 700; font-size: 13px; }
.pm-card .time { color: rgba(255, 255, 255, 0.4); font-size: 10px; margin-bottom: 9px; }
.pm-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.pm-row:last-child { margin-bottom: 0; }
.pm-qty { width: 26px; height: 23px; background: #273246; border-radius: 7px; display: grid; place-items: center; color: #eddbc3; font-weight: 700; font-size: 10px; flex: none; }
.pm-row .it { flex: 1; font-size: 12.5px; }
.pm-pill { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 8px; flex: none; }
.pm-pill.done { color: #34d399; background: rgba(52, 211, 153, 0.14); }
.pm-pill.wait { color: #ffb74d; background: rgba(255, 183, 77, 0.14); }

/* ── Fiyatlandırma ── */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 720px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.plan.featured { border-color: var(--accent-border); }
.plan .pname { font-weight: 800; font-size: 18px; }
.plan .price { font-size: 32px; font-weight: 800; margin: 6px 0 2px; color: var(--text); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; }
.plan li { color: var(--muted); font-size: 14px; padding: 6px 0 6px 26px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.plan .soon-tag { display: inline-block; font-size: 11px; color: var(--accent); border: 1px solid var(--accent-border); border-radius: 999px; padding: 3px 10px; margin-top: 6px; font-weight: 600; }

/* ── SSS ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 2px 18px; margin-bottom: 12px; transition: border-color .25s ease; }
.faq details[open] { border-color: var(--accent-border); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }

/* ── Mobil ── */
@media (max-width: 820px) {
  .grid, .roles, .plans { grid-template-columns: 1fr; }
  /* Bölüm linklerini gizle ama Giriş Yap + Kayıt Ol'u KORU. */
  .nav nav a:not(.cta):not(.login) { display: none; }
  .nav nav { gap: 8px; }
  .nav .login, .nav .cta { padding: 8px 12px; font-size: 14px; }
}
@media (max-width: 430px) {
  .brand .word { display: none; } /* dar ekranda yalnızca logo işareti */
  .nav .login, .nav .cta { padding: 7px 10px; font-size: 13px; }
  .theme-toggle { width: 34px; height: 34px; }
}
