/* Base styles shared between mobile and desktop */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand palette anchored to the logo (deep muted royal-purple) and the
       spot-color-noir art (Basil's hoodie orange) — replaces the generic
       Tailwind-default indigo/violet/pink "AI" palette. */
    --primary-color: #564da9;   /* logo purple */
    --secondary-color: #6e63c6; /* lighter logo purple for highlights/hovers */
    --accent-color: #e85b0f;    /* spot-color-noir orange (replaces pink) */
    --dark-bg: #0f0f1a;
    --light-text: #e5e7eb;
    --heading-text: #f9fafb;
    --card-bg: rgba(255, 255, 255, 0.05);
    --gradient-1: linear-gradient(135deg, #6e63c6 0%, #3b3a73 100%);
    --gradient-2: linear-gradient(135deg, #e85b0f 0%, #b45322 100%);

    /* Per-character signature colors, sampled from each character's
       spot-color-noir art. The character showcase uses --char-accent, which
       script.js sets to one of these when you switch characters. */
    --accent-basil: #e85b0f;      /* orange hoodie */
    --accent-dimitri: #4c86c6;    /* blue dragon shirt */
    --accent-kat: #d63a38;        /* red sweater */
    --accent-mari: #e88bae;       /* pink skirt & ribbon */
    --accent-weimin: #8a9a5b;     /* olive military jacket */
    --accent-mason: #6b7f9e;      /* navy business suit */
    --accent-elizaveta: #a7c5d1;  /* icy pale blue */
    --accent-siuseng: #6fa06b;    /* olive engineer shirt */
    --accent-simeon: #c79a5e;     /* camel trench coat */
    --accent-herman: #b9b4c4;     /* silver-lavender */
    --accent-john: #9f8ad4;       /* lavender-violet hair */
    --accent-qiao: #2fa0a0;       /* teal dragon dress */
    --accent-sprite: #57b06e;     /* green hair */
    --accent-six: #3faa61;        /* Six app green */
    --accent-host: #d3262d;       /* red hair & tie */
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--heading-text);
    line-height: 1.2;
}

/* Link styles with gradient */
a {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Image defaults */
img {
    max-width: 100%;
    height: auto;
}

/* Animations that work on both mobile and desktop */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes jitter {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px) translateY(1px); }
    50% { transform: translateX(2px) translateY(-1px); }
    75% { transform: translateX(-1px) translateY(1px); }
    100% { transform: translateX(0); }
}

/* Form elements base styles */
input[type="email"],
input[type="text"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
/* ------------------------------------------------------------------ */
/* Six App Store Card — in-world advertisement for SixCorp's "Six"     */
/* Shared across mobile and desktop; sizes/padding live in the         */
/* breakpoint sheets. Accent is --accent-six (the app icon green).     */
/* ------------------------------------------------------------------ */
.six-section {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(63, 170, 97, 0.08) 0%, transparent 65%);
}

.six-store-card {
    position: relative;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(63, 170, 97, 0.28);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55),
                0 0 60px rgba(63, 170, 97, 0.10),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--heading-text);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.six-store-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.six-ad-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(229, 231, 235, 0.55);
    border: 1px solid rgba(229, 231, 235, 0.25);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    line-height: 1.4;
}

/* Header: icon + title + GET */
.six-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.six-icon {
    flex-shrink: 0;
    border-radius: 22%;
    box-shadow: 0 10px 30px rgba(63, 170, 97, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.08);
    background: #0f0f1a;
}

.six-title-block {
    flex: 1;
    min-width: 0;
}

.six-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--heading-text);
    margin: 0;
    line-height: 1.15;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.six-hanzi {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 700;
    color: var(--accent-six);
    letter-spacing: 0.06em;
}

.six-subtitle {
    color: var(--light-text);
    opacity: 0.8;
    margin: 0.2rem 0 0.35rem;
}

.six-rating-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.85rem;
}

.six-stars {
    color: #f0b840;
    letter-spacing: 0.05em;
    font-size: 0.9em;
    white-space: nowrap;
}

/* 4.96 of 5: the last star is 96% filled */
.six-stars-partial {
    background: linear-gradient(90deg, #f0b840 0%, #f0b840 96%, rgba(240, 184, 64, 0.3) 96%, rgba(240, 184, 64, 0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.six-star-empty {
    color: rgba(240, 184, 64, 0.35);
}

.six-rating-number {
    font-weight: 600;
    color: var(--heading-text);
}

.six-rating-count {
    color: var(--light-text);
    opacity: 0.6;
}

/* GET / Install buttons */
.six-get-btn,
.six-install-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4cbf70 0%, #2f8f4d 100%);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    opacity: 1;
}

.six-get-btn:hover,
.six-install-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(63, 170, 97, 0.35);
}

.six-get-btn {
    flex-shrink: 0;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    padding: 0.5rem 1.25rem;
    align-self: center;
}

.six-install-btn {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.85rem 2rem 0.8rem;
    box-shadow: 0 10px 30px rgba(63, 170, 97, 0.25);
    line-height: 1.2;
}

.six-install-main {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.six-install-main sup {
    font-size: 0.6em;
    opacity: 0.8;
    margin-left: 0.15em;
    letter-spacing: 0;
}

.six-install-sub {
    font-family: 'EB Garamond', 'Noto Serif SC', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    opacity: 0.9;
}

/* Stats strip (store-style detail tiles) */
.six-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.six-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    padding: 0.85rem 0.5rem;
}

.six-stat + .six-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.six-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--light-text);
    opacity: 0.55;
}

.six-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--light-text);
    opacity: 0.85;
    line-height: 1.2;
}

.six-stat-value-text {
    font-size: 1rem;
}

.six-stat-sub {
    font-size: 0.7rem;
    color: var(--light-text);
    opacity: 0.55;
}

/* Pitch, features, pricing */
.six-pitch {
    font-family: 'EB Garamond', 'Noto Serif SC', serif;
    font-style: italic;
    color: var(--heading-text);
    line-height: 1.5;
    margin: 0;
}

.six-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.six-features li {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-six);
    background: rgba(63, 170, 97, 0.10);
    border: 1px solid rgba(63, 170, 97, 0.30);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    white-space: nowrap;
}

.six-pricing {
    margin: -0.6rem 0 -0.4rem;
    font-size: 0.85rem;
    text-align: center;
    color: var(--light-text);
    opacity: 0.7;
}

.six-price-free {
    font-weight: 700;
    color: var(--heading-text);
}

/* Reviews */
.six-reviews-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.six-reviews-head h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading-text);
    margin: 0;
}

.six-see-all {
    font-size: 0.85rem;
    color: var(--accent-six);
    opacity: 0.85;
}

.six-rating-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
}

.six-rating-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.six-rating-big-number {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--heading-text);
}

.six-rating-big-sub {
    font-size: 0.75rem;
    color: var(--light-text);
    opacity: 0.6;
    margin-top: 0.25rem;
}

.six-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.six-bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.six-bar span {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: 4px;
    background: rgba(229, 231, 235, 0.75);
}

.six-rating-total {
    font-size: 0.8rem;
    color: var(--light-text);
    opacity: 0.6;
    white-space: nowrap;
    align-self: end;
}

.six-reviews {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.six-review {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
}

.six-review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

.six-review-author {
    color: var(--light-text);
    opacity: 0.6;
}

.six-review-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--light-text);
}

/* The one-star review: dimmed, a little colder. No theatrics. */
.six-review-low {
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.04);
}

.six-review-low .six-review-text {
    opacity: 0.72;
    color: #cfd2d9;
}

.six-review-low .six-review-author {
    font-style: italic;
}

.six-dev-response {
    margin: 0.75rem 0 0;
    padding: 0.6rem 0 0 0.9rem;
    border-left: 2px solid rgba(63, 170, 97, 0.55);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--light-text);
    opacity: 0.8;
}

.six-dev-response-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-six);
    margin-bottom: 0.15rem;
}

/* Fine print */
.six-fineprint {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.5;
    color: var(--light-text);
    opacity: 0.5;
    text-align: center;
}

.six-fineprint sup {
    font-size: 0.85em;
    margin-right: 0.15em;
}

/* ------------------------------------------------------------------ */
/* Redacted text in the SixCorp Subject files: a solid white bar.      */
/* ------------------------------------------------------------------ */
.redacted {
    display: inline-block;
    height: 0.78em;
    vertical-align: -0.06em;
    background: var(--char-accent, var(--accent-color));
    border-radius: 2px;
    white-space: nowrap;
}

/* App icon above the mailing-list signup */
.signup-icon {
    display: block;
    margin: 0 auto;
    border-radius: 22%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
                0 0 28px rgba(110, 99, 198, 0.45),
                0 18px 40px rgba(0, 0, 0, 0.5);
}

/* Character strip controls: arrows either side, a quiet counter beneath */
.character-navigation-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-navigation-row .character-navigation-wrapper {
    flex: 0 1 auto;
    min-width: 0;
}

.char-nav-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--light-text);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.char-nav-arrow svg {
    width: 45%;
    height: 45%;
}

.char-nav-arrow:hover,
.char-nav-arrow:focus-visible {
    opacity: 1;
    color: var(--char-accent, var(--accent-color));
    border-color: var(--char-accent, var(--accent-color));
    background: color-mix(in srgb, var(--char-accent, var(--accent-color)) 12%, transparent);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--char-accent, var(--accent-color)) 25%, transparent);
    transform: translateY(-2px);
    outline: none;
}

.char-nav-arrow:active {
    transform: translateY(0);
}

.char-nav-counter {
    margin: 0.9rem 0 0;
    text-align: center;
    font-family: 'EB Garamond', 'Noto Serif SC', serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: var(--light-text);
    opacity: 0.55;
    font-variant-numeric: tabular-nums;
}

.char-nav-counter #char-nav-index {
    color: var(--char-accent, var(--accent-color));
    font-weight: 500;
}

.char-nav-counter-sep {
    margin: 0 0.4em;
    opacity: 0.6;
}
