/* Nunito (SIL OFL 1.1, fonts/OFL.txt) kendi sunucumuzdan: Google Fonts'un resmî
   woff2 dosyaları (v32, değişken ağırlık), yalnız latin + latin-ext alt kümesi.
   Tarayıcı unicode-range'e göre yalnız gereken dosyayı indirir. */
@font-face {
  font-family: Nunito; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/k/_/fonts/nunito-normal-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: Nunito; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/k/_/fonts/nunito-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Nunito; font-style: italic; font-weight: 700 800; font-display: swap;
  src: url(/k/_/fonts/nunito-italic-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: Nunito; font-style: italic; font-weight: 700 800; font-display: swap;
  src: url(/k/_/fonts/nunito-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Değerler src/theme/index.ts ve N1-10 buton sisteminden (ana #3A6D63,
   basılı #2F5A52, ikincil kenar 1.5 #3A6D63, basılı zemin #E7F0EE). */
:root {
  --bg: #F5EEDD;
  --surface: #FAF7F0;
  --surface-alt: #F1E8D6;
  --teal: #4E8E82;
  --primary: #3A6D63;
  --primary-pressed: #2F5A52;
  --teal-wash: #E7F0EE;
  --ink: #2B2B2B;
  --ink-soft: #6B6257;
  --ink-faint: #9A8C79;
  --line: #E3D8C1;
  --coral: #B4472C;
  --shadow: 0 6px 18px rgba(74, 59, 34, 0.16);
  --font: Nunito, ui-rounded, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
}

[hidden] { display: none !important; }

.card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  /* Metinler gelene kadar gizli (dil değişirken TR yedek metin görünmesin).
     JS hiç çalışmazsa 1.5 sn sonra HTML'deki TR yedekle açılır. */
  opacity: 0;
  animation: reveal 0s 1.5s forwards;
}
.ready .card { opacity: 1; animation: none; }
@keyframes reveal { to { opacity: 1; } }

.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.icon { width: 64px; height: 64px; border-radius: 14px; }
.wordmark {
  margin: 0;
  font-style: italic;
  font-weight: 800;
  font-size: 19px;
  line-height: 25px;
  color: var(--primary);
}

.state { display: flex; flex-direction: column; gap: 14px; }

.eyebrow {
  margin: 0;
  font-style: italic;
  font-weight: 700;
  font-size: 24px;
  line-height: 31px;
}

.title {
  margin: 0;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  line-height: 29px;
}

/* Kod: polaroid kâğıdı üstünde kesik çizgili kupon. */
.code-box {
  background: var(--surface-alt);
  border: 2px dashed var(--primary);
  border-radius: 10px;
  padding: 14px 12px 16px;
  transform: rotate(-1deg);
}
.code-label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.code {
  margin: 4px 0 0;
  font-weight: 800;
  font-size: clamp(26px, 9vw, 40px);
  line-height: 1.15;
  letter-spacing: 1px;
  color: var(--ink);
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}
/* Uzun kodlar (17–32 karakter) iki satırı geçmesin. */
.code.long { font-size: clamp(20px, 6vw, 28px); letter-spacing: 0.5px; }

.lead { margin: 0; font-weight: 700; font-size: 16px; line-height: 23px; }
.how { margin: 0; color: var(--ink-soft); }

.copy-status {
  margin: -6px 0 0;
  min-height: 18px;
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  color: var(--primary);
}
.copy-status.error { color: var(--coral); }

.stores { display: flex; flex-direction: column; gap: 10px; }

/* Kodlu sayfada platform akışı (iOS: App Store kodu; Android: kopyala + Play). */
.flow { display: flex; flex-direction: column; gap: 10px; }
.flow:not([hidden]) + .flow:not([hidden]) { border-top: 1px solid var(--line); padding-top: 16px; }
.flow-label {
  margin: 0;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.flow .copy-status { margin: -4px 0 0; }

.btn {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 16px;
  line-height: 22px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.btn.primary { background: var(--primary); color: #fff; border: 0; }
.btn.primary:active { background: var(--primary-pressed); }

.btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn.secondary:active { background: var(--teal-wash); }

.privacy {
  margin: 0;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--ink-faint);
}

@media (hover: hover) {
  .btn.primary:hover { background: var(--primary-pressed); }
  .btn.secondary:hover { background: var(--teal-wash); }
}
