/* =====================================================================
   WEBSENS FUNNEL — styles.css
   Marka DNA: siyah-beyaz minimal (websens.co) + tek teal güven vurgusu
   Stil: Vercel disiplini (ince border, sıkı tipografi, cömert boşluk)
   Zemin: açık/beyaz, premium, ferah
   NOT: HTML yapısı ve class isimleri korunmuştur; bu dosya birebir
        mevcut styles.css'in yerine konabilir.
   ===================================================================== */

/* ===== FONT (Vercel benzeri grotesk) ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== VARIABLES ===== */
:root {
    /* Renk — marka siyah-beyaz + teal vurgu */
    --ink:        #0A0A0A;   /* başlıklar / near-black */
    --ink-soft:   #1A1A1A;
    --text:       #2E2E32;   /* gövde metni */
    --text-light: #6B7280;   /* ikincil metin */
    --line:       #EAEAEA;   /* ince çizgiler (Vercel'in imzası) */
    --line-soft:  #F2F2F2;
    --surface:    #FFFFFF;   /* ana zemin */
    --surface-2:  #FAFAFA;   /* hafif gri bölüm zemini */

    --accent:        #0E7C7B; /* derin teal — güven/sağlık */
    --accent-dark:   #0B605F;
    --accent-tint:   #E6F2F2; /* teal'in çok açık tonu (rozet/zemin) */

    --success: #0E7C7B;       /* checklist de teal ile tutarlı */
    --whatsapp: #25D366;

    /* Tipografi */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Boşluk */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 1.5rem;
    --sp-lg: 2.5rem;
    --sp-xl: 4rem;
    --sp-2xl: 6rem;

    /* Köşe — Vercel'de sıkı, küçük radius */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Gölge yok denecek kadar az; derinlik border ile verilir */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow:    0 8px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 50px rgba(0,0,0,0.10);

    --transition: all 0.2s ease;
    --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--surface);
    color: var(--text);
    line-height: 1.65;
    letter-spacing: -0.011em; /* hafif sıkı — premium his */
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;  /* Vercel imzası: sıkı başlıklar */
    margin-bottom: var(--sp-md);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

p { margin-bottom: var(--sp-md); color: var(--text-light); }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }

/* ===== LAYOUT ===== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-md); }

section { padding: var(--sp-2xl) 0; }
section:not(:last-of-type) { border-bottom: 1px solid var(--line); }

/* Bölüm başlıklarını varsayılan SOLA hizala (asimetri = tasarlanmış his).
   Belirli bölümler aşağıda merkeze alınır. */
section > .container > h2 { max-width: 24ch; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-light); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ===== HERO ===== */
.hero {
    padding: var(--sp-2xl) 0 var(--sp-xl);
    text-align: center;
    background:
        radial-gradient(60% 50% at 50% 0%, var(--accent-tint) 0%, rgba(230,242,242,0) 70%),
        var(--surface);
}
.hero-badge {
    display: inline-block;
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: var(--sp-lg);
}
.hero-h1 {
    font-size: clamp(2.4rem, 5.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ink);
    max-width: 18ch;
    margin: 0 auto var(--sp-lg);
}
.hero-h1 strong { color: var(--accent); font-weight: 800; }
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 46ch;
    margin: 0 auto var(--sp-lg);
}
.hero-microcopy { font-size: 0.85rem; color: var(--text-light); margin-top: var(--sp-sm); }

.proof-logos {
    display: flex; gap: var(--sp-md); justify-content: center; align-items: center;
    flex-wrap: wrap; margin-top: var(--sp-xl);
    font-size: 0.75rem; color: var(--text-light);
}
.proof-logo-item { display: flex; align-items: center; gap: var(--sp-xs); filter: grayscale(1); opacity: 0.7; transition: var(--transition); }
.proof-logo-item:hover { filter: grayscale(0); opacity: 1; }
.proof-logo-item img { height: 28px; object-fit: contain; }

/* ===== PROOF STRIPE ===== */
.proof-stripe { background: var(--surface-2); text-align: center; padding: var(--sp-lg) 0; }
.proof-stripe-header {
    font-size: 0.78rem; color: var(--text-light); font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--sp-lg);
}
.proof-results {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-md);
    max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-md);
}
.proof-result-item {
    background: #fff; padding: var(--sp-md); border-radius: var(--radius-lg);
    border: 1px solid var(--line); text-align: left;
}
.proof-result-item strong { color: var(--accent); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; display: block; margin-bottom: 0.25rem; }
.proof-result-item p { margin: 0; font-size: 0.9rem; color: var(--text-light); }

/* ===== PROBLEM (asimetrik, sola hizalı) ===== */
.problem { background: #fff; }
.problem h2 { text-align: left; margin-bottom: var(--sp-xl); max-width: 20ch; }
.problem-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.problem-card {
    padding: var(--sp-lg); background: #fff;
    border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.problem-card:last-child { border-right: none; }
.card-icon {
    /* emoji yerine: küçük teal nokta + ince çizgi aksanı */
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--accent-tint); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: var(--sp-md);
}
.problem-card h3 { color: var(--ink); margin-bottom: var(--sp-sm); font-size: 1.15rem; }
.problem-card p { font-size: 0.95rem; margin: 0; color: var(--text-light); }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--surface-2); text-align: center; }
.how-it-works h2 { margin: 0 auto var(--sp-xl); text-align: center; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-md); }
.step {
    background: #fff; padding: var(--sp-lg); border-radius: var(--radius-lg);
    border: 1px solid var(--line); text-align: left; transition: var(--transition);
}
.step:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: var(--ink); color: #fff;
    border-radius: 10px; font-weight: 700; font-size: 1.05rem; margin-bottom: var(--sp-md);
    letter-spacing: -0.02em;
}
.step h3 { font-size: 1.1rem; margin-bottom: var(--sp-sm); }
.step p { font-size: 0.92rem; margin: 0; }

/* ===== REPORT PREVIEW ===== */
.report-preview { background: #fff; }
.report-preview h2 { text-align: left; margin-bottom: var(--sp-sm); max-width: 20ch; }
.report-preview-intro { text-align: left; font-size: 1.05rem; margin-bottom: var(--sp-lg); max-width: 60ch; }
.report-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--sp-sm); margin-bottom: var(--sp-lg); }
.checklist-item {
    display: flex; gap: var(--sp-sm); padding: var(--sp-md);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: var(--transition);
}
.checklist-item:hover { border-color: var(--accent); }
.checklist-item svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.checklist-item span { text-align: left; color: var(--text); font-size: 0.95rem; }
.report-anchor {
    text-align: left; font-size: 0.95rem; padding: var(--sp-md) var(--sp-lg);
    background: var(--accent-tint); border-radius: var(--radius);
    color: var(--accent-dark); font-weight: 500; margin-bottom: 0;
    border: 1px solid #D5E9E9;
}

/* ===== AUTHORITY (asimetrik) ===== */
.authority { background: var(--surface-2); }
.authority h2 { text-align: left; margin-bottom: var(--sp-xl); max-width: 20ch; }
.authority-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--sp-md); }
.auth-card {
    background: #fff; padding: var(--sp-lg); border-radius: var(--radius-lg);
    border: 1px solid var(--line); text-align: left; transition: var(--transition);
}
.auth-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.auth-card h3 { color: var(--ink); margin-bottom: var(--sp-sm); font-size: 1.12rem; }
.auth-card h3::before {
    content: ''; display: block; width: 24px; height: 2px;
    background: var(--accent); margin-bottom: var(--sp-md);
}
.auth-card p { font-size: 0.92rem; margin: 0; }

/* ===== FAQ ===== */
.faq { background: #fff; }
.faq h2 { text-align: center; margin: 0 auto var(--sp-xl); }
.faq-items { max-width: 760px; margin: 0 auto; display: grid; gap: var(--sp-sm); }
.faq-item {
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: var(--sp-md) var(--sp-lg); cursor: pointer; transition: var(--transition);
}
.faq-item:hover { border-color: var(--text-light); }
.faq-item.open { border-color: var(--accent); }
.faq-question {
    font-weight: 600; color: var(--ink); margin-bottom: 0; font-size: 1.02rem;
    display: flex; justify-content: space-between; align-items: center; gap: var(--sp-md);
}
.faq-answer {
    display: none; margin-top: var(--sp-md); padding-top: var(--sp-md);
    border-top: 1px solid var(--line); color: var(--text-light); font-size: 0.95rem;
}
.faq-answer a { color: var(--accent); }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question::after { content: '–'; font-size: 1.5rem; color: var(--accent); }
.faq-item:not(.open) .faq-question::after { content: '+'; font-size: 1.4rem; color: var(--text-light); }

/* ===== FINAL CTA ===== */
.final-cta {
    text-align: center; padding: var(--sp-2xl) var(--sp-md);
    background:
        radial-gradient(70% 60% at 50% 100%, var(--accent-tint) 0%, rgba(230,242,242,0) 70%),
        var(--surface-2);
}
.final-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 auto var(--sp-md); max-width: 22ch; }
.final-cta > p { font-size: 1.12rem; margin: 0 auto var(--sp-lg); max-width: 50ch; color: var(--text-light); }
.cta-scarcity { font-size: 0.85rem; color: var(--accent-dark); font-weight: 600; margin-top: var(--sp-md); }

/* ===== FORM OVERLAY ===== */
.form-overlay { position: fixed; inset: 0; display: none; z-index: 1000; overflow-y: auto; }
.form-overlay.active { display: flex; align-items: flex-start; justify-content: center; padding: var(--sp-md); }
.form-backdrop { position: fixed; inset: 0; background: rgba(10,10,10,0.55); z-index: -1; cursor: pointer; backdrop-filter: blur(2px); }
.form-panel {
    background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 520px; margin-top: 2.5rem; position: relative; z-index: 1001;
    max-height: 90vh; overflow-y: auto; border: 1px solid var(--line);
}
.form-close {
    position: absolute; top: var(--sp-md); right: var(--sp-md); background: transparent;
    border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-light); z-index: 10;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; transition: var(--transition);
}
.form-close:hover { color: var(--ink); background: var(--surface-2); }
.form-container { padding: var(--sp-lg); }
.form-step { animation: slideIn 0.25s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.form-step.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; gap: var(--sp-md); }
.spinner { width: 38px; height: 38px; border: 3px solid var(--line); border-top: 3px solid var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-progress { display: flex; gap: 0.5rem; margin-bottom: var(--sp-lg); justify-content: center; }
.progress-dot { width: 28px; height: 4px; border-radius: 100px; background: var(--line); transition: var(--transition); }
.progress-dot.active { background: var(--accent); }

.form-step h2 { font-size: 1.4rem; margin-bottom: var(--sp-md); }
.form-description { font-size: 0.92rem; color: var(--text-light); margin-bottom: var(--sp-lg); }
.form-question { margin-bottom: var(--sp-lg); }
.form-label { display: block; font-weight: 600; margin-bottom: var(--sp-sm); color: var(--ink); font-size: 0.95rem; }
.required { color: var(--accent); }
.form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: -0.4rem; margin-bottom: var(--sp-sm); }
.form-options-vertical { display: grid; gap: 0.5rem; }

.radio-option, .checkbox-option {
    display: flex; align-items: flex-start; gap: var(--sp-sm); cursor: pointer;
    padding: 0.85rem var(--sp-sm); border: 1px solid var(--line); border-radius: var(--radius);
    transition: var(--transition);
}
.radio-option:hover, .checkbox-option:hover { border-color: var(--accent); background: var(--accent-tint); }
.radio-option input, .checkbox-option input { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; flex-shrink: 0; accent-color: var(--accent); }
.radio-option span, .checkbox-option span { flex: 1; font-size: 0.95rem; line-height: 1.4; }
.radio-option.divider { margin-top: var(--sp-md); border-style: dashed; }

.form-input {
    width: 100%; padding: 0.85rem; border: 1px solid var(--line); border-radius: var(--radius);
    font-size: 1rem; font-family: var(--font); transition: var(--transition); color: var(--ink);
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.phone-input-group { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-sm); }
.country-code-select { padding: 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9rem; background: #fff; cursor: pointer; font-family: var(--font); }
.country-code-select:focus { outline: none; border-color: var(--accent); }
.phone-input { grid-column: 2; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); margin-top: var(--sp-lg); }
.form-actions .btn-secondary { grid-column: 1; }
.form-actions .btn-primary { grid-column: 2; }

/* ===== THANK YOU OVERLAY ===== */
.thanks-overlay { position: fixed; inset: 0; display: none; z-index: 2000; align-items: flex-start; justify-content: center; padding: var(--sp-md); }
.thanks-overlay.active { display: flex; overflow-y: auto; }
.thanks-backdrop { position: fixed; inset: 0; background: rgba(10,10,10,0.55); z-index: -1; backdrop-filter: blur(2px); }
.thanks-panel {
    background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 520px; padding: var(--sp-xl); text-align: center;
    border: 1px solid var(--line); margin-top: 2.5rem;
}
.thanks-content { animation: slideIn 0.25s ease; }
.thanks-icon { font-size: 2.6rem; margin-bottom: var(--sp-md); }
.thanks-content h2 { font-size: 1.5rem; margin-bottom: var(--sp-md); }
.thanks-content p { margin-bottom: var(--sp-md); font-size: 0.95rem; color: var(--text-light); }
.thanks-bucket-badge { display: inline-block; padding: 0.45rem 1rem; border-radius: 100px; font-weight: 600; font-size: 0.85rem; margin-bottom: var(--sp-lg); }
.thanks-bucket-a, .thanks-bucket-b { background: var(--accent-tint); color: var(--accent-dark); }
.thanks-bucket-c { background: #EFF6FF; color: #2563EB; }
.thanks-bucket-d { background: #F3F4F6; color: #6B7280; }
.thanks-calendar-embed { margin: var(--sp-lg) 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thanks-calendar-embed iframe { width: 100%; border: none; }
.thanks-cta-group { display: grid; gap: var(--sp-sm); }
.thanks-whatsapp-link {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-sm);
    padding: 0.9rem 1.5rem; background: var(--whatsapp); color: #fff; border-radius: var(--radius);
    font-weight: 600; width: 100%; transition: var(--transition);
}
.thanks-whatsapp-link:hover { background: #20BA5A; color: #fff; transform: translateY(-1px); }
.thanks-closing { font-size: 0.85rem; color: var(--text-light); margin-top: var(--sp-lg); padding-top: var(--sp-lg); border-top: 1px solid var(--line); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html { font-size: 15px; }
    section { padding: var(--sp-xl) 0; }
    .hero { padding: var(--sp-xl) 0 var(--sp-lg); }
    .problem-cards { grid-template-columns: 1fr; }
    .problem-card { border-right: none; }
    .steps, .authority-cards, .proof-results, .report-checklist { grid-template-columns: 1fr; }
    .proof-logos { gap: var(--sp-sm); }
    .form-overlay.active { padding: 0; }
    .form-panel { max-width: 100%; margin-top: auto; border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: none; }
    .form-actions { grid-template-columns: 1fr; }
    .form-actions .btn-secondary, .form-actions .btn-primary { grid-column: 1; }
    .thanks-overlay.active { padding: 0; align-items: flex-end; }
    .thanks-panel { margin-top: auto; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
}
@media (max-width: 480px) {
    .container { padding: 0 var(--sp-sm); }
    .proof-logos { flex-direction: column; gap: var(--sp-xs); }
    .faq-items { max-width: 100%; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.hidden { display: none !important; }
.error { color: var(--accent-dark); font-size: 0.85rem; margin-top: var(--sp-xs); display: block; }
.form-input.invalid { border-color: var(--accent); background: var(--accent-tint); }