/* Author: E.Atasoy */
/* Birdario tanıtım sitesi. Renkler uygulamanın paletinden (lib/app/theme/app_colors.dart). */

:root {
  --bg: #fbf8f1;
  --bg-alt: #f4efe3;
  --cream: #fdf7e9; /* açılış resminin zemini; kuşların arkası bununla birleşir */
  --surface: #ffffff;
  --ink: #1f2a44;
  --muted: #5b647a;
  --line: #e7e0cf;
  --canary: #f5c518;
  --canary-deep: #e0a800;
  --amber-text: #8a5d00; /* sarı yazı açık zeminde okunmuyor; küçük başlıklar bununla */
  --navy: #1f2a44;
  --navy-deep: #161e33;
  --phone-bezel: #0f131c;
  --shadow: 0 1px 2px rgb(31 42 68 / 6%), 0 18px 40px -12px rgb(31 42 68 / 22%);
  --radius: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Segoe UI", "SF Arabic", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151f;
    --bg-alt: #161b27;
    --surface: #1b2130;
    --ink: #eceff5;
    --muted: #9aa3b5;
    --line: #2a3142;
    --amber-text: #f5c518;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 20px 44px -14px rgb(0 0 0 / 60%);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(ar) body, body:lang(ar) { font-family: var(--font-ar); line-height: 1.75; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--canary); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--amber-text);
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-block-end: 14px;
}
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 15px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--canary); }

/* Üst bar */
.top {
  position: sticky; top: 0; z-index: 20;
  /* daha saydam olunca lacivert bölüm üstünde griye dönüyor */
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.top.is-scrolled { border-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -0.02em; }
.brand picture { display: contents; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 550; transition: color .2s; }
.nav a:hover { color: var(--ink); }

.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; background: var(--surface);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px;
  box-shadow: var(--shadow);
}
.lang a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.lang a:hover { background: var(--bg-alt); }
.lang a[aria-current] { font-weight: 700; background: var(--bg-alt); }

@media (max-width: 900px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
}

/* Giriş */
.hero { padding-block: clamp(36px, 7vw, 88px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; letter-spacing: -0.04em; }
:lang(ar) .hero h1 { letter-spacing: 0; }
.hero h1 mark {
  color: inherit; background: none; white-space: nowrap;
  background-image: linear-gradient(transparent 62%, color-mix(in srgb, var(--canary) 70%, transparent) 62%, color-mix(in srgb, var(--canary) 70%, transparent) 92%, transparent 92%);
}
@media (max-width: 420px) { .hero h1 mark { white-space: normal; } }
.lead { margin-block: 22px 32px; font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 34em; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 18px; border-radius: 14px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 650; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em;
  transition: transform .2s, box-shadow .2s;
}
.store svg { width: 22px; height: 22px; stroke-width: 2; }
.store small { display: block; font-size: 12px; font-weight: 500; opacity: .75; letter-spacing: 0; margin-block-end: 3px; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgb(31 42 68 / 60%); }
.store.is-soon { background: transparent; color: var(--ink); border: 1.5px solid var(--line); cursor: default; }
.store.is-soon small { color: var(--amber-text); opacity: 1; font-weight: 700; }
/* Dar ekranda alt alta, ikisi aynı genişlikte */
@media (max-width: 560px) {
  .stores { display: grid; grid-template-columns: min(100%, 320px); }
  .store { justify-content: center; }
}
@media (prefers-color-scheme: dark) {
  .store { background: var(--canary); color: var(--navy); }
  .store.is-soon { background: transparent; color: var(--ink); }
}

.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-block-start: 28px; color: var(--muted); font-size: 15px; font-weight: 550; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: #16a34a; stroke-width: 2.4; }

.hero-art { position: relative; min-height: 600px; }
.sun {
  position: absolute; inset-inline-start: 50%; top: 4%;
  width: 92%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px rgb(224 168 0 / 12%);
}
[dir="rtl"] .sun { translate: 50% 0; }
.birds {
  position: absolute; width: 74%; inset-inline-start: 13%; top: 3%;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
}
.phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  border: 9px solid var(--phone-bezel); background: var(--phone-bezel);
  box-shadow: var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero .phone { position: absolute; width: min(270px, 46%); }
.phone-front { inset-inline-start: 20%; top: 31%; z-index: 2; }
.phone-back { inset-inline-start: 52%; top: 37%; rotate: 6deg; opacity: .97; }
[dir="rtl"] .phone-back { rotate: -6deg; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; aspect-ratio: 1 / 1.05; max-width: 520px; width: 100%; margin-inline: auto; }
}

/* Bölüm başlıkları */
section { padding-block: clamp(64px, 9vw, 120px); }
.head { max-width: 760px; margin-block-end: clamp(36px, 5vw, 60px); }
.head h2, .spot h2, .privacy h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; }
.head p:not(.eyebrow) { margin-block-start: 18px; color: var(--muted); font-size: 18px; }

/* Nasıl çalışır */
.how { background: var(--bg-alt); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 30px 28px 32px; box-shadow: var(--shadow); }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--canary); color: var(--navy); font-weight: 800; font-size: 19px; margin-block-end: 22px;
}
.steps h3 { font-size: 22px; font-weight: 750; margin-block-end: 10px; }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Öne çıkanlar */
.spots .wrap { display: grid; gap: clamp(72px, 10vw, 130px); }
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.spot:nth-child(even) .spot-copy { order: 2; }
.spot-copy > p:not(.eyebrow) { margin-block: 18px 26px; color: var(--muted); font-size: 18px; max-width: 32em; }
.spot-art {
  border-radius: 32px; padding: clamp(36px, 5vw, 64px) 0; display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.spot-art .phone { width: min(290px, 64%); }
.tone-a { background: radial-gradient(120% 90% at 30% 10%, #fff3c4 0%, var(--cream) 60%); }
.tone-b { background: radial-gradient(120% 90% at 70% 10%, #e3ecff 0%, #f1f4fb 65%); }
.tone-c { background: radial-gradient(120% 90% at 30% 90%, #fde4ef 0%, #f9f1f4 65%); }
.tone-d { background: radial-gradient(120% 90% at 70% 90%, #dff3e6 0%, #f0f6f1 65%); }
@media (prefers-color-scheme: dark) {
  .tone-a { background: radial-gradient(120% 90% at 30% 10%, #3a3216 0%, #1b2130 65%); }
  .tone-b { background: radial-gradient(120% 90% at 70% 10%, #1e2c4d 0%, #1b2130 65%); }
  .tone-c { background: radial-gradient(120% 90% at 30% 90%, #3b2032 0%, #1b2130 65%); }
  .tone-d { background: radial-gradient(120% 90% at 70% 90%, #183326 0%, #1b2130 65%); }
}
@media (max-width: 820px) {
  .spot { grid-template-columns: 1fr; }
  .spot:nth-child(even) .spot-copy { order: 0; }
}

.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 34px; font-weight: 550; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--canary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2A44' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
:lang(ar) .ticks li::before { top: 5px; }

/* Izgara */
.more { background: var(--bg-alt); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid li { background: var(--surface); border-radius: var(--radius); padding: 26px 24px 28px; border: 1px solid var(--line); }
.grid svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 13px; margin-block-end: 18px;
  background: var(--cream); color: var(--navy); stroke-width: 1.7;
}
@media (prefers-color-scheme: dark) { .grid svg { background: #2a2a20; color: var(--canary); } }
.grid h3 { font-size: 18px; font-weight: 720; margin-block-end: 8px; letter-spacing: -0.015em; }
.grid p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } }

/* Diller */
.strip {
  display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: 16px;
  padding: 6px 4px 18px;
}
/* Dar ekranda yatay kayar; gölge kesilmesin diye yalnız orada */
@media (max-width: 1000px) {
  .strip { overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 28px; margin-inline: -20px; }
}
.mini { text-decoration: none; display: grid; gap: 12px; justify-items: center; scroll-snap-align: start; }
.mini-phone {
  display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
  border: 6px solid var(--phone-bezel); background: var(--phone-bezel);
  box-shadow: var(--shadow); transition: transform .25s;
}
.mini-phone img { width: 100%; height: 100%; object-fit: cover; }
.mini:hover .mini-phone { transform: translateY(-4px); }
.mini-name { font-weight: 650; font-size: 15px; color: var(--muted); }
.mini.is-current .mini-phone { outline: 3px solid var(--canary); outline-offset: 3px; }
.mini.is-current .mini-name { color: var(--ink); }

/* Gizlilik */
.privacy { background: var(--navy); color: #eef1f7; }
@media (prefers-color-scheme: dark) { .privacy { background: var(--navy-deep); } }
.privacy .eyebrow { color: var(--canary); }
.privacy-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.privacy-copy > p:not(.eyebrow) { margin-block: 18px 28px; color: #b9c1d3; font-size: 18px; max-width: 30em; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; color: var(--canary); font-weight: 650; text-decoration: none; }
.arrow-link svg { width: 20px; height: 20px; transition: translate .2s; }
.arrow-link:hover svg { translate: 4px 0; }
[dir="rtl"] .arrow-link svg { scale: -1 1; }
[dir="rtl"] .arrow-link:hover svg { translate: -4px 0; }
.privacy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.privacy-list li {
  display: grid; gap: 14px; padding: 24px; border-radius: var(--radius);
  background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 9%);
}
.privacy-list svg { width: 30px; height: 30px; color: var(--canary); }
.privacy-list h3 { font-size: 18px; font-weight: 700; margin-block-end: 6px; color: #fff; }
.privacy-list p { color: #b9c1d3; font-size: 15.5px; }
@media (max-width: 900px) { .privacy-in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .privacy-list { grid-template-columns: 1fr; } }

/* Fiyat */
.pricing .head, .faq .head, .langs .head { margin-inline: auto; text-align: center; }
.pricing .eyebrow, .faq .eyebrow, .langs .eyebrow { justify-content: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; }
.plan {
  border-radius: 26px; padding: 34px 32px 36px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.plan h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
:lang(ar) .plan h3 { letter-spacing: 0; font-size: 17px; }
.plan-price { font-size: clamp(30px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; margin-block: 14px 6px; line-height: 1.15; }
.plan-desc { color: var(--muted); margin-block-end: 26px; }
.plan-full { background: var(--navy); color: #fff; border-color: var(--navy); position: relative; overflow: hidden; }
.plan-full::after {
  content: ""; position: absolute; inset-inline-end: -90px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgb(245 197 24 / 26%), transparent 68%);
}
.plan-full > * { position: relative; z-index: 1; }
.plan-full h3 { color: var(--canary); }
.plan-full .plan-desc { color: #b9c1d3; }
@media (prefers-color-scheme: dark) { .plan-full { background: #24304f; border-color: #33416a; } }
.note { text-align: center; color: var(--muted); font-size: 15px; margin-block-start: 26px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* SSS */
.faq { background: var(--bg-alt); }
.qa { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.qa details { background: var(--surface); border-radius: 18px; border: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; padding: 22px 26px; font-weight: 680; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B647A' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: rotate .25s;
}
.qa details[open] summary::after { rotate: 45deg; }
.qa details p { padding: 0 26px 24px; color: var(--muted); max-width: 44em; }

/* Son çağrı */
.cta-in {
  text-align: center; display: grid; justify-items: center; gap: 18px;
  background: var(--cream); border-radius: 36px; padding: clamp(48px, 7vw, 88px) 24px;
  color: var(--navy);
}
@media (prefers-color-scheme: dark) { .cta-in { background: var(--surface); color: var(--ink); } }
.cta-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; max-width: 18em; }
.cta p { color: var(--muted); font-size: 18px; margin-block-end: 8px; }
.cta .stores { justify-content: center; }
.cta .store.is-soon { border-color: rgb(31 42 68 / 18%); color: var(--navy); }
@media (prefers-color-scheme: dark) { .cta .store.is-soon { border-color: var(--line); color: var(--ink); } }

/* Altbilgi */
.foot { border-block-start: 1px solid var(--line); padding-block: 44px 52px; color: var(--muted); font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 2fr 1fr; gap: 32px; align-items: start; }
.foot-brand .brand { color: var(--ink); margin-block-end: 10px; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-langs a { text-decoration: none; }
.foot-langs a:hover, .foot-meta a:hover { color: var(--ink); }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 650; }
.foot-meta { display: grid; gap: 6px; justify-items: end; }
.foot-meta a { text-decoration: none; }
@media (max-width: 820px) {
  .foot-in { grid-template-columns: 1fr; }
  .foot-meta { justify-items: start; }
}

/* Görünürken hafif kayma; betik yoksa her şey baştan görünür */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: none; transition: none; }
}
