/* ═══════════════════════════════════════════════════════════
   Scary Voice Generator — attribute page styles
   /en/scary-voice-generator/

   Depends on: tts_sg_landing.css (sg-section, sg-howto, sg-faq, sg-final-cta)
   Page-specific prefix: sc-  (scary)
   ═══════════════════════════════════════════════════════════ */

/* ── Base ── */
.redesignv1 .containerv2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* sr-only */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.sr-only--focusable:focus {
    position: fixed;
    top: 8px; left: 8px;
    z-index: 100000;
    width: auto; height: auto;
    padding: 10px 18px; margin: 0;
    overflow: visible; clip: auto;
    white-space: normal;
    background: #0f172a;
    color: #f8fafc;
    font: 600 14px/1.4 'Inter', system-ui, sans-serif;
    border-radius: 6px;
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════
   §1 — LEAD
   ═══════════════════════════════════════════════════════════ */

.sc-lead {
    padding: 80px 0 60px;
    text-align: center;
}
.sc-lead__h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 24px;
    line-height: 1.15;
}
.sc-lead__body {
    max-width: 720px;
    margin: 0 auto 32px;
}
.sc-lead__body p {
    font-size: 17px;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px;
}
.sc-lead__body p:last-child {
    margin-bottom: 0;
}
.sc-lead__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #0f172a;
    color: #f8fafc;
    font: 600 15px/1 'Inter', system-ui, sans-serif;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}
.sc-lead__cta:hover {
    background: #1e293b;
}


/* ═══════════════════════════════════════════════════════════
   §2 — PITCH PLAYGROUND
   Dark bg, 3-column cards with vertical images
   ═══════════════════════════════════════════════════════════ */

.sc-pitch {
    background: #0a0e1a;
    padding: 80px 0;
}
.sc-pitch .sg-section-title {
    color: #f1f5f9;
}
.sc-pitch .sg-section-desc {
    color: #94a3b8;
}
.sc-pitch__advice {
    max-width: 720px;
    margin: 40px auto 0;
    font-size: 15px;
    line-height: 1.7;
    color: #94a3b8;
    text-align: center;
}
.sc-pitch__advice a {
    color: #60a5fa;
}
.sc-pitch__advice code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: #e2e8f0;
}

/* (pitch sets removed — single set only) */
/* Phrase intro */
.sc-pitch__phrase-intro {
    text-align: center;
    font-size: 15px;
    color: #94a3b8;
    margin: -8px 0 24px;
}
.sc-pitch__phrase-intro strong {
    color: #e2e8f0;
    font-weight: 700;
}
.sc-pitch__phrase-intro em {
    color: #64748b;
}

/* 3-column card grid */
.sc-pitch__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Individual pitch card */
.sc-pitch__card {
    position: relative;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    text-align: left;
    padding: 0;
    font-family: inherit;
    color: inherit;
}
.sc-pitch__card:hover {
    border-color: #334155;
    transform: translateY(-2px);
}
.sc-pitch__card.is-playing {
    border-color: #3b82f6;
}

/* Card image */
.sc-pitch__card-img-wrap {
    position: relative;
    aspect-ratio: 9 / 12;
    overflow: hidden;
}
.sc-pitch__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.3s;
}
.sc-pitch__card:hover .sc-pitch__card-img {
    filter: brightness(0.95);
}

/* Play circle overlay */
.sc-pitch__play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5); 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}
.sc-pitch__card:hover .sc-pitch__play-circle {
    background: rgba(0, 0, 0, 0.65);
    transform: translate(-50%, -50%) scale(1.06);
}
.sc-pitch__play-circle .pc-pause { display: none; }
.sc-pitch__card.is-playing .sc-pitch__play-circle .pc-play { display: none; }
.sc-pitch__card.is-playing .sc-pitch__play-circle .pc-pause { display: block; }

/* Progress ring */
.sc-pitch__play-circle .progress-ring {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}
.sc-pitch__play-circle .progress-ring .bg {
    fill: none;
    stroke: rgba(255,255,255,0.15);
    stroke-width: 2;
}
.sc-pitch__play-circle .progress-ring .progress {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.25s linear;
}

/* Card meta */
.sc-pitch__card-meta {
    padding: 12px 16px 4px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.sc-pitch__card-label {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}
.sc-pitch__card-pitch {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.05em;
}
.sc-pitch__card-tip {
    display: block;
    padding: 4px 16px 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Deep card accent */
.sc-pitch__card--deep .sc-pitch__card-label {
    color: #f87171;
}
/* Funny card accent */
.sc-pitch__card--funny .sc-pitch__card-label {
    color: #a3e635;
}

/* Try-in-editor icon link (bottom right of pitch card) */
.sc-pitch__try {
    position: absolute;
    bottom: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}
.sc-pitch__try:hover {
    background: rgba(255,255,255,0.18);
    color: #e2e8f0;
}


/* ═══════════════════════════════════════════════════════════
   §3 — VOICE STYLES
   Reuse sg-acard pattern from landing
   ═══════════════════════════════════════════════════════════ */

.sc-styles {
    padding: 80px 0;
}
.sc-styles__phrase-label {
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    margin: -8px 0 24px;
}
.sc-styles__phrase-label em {
    color: #64748b;
}

.sc-styles__grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px !important;
}

/* Style card */
.sc-styles__card {
    padding: 20px 16px !important;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.sc-styles__card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}
.sc-styles__card.is-playing {
    border-color: #3b82f6;
}

.sc-styles__style-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: block;
}
.sc-styles__desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}
.sc-styles__use {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #94a3b8;
    text-transform: uppercase;
}
.sc-styles__pitch-rec {
    font-size: 12px;
    color: #64748b;
    margin-top: auto;
}
.sc-styles__pitch-rec code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 3px;
    color: #334155;
}


/* ═══════════════════════════════════════════════════════════
   §4 — USE CASES
   3×2 card grid
   ═══════════════════════════════════════════════════════════ */

.sc-usecases {
    background: #f8fafc;
    padding: 80px 0;
}
.sc-usecases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.sc-usecases__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px 24px;
}
.sc-usecases__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    margin-bottom: 16px;
}
.sc-usecases__title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}
.sc-usecases__text {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════
   §5 — HOW TO (reuse sg-howto from landing)
   ═══════════════════════════════════════════════════════════ */

.sc-howto {
    padding: 80px 0;
}
.sc-howto a {
    color: #2563eb;
    text-decoration: none;
}
.sc-howto a:hover {
    text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════
   §6 — TIPS
   Single-column list
   ═══════════════════════════════════════════════════════════ */

.sc-tips {
    background: #ffffff;
    padding: 80px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.sc-tips__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.sc-tips__item {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 24px;
}
.sc-tips__item--wide {
    grid-column: 1 / -1;
}
.sc-tips__heading {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}
.sc-tips__item p {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}
.sc-tips__item code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: #e2e8f0;
    padding: 2px 5px;
    border-radius: 3px;
    color: #334155;
}

/* Tips audio demos (uses exm-player-btn + sg-acard__play) */
.sc-tips__audio-grid {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.sc-tips__demo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px !important;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.sc-tips__demo:hover {
    border-color: #93c5fd;
}
.sc-tips__demo--wide {
    width: 100%;
    justify-content: center;
}
.sc-tips__demo-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.03em;
}
.sc-tips__try-link {
    margin-top: 12px;
    font-size: 14px;
    color: #64748b;
}
.sc-tips__try-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.sc-tips__try-link a:hover {
    text-decoration: underline;
}
.sc-tips__try-link code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: #e2e8f0;
    padding: 1px 5px;
    border-radius: 3px;
    color: #334155;
}


/* ═══════════════════════════════════════════════════════════
   §7 — SCRIPTS
   Copy-paste cards
   ═══════════════════════════════════════════════════════════ */

.sc-scripts {
    padding: 80px 0;
}
.sc-scripts .sg-section-desc a {
    color: #2563eb;
}
.sc-scripts__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.sc-scripts__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    position: relative;
}
.sc-scripts__card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}
.sc-scripts__card-rec {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}
.sc-scripts__text {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    font-style: italic;
}
.sc-scripts__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sc-scripts__copy {
    font: 600 12px/1 'JetBrains Mono', monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.sc-scripts__copy:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.sc-scripts__copy.copied {
    background: #0f172a;
    color: #f8fafc;
    border-color: #0f172a;
}
/* Play button in script cards (uses exm-player-btn) */
.sc-scripts__play {
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}


/* ═══════════════════════════════════════════════════════════
   §8 — FAQ (extends sg-faq from landing)
   ═══════════════════════════════════════════════════════════ */

.sc-faq a {
    color: #2563eb;
}


/* ═══════════════════════════════════════════════════════════
   §9 — FINAL CTA (reuse sg-final-cta from landing)
   ═══════════════════════════════════════════════════════════ */

.sc-final-cta {
    /* inherits from sg-final-cta in landing CSS */
}


/* ═══════════════════════════════════════════════════════════
   §10 — RELATED LINKS
   ═══════════════════════════════════════════════════════════ */

.sc-related {
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
}
.sc-related .sg-section-title {
    font-size: 18px;
    margin-bottom: 16px;
}
.sc-related__links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.sc-related__link {
    font: 500 14px/1 'Inter', system-ui, sans-serif;
    color: #2563eb;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: background 0.15s, border-color 0.15s;
}
.sc-related__link:hover {
    background: #f8fafc;
    border-color: #93c5fd;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .sc-styles__grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .sc-pitch__cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .sc-usecases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sc-lead {
        padding: 60px 0 40px;
    }
    .sc-lead__h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    .sc-lead__body p {
        font-size: 16px;
    }

    .sc-pitch {
        padding: 60px 0;
    }
    .sc-pitch__cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .sc-pitch__card-img-wrap {
        aspect-ratio: 9 / 12;
    }
    .sc-pitch__play-circle {
        width: 44px;
        height: 44px;
    }
    .sc-pitch__play-circle svg.pc-play,
    .sc-pitch__play-circle svg.pc-pause {
        width: 18px;
        height: 18px;
    }

    .sc-styles__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .sc-usecases__grid {
        grid-template-columns: 1fr;
    }

    .sc-tips__grid {
        grid-template-columns: 1fr;
    }

    .sc-scripts__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sc-pitch__cards {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
    .sc-pitch__set-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sc-styles__grid {
        grid-template-columns: 1fr !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .sc-pitch__card,
    .sc-pitch__play-circle,
    .sc-pitch__card-img,
    .sc-styles__card,
    .sc-scripts__copy,
    .sc-lead__cta,
    .sc-related__link {
        transition-duration: 0.01ms !important;
    }
}
