/* Huppi tanıtım sayfası. Derleme yok; renkler Android core/designsystem/Color.kt ile aynı. */

@font-face { font-family: "Poppins"; src: url("/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-600.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

:root {
    --bg: #F2F6FD;
    --card: #FFFFFF;
    --ink: #12141A;
    --muted: #5F6675;
    --faint: #A0A7B4;
    --line: #E3E8EF;
    --dark: #111318;

    --water: #2F8BFF;  --water-l: #E6F0FF;
    --steps: #E5282F;  --steps-l: #FDE8E9;
    --sleep: #8B4DFF;  --sleep-l: #F1E9FF;
    --fast: #FF7A1A;   --fast-l: #FFEEDF;
    --gold: #E8B54D;   --gold-l: #FFF5DC;  --gold-d: #9A6C1C;

    --wrap: 1120px;
    --gutter: 16px;
    --header: 56px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.55rem + 4.2vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3rem); line-height: 1.1; letter-spacing: -.028em; }
h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.012em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--muted); line-height: 1.6; }

:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 28px; } body { font-size: 17px; } }

.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 8px; }

/* Üst çubuk: ince, yapışkan, buzlu */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(242, 246, 253, .8);
    -webkit-backdrop-filter: saturate(1.8) blur(16px);
    backdrop-filter: saturate(1.8) blur(16px);
    border-bottom: 1px solid rgba(18, 20, 26, .06);
}
.bar { display: flex; align-items: center; gap: 12px; height: var(--header); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.brand { flex: none; display: block; padding: 4px 0; }
.brand img { height: 26px; width: auto; }
.nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 28px), transparent); }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 2px; margin: 0; padding: 0 22px 0 10px; list-style: none; width: max-content; }
.nav a { display: block; padding: 6px 11px; border-radius: 999px; font-size: 14px; line-height: 20px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="true"] { color: var(--ink); background: rgba(18, 20, 26, .07); }
@media (min-width: 900px) {
    .nav { -webkit-mask-image: none; mask-image: none; overflow: visible; display: flex; justify-content: flex-end; }
    .nav ul { padding: 0; }
}

/* Dil seçici: bayrak + kod; açılınca beş dil (JS gerekmez) */
.lang { position: relative; flex: none; }
.lang summary { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); transition: color .2s, background-color .2s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: rgba(18, 20, 26, .07); }
.flag { display: block; flex: none; width: 22px; height: 15px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(18, 20, 26, .12); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; min-width: 168px; margin: 0; padding: 6px; list-style: none; background: var(--card); border-radius: 14px; box-shadow: 0 12px 32px rgba(18, 20, 26, .14), 0 0 0 1px rgba(18, 20, 26, .05); }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 15px; color: var(--ink); text-decoration: none; }
.lang-menu a:hover { background: rgba(18, 20, 26, .05); }
.lang-menu a[aria-current="page"] { font-weight: 600; background: rgba(18, 20, 26, .07); }

/* Hero */
.hero { padding: 36px 0 24px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-logo { width: 168px; margin: 0 0 22px -4px; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 18px; max-width: 34ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    flex: 1 1 148px; max-width: 200px; min-width: 0; padding: 10px 18px 11px; border: 0; border-radius: 14px;
    background: var(--ink); color: #fff; font: inherit; text-align: left;
    cursor: not-allowed;
}
.store-soon { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .66); }
.store-name { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.hero-note a { color: #1F6FD6; font-weight: 600; text-underline-offset: 3px; }

.hero-art { position: relative; display: grid; place-items: center; padding: 28px 0 8px; }
.hero-art .phone-hero { width: min(64vw, 300px); position: relative; z-index: 2; }

/* İmza: uygulamanın dört günlük halkası, telefonun arkasında */
.rings { position: absolute; z-index: 1; width: min(96vw, 560px); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.rings i {
    position: absolute; border-radius: 50%;
    --t: clamp(9px, 2.2vw, 13px);
    background: conic-gradient(var(--c) var(--p), var(--cl) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--t)), #000 calc(100% - var(--t) + 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - var(--t)), #000 calc(100% - var(--t) + 1px));
    --p: var(--to);
}
.rings .r-su   { inset: 0;   --c: var(--water); --cl: var(--water-l); --to: 86%; }
.rings .r-adim { inset: 7%;  --c: var(--steps); --cl: var(--steps-l); --to: 62%; }
.rings .r-uyku { inset: 14%; --c: var(--sleep); --cl: var(--sleep-l); --to: 88%; }
.rings .r-oruc { inset: 21%; --c: var(--fast);  --cl: var(--fast-l);  --to: 45%; }
@media (prefers-reduced-motion: no-preference) {
    .rings i { animation: ring-fill 1.6s var(--ease) both; }
    .rings .r-adim { animation-delay: .12s; }
    .rings .r-uyku { animation-delay: .24s; }
    .rings .r-oruc { animation-delay: .36s; }
    .hero-art .phone-hero { animation: rise .9s var(--ease) both; }
    .perch { animation: pop .6s var(--ease) both; animation-delay: .7s; }
    .perch-alev { animation-delay: .85s; }
}
@keyframes ring-fill { from { --p: 0%; } to { --p: var(--to); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }

.perch { position: absolute; z-index: 3; filter: drop-shadow(0 10px 14px rgba(18, 40, 90, .18)); }
.perch-damla { width: clamp(84px, 24vw, 132px); left: calc(50% - min(32vw, 150px) - clamp(40px, 9vw, 70px)); bottom: 10%; }
.perch-alev { width: clamp(64px, 17vw, 92px); right: calc(50% - min(32vw, 150px) - clamp(26px, 6vw, 46px)); top: 12%; }

@media (min-width: 900px) {
    .hero { padding: 64px 0 40px; }
    .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; }
    .hero-logo { width: 196px; }
    .hero-art { padding: 40px 0; }
}

/* Telefon çerçevesi (nötr, CSS) */
.phone {
    margin: 0; padding: 2.4%;
    background: #1B1E26;
    border-radius: 14% / 6.3%;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .08),
        0 1px 2px rgba(18, 40, 90, .12),
        0 28px 56px -22px rgba(18, 40, 90, .42),
        0 12px 24px -14px rgba(18, 40, 90, .22);
}
.phone img { width: 100%; height: auto; border-radius: 12% / 5.4%; background: #fff; }

/* Bölümler */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }

/* Nasıl çalışır: gerçek bir sıra, bu yüzden numaralı */
.steps-section { padding-top: 56px; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 28px; }
.steps li { border-top: 1px solid var(--line); padding-top: 22px; }
.step-n { display: block; font-size: 3.2rem; line-height: 1; font-weight: 600; letter-spacing: -.04em; margin-bottom: 14px; }
.steps li:nth-child(1) .step-n { color: var(--water); }
.steps li:nth-child(2) .step-n { color: var(--steps); }
.steps li:nth-child(3) .step-n { color: var(--gold); }
.steps p { margin-top: 8px; color: var(--muted); max-width: 36ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

/* Takip modülleri: her biri kendi renginde, telefon alt kenardan yükselir */
.track { padding-top: 24px; }
.module {
    --c: var(--water); --cl: var(--water-l);
    position: relative; overflow: hidden;
    display: grid; gap: 8px;
    background: var(--cl);
    border-radius: 32px;
    padding: 32px 22px 0;
    margin-top: 20px;
}
.m-adim { --c: var(--steps); --cl: var(--steps-l); }
.m-uyku { --c: var(--sleep); --cl: var(--sleep-l); }
.m-oruc { --c: var(--fast);  --cl: var(--fast-l); }
.module-mascot { width: 84px; height: 84px; margin: 0 0 14px -6px; }
.module h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); line-height: 1.12; letter-spacing: -.025em; }
.tag { display: block; font-size: 1rem; line-height: 1.4; letter-spacing: 0; color: var(--c); margin-bottom: 6px; }
.m-oruc .tag { color: #C4520A; }
.m-adim .tag { color: #C41D24; }
.module-copy > p { margin-top: 14px; color: #3D4352; max-width: 40ch; }
.module-copy { padding-bottom: 8px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; font-size: .96em; color: #3D4352; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--water)); }
.note { display: inline-block; margin-top: 18px !important; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .72); font-size: 14px; color: #3D4352 !important; }
.module-art { display: flex; justify-content: center; align-items: flex-start; gap: 4%; padding-top: 20px; height: clamp(300px, 92vw, 470px); overflow: hidden; }
.module-art .phone { width: min(58vw, 270px); flex: none; }
.module-art.duo .phone { width: min(43vw, 250px); }
.duo .phone-offset { margin-top: 10%; }
@media (min-width: 900px) {
    .module { grid-template-columns: 1fr 1fr; gap: 48px; padding: 0 64px; margin-top: 28px; align-items: stretch; }
    .module-copy { align-self: center; padding: 64px 0; }
    .module.flip .module-copy { order: 2; }
    .module-art { height: auto; min-height: 520px; padding-top: 56px; position: relative; }
    .module-art .phone { width: 270px; position: absolute; top: 56px; }
    .module-art.duo .phone { width: 230px; position: absolute; }
    .module-art.duo .phone:first-child { left: calc(50% - 240px); }
    .module-art.duo .phone-offset { left: calc(50% + 10px); top: 104px; margin: 0; }
}

/* Oyun */
.game { padding-top: 40px; }
.game-grid { display: grid; gap: 20px; }
.play {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start;
    background: var(--card); border-radius: 28px;
    padding: 28px 22px 0;
    border: 1px solid rgba(18, 20, 26, .05);
}
.play h3 { margin-top: 4px; }
.play-copy p { margin-top: 8px; color: var(--muted); max-width: 40ch; }
.art-row { display: flex; gap: 2px; margin: -6px 0 8px -8px; }
.art-row img { width: 72px; height: 72px; }
.play > .phone, .play > .duo { justify-self: center; }
.play > .phone { width: min(58vw, 240px); margin-bottom: -48%; }
.play > .phone, .play .duo { position: relative; }
.play .duo { display: flex; gap: 14px; margin-bottom: -40%; }
.play .duo .phone { width: min(36vw, 210px); }
@media (min-width: 900px) {
    .game-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .play { padding: 40px 40px 0; height: 600px; }
    .play-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 440px; gap: 48px; height: 440px; padding: 0 56px; }
    .play-wide .play-copy { align-self: center; }
    .play-wide > .phone, .play-wide > .duo { align-self: start; margin-top: 48px; }
    .play > .phone { width: 250px; margin-bottom: 0; }
    .play .duo { margin-bottom: 0; }
    .play .duo .phone { width: 220px; }
}

/* Lig */
.league { padding-top: 24px; padding-bottom: 24px; }
.league-card {
    background: var(--card); border-radius: 32px; padding: 36px 22px;
    border: 1px solid rgba(18, 20, 26, .05);
    max-width: 860px; margin: 0 auto;
    --c: var(--gold);
}
.league-card .lead { margin-top: 14px; max-width: 46ch; }
.league-card .ticks { margin-top: 22px; }
.soon-pill { display: inline-block; margin-bottom: 14px; padding: 3px 12px; border-radius: 999px; background: var(--gold-l); color: var(--gold-d); font-size: 14px; font-weight: 600; }
@media (min-width: 900px) { .league-card { padding: 56px 64px; } }

/* Widget'lar: koyu bant, ana ekran duvar kâğıdına yakın */
.widgets { background: var(--dark); color: #fff; padding-bottom: 0; margin-top: 64px; overflow: hidden; }
.widgets .lead { color: rgba(255, 255, 255, .72); margin-top: 16px; max-width: 40ch; }
.widgets h3 { margin-top: 32px; font-size: 1.15rem; }
.widgets-copy p:not(.lead) { margin-top: 6px; color: rgba(255, 255, 255, .72); max-width: 40ch; }
.widgets-grid { display: grid; gap: 40px; }
.widgets-art { display: flex; justify-content: center; gap: 4%; height: clamp(320px, 96vw, 520px); overflow: hidden; }
.widgets-art .phone { width: min(43vw, 260px); flex: none; background: #2A2E38; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 60px -20px rgba(0, 0, 0, .6); }
@media (min-width: 900px) {
    .widgets { margin-top: 96px; }
    .widgets-grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 48px; }
    .widgets-copy { padding-bottom: 112px; }
    .widgets-art { height: 600px; align-self: end; }
}

/* Gizlilik */
.privacy-grid { display: grid; gap: 36px; align-items: start; }
.privacy .lead { margin-top: 14px; max-width: 34ch; }
.text-link { display: inline-block; margin-top: 18px; color: #1F6FD6; font-weight: 600; text-underline-offset: 3px; }
.privacy-phone { width: min(60vw, 260px); margin-top: 36px; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; align-content: start; }
.privacy-list li { border-top: 1px solid var(--line); padding: 18px 0 20px; }
.privacy-list h3 { font-size: 1.02rem; }
.privacy-list p { margin-top: 4px; color: var(--muted); font-size: .95em; }
@media (min-width: 760px) { .privacy-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* SSS */
.faq { padding-top: 24px; }
.faq-wrap { max-width: calc(820px + 2 * var(--gutter)); }
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 0; cursor: pointer; list-style: none;
    font-size: 1.08rem; font-weight: 600; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 12px; height: 12px;
    background:
        linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
        linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
    transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* Alt bilgi */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; gap: 18px; align-items: center; }
.footer-app { display: flex; align-items: center; gap: 12px; }
.footer-app img { width: 44px; height: 44px; border-radius: 11px; }
.footer-app strong { color: var(--ink); font-weight: 600; }
.footer-app p { line-height: 1.45; }
.footer-links a { color: var(--ink); text-underline-offset: 3px; }
.powered { display: flex; align-items: center; gap: 8px; }
.powered a { display: block; padding: 4px 0; }
.powered img { height: 16px; width: auto; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; grid-column: 1 / -1; }
.footer-langs a { color: var(--muted); text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current="page"] { color: var(--ink); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto auto auto; gap: 24px 32px; } }

/* Kaydırınca hafifçe beliren bölümler (yalnız JS varken; hareket azaltılmışsa yok) */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
    .js .reveal.in { opacity: 1; transform: none; }
}
