/* Zarfla — ana stil dosyası */
:root {
    --primary: #1f4fd8;
    --primary-600: #1a43b8;
    --primary-50: #eef3ff;
    --accent: #f2a93b;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f1f3f9;
    --text: #172033;
    --muted: #5d6781;
    --border: #e2e6f0;
    --success: #12855a;
    --success-bg: #e7f7f0;
    --danger: #c53030;
    --danger-bg: #fdeeee;
    --info: #1f4fd8;
    --info-bg: #eef3ff;
    --warn: #a86400;
    --warn-bg: #fff5e3;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(20, 30, 60, .04), 0 8px 28px rgba(20, 30, 60, .07);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #5b84ff;
        --primary-600: #7898ff;
        --primary-50: #1b2747;
        --bg: #0e1220;
        --surface: #161b2d;
        --surface-2: #1d2338;
        --text: #e6e9f2;
        --muted: #9aa3bd;
        --border: #2a3150;
        --success: #3ecf8e;
        --success-bg: #12291f;
        --danger: #ff7a7a;
        --danger-bg: #2e1517;
        --info: #8eabff;
        --info-bg: #1b2747;
        --warn: #ffbe5c;
        --warn-bg: #2d2210;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; }
.medium { max-width: 760px; }
.page-section { padding: 48px 16px 64px; }

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-sm { font-size: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a:not(.btn) { color: var(--muted); font-weight: 500; }
.site-nav > a:not(.btn):hover, .site-nav > a.is-active { color: var(--text); text-decoration: none; }
.inline-form { display: inline; margin: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 66px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        padding: 8px 16px 16px; display: none;
    }
    .site-nav.is-open { display: flex; }
    .site-nav > a, .site-nav .inline-form { padding: 10px 0; }
    .site-nav .btn { margin-top: 8px; width: 100%; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 600; font-size: .975rem;
    padding: 12px 22px; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer;
    transition: background .15s, border-color .15s, transform .05s;
    text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--primary); font: inherit; padding: 0; cursor: pointer; }
.btn-link:disabled { color: var(--muted); cursor: default; }

/* Cards */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 24px; }
.card-header { margin-bottom: 20px; }
.card-header h1, .card-header h2 { margin-bottom: .25em; }
@media (max-width: 520px) { .card { padding: 22px 18px; } }

/* Forms */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .925rem; margin-bottom: 6px; }
.hint { font-size: .825rem; color: var(--muted); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel] {
    width: 100%; font: inherit; color: var(--text);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 14px;
    transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
input.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin-top: 6px; }
.input-group { display: flex; align-items: stretch; }
.input-group input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.input-addon {
    display: flex; align-items: center; padding: 0 14px;
    background: var(--surface-2); border: 1px solid var(--border); border-left: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-weight: 500; white-space: nowrap;
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 70px; }
.toggle-pw {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; padding: 6px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .925rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.code-input {
    text-align: center; font-size: 1.8rem !important; letter-spacing: .45em;
    font-variant-numeric: tabular-nums; padding: 14px !important;
}

.availability { font-size: .85rem; margin-top: 6px; min-height: 1.3em; }
.availability.ok { color: var(--success); }
.availability.bad { color: var(--danger); }
.availability.wait { color: var(--muted); }

.strength { height: 6px; background: var(--surface-2); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.strength > span { display: block; height: 100%; width: 0; transition: width .25s, background .25s; border-radius: 4px; }
.strength-label { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* Alerts */
.flash-wrap { padding-top: 20px; }
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 12px; font-size: .95rem; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error, .alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert ul { margin: 0; padding-left: 18px; }

/* Steps */
.steps { display: flex; gap: 8px; margin-bottom: 24px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--border); }
.steps span.done { background: var(--primary); }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, var(--primary-50), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero-claim {
    display: flex; margin-top: 8px; max-width: 480px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px;
    box-shadow: var(--shadow);
}
.hero-claim input { border: 0 !important; box-shadow: none !important; background: transparent; min-width: 0; }
.hero-claim .suffix { display: flex; align-items: center; color: var(--muted); padding-right: 10px; font-weight: 500; white-space: nowrap; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 420px; height: auto; }
@media (max-width: 860px) {
    .hero { padding: 40px 0; }
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-art { order: -1; }
    .hero-art svg { max-width: 260px; }
}
@media (max-width: 480px) {
    .hero-claim { flex-wrap: wrap; }
    .hero-claim .btn { width: 100%; }
}

/* Feature grid */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.section-alt .feature { background: var(--bg); }
.feature .ico {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--primary-50); color: var(--primary); margin-bottom: 14px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.steps-list { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .steps-list { grid-template-columns: 1fr; } }
.steps-list li { list-style: none; position: relative; padding: 24px 24px 24px 72px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps-list li::before {
    counter-increment: s; content: counter(s);
    position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.steps-list { padding: 0; margin: 0; }

.cta-band { text-align: center; padding: 56px 16px; }
.cta-band .btn { margin-top: 8px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Prose (legal) */
.prose h2 { margin-top: 1.8em; font-size: 1.3rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }

/* Panel */
.panel-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .panel-grid { grid-template-columns: 1fr; } }
.profile { text-align: center; }
.avatar {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
    background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700;
}
.profile .addr { font-weight: 600; word-break: break-all; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .925rem; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-off { background: var(--surface-2); color: var(--muted); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qr-box { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 16px 0 20px; }
#qrcode { background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--border); width: 204px; height: 204px; }
.secret { font-family: ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 8px 12px; border-radius: 8px; word-break: break-all; font-size: .9rem; }

.success-hero { text-align: center; }
.icon-circle { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; font-size: 1.8rem; font-weight: 700; }
.icon-ok { background: var(--success-bg); color: var(--success); }
.icon-warn { background: var(--warn-bg); color: var(--warn); }
.big-address { font-size: 1.35rem; font-weight: 700; background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; margin: 16px 0 24px; word-break: break-all; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; padding-top: 36px; padding-bottom: 24px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: flex-start; }
.footer-links a { color: var(--muted); font-size: .925rem; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.recaptcha-note { max-width: 560px; }
.grecaptcha-badge { visibility: hidden; }

.divider { text-align: center; color: var(--muted); font-size: .875rem; margin: 20px 0; }
.form-footer { text-align: center; margin-top: 20px; font-size: .925rem; color: var(--muted); }
