/* PrintXu Vesikalik — Professional Landing + Flow */

:root {
    --bg: #FFFDF8;
    --bg-dark: #1A1A1A;
    --accent: #F5C518;
    --accent-hover: #E8B400;
    --black: #1A1A1A;
    --text: #1A1A1A;
    --text-muted: #7A7060;
    --border: #F0EBE0;
    --surface: #FFFFFF;
    --fd: 'Cormorant Garamond', serif;
    --fb: 'DM Sans', sans-serif;
    --shadow: 0 2px 16px rgba(0,0,0,.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,.10);
    --radius: 10px;
    --radius-lg: 16px;
    --green: #2ECC71;
    --red: #E74C3C;
}

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

html { overflow-x: hidden; }

body {
    font-family: var(--fb);
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 20px;
}

.step { display: none; min-height: 100dvh; overflow-x: hidden; max-width: 100%; }
.step.active { display: block; }

/* ══════ NAV ══════ */
.vk-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,253,248,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.vk-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.vk-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.vk-nav-wa {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 500;
    color: #25D366;
    text-decoration: none;
    padding: 8px 14px;
    min-height: 44px;
    border: 1px solid #25D366;
    border-radius: 20px;
    transition: background .2s;
}
.vk-nav-wa:active { background: rgba(37,211,102,.08); }

/* ══════ HERO ══════ */
#step-landing { overflow: hidden; width: 100%; max-width: 100vw; }

.vk-hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.vk-hero-content {
    text-align: center;
    max-width: 560px;
    width: 100%;
    overflow: hidden;
}

.vk-hero-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(245,197,24,.1);
    border: 1px solid rgba(245,197,24,.3);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.vk-hero h1 {
    font-family: var(--fd);
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text);
}

.vk-hero-accent {
    color: var(--accent);
    display: inline-block;
}

.vk-hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Trust Row */
.vk-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.vk-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--text);
}

.vk-trust-item svg { color: var(--green); flex-shrink: 0; }

/* CTA */
.vk-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--black);
    border: none;
    border-radius: var(--radius);
    font-family: var(--fb);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    width: 100%;
    max-width: 360px;
}
.vk-cta:active { transform: scale(.97); background: var(--accent-hover); }

.vk-cta-sub {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Before/After Visual */
.vk-hero-visual { width: 100%; max-width: min(400px, calc(100vw - 48px)); }

.vk-before-after {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.vk-ba-item { text-align: center; flex: 1 1 0; min-width: 0; max-width: 140px; }

.vk-ba-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.vk-ba-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vk-ba-before { background: #f0ebe0; border: 2px dashed var(--border); }
.vk-ba-after { background: #fff; border: 2px solid var(--accent); box-shadow: var(--shadow); }

.vk-ba-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    line-height: 0;
}

.vk-ba-item span { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.vk-ba-arrow { font-size: 1.5rem; color: var(--accent); font-weight: 700; display: flex; align-items: center; flex-shrink: 0; }

/* ══════ HOW IT WORKS ══════ */
.vk-steps-section {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 20px;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.vk-section-title {
    font-family: var(--fd);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
}

.vk-how-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vk-how-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.vk-how-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--black);
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vk-how-text { min-width: 0; overflow-wrap: break-word; }
.vk-how-text strong { display: block; margin-bottom: 4px; font-size: .9rem; }
.vk-how-text span { font-size: .85rem; color: var(--text-muted); line-height: 1.4; }

/* ══════ FORMATS PREVIEW ══════ */
.vk-formats-preview {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.vk-format-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.vk-format-chip {
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

/* ══════ GUARANTEE ══════ */
.vk-guarantee {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(46,204,113,.04);
    border: 1px solid rgba(46,204,113,.2);
    border-radius: var(--radius-lg);
    margin-left: 20px;
    margin-right: 20px;
}

.vk-guarantee-icon { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.vk-guarantee-text strong { display: block; margin-bottom: 4px; font-size: .9rem; }
.vk-guarantee-text p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }

/* ══════ BOTTOM CTA ══════ */
.vk-bottom-cta {
    text-align: center;
    padding: 48px 20px;
}

.vk-price-hint {
    margin-top: 12px;
    font-size: .85rem;
    color: var(--text-muted);
}
.vk-price-hint strong { color: var(--text); }

/* ══════ FOOTER ══════ */
.vk-footer {
    text-align: center;
    padding: 24px 20px;
    border-top: 1px solid var(--border);
    font-size: .82rem;
    color: var(--text-muted);
}
.vk-footer a { color: var(--text-muted); text-decoration: none; }
.vk-footer a:hover { color: var(--accent); }
.vk-footer span { margin: 0 8px; }

/* ══════ STEP HEADER (progress bar) ══════ */
.vk-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,253,248,.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.vk-back {
    background: none;
    border: none;
    font-family: var(--fb);
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.vk-progress {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.vk-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width .3s ease;
}

.vk-step-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ══════ FORMAT GRID ══════ */
h2 {
    font-family: var(--fd);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: .9rem;
}

.format-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.format-card {
    position: relative;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .1s;
    background: var(--surface);
}

.format-card:active { transform: scale(.97); }

.format-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,197,24,.2);
}

.format-card .format-name {
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: 4px;
}

.format-card .format-size {
    font-size: .78rem;
    color: var(--text-muted);
}

.format-card .format-price {
    font-size: .75rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 6px;
}

.format-bg-badge {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    position: absolute;
    top: 8px;
    right: 8px;
}

/* ══════ QUANTITY ══════ */
.quantity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.quantity-row .format-label { font-weight: 600; font-size: .92rem; }

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quantity-controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s;
}

.quantity-controls button:active { border-color: var(--accent); background: rgba(245,197,24,.08); }

.quantity-controls .qty-value {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 32px;
    text-align: center;
}

.quantity-row .qty-price {
    font-size: .85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ══════ DELIVERY ══════ */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.delivery-card {
    display: block;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: border-color .2s;
    background: var(--surface);
}

.delivery-card:has(input:checked) {
    border-color: var(--accent);
    background: rgba(245,197,24,.03);
}

.delivery-card input { display: none; }

.delivery-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.delivery-icon { font-size: 1.4rem; flex-shrink: 0; }
.delivery-info { flex: 1; }
.delivery-title { display: block; font-weight: 600; font-size: .9rem; }
.delivery-desc { display: block; font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.delivery-price { font-size: .85rem; color: var(--accent); font-weight: 700; white-space: nowrap; }

.delivery-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.delivery-fields input,
.customer-info input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--fb);
    font-size: 1rem;
    background: var(--surface);
    transition: border-color .2s;
}

.delivery-fields input:focus,
.customer-info input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,197,24,.1);
}

/* ══════ CAMERA ══════ */
.camera-container { padding-top: 8px; }

.vk-camera-tip {
    text-align: center;
    font-size: .88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.camera-wrapper {
    position: relative;
    width: 100%;
    max-width: min(400px, calc(100vw - 40px));
    margin: 0 auto 16px;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
}

.camera-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.face-guide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.face-oval {
    width: 55%;
    height: 65%;
    border: 3px dashed rgba(255,255,255,0.4);
    border-radius: 50%;
    transition: border-color .3s, border-style .3s;
}

.face-oval.detected {
    border-color: var(--green);
    border-style: solid;
}

.face-status {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: .85rem;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.camera-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 16px;
}

.btn-capture {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    background: var(--surface);
    cursor: pointer;
    transition: transform .1s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capture-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .15;
    transition: opacity .2s;
}

.btn-capture:not(:disabled):active { transform: scale(.9); }
.btn-capture:not(:disabled):active .capture-ring { opacity: 1; }
.btn-capture:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s;
}
.btn-icon:active { border-color: var(--accent); }

.camera-controls-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-voice-toggle {
    font-size: 1.1rem;
}

/* Voice Tip Banner */
.voice-tip-banner {
    background: rgba(26,26,26,.85);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 500;
    margin: 0 auto 12px;
    max-width: 320px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.voice-tip-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Preview — same position as camera */
.preview-container { text-align: center; }
.preview-wrapper {
    width: 100%;
    max-width: min(400px, calc(100vw - 40px));
    margin: 0 auto 16px;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }

/* ══════ OVERLAY GRID ══════ */
.overlay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.overlay-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, transform .1s;
    background: var(--surface);
}

.overlay-card:active { transform: scale(.97); }
.overlay-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,197,24,.2); }

.overlay-preview {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 6px;
    background: #f9f6f0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.overlay-name { font-weight: 600; font-size: .85rem; margin-bottom: 2px; }
.overlay-meta { font-size: .78rem; color: var(--text-muted); }

/* ══════ ORDER SUMMARY ══════ */
.order-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}
.summary-row:last-child { border-bottom: none; }

.total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--black);
    color: #fff;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.total-bar strong { font-size: 1.4rem; color: var(--accent); }

.vk-form-title {
    font-size: .95rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--text);
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.customer-info-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: .85rem;
}
.customer-info-summary .summary-row { padding: 4px 0; }

.btn-pay-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vk-pay-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    font-size: .8rem;
    color: var(--text-muted);
}

.iyzico-form { margin-top: 16px; overflow: hidden; max-width: 100%; }
.iyzico-form iframe { max-width: 100% !important; }

/* ══════ RESULT ══════ */
.result-container { text-align: center; padding-top: 40px; }
.result-icon { margin-bottom: 20px; }
.result-order-num { margin-top: 12px; color: var(--text-muted); font-size: .9rem; }
.result-info {
    margin-top: 20px;
    padding: 16px;
    background: rgba(245,197,24,.06);
    border: 1px solid rgba(245,197,24,.2);
    border-radius: var(--radius);
    font-size: .85rem;
    color: var(--text-muted);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════ BUTTONS ══════ */
.btn-primary {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--black);
    border: none;
    border-radius: var(--radius);
    font-family: var(--fb);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-bottom: 8px;
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary:not(:disabled):active { transform: scale(.97); background: var(--accent-hover); }

.btn-secondary {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--fb);
    font-size: .9rem;
    cursor: pointer;
    margin-bottom: 8px;
    text-align: center;
    text-decoration: none;
    transition: border-color .15s;
}
.btn-secondary:active { border-color: var(--accent); }

.btn-link {
    display: block;
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 12px;
    font-size: .85rem;
}

/* ══════ RESPONSIVE ══════ */
@media (min-width: 768px) {
    .container { max-width: 560px; padding: 40px 24px; }
    .format-grid { grid-template-columns: 1fr 1fr 1fr; }
    .vk-hero { padding: 64px 32px 48px; flex-direction: row; text-align: left; }
    .vk-hero-content { text-align: left; }
    .vk-trust-row { justify-content: flex-start; }
    .vk-cta { width: auto; }
    .vk-hero-visual { max-width: 400px; }
    .vk-ba-item { max-width: 160px; }
    .vk-before-after { gap: 20px; }
    .vk-steps-section { padding: 64px 32px; }
    .vk-guarantee { margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
    .vk-before-after { gap: 6px; }
    .vk-ba-arrow svg { width: 20px; height: 20px; }
    .vk-hero { padding: 32px 16px 24px; gap: 28px; }
    .container { padding: 20px 16px; }
    .result-container { padding-top: 32px; }
    .delivery-card-inner { gap: 8px; }
    .delivery-info { min-width: 0; }
    .delivery-title { font-size: .9rem; }
    .delivery-desc { font-size: .8rem; }
    .delivery-price { font-size: .82rem; white-space: nowrap; }
}

@media (max-width: 380px) {
    .vk-hero h1 { font-size: 1.7rem; }
    .vk-trust-row { gap: 10px; }
    .vk-trust-item { font-size: .75rem; }
    .format-grid { gap: 8px; }
    .format-card { padding: 14px 10px; }
    .container { padding: 16px 12px; }
    .vk-nav { padding: 12px 12px; }
    .camera-controls { gap: 20px; }
    .quantity-row { padding: 12px; }
}
