/* ============================================================
   Home page (index.html) — Simple Subs.
   Alternating story blocks (right > left > right):
       Introduction  ->  Selling point (film script)  ->  User guide
   + centred module shortcuts at the foot of the page.
   Relies on main.css for the rail, tokens and load animation.
   Token fallbacks are inlined so this file also previews alone.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

/* match the shared shell width so content aligns under the top bar */
.container.about {
    max-width: 1040px;
}

.page-intro {
    margin-bottom: 14px;
}
.page-intro .kicker {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--graphite, #6F6961);
}

/* ------------------------------------------------------------
   Alternating story blocks
   ------------------------------------------------------------ */
.story-block {
    max-width: 640px;
    margin-bottom: 64px;
}
.story-block.align-right {
    margin-left: auto;       /* pushed to the right edge  */
    text-align: left;
}
.story-block.align-left {
    margin-right: auto;      /* pulled to the left edge   */
    text-align: left;
}

.eyebrow {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--graphite, #6F6961);
    margin-bottom: 14px;
}
.eyebrow .num {
    color: var(--ink, #131313);
}

.story-title {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.12;
    margin-bottom: 18px;
}
.story-title::after { content: '.'; color: var(--accent); }

.story-block p {
    color: var(--ink-soft, #2B2B2B);
    line-height: 1.75;
    margin-bottom: 16px;
}
.story-block p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   Film-script block — torn sheet of ruled paper, Courier set
   ------------------------------------------------------------ */
.script-paper {
    --rule: 28px;                       /* line-height for the Courier set */
    position: relative;
    background-color: #FBF8F1;          /* blank torn page, no ruling */
    padding: 46px 44px 34px;
    /* jagged, hand-torn top edge (generated, deterministic) */
    clip-path: polygon(0% 100%, 0% 26px, 0.00% 3px, 3.57% 22px, 7.14% 4px, 10.71% 20px, 14.29% 1px, 17.86% 21px, 21.43% 3px, 25.00% 20px, 28.57% 5px, 32.14% 23px, 35.71% 1px, 39.29% 21px, 42.86% 4px, 46.43% 26px, 50.00% 1px, 53.57% 23px, 57.14% 1px, 60.71% 26px, 64.29% 1px, 67.86% 21px, 71.43% 2px, 75.00% 20px, 78.57% 5px, 82.14% 26px, 85.71% 1px, 89.29% 23px, 92.86% 1px, 96.43% 22px, 100.00% 3px, 100% 26px, 100% 100%);
    /* shadow follows the torn silhouette */
    filter: drop-shadow(0 8px 16px rgba(19, 19, 19, 0.14));
}

.script {
    font-family: 'Courier Prime', 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: var(--rule, 28px);
    color: #1c1c1c;
}
.script .scene {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: var(--rule, 28px);
}
.script .action {
    margin-bottom: var(--rule, 28px);
}
.script .character {
    text-transform: uppercase;
    margin-left: 38%;
}
.script .paren {
    margin-left: 28%;
    color: #4a4a4a;
}
.script .dialogue {
    margin-left: 20%;
    margin-right: 14%;
    margin-bottom: var(--rule, 28px);
}
.script .transition {
    text-transform: uppercase;
    text-align: right;
    font-weight: 700;
    margin-top: var(--rule, 28px);
}
.script .last { margin-bottom: 0; }

/* ------------------------------------------------------------
   User-guide steps
   ------------------------------------------------------------ */
.guide-step {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--hairline, #E6DED2);
}
.guide-step:first-of-type { border-top: none; }
.guide-step .step-no {
    flex: 0 0 auto;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink, #131313);
    width: 28px;
}
.guide-step .step-body h4 {
    font-family: 'Jost', sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.guide-step .step-body p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.65;
}
.guide-step .step-body ul {
    margin: 10px 0 0;
    padding-left: 20px;
}
.guide-step .step-body li {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 6px;
}
.guide-step .step-body li:last-child { margin-bottom: 0; }
.guide-note {
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--paper-raised, #FFFDF8);
    border: 1px solid var(--hairline, #E6DED2);
    border-left: 3px solid var(--ink, #131313);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--graphite, #6F6961);
    line-height: 1.6;
}

/* ------------------------------------------------------------
   Module shortcuts — centred on the x-axis
   ------------------------------------------------------------ */
.modules {
    margin-top: 30px;
    padding-top: 48px;
    border-top: 1px solid var(--hairline, #E6DED2);
    text-align: left;
}
.modules .modules-title {
    font-family: 'Jost', 'Futura', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.modules .modules-title::after { content: '.'; color: var(--accent); }
.modules .modules-sub {
    color: var(--graphite, #6F6961);
    font-size: 0.95rem;
    margin-bottom: 28px;
}
.module-grid {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px;
}
.module-card {
    flex: 0 1 260px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    background: var(--paper-raised, #FFFDF8);
    border: 1px solid var(--hairline, #E6DED2);
    border-radius: 14px;
    padding: 26px 24px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.module-card:hover {
    transform: translateY(-3px);
    border-color: var(--ink, #131313);
    background: var(--ink, #131313);
    color: var(--paper, #FAF4EB);
    box-shadow: 0 10px 24px rgba(19, 19, 19, 0.10);
}
.module-card:hover .mod-desc,
.module-card:hover .mod-go { color: var(--paper, #FAF4EB); }
.module-card .mod-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
    filter: grayscale(1);
}
.module-card .mod-name {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.module-card .mod-desc {
    color: var(--graphite, #6F6961);
    font-size: 0.85rem;
    line-height: 1.55;
}
.module-card .mod-go {
    display: inline-block;
    margin-top: 14px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ink, #131313);
}
.module-card .mod-go::after {
    content: ' \2192';   /* arrow */
    transition: margin-left 0.2s ease;
}
.module-card:hover .mod-go::after { margin-left: 4px; }

/* ------------------------------------------------------------
   Responsive: stack everything full width, soften the script
   ------------------------------------------------------------ */
@media (max-width: 900px) {
    .story-block,
    .story-block.align-right,
    .story-block.align-left {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 48px;
    }
    .script-paper {
        padding: 42px 22px 28px;
    }
    .script .character { margin-left: 28%; }
    .script .dialogue { margin-left: 12%; margin-right: 6%; }
    .module-card { flex-basis: 100%; }
}
