/*
 * Tanıtım sayfalarının kendi stil dosyası.
 *
 * NEDEN AYRI: site.css yönetim panelinin dosyası ve tanıtım sayfasına zarar
 * veren kurallar taşıyor (gövdeye siyah kenarlık, `#container { width: 80% }`,
 * her şeyi ortalayan `text-align: center`, Arial). Marka tipografisi de yoktu.
 * Yönetim panelini bozmamak için tanıtım sayfaları kendi düzenini ve stilini
 * kullanıyor (_PublicLayout.cshtml).
 *
 * Mobil ÖNCE yazıldı: ölçüm iPhone 16e (390pt) Safari'de yapıldı.
 */

/* WOFF2 + Latin/Türkçe alt kümesi.
   Ölçüldü 2026-09-26: TTF sürümleri 856 KB + 89 KB iniyordu ve TTF
   içeriden sıkıştırılmıyor — tanıtım sayfasının ağırlığının neredeyse
   tamamı buydu. Alt küme + WOFF2 ile 66 KB + 11 KB.
   Inter'in değişken ekseni (wght 100-900) KORUNDU, Türkçe harfler tam. */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'ArchivoBlack';
    src: url('/fonts/ArchivoBlack.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

:root {
    /* Uygulamanın paletiyle birebir (lib/core/theme/app_colors.dart) */
    --de-orange: #ff9500;
    --de-orange-deep: #e07b00;
    --de-ink: #1d1d1f;
    --de-ink-soft: #5b5650;
    --de-cream: #faf3ea;
    --de-cream-alt: #efe6d8;
    --de-line: rgba(29, 29, 31, .1);
    --de-shell: 1120px;
    --de-radius: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.de-public {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--de-ink);
    background: #fff;
    line-height: 1.55;
    /* iPhone'un çentik/ada alanı: kenarlara yapışan metin olmasın */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.de-shell {
    width: 100%;
    max-width: var(--de-shell);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Üst çubuk ---------- */

.de-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--de-line);
}

.de-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
}

.de-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'ArchivoBlack', 'Inter', sans-serif;
    /* 390pt'de "Daily English" iki satira boluniyordu: yaninda artik iki
       dugme var (Giris + Uygulamayi al) ve marka adina kalan yer daraldi. */
    font-size: 16px;
    white-space: nowrap;
    letter-spacing: -.02em;
    color: var(--de-ink);
    text-decoration: none;
}

/* Telefonda marka adi yerine yalniz simge.
   Olculdu (390pt): simge+ad 181px, "Giris"+"Uygulamayi al" 205px, kabuk
   dolgusu 40px — toplam 426px, 390'a sigmiyor ve ad iki satira boluniyordu.
   Yalniz simge kalinca 245px'e duser. Simge de "/" adresine gidiyor. */
@media (max-width: 430px) {
    .de-wordmark .de-wordmark-text {
        display: none;
    }
}

.de-wordmark img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

/* Giriş + "Uygulamayı al" yan yana; 320pt'de bile sığar */
.de-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.de-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--de-ink-soft);
    text-decoration: none;
    /* Dokunma hedefi 44pt altına düşmesin */
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.de-nav-link:hover {
    background: var(--de-cream);
    color: var(--de-ink);
}

.de-nav-cta {
    font-size: 14px;
    font-weight: 700;
    color: var(--de-ink);
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--de-line);
    white-space: nowrap;
}

.de-nav-cta:hover {
    background: var(--de-cream);
}

/* ---------- Hero ---------- */

.de-hero {
    /* TAM GENİŞLİK: eski tasarımda hero, sayfanın ortasında iki yanı boşluklu
       turuncu bir kutuydu ve alttaki dalga butonun üstüne biniyordu. */
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(255, 149, 0, .18), transparent 60%),
        linear-gradient(180deg, var(--de-cream) 0%, #fff 100%);
    border-bottom: 1px solid var(--de-line);
    overflow: hidden;
}

.de-hero-inner {
    display: grid;
    gap: 34px;
    /* YALNIZ dikey dolgu. `padding: 40px 0 46px` kısayolu aynı öğedeki
       `.de-shell` kuralının `padding: 0 20px`ini de eziyordu: başlık ve
       tanıtım metni ekranın soluna YAPIŞIK çiziliyordu (cihazda bildirildi,
       2026-09-26). Kenar boşluğu tek yerden, `.de-shell`'den gelmeli —
       768px'te 32px'e çıkıyor. */
    padding-top: 40px;
    padding-bottom: 46px;
}

.de-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--de-orange-deep);
    background: rgba(255, 149, 0, .12);
    border-radius: 999px;
    padding: 6px 12px;
    margin: 0 0 16px;
}

.de-hero h1 {
    font-family: 'ArchivoBlack', 'Inter', sans-serif;
    /* Akışkan punto: 390pt'de taşmaz, geniş ekranda küçülüp kaybolmaz */
    font-size: clamp(2rem, 8.5vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -.03em;
    margin: 0 0 16px;
}

.de-hero h1 em {
    font-style: normal;
    color: var(--de-orange);
}

.de-hero p.de-lead {
    font-size: clamp(1rem, 4.2vw, 1.2rem);
    color: var(--de-ink-soft);
    margin: 0 0 26px;
    max-width: 34em;
}

/* ---------- Mağaza butonları ---------- */

.de-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.de-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 22px 0 18px;
    border-radius: 14px;
    text-decoration: none;
    background: var(--de-ink);
    color: #fff;
    border: 1px solid var(--de-ink);
    /* Dokunma hedefi 44pt altına düşmesin (Apple kılavuzu) */
    flex: 1 1 220px;
    justify-content: center;
}

.de-store:hover {
    transform: translateY(-1px);
}

/* Satır içi SVG ikon: `font-size` ile ölçekleniyor (width/height 1em),
   rengi `currentColor`dan alıyor — Font Awesome'ın <i> davranışıyla aynı. */
.de-ico {
    display: inline-block;
    vertical-align: -.125em;
    flex: 0 0 auto;
}

.de-store .de-ico {
    font-size: 26px;
}

.de-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.de-store-text small {
    font-size: 11px;
    opacity: .75;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.de-store-text strong {
    font-size: 16px;
    font-weight: 700;
}

.de-store.is-soon {
    background: #fff;
    color: var(--de-ink-soft);
    border: 1px dashed rgba(29, 29, 31, .25);
    cursor: default;
}

.de-soon-note {
    font-size: 13.5px;
    color: var(--de-ink-soft);
    margin: 14px 0 0;
}

/* ---------- Telefon görseli ---------- */

.de-shot {
    position: relative;
    justify-self: center;
    width: min(300px, 78vw);
}

.de-shot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 34px;
    border: 8px solid var(--de-ink);
    box-shadow: 0 30px 70px rgba(29, 29, 31, .22);
    background: #fff;
}

/* ---------- Bölümler ---------- */

.de-section {
    padding: 56px 0;
}

.de-section.de-tinted {
    background: var(--de-cream);
    border-top: 1px solid var(--de-line);
    border-bottom: 1px solid var(--de-line);
}

.de-section h2 {
    font-family: 'ArchivoBlack', 'Inter', sans-serif;
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    letter-spacing: -.02em;
    margin: 0 0 10px;
}

.de-section-lead {
    color: var(--de-ink-soft);
    margin: 0 0 32px;
    max-width: 38em;
}

.de-steps {
    display: grid;
    gap: 18px;
    counter-reset: de-step;
}

.de-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--de-line);
    border-radius: var(--de-radius);
    padding: 22px 22px 22px 66px;
}

.de-step::before {
    counter-increment: de-step;
    content: counter(de-step);
    position: absolute;
    left: 20px;
    top: 21px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--de-orange);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: grid;
    place-items: center;
}

.de-step h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px;
}

.de-step p {
    margin: 0;
    color: var(--de-ink-soft);
    font-size: 15px;
}

.de-features {
    display: grid;
    gap: 16px;
}

.de-feature {
    background: #fff;
    border: 1px solid var(--de-line);
    border-radius: var(--de-radius);
    padding: 22px;
}

.de-feature .de-ico {
    font-size: 20px;
    color: var(--de-orange);
    background: rgba(255, 149, 0, .12);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.de-feature h3 {
    font-size: 16.5px;
    font-weight: 800;
    margin: 0 0 6px;
}

.de-feature p {
    margin: 0;
    color: var(--de-ink-soft);
    font-size: 14.5px;
}

/* ---------- Kapanış ---------- */

.de-closing {
    text-align: center;
    background: var(--de-ink);
    color: #fff;
    padding: 56px 0;
}

.de-closing h2 {
    font-family: 'ArchivoBlack', 'Inter', sans-serif;
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin: 0 0 12px;
}

.de-closing p {
    color: rgba(255, 255, 255, .72);
    margin: 0 0 26px;
}

.de-closing .de-stores {
    justify-content: center;
}

.de-closing .de-store {
    background: #fff;
    color: var(--de-ink);
    border-color: #fff;
}

.de-closing .de-store.is-soon {
    background: transparent;
    color: rgba(255, 255, 255, .8);
    border: 1px dashed rgba(255, 255, 255, .4);
}

.de-closing .de-soon-note {
    color: rgba(255, 255, 255, .6);
}

/* ---------- Alt bilgi ---------- */

.de-footer {
    padding: 30px 0 40px;
    font-size: 13.5px;
    color: var(--de-ink-soft);
}

.de-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 12px;
}

.de-footer a {
    color: var(--de-ink-soft);
}

/* Telefonda parmakla dokunulabilsin (21px yükseklik çok küçüktü) */
.de-footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* ---------- Beta başvurusu (/beta) ---------- */

.de-beta-hero .de-hero-inner {
    padding-bottom: 28px;
}

/* Form telefonda kenara daha yakın: 390pt'de alanlar geniş kalsın */
@media (max-width: 767px) {
    .de-beta-hero .de-shell,
    .de-beta .de-shell {
        padding: 0 16px;
    }
}

.de-beta {
    padding-top: 28px;
}

.de-beta-grid {
    display: grid;
    gap: 18px;
    align-items: start;
}

.de-beta-card {
    background: #fff;
    border: 1px solid var(--de-line);
    border-radius: var(--de-radius);
    padding: 22px 18px;
    min-width: 0;
}

.de-beta-card.is-tinted {
    background: var(--de-cream);
}

.de-beta-card h2 {
    font-family: 'ArchivoBlack', 'Inter', sans-serif;
    font-size: clamp(1.25rem, 5.4vw, 1.6rem);
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0 0 8px;
}

.de-beta-card p {
    margin: 0 0 14px;
}

.de-beta-muted {
    color: var(--de-ink-soft);
}

.de-beta-form {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.de-field {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.de-field label,
.de-field legend {
    font-weight: 700;
    font-size: 15px;
    padding: 0;
    margin-bottom: 6px;
}

.de-field small,
.de-check small {
    font-weight: 400;
    color: var(--de-ink-soft);
}

.de-field input[type="text"],
.de-field input[type="email"] {
    width: 100%;
    /* 16px altı iOS Safari'de odaklanınca sayfayı yakınlaştırıyor */
    font: inherit;
    font-size: 16px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgba(29, 29, 31, .22);
    border-radius: 12px;
    background: #fff;
    color: var(--de-ink);
}

.de-field input:focus-visible,
.de-check input:focus-visible,
.de-segment input:focus-visible + span {
    outline: 3px solid rgba(255, 149, 0, .45);
    outline-offset: 2px;
}

.de-field-hint {
    font-size: 13.5px;
    color: var(--de-ink-soft);
    margin: 2px 0 0 !important;
}

.de-field-hint[hidden] {
    display: none;
}

/* Engellemeyen uyarı: adres Play hesabı olmayabilir. */
.de-field-hint.is-warning {
    color: #9a5b00;
}

.de-field-error {
    font-size: 13.5px;
    font-weight: 600;
    color: #c0392b;
    margin: 4px 0 0 !important;
}

.has-error input[type="text"],
.has-error input[type="email"] {
    border-color: #c0392b;
}

.de-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.de-segment label {
    margin: 0;
    font-weight: 600;
}

.de-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.de-segment span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid rgba(29, 29, 31, .22);
    border-radius: 12px;
    cursor: pointer;
}

.de-segment input:checked + span {
    border-color: var(--de-orange);
    background: rgba(255, 149, 0, .12);
    color: var(--de-ink);
}

.de-check label {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 14.5px;
    cursor: pointer;
}

.de-check input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--de-orange);
}

.de-check a {
    color: var(--de-ink);
}

/* Bal küpü: ekran dışında. display:none bazı botlarca atlanıyor. */
.de-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.de-beta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    border: 0;
    background: var(--de-ink);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
}

.de-beta-button.is-wide {
    width: 100%;
}

.de-beta-button.is-secondary {
    background: #fff;
    color: var(--de-ink);
    border: 1px solid var(--de-line);
}

.de-beta-email {
    overflow-wrap: anywhere;
}

.de-beta-steps {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
    counter-reset: de-beta-step;
}

.de-beta-step {
    position: relative;
    border: 1px solid var(--de-line);
    border-radius: 16px;
    padding: 16px 16px 16px 58px;
}

.de-beta-step::before {
    counter-increment: de-beta-step;
    content: counter(de-beta-step);
    position: absolute;
    left: 16px;
    top: 15px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--de-orange);
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.de-beta-step h3 {
    font-size: 16.5px;
    font-weight: 800;
    margin: 0 0 4px;
}

.de-beta-step p {
    color: var(--de-ink-soft);
    font-size: 14.5px;
    margin: 0 0 12px;
}

.de-beta-note {
    font-size: 14px;
    color: var(--de-ink-soft);
    background: var(--de-cream);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 16px 0 0 !important;
    overflow-wrap: anywhere;
}

.de-beta-list {
    margin: 10px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--de-ink-soft);
}

.de-beta-list strong {
    color: var(--de-ink);
}

/* Tanıtım sayfasındaki göze batmayan erken erişim bağlantısı */
.de-beta-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--de-ink-soft);
}

.de-closing .de-beta-link {
    color: rgba(255, 255, 255, .72);
}

/* ---------- Geniş ekran ---------- */

@media (min-width: 768px) {
    .de-shell {
        padding: 0 32px;
    }

    .de-steps,
    .de-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .de-section {
        padding: 72px 0;
    }

    .de-beta-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }

    .de-beta-card {
        padding: 28px;
    }
}

@media (min-width: 992px) {
    /* İki kolon YALNIZ telefon görseli varken: görsel yokken metin kolonu
       daralıyor ve başlık gereksiz yere satırlara bölünüyordu. */
    .de-hero-inner.has-shot {
        grid-template-columns: 1.05fr .95fr;
        align-items: center;
        gap: 48px;
    }

    .de-hero-inner {
        /* Kısayol kullanılmaz: `.de-shell`in yan dolgusunu ezer */
        padding-top: 72px;
        padding-bottom: 80px;
    }

    .de-hero-inner:not(.has-shot) .de-lead {
        max-width: 30em;
    }

    .de-shot {
        width: min(340px, 100%);
    }

    .de-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .de-store:hover {
        transform: none;
    }
}

/* Beta sayfası: uygulama ekranları — telefonda yatay kaydırma, geniş ekranda tek sıra. */
.de-beta-shots-section {
    padding: 8px 0 40px;
}

.de-beta-shots {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
}

.de-beta-shots img {
    flex: 0 0 auto;
    width: 46%;
    max-width: 230px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20, 20, 30, 0.12);
    scroll-snap-align: start;
}

@media (min-width: 900px) {
    .de-beta-shots {
        justify-content: center;
        overflow-x: visible;
    }

    .de-beta-shots img {
        width: 22%;
    }
}
