/**
 * /assets/css/ios-wijzer.css
 *
 * Styles voor de IOS-wijzer wizard SPA. Hergebruikt brand-tokens uit
 * de hoofdpagina's (petrol #08313a, aqua #4ea8a3, Bai Jamjuree).
 * Mobile-first; touch-targets ≥ 44px; toggles WCAG-leesbaar.
 */

#ios-wijzer-mount {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: 'Bai Jamjuree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Card base ---- */
.iosw-card {
    background: #fff;
    border: 1px solid #d0dede;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(8,49,58,0.06);
    margin-bottom: 24px;
}

.iosw-intro h2,
.iosw-intermediate h2,
.iosw-lead h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: #08313a;
    margin: 0 0 12px;
    line-height: 1.25;
}

.iosw-intro-body,
.iosw-intermediate p,
.iosw-lead-body {
    color: #4a5e63;
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 24px;
}

/* ---- Progress bar ---- */
.iosw-progress-wrap { margin-bottom: 28px; }
.iosw-progress-meta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4ea8a3;
    margin-bottom: 8px;
}
.iosw-progress-bar {
    width: 100%;
    height: 6px;
    background: #eef0f1;
    border-radius: 3px;
    overflow: hidden;
}
.iosw-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ea8a3, #5cc4be);
    transition: width .3s ease;
}

/* ---- Question ---- */
.iosw-q-text {
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 700;
    color: #08313a;
    line-height: 1.3;
    margin: 0 0 8px;
}
.iosw-q-tooltip {
    font-size: 14px;
    color: #4a5e63;
    line-height: 1.55;
    background: #f0f5f5;
    border-left: 3px solid #4ea8a3;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    margin: 12px 0 0;
}

/* ---- Options ---- */
.iosw-options {
    display: flex;
    gap: 12px;
    margin: 24px 0 8px;
    flex-wrap: wrap;
}
.iosw-option-btn {
    flex: 1;
    min-width: 130px;
    min-height: 56px;
    padding: 14px 22px;
    border: 1.5px solid #d0dede;
    background: #fff;
    color: #08313a;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
    text-align: center;
}
.iosw-option-btn:hover {
    border-color: #4ea8a3;
    background: #dff0ef;
    transform: translateY(-1px);
}
.iosw-option-btn.selected {
    border-color: #4ea8a3;
    background: #4ea8a3;
    color: #08313a;
}
.iosw-option-wide {
    flex-basis: 100%;
    text-align: left;
    padding: 16px 22px;
    font-weight: 500;
    line-height: 1.4;
}

/* ---- Nav row ---- */
.iosw-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eef0f1;
}

/* ---- Buttons ---- */
.iosw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    min-height: 44px;
    transition: all .15s;
}
.iosw-btn-primary {
    background: #4ea8a3;
    color: #08313a;
}
.iosw-btn-primary:hover {
    background: #0e4a54;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(78,168,163,0.28);
}
.iosw-btn-ghost {
    background: transparent;
    color: #08313a;
    border: 1.5px solid #d0dede;
}
.iosw-btn-ghost:hover {
    border-color: #4ea8a3;
    background: #f0f5f5;
}
.iosw-btn-block { width: 100%; }
.iosw-btn-sm { padding: 8px 16px; font-size: 14px; min-height: 38px; }
.iosw-link-btn {
    background: none;
    border: none;
    color: #4ea8a3;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-decoration: underline;
    padding: 6px 10px;
}
.iosw-link-btn:hover { color: #08313a; }

/* ---- Lead form ---- */
.iosw-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}
.iosw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.iosw-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4a5e63;
}
.iosw-field input {
    font: inherit;
    padding: 12px 14px;
    border: 1.5px solid #d0dede;
    border-radius: 8px;
    font-size: 16px;
    color: #08313a;
    min-height: 44px;
    background: #fff;
}
.iosw-field input:focus {
    outline: none;
    border-color: #4ea8a3;
    box-shadow: 0 0 0 3px rgba(78,168,163,0.15);
}
.iosw-field-hint {
    font-size: 12px;
    color: #6b7e84;
    margin-top: -8px;
}
.iosw-form-error {
    font-size: 14px;
    color: #cc1c17;
    min-height: 18px;
    padding: 8px 0;
}
.iosw-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ---- Result ---- */
.iosw-result {
    padding: 12px 0 24px;
}
.iosw-result-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: #08313a;
    margin: 0 0 24px;
    line-height: 1.3;
}

.iosw-tech-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.iosw-tech-card {
    background: #fff;
    border: 1px solid #d0dede;
    border-radius: 12px;
    padding: 24px 22px;
    position: relative;
}
.iosw-tech-rank {
    position: absolute;
    top: -10px;
    left: 22px;
    background: #4ea8a3;
    color: #08313a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 100px;
}
.iosw-tech-name {
    font-size: 20px;
    font-weight: 700;
    color: #08313a;
    margin: 8px 0 10px;
    line-height: 1.25;
}
.iosw-tech-summary {
    font-size: 15px;
    color: #4a5e63;
    line-height: 1.65;
    margin-bottom: 16px;
}
.iosw-tech-h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4ea8a3;
    margin: 16px 0 6px;
}
.iosw-tech-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}
.iosw-tech-bullets li {
    font-size: 14px;
    color: #4a5e63;
    line-height: 1.55;
    padding-left: 20px;
    position: relative;
    margin-bottom: 4px;
}
.iosw-tech-bullets.pos li::before {
    content: '+';
    position: absolute;
    left: 4px;
    color: #4ea8a3;
    font-weight: 700;
}
.iosw-tech-bullets.neg li::before {
    content: '−';
    position: absolute;
    left: 4px;
    color: #cc1c17;
    font-weight: 700;
}
.iosw-tech-bullets:not(.pos):not(.neg) li::before {
    content: '·';
    position: absolute;
    left: 8px;
    color: #4ea8a3;
    font-weight: 700;
}

/* Video embed */
.iosw-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    margin: 14px 0 6px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.iosw-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.iosw-video-cap {
    font-size: 12px;
    color: #6b7e84;
    margin: 0 0 12px;
    text-align: center;
}

.iosw-more {
    margin-top: 10px;
    border-top: 1px solid #eef0f1;
    padding-top: 12px;
}
.iosw-more summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #4ea8a3;
    list-style: none;
    padding: 6px 0;
}
.iosw-more summary::-webkit-details-marker { display: none; }
.iosw-more summary::after {
    content: ' ↓';
    transition: transform .15s;
    display: inline-block;
}
.iosw-more[open] summary::after { transform: rotate(180deg); }
.iosw-more-body p {
    font-size: 14px;
    color: #4a5e63;
    line-height: 1.65;
    margin: 10px 0;
}

/* Bridge to Instant Instructions */
.iosw-bridge {
    background: linear-gradient(135deg, #08313a 0%, #0d4351 100%);
    color: #fff;
    border-radius: 14px;
    padding: 28px 26px;
    margin: 0 0 32px;
}
.iosw-bridge-eye {
    display: inline-block;
    background: rgba(92,196,190,0.15);
    color: #5cc4be;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.iosw-bridge-body {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin-bottom: 22px;
}
.iosw-bridge-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.iosw-bridge .iosw-btn-ghost {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
}
.iosw-bridge .iosw-btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(92,196,190,0.5);
}

/* Readiness section */
.iosw-readiness {
    margin-bottom: 32px;
}
.iosw-readiness.all-ready {
    background: #dff0ef;
    border-radius: 12px;
    padding: 28px 26px;
    border: 1px solid #4ea8a3;
}
.iosw-ready-badge {
    display: inline-block;
    background: #4ea8a3;
    color: #08313a;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}
.iosw-ready-body {
    color: #0e4a54;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
}
.iosw-ready-title {
    font-size: 20px;
    font-weight: 700;
    color: #08313a;
    margin: 16px 0 6px;
}
.iosw-ready-sub {
    font-size: 14px;
    color: #4a5e63;
    line-height: 1.6;
    margin-bottom: 18px;
}
.iosw-blocker-card {
    background: #f7faf9;
    border: 1px solid #d0dede;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 12px;
}
.iosw-blocker-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #08313a;
    margin: 0 0 8px;
}
.iosw-blocker-card p {
    font-size: 14px;
    color: #4a5e63;
    line-height: 1.65;
    margin-bottom: 14px;
}
.iosw-partner-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eef0f1;
}
.iosw-partner-cta-text {
    font-size: 13px;
    color: #4ea8a3;
    font-weight: 600;
    margin: 0 0 4px !important;
}

/* Disclaimer + attribution */
.iosw-disclaimer {
    font-size: 12px;
    color: #6b7e84;
    line-height: 1.6;
    background: #f0f5f5;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 24px 0 12px;
    font-style: italic;
}
.iosw-attribution {
    font-size: 11px;
    color: #8aa4a5;
    line-height: 1.5;
    text-align: center;
    margin: 12px 0 24px;
}

.iosw-restart {
    text-align: center;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 600px) {
    .iosw-card { padding: 22px 18px; border-radius: 12px; }
    .iosw-options { flex-direction: column; }
    .iosw-option-btn { width: 100%; }
    .iosw-bridge-cta { flex-direction: column; }
    .iosw-bridge-cta .iosw-btn { width: 100%; }
    .iosw-tech-card { padding: 22px 18px; }
}
