/* Public landing — premium header, drawer menu, footer */

:root {
    --public-header-h: 64px;
}

.public-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.public-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: var(--public-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-logo {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.public-nav a:not(.btn) {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.public-nav a:not(.btn):hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.06);
}

.public-nav .wa-link {
    color: #16a34a !important;
}

.public-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.public-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.public-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    width: 42px;
    height: 42px;
}

.public-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
    margin: 0 auto;
}

.public-menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.public-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.public-menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.public-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 34, 0.55);
    z-index: 500;
    backdrop-filter: blur(2px);
}

.public-menu-overlay.open {
    display: block;
}

.public-menu-sheet {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 501;
    background: #fff;
    padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    padding-top: calc(1rem + env(safe-area-inset-top));
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(15, 23, 42, 0.15);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.public-menu-sheet.open {
    transform: translateX(0);
}

.public-menu-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.public-menu-head button {
    background: var(--bg);
    border: 1px solid var(--border);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.public-menu-sheet > a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    font-size: 0.95rem;
}

.public-menu-sheet > a.highlight {
    color: var(--primary);
}

.public-menu-sheet > a.wa-menu-link {
    color: #16a34a;
}

.public-menu-divider {
    height: 12px;
    flex-shrink: 0;
}

.public-main {
    flex: 1;
}

.public-footer {
    margin-top: auto;
    background: linear-gradient(165deg, #0c1222 0%, #151d32 45%, #1e293b 100%);
    color: #e2e8f0;
    padding: 0;
    border-top: none;
    text-align: left;
}

.public-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem 2rem;
}

.footer-premium-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand-block strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.65rem;
}

.footer-brand-block p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.35rem 0;
}

.footer-col a:hover {
    color: #fff;
}

.footer-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: #64748b;
}

.targeting-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    background: #fff;
}

.chip-check:has(input:checked) {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
}

@media (max-width: 900px) {
    .footer-premium-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .public-nav, .public-nav-actions, .public-header-utilities-wrap { display: none !important; }
    .footer-premium-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (min-width: 769px) {
    .public-header-actions.mobile-only { display: none !important; }
}

/* Yasal sayfalar & footer */
.legal-strip {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 0;
}
.legal-strip-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: center;
}
.legal-strip-inner a {
    color: #94a3b8;
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}
.legal-strip-inner a:hover { color: #fff; }

.footer-legal-col a,
.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 0.88rem;
    padding: 0.3rem 0;
    text-decoration: none;
}
.footer-legal-col a:hover,
.footer-col a:hover { color: #fff; }

.mobile-legal-accordion {
    margin: 0.5rem 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.mobile-legal-accordion summary {
    padding: 0.85rem 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    background: var(--bg);
}
.mobile-legal-accordion summary::-webkit-details-marker { display: none; }
.mobile-legal-links {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0;
    background: #fff;
}
.mobile-legal-links .legal-link-item,
.mobile-legal-links a {
    padding: 0.65rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.mobile-legal-links a:last-child { border-bottom: none; }

.legal-page { padding: 2rem 1rem 4rem; }
.legal-article { max-width: 800px; margin: 0 auto; }
.legal-breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.legal-breadcrumb a { color: var(--primary); }
.legal-article h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.legal-updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.legal-body { line-height: 1.7; color: var(--text); font-size: 0.95rem; }
.legal-payments-note {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.table-wrap table { min-width: 560px; }

/* Hero preview mockup — görsel başlığın hemen üstünde */
.hero-preview {
    max-width: 420px;
    margin: 0.5rem auto 0.75rem;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.hero-preview-bar {
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
}
.hero-preview-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}
.hero-preview-body {
    display: flex;
    min-height: 140px;
    padding: 12px;
    gap: 10px;
}
.hero-preview-sidebar {
    width: 28%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}
.hero-preview-main { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hero-preview-line {
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
}
.hero-preview-line.w80 { width: 80%; }
.hero-preview-line.w60 { width: 60%; }
.hero-preview-chart {
    flex: 1;
    min-height: 70px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(147, 197, 253, 0.25) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(147, 197, 253, 0.2);
}
.hero .hero-badge { margin-bottom: 0.5rem; }
.hero h1 { margin-top: 0; }

/* Anchor scroll — sticky header altında kalmaması için */
#features, #how, #pricing, #faq, #capabilities, #templates, #workflow {
    scroll-margin-top: calc(var(--public-header-h) + 12px);
}

/* Yeni ana sayfa bölümleri */
.capabilities-section,
.templates-showcase,
.workflow-section {
    padding: 3.5rem 0;
}
.capabilities-section { background: #f8fafc; }
.templates-showcase { background: #fff; }
.workflow-section { background: linear-gradient(180deg, #f1f5f9 0%, #fff 100%); }

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
}
.capability-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.capability-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}
.capability-icon { font-size: 1.75rem; margin-bottom: 0.6rem; }
.capability-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.capability-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

.template-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.template-showcase-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}
.template-showcase-card .tpl-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.template-showcase-card strong { display: block; margin-bottom: 0.35rem; font-size: 0.95rem; }
.template-showcase-card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.section-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.workflow-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.section-title.align-left { text-align: left; margin-bottom: 0.75rem; }
.workflow-copy p { color: var(--text-muted); margin-bottom: 1.25rem; }
.workflow-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.workflow-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--text-muted);
}
.workflow-list li strong { color: var(--text); }

.mock-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}
.mock-title {
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.mock-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.88rem;
}
.mock-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.mock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.pricing-section {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}
.pricing-section .section-title { margin-bottom: 0.5rem; }
.pricing-section .section-sub { margin-top: 0; margin-bottom: 1.75rem; }

@media (max-width: 768px) {
    .hero-preview { max-width: 300px; margin-bottom: 0.5rem; }
    .hero-preview-body { min-height: 110px; }
    .workflow-split { grid-template-columns: 1fr; gap: 1.5rem; }
    .capabilities-grid { grid-template-columns: 1fr; }
    .template-showcase-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .template-showcase-grid { grid-template-columns: 1fr; }
}
