/* ========================================
   RESET
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }

/* ========================================
   TOKENS
   ======================================== */
:root {
    --brand: oklch(58% 0.13 165);
    --brand-deep: oklch(42% 0.12 165);
    --brand-soft: oklch(94% 0.04 165);
    --brand-ink: oklch(28% 0.08 165);
    --accent: oklch(74% 0.13 75);
    --danger: oklch(55% 0.18 25);

    --ink: oklch(20% 0.02 240);
    --ink-soft: oklch(48% 0.02 240);
    --ink-mute: oklch(65% 0.015 240);
    --bg: oklch(98.5% 0.005 240);
    --card: #ffffff;
    --line: oklch(92% 0.005 240);
    --line-soft: oklch(95% 0.003 240);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.03);
    --shadow: 0 6px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.1), 0 6px 16px rgba(15, 23, 42, 0.04);

    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --maxw: 720px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }
.text-grad {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   PAGE — TEST FUNNEL
   ======================================== */
.page-test {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* Header */
.test-header {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 30;
}
.header-row {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: white;
    display: grid; place-items: center;
    box-shadow: 0 4px 12px oklch(58% 0.13 165 / 0.3);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.75rem; color: var(--ink-soft); font-weight: 500; }
.header-side { display: flex; align-items: center; gap: 12px; }
.trust-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: var(--brand-soft);
    color: var(--brand-ink);
    border-radius: 999px;
    font-size: 0.82rem; font-weight: 600;
}
.trust-chip svg { width: 14px; height: 14px; }
.header-phone {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px;
    font-weight: 600; color: var(--ink);
    font-size: 0.88rem;
    border-radius: 10px;
    transition: background 0.2s;
}
.header-phone:hover { background: var(--brand-soft); }
.header-phone svg { width: 16px; height: 16px; color: var(--brand); }

/* Progress (test başlayınca açılır) */
.test-progress {
    height: 4px;
    background: var(--line-soft);
    position: sticky; top: 68px; z-index: 29;
}
.test-progress-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--brand-deep));
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Test main */
.test-main {
    flex: 1;
    position: relative;
    padding: 56px 0 80px;
    overflow: hidden;
}
.test-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(60% 50% at 80% 5%, oklch(75% 0.13 165 / 0.16), transparent 60%),
        radial-gradient(50% 40% at 10% 95%, oklch(78% 0.12 75 / 0.10), transparent 60%);
    pointer-events: none;
}
.test-wrap { position: relative; z-index: 1; }
.test-body {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    box-shadow: var(--shadow);
    animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========================================
   WELCOME SCREEN
   ======================================== */
/* HTML hidden attribute'u CSS display kurallari tarafindan override edilmesin */
[hidden] { display: none !important; }

.welcome { text-align: center; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.badge-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    background: var(--brand-soft);
    border: 1px solid oklch(85% 0.07 165 / 0.4);
    border-radius: 999px;
    font-size: 0.85rem; font-weight: 600;
    color: var(--brand-ink);
}
.dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px oklch(58% 0.13 165 / 0.18);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px oklch(58% 0.13 165 / 0.18); }
    50% { box-shadow: 0 0 0 8px oklch(58% 0.13 165 / 0.08); }
}
.display {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.lead {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 auto;
}
.btn-mega {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 20px 36px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: white;
    font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
    border-radius: 16px;
    box-shadow: 0 14px 32px oklch(58% 0.13 165 / 0.36);
    transition: transform 0.15s, box-shadow 0.2s;
    min-width: 260px;
    margin-top: 6px;
}
.btn-mega svg { width: 20px; height: 20px; }
.btn-mega:hover { transform: translateY(-2px); box-shadow: 0 22px 44px oklch(58% 0.13 165 / 0.42); }
.btn-mega:active { transform: translateY(0); }
.btn-mega:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.trust-row {
    display: flex; gap: 22px; flex-wrap: wrap;
    list-style: none; padding: 0;
    color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
}
.trust-row-center { justify-content: center; }
.trust-row li { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--brand); }

/* Soru altinda kalan trust seridi — welcome ekrani kalktigi icin */
.trust-strip {
    margin: 28px auto 0;
    max-width: 720px;
    gap: 18px;
    padding: 14px 20px;
    background: oklch(98% 0.005 240);
    border: 1px solid oklch(92% 0.01 240);
    border-radius: 14px;
    font-size: 0.85rem;
}
.trust-strip svg { width: 14px; height: 14px; }
@media (max-width: 560px) {
    .trust-strip { gap: 10px 14px; font-size: 0.78rem; padding: 12px 14px; }
}

/* Welcome stats grid (rakamlar) */
.welcome-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin-top: 4px;
    padding: 20px 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.ws-item {
    text-align: center;
    display: flex; flex-direction: column; gap: 2px;
}
.ws-item strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    color: var(--brand-deep);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.ws-item span {
    font-size: 0.78rem;
    color: var(--ink-soft);
    font-weight: 500;
}
@media (max-width: 560px) {
    .welcome-stats { grid-template-columns: repeat(2, 1fr); padding: 16px 14px; gap: 14px; }
}

.welcome-card {
    margin-top: 14px;
    padding: 22px;
    border-radius: var(--radius-lg);
    text-align: left;
    width: 100%;
    max-width: 460px;
}
.glass {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
}
.wc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.wc-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--brand-soft); color: var(--brand-ink);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.wc-avatar svg { width: 22px; height: 22px; }
.wc-title { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.wc-sub { font-size: 0.82rem; color: var(--ink-soft); }
.wc-steps { display: flex; flex-direction: column; gap: 8px; }
.wc-step {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    background: var(--bg);
    border-radius: 10px;
    font-size: 0.9rem; font-weight: 500;
}
.wc-step span {
    width: 22px; height: 22px; border-radius: 6px;
    background: var(--brand); color: white;
    display: grid; place-items: center;
    font-size: 0.72rem; font-weight: 700;
    flex-shrink: 0;
}

/* ========================================
   QUIZ SCREEN
   ======================================== */
.qs { animation: qslide 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes qslide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.qs-head {
    text-align: center;
    margin-bottom: 28px;
    display: flex; flex-direction: column; gap: 10px;
}
.qs-step {
    font-size: 0.78rem; font-weight: 700;
    color: var(--brand-deep);
    letter-spacing: 0.08em; text-transform: uppercase;
}
.qs-title {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.qs-sub { color: var(--ink-soft); font-size: 0.95rem; max-width: 480px; margin: 0 auto; }

.q-opts { display: flex; flex-direction: column; gap: 11px; }
.q-opt {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px;
    background: white;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    font-weight: 500;
    width: 100%;
    text-align: left;
}
.q-opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.q-opt.is-active { border-color: var(--brand); background: var(--brand-soft); }
.q-opt-icon {
    flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--brand-soft); color: var(--brand-ink);
    display: grid; place-items: center;
}
.q-opt-icon svg { width: 22px; height: 22px; }
.q-opt-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.q-opt-text strong { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.q-opt-text small { color: var(--ink-soft); font-size: 0.84rem; }
.q-opt-check {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid var(--line);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}
.q-opt.is-active .q-opt-check { border-color: var(--brand); background: var(--brand); }
.q-opt.is-active .q-opt-check::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px; height: 10px;
    border: 2px solid white;
    border-top: 0; border-left: 0;
    margin-top: -1px;
}

.q-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.q-back {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px;
    color: var(--ink-soft); font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}
.q-back:hover { background: var(--bg); color: var(--ink); }
.q-back svg { width: 16px; height: 16px; }

/* Form */
.q-form { display: flex; flex-direction: column; gap: 16px; }
.f-group { display: flex; flex-direction: column; gap: 6px; }
.f-label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.f-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    background: white;
    border: 2px solid var(--line);
    border-radius: 12px;
    transition: border-color 0.2s;
}
.f-input:focus { outline: none; border-color: var(--brand); }
.f-phone { display: flex; gap: 8px; align-items: stretch; }
.f-phone-pref {
    padding: 14px;
    background: var(--bg);
    border: 2px solid var(--line);
    border-radius: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    display: grid; place-items: center;
    font-size: 1rem;
}
.f-phone .f-input { flex: 1; min-width: 0; }
.f-hint { font-size: 0.82rem; color: var(--ink-soft); }
.f-error { font-size: 0.85rem; color: var(--danger); display: none; }
.f-group.has-error .f-input { border-color: var(--danger); }
.f-group.has-error .f-error { display: block; }
.f-group.has-error .f-hint { display: none; }

.f-note {
    padding: 14px 16px;
    background: var(--brand-soft);
    border-radius: 12px;
    font-size: 0.88rem;
    color: var(--brand-ink);
    display: flex; gap: 10px; align-items: flex-start;
    line-height: 1.5;
}
.f-note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--brand); margin-top: 1px; }

.q-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: white; font-weight: 700; font-size: 1rem;
    border-radius: 14px;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 10px 24px oklch(58% 0.13 165 / 0.34);
    width: 100%;
    margin-top: 6px;
}
.q-submit:hover { transform: translateY(-1px); }
.q-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.q-submit svg { width: 18px; height: 18px; }

/* ========================================
   SKELETON (yukleniyor)
   ======================================== */
.quiz-skeleton { padding: 20px 0; }
.sk-line {
    height: 28px;
    background: var(--line-soft);
    border-radius: 8px;
    margin-bottom: 14px;
    background-image: linear-gradient(90deg, var(--line-soft) 0%, oklch(96% 0.003 240) 50%, var(--line-soft) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite linear;
}
.sk-line.short { width: 60%; margin-bottom: 32px; }
.sk-options { display: flex; flex-direction: column; gap: 12px; }
.sk-opt {
    height: 74px;
    border-radius: 14px;
    background: var(--line-soft);
    background-image: linear-gradient(90deg, var(--line-soft) 0%, oklch(96% 0.003 240) 50%, var(--line-soft) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite linear;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   FOOTER
   ======================================== */
.test-footer {
    border-top: 1px solid var(--line);
    background: white;
    padding: 18px 0;
    margin-top: auto;
}
.footer-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--ink-soft);
    flex-wrap: wrap;
}
.footer-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-link {
    color: var(--ink-soft);
    transition: color 0.2s;
}
.footer-link:hover { color: var(--ink); }

/* ========================================
   TESEKKUR / SITE-HEADER fallback (uyumluluk)
   ======================================== */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.9); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(60% 50% at 80% 5%, oklch(75% 0.13 165 / 0.16), transparent 60%),
        radial-gradient(50% 40% at 10% 95%, oklch(78% 0.12 75 / 0.10), transparent 60%);
    pointer-events: none;
}
.container.narrow { max-width: 700px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px;
    font-weight: 600; font-size: 0.95rem;
    border-radius: 12px;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 16px 28px; font-size: 1rem; border-radius: 14px; }
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: white;
    box-shadow: 0 6px 18px oklch(58% 0.13 165 / 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px oklch(58% 0.13 165 / 0.35); }
.btn-ghost {
    background: white;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-soft); }
.hero-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.hc-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hc-avatar {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--brand-soft); color: var(--brand-ink);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.hc-avatar svg { width: 24px; height: 24px; }
.hc-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.hc-sub { font-size: 0.85rem; color: var(--ink-soft); }
.hc-steps { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.hc-step {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 10px;
    font-size: 0.92rem; font-weight: 500;
}
.hc-step span {
    width: 24px; height: 24px; border-radius: 6px;
    background: var(--brand); color: white;
    display: grid; place-items: center;
    font-size: 0.75rem; font-weight: 700;
    flex-shrink: 0;
}
.site-footer { background: oklch(20% 0.02 240); color: oklch(75% 0.01 240); padding: 32px 0; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 20px;
    font-size: 0.84rem; color: oklch(60% 0.01 240);
    flex-wrap: wrap;
}
.nav-row { display: flex; align-items: center; gap: 8px; }
.nav-phone {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    font-weight: 600; color: var(--ink);
    font-size: 0.9rem;
}
.nav-phone svg { width: 16px; height: 16px; color: var(--brand); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 720px) {
    .test-main { padding: 32px 0 56px; }
    .test-body { padding: 32px 20px; border-radius: 22px; }
    .display { font-size: 1.75rem; }
    .lead { font-size: 0.98rem; }
    .btn-mega { padding: 17px 28px; font-size: 1rem; min-width: 100%; }
    .welcome-card { padding: 18px; }
    .trust-chip { display: none; }
    .header-phone span { display: none; }
    .header-row { height: 60px; }
    .test-progress { top: 60px; }
    .footer-row { font-size: 0.78rem; gap: 8px; }
    .footer-meta { gap: 12px; }
    .q-opt { padding: 14px 16px; gap: 12px; }
    .q-opt-icon { width: 40px; height: 40px; border-radius: 10px; }
    .q-opt-icon svg { width: 20px; height: 20px; }
    .qs-head { margin-bottom: 24px; }
    .container { padding: 0 16px; }
    .brand-sub { display: none; }
}
@media (max-width: 420px) {
    .test-body { padding: 26px 16px; }
    .badge-pill { font-size: 0.78rem; padding: 6px 12px; }
    .display { font-size: 1.6rem; }
}

/* Legal sayfalari (KVKK, Gizlilik) */
.legal-page {
    padding: 56px 0 72px;
    color: var(--ink);
    line-height: 1.7;
}
.legal-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--ink);
}
.legal-meta {
    color: var(--ink-soft);
    font-size: 0.88rem;
    margin: 0 0 32px;
}
.legal-page h2 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 32px 0 10px;
    color: var(--ink);
}
.legal-page p { margin: 0 0 14px; color: var(--ink-soft); font-size: 0.97rem; }
.legal-page ul { margin: 0 0 14px; padding-left: 22px; color: var(--ink-soft); font-size: 0.97rem; }
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: var(--ink); font-weight: 600; }
.legal-page a { color: var(--brand); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }
.legal-back {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid oklch(92% 0.01 240);
}
@media (max-width: 560px) {
    .legal-page { padding: 36px 0 56px; }
    .legal-page h2 { font-size: 1.05rem; margin-top: 26px; }
}
