/* Mamaiko web: iki renk, iki his. Pembe (kız) ve turkuaz (erkek); değerler uygulamadaki palette.dart ile aynı.
   Tek imza: sayfa "renk dünyaları" arasında geçiş yapar (varsayılan: ikisi iç içe, logodaki gibi). Dünyayı seçen düğmeler theme.js'te.
   Yazı: başlıklar Bricolage Grotesque, gövde Figtree (yalnızca latin); diğer yazı sistemleri sistem yazısına düşer. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('/fonts/bricolage-grotesque-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: 'Bricolage Grotesque'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('/fonts/bricolage-grotesque-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: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/figtree-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: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/figtree-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; }

/* Geçişlerin yumuşak olması için renk değişkenleri kayıtlı (gradient içinde bile animasyonlanır) */
@property --w1 { syntax: '<color>'; inherits: true; initial-value: #f2a7bd; }
@property --w2 { syntax: '<color>'; inherits: true; initial-value: #7cd5ce; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #2b2327; }
@property --on-accent { syntax: '<color>'; inherits: true; initial-value: #ffffff; }

:root {
  color-scheme: light;
  --pink: #f2a7bd; --pink-soft: #fbdce4; --pink-d: #b5586f;
  --teal: #7cd5ce; --teal-soft: #d3f5e9; --teal-d: #14827f;
  /* aktif dünya: hero, düğmeler, sayfa zemini bunlardan beslenir */
  --w1: #f2a7bd; --w2: #7cd5ce; --accent: #2b2327; --on-accent: #fff; --lift: #fff;
  --ink: #2b2327; --ink-soft: #52464c; --muted: #675b61; --bg: #fff8fb; --card: #fff; --line: rgba(43, 35, 39, .1);
  --panel-pink: linear-gradient(165deg, #fbdce4 0%, #f2a7bd 100%);
  --panel-teal: linear-gradient(165deg, #d3f5e9 0%, #7cd5ce 100%);
  --panel-mix: linear-gradient(120deg, #f2a7bd 0%, #f9dbe5 38%, #cdf0ec 62%, #7cd5ce 100%);
  --wm1: #b5586f; --wm2: #fff; --wm3: #14827f;
  --shadow: 0 1px 2px rgba(43, 35, 39, .06), 0 12px 32px rgba(43, 35, 39, .08);
  --shadow-lg: 0 2px 4px rgba(43, 35, 39, .06), 0 28px 60px rgba(43, 35, 39, .16);
  --display: "Bricolage Grotesque", "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  transition: --w1 .7s ease, --w2 .7s ease, --accent .5s ease, --on-accent .5s ease;
}
:root[data-world="pink"] { --w1: #f2a7bd; --w2: #fbdce4; --accent: #a94b64; }
:root[data-world="teal"] { --w1: #7cd5ce; --w2: #d3f5e9; --accent: #0f7370; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --pink: #e59ab2; --pink-soft: #4a2f38; --pink-d: #e8a0b4;
  --teal: #6cc7c0; --teal-soft: #254541; --teal-d: #7fdcd5;
  --w1: #6a2f45; --w2: #1f5d58; --accent: #f4edef; --on-accent: #2a0f18; --lift: #231a1e;
  --ink: #f4edef; --ink-soft: #d9ccd1; --muted: #bcaeb3; --bg: #161113; --card: #241b1f; --line: rgba(244, 237, 239, .12);
  --panel-pink: linear-gradient(165deg, #2e1f25 0%, #5a2c3d 100%);
  --panel-teal: linear-gradient(165deg, #162a29 0%, #1d5753 100%);
  --panel-mix: linear-gradient(120deg, #5a2c3d 0%, #3a2431 40%, #1c3b3a 60%, #1d5753 100%);
  --wm1: #e8a0b4; --wm2: #f4edef; --wm3: #7fdcd5;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px rgba(0, 0, 0, .5);
}
:root[data-theme="dark"][data-world="pink"] { --w1: #6a2f45; --w2: #3a2431; --accent: #e59ab2; --on-accent: #2a0f18; }
:root[data-theme="dark"][data-world="teal"] { --w1: #1f5d58; --w2: #162a29; --accent: #6cc7c0; --on-accent: #0d2b2a; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; font: 17px/1.65 var(--body); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background:
    radial-gradient(1000px 700px at -5% -10%, color-mix(in srgb, var(--w1) 34%, transparent), transparent 70%),
    radial-gradient(1000px 700px at 105% -10%, color-mix(in srgb, var(--w2) 34%, transparent), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
a { color: var(--pink-d); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal-d); outline-offset: 3px; border-radius: 12px; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; }

/* Üst çubuk: havada duran hap */
.top {
  position: sticky; top: 12px; z-index: 30; width: min(1200px, calc(100% - 32px)); margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 18px;
  border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font: 800 20px/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: auto; height: 34px; }
.top-end { display: flex; align-items: center; gap: 6px; }
.top nav { display: flex; align-items: center; gap: 2px; }
.top nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); transition: background .2s; }
.top nav a:hover { background: color-mix(in srgb, var(--w1) 40%, transparent); }
.top nav a.cta { background: var(--accent); color: var(--on-accent); font-weight: 700; margin-inline-start: 4px; }
.top nav a.cta:hover { filter: brightness(1.12); }
@media (max-width: 860px) { .top nav a:not(.cta) { display: none; } }
@media (max-width: 480px) { .top { padding-inline-start: 12px; } .brand span { display: none; } }

.theme-toggle, .lang summary {
  display: flex; align-items: center; justify-content: center; height: 40px; border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); font: 600 15px/1 var(--body); cursor: pointer;
}
.theme-toggle { width: 40px; font-size: 18px; transition: transform .2s; }
.theme-toggle:hover { transform: rotate(-14deg) scale(1.08); }

/* Dil menüsü: betiksiz açılır liste (details) */
.lang { position: relative; }
.lang summary { gap: 6px; padding: 0 14px; list-style: none; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { background: color-mix(in srgb, var(--w1) 45%, transparent); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 40; display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 2px; margin: 0; padding: 8px; list-style: none; max-height: 70vh; overflow: auto; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.lang a { display: block; padding: 8px 12px; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang a:hover { background: var(--teal-soft); }
.lang a[aria-current] { background: var(--pink-soft); font-weight: 800; }
@media (max-width: 860px) { .lang summary span { display: none; } .lang summary { padding: 0 12px; } .lang ul { grid-template-columns: 1fr; } }

/* Hero: aktif dünyanın rengi */
.hero {
  position: relative; overflow: hidden; width: min(1200px, calc(100% - 32px)); margin: 16px auto 0; border-radius: 48px;
  background:
    radial-gradient(520px 340px at 78% 28%, rgba(255, 255, 255, .42), transparent 70%),
    linear-gradient(120deg, var(--w1) 0%, color-mix(in srgb, var(--w1) 35%, var(--lift)) 34%, color-mix(in srgb, var(--w2) 35%, var(--lift)) 66%, var(--w2) 100%);
}
:root[data-theme="dark"] .hero { background: linear-gradient(120deg, var(--w1) 0%, color-mix(in srgb, var(--w1) 45%, var(--lift)) 38%, color-mix(in srgb, var(--w2) 45%, var(--lift)) 66%, var(--w2) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px); }
.eyebrow, .kicker { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: .01em; }
h1 { margin: 0 0 22px; font: 800 clamp(38px, 5.2vw, 70px)/1.03 var(--display); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
h1 .mark { display: inline-block; padding: 0 .1em; border-radius: .15em; background: linear-gradient(transparent 62%, rgba(255, 255, 255, .8) 62%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
:root[data-theme="dark"] h1 .mark { background: linear-gradient(transparent 62%, rgba(229, 154, 178, .5) 62%); }
/* Üst/alt işaretleri yüksek yazı sistemleri (Arap, Hint, Bengal) ve CJK için daha açık satır aralığı */
h1:lang(ar), h1:lang(ur), h1:lang(hi), h1:lang(bn) { line-height: 1.45; }
h1:lang(ja), h1:lang(ko), h1:lang(zh) { line-height: 1.3; }
h2:lang(ar), h2:lang(ur), h2:lang(hi), h2:lang(bn) { line-height: 1.4; }
h2 { margin: 0 0 12px; font: 800 clamp(30px, 4.4vw, 52px)/1.05 var(--display); letter-spacing: -.03em; }
h3 { margin: 14px 0 6px; font: 700 20px/1.25 var(--display); letter-spacing: -.01em; }
.lead { margin: 0; max-width: 52ch; font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); transition: transform .15s, filter .2s; }
a.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn.ghost { background: color-mix(in srgb, var(--card) 80%, transparent); color: var(--ink); box-shadow: none; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.ribbon { position: absolute; inset: -22%; width: 144%; height: 144%; overflow: visible; fill: none; stroke-linecap: round; animation: sway 9s ease-in-out infinite alternate; }
.ribbon path { stroke-width: 16; } .ribbon .thin { stroke-width: 5; }
.ribbon .r-pink { stroke: var(--pink-d); } .ribbon .r-teal { stroke: var(--teal-d); }
.ribbon .r-pink.thin { stroke: var(--pink); } .ribbon .r-teal.thin { stroke: var(--teal); }
@keyframes sway { from { transform: rotate(-2.5deg) scale(1); } to { transform: rotate(2.5deg) scale(1.03); } }
.hero-logo { position: relative; width: min(100%, 290px); padding: 22px 22px 18px; border-radius: 44px; background: #fffafb; box-shadow: var(--shadow-lg); transform: rotate(-3deg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 280px; } .hero-logo { width: min(70%, 240px); }
}

/* Sayılar: kutusuz, dev rakamlar */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); width: min(1200px, calc(100% - 32px)); margin: 44px auto 28px; }
.stat { padding: 8px 20px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; direction: ltr; unicode-bidi: isolate; font: 800 clamp(40px, 6vw, 76px)/1 var(--display); letter-spacing: -.04em; color: var(--pink-d); }
.stat.teal b { color: var(--teal-d); }
.stat span { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } .stat:nth-child(3) { border-inline-start: 0; } }

/* Paneller */
.panel { width: min(1200px, calc(100% - 32px)); margin: 20px auto; padding: clamp(24px, 4.5vw, 60px); border-radius: 48px; }
.panel.pink { background: var(--panel-pink); } .panel.teal { background: var(--panel-teal); } .panel.mix { background: var(--panel-mix); }
.section-head { max-width: 60ch; margin-bottom: 32px; } .section-head p { margin: 0; font-size: 18px; color: var(--ink-soft); }
.section-head .kicker { margin-bottom: 14px; font-size: 13.5px; }
.panel.pink .kicker { color: var(--pink-d); } .panel.teal .kicker { color: var(--teal-d); }

/* Bento ızgara */
.bento { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 0; padding: 0; }
.card { grid-column: span 2; position: relative; padding: 26px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card.s3 { grid-column: span 3; } .card.s4 { grid-column: span 4; } .card.s6 { grid-column: span 6; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; font-size: 27px; background: var(--pink-soft); }
.panel.teal .card .ico { background: var(--teal-soft); }
.card p { margin: 0; font-size: 15.5px; color: var(--muted); }
.card.s3 h3, .card.s4 h3 { font-size: 24px; }
.card.wide { display: flex; align-items: center; gap: 22px; background: var(--ink); color: var(--card); }
.card.wide .ico { flex: none; width: 64px; height: 64px; font-size: 32px; }
.card.wide h3 { margin-top: 0; font-size: 22px; } .card.wide p { color: color-mix(in srgb, var(--card) 78%, transparent); }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card.s3, .card.s4 { grid-column: span 1; } .card.s6, .card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .card, .card.s3, .card.s4, .card.s6, .card:nth-child(5) { grid-column: span 1; } .card.wide { flex-direction: column; align-items: flex-start; } }

/* Renk dünyası seçimi */
.world { width: min(1200px, calc(100% - 32px)); margin: 20px auto; border-radius: 48px; overflow: hidden; background: linear-gradient(115deg, var(--w1) 0%, color-mix(in srgb, var(--w1) 35%, var(--lift)) 34%, color-mix(in srgb, var(--w2) 35%, var(--lift)) 66%, var(--w2) 100%); }
.world-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: clamp(28px, 5vw, 64px); }
.world .lead { color: var(--ink); }
.picker { display: flex; gap: 14px; margin-top: 28px; }
.orb { padding: 6px; border: 0; border-radius: 34px; background: none; cursor: pointer; transition: transform .2s; }
.orb img { display: block; width: 104px; height: 104px; border-radius: 28px; box-shadow: var(--shadow-lg); }
.orb:hover { transform: translateY(-4px) rotate(-3deg); }
.orb[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--ink); }
.phone { justify-self: center; padding: 10px; border-radius: 44px; background: #2b2327; box-shadow: var(--shadow-lg); transform: rotate(3deg); }
.phone img { display: block; width: 100%; max-width: 270px; height: auto; border-radius: 34px; }
@media (max-width: 860px) { .world-grid { grid-template-columns: 1fr; } }

/* Nasıl çalışır: gerçek bir sıra, numara bilgi taşır */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; counter-reset: s; }
.step { padding: 28px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); counter-increment: s; }
.step::before { content: counter(s); display: block; margin-bottom: 8px; font: 800 64px/1 var(--display); color: transparent; -webkit-text-stroke: 2px var(--ink); }
.step h3 { margin-top: 0; } .step p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Gizlilik */
.privacy { width: min(1200px, calc(100% - 32px)); margin: 20px auto; }
.note { padding: clamp(24px, 4vw, 48px); border-radius: 40px; background: var(--card); box-shadow: var(--shadow), inset 10px 0 0 var(--teal); }
[dir="rtl"] .note { box-shadow: var(--shadow), inset -10px 0 0 var(--teal); }
.note h2 { margin-top: 0; } .note p { margin: 0 0 12px; }
.small { font-size: 14px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.links a { padding: 9px 18px; border-radius: 999px; background: var(--teal-soft); text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink); }
.links a:hover { background: var(--pink-soft); }

/* Alt bilgi: koyu kapanış bloğu, logodaki harf renkleriyle dev marka yazısı */
footer { width: min(1200px, calc(100% - 32px)); margin: 20px auto 24px; padding: clamp(28px, 5vw, 56px) 24px 28px; border-radius: 48px; background: #2b2327; text-align: center; color: #f4edef; font-size: 14.5px; overflow: hidden; }
:root[data-theme="dark"] footer { background: #0f0b0d; }
footer p { margin: 0; } footer a { color: #f4edef; } footer .ver { margin-top: 6px; font-size: 12.5px; opacity: .7; }
.wordmark { direction: ltr; margin-bottom: 20px; font: 800 clamp(64px, 17vw, 210px)/.95 var(--display); letter-spacing: -.02em; user-select: none; }
.wordmark i { font-style: normal; }
.wordmark i:nth-child(1), .wordmark i:nth-child(2) { color: #f2a7bd; } .wordmark i:nth-child(3) { color: #fbdce4; }
.wordmark i:nth-child(4), .wordmark i:nth-child(5), .wordmark i:nth-child(7) { color: #7cd5ce; } .wordmark i:nth-child(6) { color: #d3f5e9; }

/* Yasal metin sayfaları */
article { max-width: 780px; margin: 36px auto 0; padding: 36px max(20px, 4vw); background: var(--card); border-radius: 32px; box-shadow: var(--shadow); }
article h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; } article h2 { font-size: 24px; margin-top: 32px; } article h3 { font-size: 19px; }
article table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
article th, article td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; } article th { background: var(--pink-soft); }
article blockquote { margin: 16px 0; padding: 4px 18px; border-inline-start: 4px solid var(--teal); color: var(--muted); }
article code { background: var(--pink-soft); padding: 1px 6px; border-radius: 6px; font-size: 90%; }
body:not(.landing) footer { background: none; padding: 40px 20px; color: var(--muted); }
body:not(.landing) footer a { color: var(--muted); }
