/* voice/styles.css - shared styles for the VoiceOverAndOver micro-site.
   Palette pulled from the actual app screenshots: deep navy background,
   violet primary, green secondary, with cyan/amber/red highlights drawn
   from the rainbow waveform. */

:root {
    --bg:         #0a0d1a;
    --bg-soft:    #11152a;
    --panel:      #171c34;
    --panel-2:    #1f2541;
    --panel-3:    #232a4a;
    --border:     #2b3358;
    --border-hi:  #3a4475;

    --text:       #e9ecf7;
    --text-dim:   #c5cbe3;
    --muted:      #8b94b5;

    --violet:     #7c5cf5;
    --violet-soft:#9b82ff;
    --violet-deep:#5a3fd0;
    --violet-glow:rgba(124, 92, 245, 0.35);

    --cyan:       #5ee3ff;
    --teal:       #38bdf8;
    --green:      #4ade80;
    --green-deep: #16a34a;
    --amber:      #fbbf24;
    --orange:     #fb923c;
    --red:        #ef4444;
}

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

html, body {
    background:
        radial-gradient(1100px 600px at 10% -10%, rgba(124, 92, 245, 0.18), transparent 60%),
        radial-gradient(900px 500px at 110% 20%, rgba(94, 227, 255, 0.10), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--violet-soft); text-decoration: none; }
a:hover { color: var(--cyan); }

img { max-width: 100%; display: block; }

.page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 28px 80px;
}

/* ===== Branded header (icon + wordmark upper-left) ===== */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex: 0 0 56px;
    box-shadow: 0 4px 18px rgba(124, 92, 245, 0.35);
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand-name .voice { color: var(--cyan); }
.brand-name .over  { color: var(--violet-soft); }

.nav {
    display: flex;
    gap: 22px;
    font-size: 0.95rem;
}

.nav a {
    color: var(--muted);
    font-weight: 500;
}

.nav a.active,
.nav a:hover { color: var(--cyan); }

/* ===== Buttons ===== */

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
    color: #ffffff;
    border-color: var(--violet-soft);
    box-shadow: 0 8px 20px rgba(124, 92, 245, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(124, 92, 245, 0.5);
    color: #ffffff;
    background: linear-gradient(135deg, var(--violet-soft) 0%, var(--violet) 100%);
}

.btn-ghost {
    background: transparent;
    color: var(--cyan);
    border-color: var(--border-hi);
}

.btn-ghost:hover {
    background: var(--panel);
    color: var(--cyan);
    border-color: var(--cyan);
}

.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* ===== Hero (index.html) ===== */

.hero {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 70px;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.8px;
}

.hero h1 .accent      { color: var(--violet-soft); }
.hero h1 .accent-warm { color: var(--cyan); }

.hero-lede {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.hero-body p {
    color: var(--muted);
    margin-bottom: 12px;
}

.hero-image {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    aspect-ratio: 1019 / 927;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(124, 92, 245, 0.25) inset,
        0 30px 60px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(124, 92, 245, 0.18);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.hero-image.placeholder::after {
    content: attr(data-placeholder);
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
    padding: 20px;
}

/* ===== Section blocks ===== */

.section { margin-bottom: 60px; }

.section h2 {
    font-size: 1.9rem;
    margin-bottom: 18px;
    letter-spacing: -0.4px;
}

.section h2 .accent-red   { color: var(--cyan); }
.section h2 .accent-amber { color: var(--violet-soft); }
.section h2 .accent-violet{ color: var(--violet-soft); }
.section h2 .accent-cyan  { color: var(--cyan); }
.section h2 .accent-green { color: var(--green); }

.section-lede {
    color: var(--text-dim);
    max-width: 760px;
    margin-bottom: 26px;
    font-size: 1.05rem;
}

/* ===== 3-up value-prop cards (index.html) ===== */

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.value-card {
    background: linear-gradient(160deg, var(--panel-2) 0%, var(--panel) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.value-card:hover {
    transform: translateY(-2px);
    border-color: var(--violet-soft);
    box-shadow: 0 14px 30px rgba(124, 92, 245, 0.18);
}

.value-card h3 {
    color: var(--cyan);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.value-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ===== Step blocks (benefits.html walkthrough) ===== */

.step-block {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 36px;
    align-items: center;
    background: linear-gradient(160deg, var(--panel-2) 0%, var(--panel) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 26px;
    position: relative;
    overflow: hidden;
}

.step-block::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--violet) 0%, var(--cyan) 100%);
}

.step-block.flip { grid-template-columns: 1.15fr 0.85fr; }
.step-block.flip .step-text { order: 2; }
.step-block.flip .step-image { order: 1; }

.step-number {
    display: inline-block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--violet-soft);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.step-text h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.step-text p {
    color: var(--text-dim);
    margin-bottom: 12px;
}

.step-text p strong { color: var(--cyan); }

.step-image {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1019 / 927;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-image.placeholder::after {
    content: attr(data-placeholder);
    color: var(--muted);
    font-size: 0.85rem;
    padding: 12px;
    text-align: center;
}

/* ===== Problem/Solution blocks (used for the deeper "why" list) ===== */

.ps-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 22px;
}

.ps-text h3 {
    font-size: 1.2rem;
    color: var(--cyan);
    margin-bottom: 10px;
}

.ps-text .ps-problem {
    color: var(--muted);
    margin-bottom: 14px;
    font-style: italic;
}

.ps-text .ps-solution {
    color: var(--text-dim);
}

.ps-text .ps-solution strong { color: var(--violet-soft); }

/* ===== Register page ===== */

.register-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.reassure {
    background: linear-gradient(160deg, var(--panel-2) 0%, var(--panel) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px;
}

.reassure h2 {
    margin-bottom: 14px;
    color: var(--text);
}

.reassure p {
    color: var(--text-dim);
    margin-bottom: 14px;
}

.reassure p strong { color: var(--cyan); }

.reassure .reason-list {
    list-style: none;
    margin-top: 18px;
}

.reassure .reason-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    color: var(--text-dim);
}

.reassure .reason-list li::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 0 4px rgba(124, 92, 245, 0.18);
}

.buy-card {
    background: linear-gradient(160deg, var(--panel-2) 0%, var(--panel) 100%);
    border: 1px solid var(--violet);
    box-shadow:
        0 0 0 1px var(--violet) inset,
        0 18px 40px rgba(124, 92, 245, 0.35);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
}

.buy-card h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text);
}

.buy-card .buy-tier { color: var(--cyan); font-weight: 600; }

.buy-card .buy-price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text);
    margin: 14px 0 4px;
}

.buy-card .buy-period {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.buy-card .buy-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.85rem;
}

#paypal-button-container { margin: 18px 0 6px; }

.processing,
.error-msg,
.download-block {
    margin-top: 18px;
    text-align: center;
}

.error-msg {
    background: #2a1530;
    color: #ffb4b4;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.processing { display: none; }

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--violet);
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.download-block {
    display: none;
    background: var(--panel);
    border: 1px solid var(--green);
    border-radius: 12px;
    padding: 22px;
    margin-top: 28px;
}

.download-block .ok { color: var(--green); font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; }
.download-block .code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 2.2rem;
    letter-spacing: 8px;
    color: var(--cyan);
    background: var(--bg-soft);
    padding: 16px 22px;
    border-radius: 8px;
    display: inline-block;
    margin: 12px 0;
}

.download-block .instructions {
    text-align: left;
    margin-top: 18px;
    background: var(--bg-soft);
    padding: 16px 20px;
    border-radius: 8px;
}

.download-block .instructions h4 { margin-bottom: 10px; color: var(--cyan); }
.download-block .instructions ol { padding-left: 20px; color: var(--text-dim); }
.download-block .instructions li { margin-bottom: 6px; }

/* ===== Download page ===== */

.download-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

.download-intro h1 {
    font-size: 2.4rem;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.download-intro p { color: var(--text-dim); margin-bottom: 10px; }

.platform-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    background: linear-gradient(160deg, var(--panel-2) 0%, var(--panel) 100%);
    border: 1px solid var(--violet);
    box-shadow:
        0 0 0 1px var(--violet) inset,
        0 16px 36px rgba(124, 92, 245, 0.3);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}

.platform-btn:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow:
        0 0 0 1px var(--cyan) inset,
        0 20px 44px rgba(94, 227, 255, 0.28);
    color: var(--text);
}

.platform-btn .platform-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    background: var(--bg-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--violet-soft);
}

.platform-btn:hover .platform-icon { color: var(--cyan); }

.platform-btn .platform-icon svg { width: 32px; height: 32px; }

.platform-btn .platform-label {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.platform-btn .platform-label .lead {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.platform-btn .platform-label .sub {
    color: var(--muted);
    font-size: 0.88rem;
    margin-top: 4px;
}

.platform-btn .arrow {
    flex: 0 0 24px;
    color: var(--violet-soft);
    width: 24px;
    height: 24px;
}

.platform-btn:hover .arrow { color: var(--cyan); }

.download-footnote {
    text-align: center;
    max-width: 720px;
    margin: 36px auto 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.download-footnote strong { color: var(--cyan); }

@media (max-width: 700px) {
    .platform-row { grid-template-columns: 1fr; }
    .download-intro h1 { font-size: 1.8rem; }
}

/* ===== Lightbox (click a screenshot to view full-size) ===== */

.lightbox-trigger {
    cursor: zoom-in;
    transition: filter 0.15s ease;
}

.lightbox-trigger:hover {
    filter: brightness(1.06);
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 16, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    z-index: 9999;
    cursor: zoom-out;
    animation: lightbox-fade 0.15s ease;
}

@keyframes lightbox-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 10px;
    cursor: default;
    box-shadow:
        0 0 0 1px rgba(124, 92, 245, 0.4),
        0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    padding: 8px 16px;
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--border-hi);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: var(--panel-3);
    border-color: var(--cyan);
    color: var(--cyan);
    outline: none;
}

@media (max-width: 600px) {
    .lightbox-overlay { padding: 18px; }
    .lightbox-close { top: 10px; right: 12px; padding: 6px 12px; font-size: 0.85rem; }
}

/* ===== Footer ===== */

.site-footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cyan); }

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 32px; }
    .hero-image { max-width: 560px; margin: 0 auto; }
    .register-grid { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: 1fr; }
    .step-block,
    .step-block.flip { grid-template-columns: 1fr; }
    .step-block.flip .step-text { order: initial; }
    .step-block.flip .step-image { order: initial; }
    .ps-block { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .section h2 { font-size: 1.5rem; }
    .site-header { flex-direction: column; align-items: flex-start; }
    .brand-name { font-size: 1.5rem; }
    .brand-icon { width: 48px; height: 48px; flex-basis: 48px; }
    .step-block { padding: 22px; }
}
