/* TJT Case Study — Editorial Layout */

/* Base overrides for this page */
/* Base overrides for this page */
.cs-page { background: #fff; }

.cs-page img {
    max-width: 100%;
    height: auto;
}

/* Section rhythm */
.cs-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.cs-section-wide {
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.cs-section + .cs-section { padding-top: 2rem; }

.cs-divider {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}
.cs-divider hr {
    border: none;
    border-top: 1px solid #e5e5e5;
}

/* Typography */
.cs-page h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.cs-page h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.cs-page p {
    color: #444;
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.cs-page p:last-child { margin-bottom: 0; }

.cs-page a:not(.cs-btn):not(.cs-appstore-badge):not(.cs-back-to-top):not(.logo) {
    color: #333;
    text-decoration: underline;
    text-decoration-color: #ccc;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.cs-page a:not(.cs-btn):not(.cs-appstore-badge):not(.cs-back-to-top):not(.logo):hover {
    text-decoration-color: #333;
}

.cs-page ul {
    color: #444;
    line-height: 1.75;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.cs-page li { margin-bottom: 0.4rem; }

.cs-muted { color: #888; font-size: 0.95rem; }

/* Hero pill */
.cs-hero-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    background: #f0f0f0;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

/* Hero */
.cs-hero {
    padding: 1.5rem 2rem 3rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.cs-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: center;
}

.cs-hero-text { }

.cs-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.cs-hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cs-hero-desc {
    font-size: 1.08rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 3rem;
}

.cs-hero-ctas {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cs-appstore-badge img {
    height: 44px;
    display: block;
}

.cs-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cs-btn-primary {
    background: #1a1a1a;
    color: #fff;
}
.cs-btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

.cs-btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border: 1.5px solid #ddd;
}
.cs-btn-secondary:hover {
    border-color: #1a1a1a;
}

.cs-hero-phone {
    flex: 0 0 260px;
}
.cs-hero-phone img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* Thesis callout */
.cs-thesis {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.cs-thesis p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    text-align: center;
    font-weight: 500;
}

/* Callout block */
.cs-callout {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.cs-callout p {
    color: #333;
    font-size: 1.05rem;
}

/* Emphasis lines (standalone statements) */
.cs-emphasis {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.6;
}

.cs-callout {
    margin: 1.5rem 0 0.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid #333;
    background: #f9f9f9;
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.65;
    color: #333;
}

.cs-callout em {
    font-style: italic;
    color: #111;
}

/* Section with persona card sidebar */
.cs-section-with-persona {
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.cs-section-with-persona + .cs-section-with-persona { padding-top: 2rem; }

/* Alternate: card on the left */
.cs-section-with-persona.cs-persona-left {
    grid-template-columns: 300px 1fr;
}
.cs-section-with-persona.cs-persona-left .cs-avatar-card {
    order: -1;
}

.cs-section-text h2,
.cs-section-text p { /* inherit from .cs-page */ }

/* Avatar cards */
.cs-avatar-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.75rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 5rem;
}

.cs-avatar-quote {
    font-size: 1.05rem;
    font-style: italic;
    color: #333;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.cs-avatar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.cs-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.cs-avatar-card h3 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.cs-avatar-role {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 0;
}

.cs-avatar-card > p:last-child {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #555;
    margin-bottom: 0;
}

.cs-avatar-card p {
    font-size: 0.92rem;
    line-height: 1.65;
}

/* Persona footnote */
.cs-persona-footnote {
    max-width: 960px;
    margin: -2rem auto 0;
    padding: 0 2rem 1rem;
    font-size: 0.72rem;
    font-weight: 400;
    color: #bbb;
    font-style: italic;
}

/* How it works — steps */
.cs-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cs-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.cs-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 2px;
}

.cs-step p { margin-bottom: 0; font-size: 1rem; }

/* Screenshots grid */
.cs-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.cs-screenshot {
    text-align: center;
}

.cs-screenshot img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    margin-bottom: 0.5rem;
}

.cs-screenshot figcaption {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.4;
}

/* Principles list */
.cs-principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
    margin-top: 1rem;
}

.cs-principle {
    font-size: 1.02rem;
    color: #333;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

/* Decisions with explanations */
.cs-decisions-explained {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cs-decisions-vertical {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 1.5rem;
}

.cs-decisions-vertical .cs-decision {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cs-decisions-vertical .cs-decision h3 {
    margin-bottom: 0.5rem;
}

/* Icon + content row layout */
.cs-decisions-vertical .cs-decision:has(.cs-decision-icon),
.cs-decisions-explained .cs-decision:has(.cs-decision-icon) {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1.25rem;
    align-items: start;
}

.cs-decisions-vertical .cs-decision:has(.cs-decision-icon) .cs-decision-icon,
.cs-decisions-explained .cs-decision:has(.cs-decision-icon) .cs-decision-icon {
    grid-row: 1 / -1;
}

.cs-decisions-vertical .cs-decision:has(.cs-decision-icon) h3,
.cs-decisions-explained .cs-decision:has(.cs-decision-icon) h3 {
    grid-column: 2;
}

.cs-decisions-vertical .cs-decision:has(.cs-decision-icon) p,
.cs-decisions-explained .cs-decision:has(.cs-decision-icon) p {
    grid-column: 2;
}

.cs-decisions-vertical .cs-decision:first-child { padding-top: 0; }
.cs-decisions-vertical .cs-decision:last-child { border-bottom: none; }

.cs-decision-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.cs-decision-icon svg {
    width: 20px;
    height: 20px;
}

.cs-decision h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.cs-decision p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #666;
}

/* Collapsible tech list */
.cs-tech-list {
    margin-top: 1.5rem;
}

.cs-tech-item {
    border-bottom: 1px solid #f0f0f0;
}

.cs-tech-item summary {
    padding: 0.85rem 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    list-style: none;
}

.cs-tech-item summary::-webkit-details-marker { display: none; }

.cs-tech-item summary::after {
    content: "+";
    font-size: 1.1rem;
    color: #bbb;
    font-weight: 300;
    float: right;
    margin-left: 1rem;
    transition: transform 0.2s;
}

.cs-tech-item[open] summary::after {
    content: "\2212";
}

.cs-tech-item p {
    padding: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #777;
    margin: 0;
}

/* Animated roadmap timeline */
.cs-roadmap-timeline {
    margin-top: 2rem;
    position: relative;
    padding-left: 2rem;
}

.cs-roadmap-timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e5e5e5;
}

.cs-roadmap-phase {
    position: relative;
    padding-bottom: 2.5rem;
}

.cs-roadmap-phase:last-child { padding-bottom: 0; }

.cs-roadmap-dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    transform: translateX(-3px);
    z-index: 1;
}

.cs-roadmap-now .cs-roadmap-dot {
    background: #4a7c59;
    box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.15);
    animation: roadmap-pulse 2s ease-in-out infinite;
}

@keyframes roadmap-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(74, 124, 89, 0.08); }
}

.cs-roadmap-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cs-roadmap-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #4a7c59;
    background: rgba(74, 124, 89, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cs-roadmap-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
}

.cs-roadmap-items h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.cs-roadmap-items p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #777;
}

/* Philosophy + CTA */
.cs-philosophy {
    margin-bottom: 2.5rem;
}

.cs-philosophy p {
    font-size: 1.05rem;
    color: #555;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 0.35rem;
}

.cs-cta-section {
    text-align: center;
    padding: 5rem 2rem 4rem;
    max-width: 960px;
    margin: 0 auto;
}

.cs-closing-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.cs-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cs-stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1a1a1a;
    line-height: 1;
}

.cs-stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
    margin-top: 0.4rem;
    letter-spacing: 0.01em;
}

.cs-closing-statement {
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.cs-closing-statement p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #444;
    text-align: center;
    font-weight: 500;
}

.cs-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cs-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.cs-back-to-top:hover {
    color: #666;
}

/* Responsive — tablet + iPad */
@media (max-width: 1024px) {
    .cs-hero { padding: 6rem 1.5rem 3rem; }
    .cs-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; max-width: 100%; }
    .cs-hero-text { text-align: center; max-width: 100%; overflow-wrap: break-word; }
    .cs-hero-subtitle { font-size: 1.15rem; }
    .cs-hero-desc { max-width: 100%; font-size: 0.95rem; }
    .cs-hero-ctas { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
    .cs-hero-phone { flex: none; width: 200px; margin: 0 auto; }
    .cs-hero-title { font-size: 3rem; }

    .cs-section,
    .cs-section-wide,
    .cs-thesis { padding-left: 1.5rem; padding-right: 1.5rem; }

    .cs-section-with-persona,
    .cs-section-with-persona.cs-persona-left {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .cs-avatar-card { position: static; padding: 1.5rem; order: 0; }

    .cs-divider { padding: 0 1.5rem; }
    .cs-persona-footnote { padding-left: 1.5rem; padding-right: 1.5rem; }

    .cs-principles { grid-template-columns: 1fr; }
    .cs-decisions-explained { grid-template-columns: 1fr; }
    .cs-roadmap-items { grid-template-columns: 1fr; }

    .cs-screenshots { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    .cs-closing-stats { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    .cs-stat-number { font-size: 2.2rem; }

    .cs-cta-buttons { flex-direction: column; align-items: center; gap: 0.75rem; }
    .cs-appstore-badge img { height: 40px; }
}

/* Responsive — mobile */
@media (max-width: 480px) {
    .cs-hero { padding: 5rem 1.25rem 2.5rem; }
    .cs-hero-title { font-size: 2.5rem; }
    .cs-hero-subtitle { font-size: 1.1rem; }
    .cs-hero-desc { font-size: 0.95rem; }
    .cs-hero-phone { width: 180px; }

    .cs-section,
    .cs-section-wide,
    .cs-thesis { padding-left: 1.25rem; padding-right: 1.25rem; }

    .cs-section-with-persona,
    .cs-section-with-persona.cs-persona-left {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .cs-divider { padding: 0 1.25rem; }
    .cs-persona-footnote { padding-left: 1.25rem; padding-right: 1.25rem; }

    .cs-page h2 { font-size: 1.35rem; }
    .cs-page p { font-size: 0.95rem; }
    .cs-page ul { font-size: 0.95rem; }
    .cs-emphasis { font-size: 1rem; }

    .cs-callout { padding: 1rem 1.25rem; font-size: 0.95rem; }

    .cs-screenshots { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .cs-screenshot img { border-radius: 10px; }

    .cs-closing-stats { gap: 1rem; }
    .cs-stat-number { font-size: 1.8rem; }
    .cs-stat-label { font-size: 0.75rem; }

    .cs-closing-statement p { font-size: 1rem; }

    .cs-steps { gap: 1.25rem; }
    .cs-step p { font-size: 0.92rem; }

    .cs-tech-item summary { font-size: 0.88rem; }
    .cs-tech-item p { font-size: 0.85rem; }

    .cs-roadmap-timeline { padding-left: 1.5rem; }
    .cs-roadmap-items { gap: 0.5rem 1rem; }

    .cs-btn { padding: 0.65rem 1.25rem; font-size: 0.9rem; }

    .cs-cta-section { padding: 3rem 1.25rem 3rem; }
}
