/* maarif+ — site stilleri. Renkler uygulamadaki Theme.swift ile aynı. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  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;
}

:root {
  --bg: #FFF6EA; --bg-deep: #F7ECDD; --surface: #FFFFFF; --ink: #3A2B22; --muted: #8A7A6E;
  --accent: #8479F2; --accent-ink: #FFFFFF; --accent-soft: #ECE9FF; --border: #EADCCB;
  --gold: #F0C75E; --mint: #8BE0BE; --peach: #F7BE9B; --sky: #9CCBF5;
  --shadow: 0 30px 60px -20px rgba(58, 43, 34, .28);
  --radius: 28px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1A33; --bg-deep: #16142A; --surface: #2A2748; --ink: #F2F0FF; --muted: #A9A3C4;
    --accent: #A79FFF; --accent-ink: #141230; --accent-soft: #332F5A; --border: #3A3663;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Üst çubuk */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo img { height: 26px; width: auto; }
.topbar nav { display: flex; gap: 6px; }
.topbar nav a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.topbar nav a:hover { color: var(--ink); background: var(--accent-soft); }

/* Düğmeler */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0E0D14; color: #fff; text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 16px;
  box-shadow: 0 10px 24px -10px rgba(14, 13, 20, .6);
  transition: transform .2s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store small { font-size: 12px; opacity: .75; font-weight: 600; }
.store strong { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
@media (prefers-color-scheme: dark) {
  .store { background: #fff; color: #0E0D14; box-shadow: none; }
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px;
  padding: 6px 14px; border-radius: 999px; letter-spacing: .02em;
}

/* Fosforlu kalem (uygulamadaki görev çizgisi) */
.hl {
  background: linear-gradient(transparent 52%, var(--gold) 52%, var(--gold) 90%, transparent 90%);
  padding: 0 .08em; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) {
  .hl { background: linear-gradient(transparent 55%, color-mix(in srgb, var(--accent) 55%, transparent) 55%, color-mix(in srgb, var(--accent) 55%, transparent) 92%, transparent 92%); }
}

/* Telefon çerçevesi */
.phone {
  position: relative; width: 280px; aspect-ratio: 640 / 1391;
  padding: 9px; border-radius: 46px; background: #0E0D14;
  box-shadow: var(--shadow), inset 0 0 0 2px #2A2833;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }

/* Giriş bölümü */
.hero { padding: 40px 0 24px; text-align: center; }
.hero h1 {
  font-size: clamp(40px, 11vw, 72px); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 900; margin: 18px 0 16px;
}
.hero h1 .plus { color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta .note { font-size: 14px; color: var(--muted); font-weight: 600; }
.qr { display: none; }
.hero-phones { display: flex; justify-content: center; margin-top: 44px; }
.hero-phones .side { display: none; }

/* Bölümler */
section { padding: 56px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-title h2 { font-size: clamp(30px, 7vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 900; margin: 12px 0 10px; }
.section-title p { color: var(--muted); margin: 0; font-size: 18px; }

.feature {
  display: grid; gap: 28px; align-items: center; justify-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 36px;
  padding: 32px 20px 0; margin-bottom: 20px; overflow: hidden;
}
.feature .text { max-width: 440px; text-align: center; }
.feature h3 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 900; margin: 12px 0 8px; }
.feature p { color: var(--muted); margin: 0; }
.feature .phone { width: 250px; margin-bottom: -120px; }
.feature.night { background: linear-gradient(180deg, #24205A 0%, #1B1840 100%); border-color: #2E2A66; color: #F2F0FF; }
.feature.night p { color: #B9B3DA; }
.feature.night .pill { background: rgba(255, 255, 255, .1); color: #CFC9FF; }

.grid {
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.tile .dot { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.tile h4 { margin: 0 0 4px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

.exams { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.exams span { font-weight: 900; font-size: 16px; padding: 8px 16px; border-radius: 999px; color: #2B2140; }

.final {
  text-align: center; border-radius: 40px; padding: 48px 22px;
  background: var(--accent); color: var(--accent-ink);
}
.final h2 { font-size: clamp(30px, 8vw, 48px); line-height: 1.08; letter-spacing: -.03em; font-weight: 900; margin: 0 0 12px; }
.final p { margin: 0 auto 26px; max-width: 460px; opacity: .85; font-size: 18px; }

/* Alt bilgi */
footer { padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--accent); }

/* Metin sayfaları (gizlilik, şartlar, destek) */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; }
.doc h1 { font-size: clamp(32px, 8vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 900; margin: 8px 0 6px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 32px 0 8px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px 22px; margin: 16px 0; }

/* Geniş ekran */
@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 72px 0 40px; text-align: left; }
  .hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
  .lead { margin: 0 0 30px; }
  .cta { flex-direction: row; align-items: center; gap: 22px; }
  .cta .note { display: none; }
  .qr {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 10px 16px 10px 10px;
  }
  .qr .code { position: relative; width: 92px; height: 92px; background: #fff; border-radius: 12px; padding: 8px; }
  .qr .code img { width: 100%; height: 100%; image-rendering: pixelated; }
  .qr .code b { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 6px; background: #fff; display: grid; place-items: center; color: var(--accent); font-size: 20px; font-weight: 900; line-height: 1; }
  .qr span { font-size: 14px; color: var(--muted); font-weight: 700; line-height: 1.35; }
  .qr strong { display: block; color: var(--ink); font-size: 15px; }
  .hero-phones { position: relative; height: 640px; margin: 0; align-items: center; }
  .hero-phones .phone { position: absolute; width: 290px; }
  .hero-phones .main { z-index: 2; animation: float 7s ease-in-out infinite; }
  .hero-phones .side { display: block; width: 250px; opacity: .97; }
  .hero-phones .left { transform: translateX(-62%) rotate(-8deg) scale(.92); z-index: 1; }
  .hero-phones .right { transform: translateX(62%) rotate(8deg) scale(.92); z-index: 1; }

  section { padding: 88px 0; }
  .feature { grid-template-columns: 1fr 1fr; padding: 0 56px; justify-items: stretch; min-height: 460px; }
  .feature .text { text-align: left; justify-self: center; }
  .feature h3 { font-size: 36px; }
  .feature .phone { width: 270px; justify-self: center; margin: 48px 0 -150px; }
  .feature.flip .text { order: 2; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .exams span { font-size: 18px; padding: 10px 20px; }
  footer .wrap { flex-direction: row; justify-content: space-between; text-align: left; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
