/* ============================================
   StrangerCam Widgets — Shared Base
   Design tokens + layout/typography/button/FAQ
   primitives used across all widgets.
   (Extracted verbatim from brand-page.css so
   rendering is pixel-identical.)
   ============================================ */

:root {
    /* Brand */
    --scw-yellow: #FFC800;
    --scw-yellow-soft: #FFD740;
    --scw-yellow-light: #FFFBEB;
    --scw-yellow-hover: #F0BD00;
    --scw-yellow-glow: rgba(255, 200, 0, 0.15);

    /* Neutrals — refined scale */
    --scw-black: #0F0F0F;
    --scw-dark: #1A1A1A;
    --scw-gray-900: #262626;
    --scw-gray-700: #525252;
    --scw-gray-500: #8A8A8A;
    --scw-gray-400: #A3A3A3;
    --scw-gray-300: #D4D4D4;
    --scw-gray-200: #E5E5E5;
    --scw-gray-100: #F5F5F5;
    --scw-gray-50: #FAFAFA;
    --scw-white: #FFFFFF;

    /* Semantic */
    --scw-green: #16A34A;
    --scw-green-light: #F0FDF4;
    --scw-red: #DC2626;
    --scw-red-light: #FEF2F2;
    --scw-blue: #2563EB;

    /* Layout — UNIFIED width system
       One content width for everything. */
    --scw-content-width: 960px;

    /* Spacing scale */
    --scw-section-gap: 80px;

    /* Radius */
    --scw-radius-xs: 6px;
    --scw-radius-sm: 8px;
    --scw-radius: 12px;
    --scw-radius-lg: 16px;
    --scw-radius-xl: 20px;

    /* Shadows — layered for depth */
    --scw-shadow-xs: 0 1px 2px rgba(0,0,0,.03);
    --scw-shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.02);
    --scw-shadow-md: 0 4px 16px rgba(0,0,0,.05), 0 1px 4px rgba(0,0,0,.03);
    --scw-shadow-lg: 0 12px 40px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.03);
    --scw-shadow-yellow: 0 4px 24px rgba(255, 200, 0, 0.2);

    /* Type */
    --scw-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --scw-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --scw-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --scw-duration: 0.2s;
}

/* ── Layout primitives ── */

/* UNIFIED container — every section uses this exact same width */
.scw-container {
    max-width: var(--scw-content-width);
    margin: 0 auto;
    padding: 0 32px;
}

.scw-section {
    padding: var(--scw-section-gap) 0;
}

.scw-section--alt {
    background: var(--scw-gray-50);
    border-top: 1px solid var(--scw-gray-100);
    border-bottom: 1px solid var(--scw-gray-100);
}

/* Unified section separator for non-alt sections */
.scw-section + .scw-section:not(.scw-section--alt):not(.scw-cta-banner) {
    border-top: 1px solid var(--scw-gray-200);
}

/* ── Typography — unified heading system ── */

.scw-heading {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
    color: var(--scw-black);
}

.scw-heading-group {
    margin-bottom: 44px;
}

.scw-heading-group .scw-heading {
    margin-bottom: 10px;
}

.scw-section-subtitle {
    font-size: 16px;
    color: var(--scw-gray-500);
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

/* Centered heading variant */
.scw-heading-group--center {
    text-align: center;
}

.scw-heading-group--center .scw-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Yellow accent line under heading */
.scw-heading--accent::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--scw-yellow);
    border-radius: 2px;
    margin-top: 16px;
}

.scw-heading-group--center .scw-heading--accent::after {
    margin-left: auto;
    margin-right: auto;
}

/* ── Buttons ── */

.scw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: var(--scw-font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--scw-duration) var(--scw-ease);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

a.scw-btn--primary,
.scw-btn--primary {
    background: var(--scw-yellow);
    color: var(--scw-black) !important;
    box-shadow: var(--scw-shadow-yellow);
}

a.scw-btn--primary:hover,
.scw-btn--primary:hover {
    background: var(--scw-yellow-hover);
    color: var(--scw-black) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(255, 200, 0, 0.3);
}

a.scw-btn--dark,
.scw-btn--dark {
    background: var(--scw-black);
    color: #fff !important;
    box-shadow: var(--scw-shadow-md);
}

a.scw-btn--dark:hover,
.scw-btn--dark:hover {
    background: var(--scw-gray-900);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--scw-shadow-lg);
}

a.scw-btn--outline,
.scw-btn--outline {
    background: transparent;
    color: var(--scw-black) !important;
    border: 1.5px solid var(--scw-gray-200);
}

a.scw-btn--outline:hover,
.scw-btn--outline:hover {
    border-color: var(--scw-yellow);
    background: var(--scw-yellow-light);
    color: var(--scw-black) !important;
}

/* ============================================
   FAQ — shared accordion styles
   ============================================ */

.scw-faq-list {
    /* Inherits container width — no extra constraint */
}

.scw-faq-item {
    border: 1px solid var(--scw-gray-200);
    border-radius: var(--scw-radius);
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--scw-white);
    transition: all var(--scw-duration) var(--scw-ease);
}

.scw-faq-item:hover {
    border-color: var(--scw-gray-300);
    color: var(--scw-black);
}

.scw-faq-item.is-open {
    border-color: var(--scw-yellow);
    box-shadow: 0 2px 8px rgba(255, 200, 0, 0.06);
}

.scw-faq-item__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 22px;
    font-family: var(--scw-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--scw-black);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.45;
    gap: 16px;
    transition: background var(--scw-duration) var(--scw-ease);
}

.scw-faq-item__q:hover {
    background: var(--scw-gray-50);
    color: var(--scw-black);
}

.scw-faq-item.is-open .scw-faq-item__q {
    background: var(--scw-yellow-light);
}

.scw-faq-item__arrow {
    font-size: 12px;
    color: var(--scw-gray-400);
    transition: all 0.25s var(--scw-ease);
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--scw-gray-100);
}

.scw-faq-item.is-open .scw-faq-item__arrow {
    transform: rotate(90deg);
    background: var(--scw-yellow);
    color: var(--scw-black);
}

.scw-faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--scw-ease);
}

.scw-faq-item.is-open .scw-faq-item__a {
    max-height: 600px;
}

.scw-faq-item__a > div {
    padding: 0 22px 22px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--scw-gray-700);
}

.scw-faq-item__a p {
    margin: 0;
}

/* ============================================
   RESPONSIVE — shared primitives only
   ============================================ */

@media (max-width: 1023px) {
    :root {
        --scw-section-gap: 68px;
    }
}

@media (max-width: 767px) {
    :root {
        --scw-section-gap: 52px;
    }
    .scw-heading { font-size: 24px; }
    .scw-btn { padding: 12px 28px; font-size: 13px; }
    .scw-container { padding: 0 20px; }
    .scw-section-subtitle { font-size: 15px; }
    .scw-heading-group { margin-bottom: 36px; }
}

@media (max-width: 480px) {
    .scw-container { padding: 0 16px; }
}

/* ── Accessibility: respect reduced-motion preference ── */

@media (prefers-reduced-motion: reduce) {
    [class*="scw-"],
    [class*="scw-"]::before,
    [class*="scw-"]::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ── Elementor Editor Overrides ── */

.elementor-editor-active .scw-faq-item__a {
    max-height: none !important;
}
