/* ===== Base ===== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #0b0e16;
    color: #e6e6e6;
    text-align: center;
}

/* ===== Homepage ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 40px;
}

.site-logo {
    width: 120px;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(255,255,255,0.12);
    margin-bottom: 22px;
}

.site-title {
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0 0 10px;
    font-size: 2.4rem;
}

.site-tagline {
    font-size: 1.05rem;
    color: #7a7fa0;
    margin: 0 0 52px;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: left;
}

@media (max-width: 820px) {
    .cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #121722;
    border: 1px solid #1e2535;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-img {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 0 24px rgba(255,255,255,0.07);
    align-self: center;
}

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: #ffffff;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #9098b4;
    margin: 0 0 24px;
    flex: 1;
    text-align: center;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.card-img-screenshot {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    object-position: top;
    align-self: unset;
}

.coming-soon-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #4c6cff;
    background: #0f1830;
    border: 1px solid #2e3f99;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

/* ===== Buttons ===== */
.button {
    display: inline-block;
    padding: 12px 22px;
    background: #4c6cff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.93rem;
    font-weight: 600;
    transition: background 0.25s;
    white-space: nowrap;
}

.button:hover {
    background: #3b53d6;
}

.button-outline {
    display: inline-block;
    padding: 11px 22px;
    background: transparent;
    color: #4c6cff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.93rem;
    font-weight: 600;
    border: 1.5px solid #2e3f99;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    white-space: nowrap;
}

.button-outline:hover {
    background: #4c6cff;
    color: white;
    border-color: #4c6cff;
}

/* ===== Footer ===== */
footer {
    margin-top: 60px;
    opacity: 0.45;
    font-size: 0.88rem;
    padding-bottom: 40px;
}

/* ===== Instructions Page — Header ===== */
.page-header {
    background: #0d1120;
    border-bottom: 1px solid #1a2030;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #e6e6e6;
}

.header-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo-name {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.back-link {
    font-size: 0.88rem;
    color: #4c6cff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* ===== Instructions Page — Content ===== */
.instructions-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 52px 40px 90px;
    text-align: left;
}

.instructions-hero {
    text-align: center;
    margin-bottom: 48px;
}

.coach-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    box-shadow: 0 0 36px rgba(76,108,255,0.28);
    margin-bottom: 22px;
}

.instructions-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #ffffff;
    line-height: 1.3;
}

.book-author {
    font-size: 0.95rem;
    color: #5a6080;
    margin: 0 0 28px;
}

.book-subtitle {
    font-size: 0.95rem;
    color: #5a6080;
    margin: 0 0 28px;
}

.book-cover-wrap {
    text-align: center;
    margin: 36px 0 48px;
}

.book-cover-wrap img {
    max-width: 200px;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.7);
}

/* ===== Sections ===== */
.section {
    margin-bottom: 44px;
}

.section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a2030;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.section h3 {
    font-size: 0.97rem;
    font-weight: 600;
    color: #c0c5dc;
    margin: 22px 0 8px;
}

.section p {
    font-size: 0.96rem;
    line-height: 1.8;
    color: #9098b4;
    margin: 0 0 14px;
}

.section ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.section ul li {
    font-size: 0.96rem;
    line-height: 1.8;
    color: #9098b4;
    margin-bottom: 6px;
}

.section ul li strong {
    color: #c8cce0;
}

/* ===== State Groups ===== */
.state-group {
    background: #0f1420;
    border: 1px solid #1a2030;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.state-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.regulated .state-label { color: #4db380; }
.dysregulated .state-label { color: #d96060; }

.state-group ul {
    margin: 0;
    padding-left: 18px;
}

.state-group ul li {
    font-size: 0.92rem;
    color: #8890a8;
    line-height: 1.7;
    margin-bottom: 4px;
}

/* ===== Tip Box ===== */
.tip-box {
    background: #0f1830;
    border-left: 3px solid #4c6cff;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 18px 0;
}

.tip-box p {
    margin: 0;
    font-size: 0.94rem;
    color: #b0b8d0;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 2px solid #1a2030;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 22px;
    font-size: 0.93rem;
    font-weight: 600;
    color: #5a6080;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    font-family: 'Inter', Arial, sans-serif;
}

.tab-btn:hover {
    color: #c0c5dc;
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: #4c6cff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ===== Step Blocks ===== */
.step-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #1a2540;
    border: 1px solid #2e3f99;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4c6cff;
    margin-top: 2px;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 0.97rem;
    font-weight: 600;
    color: #c0c5dc;
    margin: 0 0 8px;
}

.step-content ul {
    margin: 0;
    padding-left: 18px;
}

.step-content ul li {
    font-size: 0.96rem;
    line-height: 1.8;
    color: #9098b4;
    margin-bottom: 4px;
}

/* ===== Two-column contrast block ===== */
.two-col-contrast {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

@media (max-width: 520px) {
    .two-col-contrast {
        grid-template-columns: 1fr;
    }
}

.contrast-block {
    background: #0f1420;
    border: 1px solid #1a2030;
    border-radius: 10px;
    padding: 16px 20px;
}

.contrast-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.avoids .contrast-label { color: #d96060; }
.focuses .contrast-label { color: #4db380; }

.contrast-block ul {
    margin: 0;
    padding-left: 18px;
}

.contrast-block ul li {
    font-size: 0.92rem;
    color: #8890a8;
    line-height: 1.7;
    margin-bottom: 4px;
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    padding: 40px 24px;
    margin-top: 16px;
    background: #121722;
    border: 1px solid #1e2535;
    border-radius: 14px;
}

.cta-section p {
    color: #9098b4;
    font-size: 0.96rem;
    margin: 0 0 22px;
    text-align: center;
}

.cta-section .button {
    font-size: 1rem;
    padding: 14px 32px;
}

/* ===== App Preview Page ===== */
.preview-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 90px;
}

.preview-hero {
    text-align: center;
    padding: 60px 0 70px;
    border-bottom: 1px solid #1a2030;
    margin-bottom: 60px;
}

.preview-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #4c6cff;
    background: #0f1830;
    border: 1px solid #2e3f99;
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 28px;
}

.preview-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 18px;
}

.preview-tagline {
    font-size: 1.2rem;
    color: #7a7fa0;
    line-height: 1.6;
    margin: 0 0 36px;
}

@media (max-width: 600px) {
    .preview-hero h1 { font-size: 1.7rem; }
}

.preview-section {
    margin-bottom: 56px;
}

.preview-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #9098b4;
    margin: 0 0 14px;
}

.preview-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #4c6cff;
    margin-bottom: 24px;
}

.preview-intro p {
    font-size: 1.1rem;
}

.preview-callout {
    font-size: 1.05rem !important;
    color: #c0c5dc !important;
    font-weight: 600;
    border-left: 3px solid #4c6cff;
    padding-left: 16px;
    margin-top: 24px !important;
}

/* Highlight grid */
.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .highlight-grid { grid-template-columns: 1fr; }
}

.highlight-card {
    background: #121722;
    border: 1px solid #1e2535;
    border-radius: 12px;
    padding: 22px;
}

.highlight-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.highlight-sub {
    font-size: 0.82rem;
    color: #4c6cff;
    margin: 0 0 12px;
    min-height: 1em;
}

.highlight-card p:last-child {
    font-size: 0.93rem;
    line-height: 1.7;
    color: #7a7fa0;
    margin: 0;
}

/* Screenshot grid */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .screenshot-grid { grid-template-columns: 1fr 1fr; }
}

.screenshot-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1e2535;
    background: #121722;
    transition: border-color 0.2s, transform 0.2s;
}

.screenshot-item:hover {
    border-color: #4c6cff;
    transform: translateY(-2px);
}

.screenshot-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.screenshot-item p {
    font-size: 0.8rem;
    font-weight: 600;
    color: #7a7fa0;
    text-align: center;
    padding: 8px;
    margin: 0;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 720px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
    .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
    background: #0f1420;
    border: 1px solid #1a2030;
    border-radius: 10px;
    padding: 16px;
}

.feature-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #c0c5dc;
    margin: 0 0 8px;
}

.feature-card p:last-child {
    font-size: 0.83rem;
    line-height: 1.6;
    color: #5a6080;
    margin: 0;
}

/* Preview list */
.preview-list {
    margin: 0 0 16px;
    padding-left: 20px;
}

.preview-list li {
    font-size: 1rem;
    line-height: 1.8;
    color: #9098b4;
    margin-bottom: 4px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
}

.lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}
