/* =========================================
   Action Matrix — Shared Styles
   3-day experience · July Life Coach
   ========================================= */

:root {
    --bg-deep: #07090d;
    --bg: #0a0c10;
    --bg-card: #12151c;
    --bg-surface: #161a23;
    --bg-elevated: #1a1f2b;
    --border: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --text: #E8E4DD;
    --text-secondary: #9A9590;
    --text-muted: #5A5550;
    --text-dim: #3d3a37;
    --accent: #C27C5A;
    --accent-glow: rgba(194, 124, 90, 0.12);
    --accent-hover: #d4906e;
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --content-width: 780px;
    --reading-width: 720px;
}

/* ─── Base ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* ─── Day Navigation Dots ─── */
.day-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 0 0;
}

.day-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-indent: -9999px;
    overflow: hidden;
}

.day-nav-dot:hover {
    background: var(--text-muted);
    transform: scale(1.2);
}

.day-nav-dot.active {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    width: 24px;
    border-radius: 4px;
}

.day-nav-dot.completed {
    background: var(--accent);
    opacity: 0.5;
}

.day-nav-sep {
    width: 20px;
    height: 1px;
    background: var(--border);
}

/* ─── Progress Indicator ─── */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.progress-bar span {
    color: var(--accent);
}

/* ─── Article Container ─── */
.am-article {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem clamp(1.25rem, 5vw, 2.5rem) 4rem;
}

/* ─── Article Header ─── */
.am-header {
    text-align: center;
    padding: 2.5rem 0 3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.am-day-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.am-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 1rem;
}

.am-title em {
    font-style: italic;
    color: var(--accent);
}

.am-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Content Sections ─── */
.am-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out both;
}

.am-section:nth-child(2) { animation-delay: 0.1s; }
.am-section:nth-child(3) { animation-delay: 0.15s; }
.am-section:nth-child(4) { animation-delay: 0.2s; }
.am-section:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.am-section h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.35;
}

.am-section h3 {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.am-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.25rem;
    max-width: var(--reading-width);
}

.am-section p:last-child {
    margin-bottom: 0;
}

.am-section p strong {
    color: var(--text);
    font-weight: 600;
}

.am-section p em {
    color: var(--text);
    font-style: italic;
}

/* ─── Pull Quote ─── */
.am-pullquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 2rem 2rem 2rem 2.5rem;
    border-left: 2px solid var(--accent);
    background: linear-gradient(135deg, rgba(194, 124, 90, 0.04) 0%, transparent 60%);
    border-radius: 0 12px 12px 0;
}

.am-pullquote p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
    max-width: none;
    margin-bottom: 0;
}

.am-pullquote .am-pullquote-src {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-style: normal;
    color: var(--text-muted);
    margin-top: 0.75rem;
    display: block;
}

/* ─── Insight Cards ─── */
.am-insight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.am-insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.am-insight-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.am-insight-card .ic-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.am-insight-card .ic-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.am-insight-card .ic-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Contrast Block (good vs bad) ─── */
.am-contrast {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.am-contrast-side {
    padding: 1.5rem;
    background: var(--bg-card);
}

.am-contrast-side:first-child {
    border-right: 1px solid var(--border);
}

.am-contrast-side .cs-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

.am-contrast-side.easy .cs-label {
    color: #6fb88c;
}

.am-contrast-side.hard .cs-label {
    color: #D4726A;
}

.am-contrast-side .cs-example {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.am-contrast-side .cs-example strong {
    color: var(--text);
}

/* ─── Formula Block ─── */
.am-formula {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 2rem;
    margin: 2.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.am-formula::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.am-formula-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.am-formula-content {
    font-family: var(--font-serif);
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    color: var(--text);
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.am-formula-content .f-var {
    color: var(--accent);
    font-weight: 700;
}

.am-formula-content .f-op {
    color: var(--text-muted);
    margin: 0 0.15em;
}

/* ─── Section Divider ─── */
.am-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    color: var(--text-dim);
}

.am-divider::before,
.am-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.am-divider span {
    font-size: 0.9rem;
}

/* ─── Reflection Exercise ─── */
.am-reflection {
    margin: 3rem 0 2rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(194, 124, 90, 0.06) 0%, rgba(194, 124, 90, 0.02) 100%);
    border: 1px solid rgba(194, 124, 90, 0.15);
    border-radius: 16px;
    position: relative;
}

.am-reflection::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 1px;
}

.am-reflection-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.am-reflection-label .rl-icon {
    font-size: 0.85rem;
}

.am-reflection h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: normal;
}

.am-reflection p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: none;
}

.am-reflection p:last-of-type {
    margin-bottom: 0;
}

.am-reflection ol,
.am-reflection ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.am-reflection li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.am-reflection li strong {
    color: var(--text);
}

/* ─── Cross-link Card ─── */
.am-crosslink {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    margin: 1.5rem 0;
}

.am-crosslink:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--bg-elevated);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--text);
}

.am-crosslink .cl-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.am-crosslink .cl-info {
    flex: 1;
}

.am-crosslink .cl-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.am-crosslink .cl-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    max-width: none;
}

.am-crosslink .cl-arrow {
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.am-crosslink:hover .cl-arrow {
    transform: translateX(3px);
}

/* ─── Continue Button ─── */
.am-continue {
    text-align: center;
    padding: 2rem 0 1rem;
}

.am-continue-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.am-continue-btn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(194, 124, 90, 0.3);
}

.am-continue-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ─── Stat Block ─── */
.am-stat {
    text-align: center;
    padding: 2rem 1rem;
    margin: 2rem 0;
}

.am-stat-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.am-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── Numbered List (steps) ─── */
.am-steps {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    counter-reset: step-counter;
}

.am-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.am-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-steps li strong {
    color: var(--text);
}

/* ─── Landing Page Specific ─── */
.am-landing {
    max-width: 560px;
    margin: 0 auto;
    padding: 4rem clamp(1.25rem, 5vw, 2.5rem) 3rem;
    text-align: center;
}

.am-landing-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.am-landing-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.am-landing-title em {
    color: var(--accent);
    font-style: italic;
}

.am-landing-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.am-landing-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 6px 18px;
    border-radius: 100px;
    margin-bottom: 2.5rem;
}

.am-landing-cta {
    display: inline-block;
    padding: 18px 44px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.am-landing-cta:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(194, 124, 90, 0.3);
}

/* ─── Landing Day Preview Cards ─── */
.am-day-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2.5rem 0 3rem;
    text-align: left;
}

.am-day-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.am-day-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--bg-elevated);
    transform: translateX(4px);
    color: var(--text);
}

.am-day-card .dc-num {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-day-card .dc-info {
    flex: 1;
}

.am-day-card .dc-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.am-day-card .dc-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    max-width: none;
}

.am-day-card .dc-arrow {
    font-size: 0.85rem;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: all 0.2s;
}

.am-day-card:hover .dc-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* ─── Landing Promise Strip ─── */
.am-promise {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.am-promise-item {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.am-promise-item .pi-check {
    color: var(--accent);
    font-size: 0.72rem;
}

/* ─── Metaphor Block ─── */
.am-metaphor {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.am-metaphor::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(194, 124, 90, 0.03), transparent);
    pointer-events: none;
}

.am-metaphor-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.am-metaphor h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.am-metaphor p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .am-insight-grid {
        grid-template-columns: 1fr;
    }

    .am-contrast {
        grid-template-columns: 1fr;
    }

    .am-contrast-side:first-child {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .am-pullquote {
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
        margin: 2rem -0.5rem;
    }

    .am-reflection {
        padding: 2rem 1.5rem;
        margin: 2.5rem -0.25rem;
    }

    .am-formula {
        padding: 1.5rem;
    }

    .am-formula-content {
        font-size: 0.85rem;
    }

    .am-landing {
        padding: 2.5rem 1.25rem 2rem;
    }

    .am-promise {
        gap: 1rem;
    }

    .am-header {
        padding: 1.5rem 0 2rem;
        margin-bottom: 2rem;
    }

    .am-crosslink {
        margin: 1.5rem -0.25rem;
    }
}
