:root {
  --bg: #f8f5ee;
  --surface: #ffffff;
  --surface-alt: #f0ede1;
  --border: #e5dfd1;
  --border-strong: #cfc7b4;
  --text: #1c1c18;
  --muted: #5c5f63;
  --ink: #0d1b2a;
  --emerald: #1b4332;
  --gold: #c2933d;
  --panel: #1b4332;
  --selection: #ecdcb7;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161511;
    --surface: #201e19;
    --surface-alt: #29261f;
    --border: #37332b;
    --border-strong: #514b40;
    --text: #ede8de;
    --muted: #bdb6aa;
    --ink: #ede8de;
    --emerald: #7fbf9e;
    --gold: #d9a957;
    --panel: #1f3d2f;
    --selection: #4a3c22;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--emerald);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}

/* Dil: yalnızca etkin dilin blokları görünür */
html[lang='tr'] [data-lang='en'],
html[lang='en'] [data-lang='tr'] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Üst çubuk */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-width: 44px;
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.lang-switch button:hover {
  color: var(--ink);
}
.lang-switch button:focus-visible {
  outline-offset: -3px;
  border-radius: 999px;
}
html[lang='tr'] .lang-switch [data-set='tr'],
html[lang='en'] .lang-switch [data-set='en'] {
  background: var(--ink);
  color: var(--bg);
}

/* Giriş */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 40px 0 72px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.hero h1 {
  font-size: clamp(36px, 6.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 13em;
}
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
  margin: 0;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}
.store {
  display: inline-flex;
  border-radius: 9px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
}
.store img {
  display: block;
  height: 48px;
  width: auto;
}
.store:hover {
  transform: translateY(-2px);
}
.store:active {
  transform: translateY(0);
  opacity: 0.85;
}
/* Google Play yayına çıkana kadar: resmî rozet değil, sitenin kendi sönük kutusu (tıklanmaz) */
.soon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  color: var(--muted);
  line-height: 1.15;
  cursor: default;
  user-select: none;
}
.soon small {
  font-size: 11px;
  font-weight: 500;
}
.soon strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Uygulama görüntüsü: mağaza görselleriyle aynı yeşil zemin */
.hero-shot {
  margin: 0;
  background: var(--panel);
  border-radius: 24px;
  padding: 36px 36px 0;
  height: 440px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.hero-shot img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  align-self: flex-start;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 56px;
    padding: 48px 0 96px;
  }
  .hero-shot {
    height: 520px;
    padding: 44px 40px 0;
  }
}

/* Özellikler */
.features {
  border-top: 1px solid var(--border);
  padding: 56px 0 72px;
}
.section-title {
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}
.feature-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 48px;
}
.feature {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.feature h3 {
  font-size: 21px;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 32em;
}
@media (min-width: 640px) {
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quote {
  margin: 0 0 88px;
  padding: 56px 0 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.quote blockquote {
  margin: 0 auto;
  max-width: 22em;
}
.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.3;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

/* Belge sayfaları */
.doc {
  max-width: 720px;
  padding: 24px 0 64px;
}
.doc h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 16px 0 8px;
}
.doc .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
.doc h2 {
  font-size: 23px;
  margin: 44px 0 12px;
}
.doc p {
  max-width: 68ch;
}
.doc p,
.doc li {
  color: var(--text);
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.5;
  margin: 16px 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: block;
  overflow-x: auto;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.doc th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--ink);
}
.doc tr:last-child td {
  border-bottom: 0;
}
.doc li {
  margin: 4px 0;
}
.note {
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
}

/* Alt bilgi */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 44px;
  font-size: 14px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
