/* Home page (includes/landing.php). A teacher's desk rather than a tech landing page:
   exercise-book paper, a red marking pen, green check marks from the logo, a serif headline
   and Atkinson Hyperlegible body text. Builds on style.css + site.css. */

body.hp {
    --ink: #1c2742;
    --ink-soft: #4a5468;
    --paper: #fbfaf6;
    --rule: #dfe8f3;
    --pen: #c8372d;              /* red marking pen */
    --check: #16a34a;            /* the logo's check mark */
    --line: #e7e3d8;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Atkinson Hyperlegible Next', -apple-system, 'Segoe UI', sans-serif;
}
body.hp .lp-nav { background: rgba(251, 250, 246, 0.94); border-color: var(--line); }
body.hp .lp-brand, body.hp .lp-nav-links a:not(.lp-login-btn):not(.lp-ghost-btn) { color: var(--ink) !important; }
body.hp .lp-nav-links a:not(.lp-login-btn):not(.lp-ghost-btn) { opacity: 0.78; }
body.hp .lp-nav-links a:hover { opacity: 1; }
.hp h1, .hp-h2, .hp-cta h2, .hp-job-title { font-family: 'Source Serif 4', Georgia, serif; letter-spacing: -0.01em; color: var(--ink); }

/* ---------- hero: ruled exercise paper with a red margin line ---------- */
.hp-hero {
    position: relative;
    padding: 4.5rem 0 4rem;
    background:
        linear-gradient(90deg, transparent calc(50% - 600px), rgba(200, 55, 45, 0.35) calc(50% - 600px), rgba(200, 55, 45, 0.35) calc(50% - 598px), transparent calc(50% - 598px)),
        repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px),
        var(--paper);
    border-bottom: 1px solid var(--line);
}
.hp-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.hp-kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pen); margin-bottom: 1rem; }
.hp h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.12; font-weight: 700; margin-bottom: 1.25rem; }
.hp-pen { position: relative; white-space: nowrap; }
.hp-pen::after {   /* a quick red-pen underline, drawn not ruled */
    content: ""; position: absolute; left: -2%; right: -3%; bottom: -0.12em; height: 0.32em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 40 6, 90 4, 130 8 S 185 14, 197 6' fill='none' stroke='%23c8372d' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hp-lead { font-size: 1.15rem; line-height: 1.65; color: var(--ink-soft); max-width: 36rem; margin-bottom: 1.75rem; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.hp-btn { display: inline-flex; align-items: center; font-weight: 700; font-size: 1rem; padding: 0.8rem 1.35rem; border-radius: 10px; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.hp-btn-primary { background: var(--primary); color: #fff !important; }
.hp-btn-primary:hover { background: var(--primary-hover); }
.hp-btn-plain { color: var(--ink) !important; padding-left: 0.4rem; padding-right: 0.4rem; text-decoration: underline; text-decoration-color: var(--pen); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hp-btn-light { background: #fff; color: var(--ink) !important; border: 1px solid #cfd6e2; }
.hp-btn-light:hover { border-color: var(--ink-soft); }
.hp-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.75rem; font-size: 0.95rem; color: var(--ink-soft); }
.hp-proof li, .hp-principles li { position: relative; padding-left: 1.5rem; }
.hp-proof li::before, .hp-principles li::before {   /* a hand-ticked check mark */
    content: ""; position: absolute; left: 0.2rem; top: 0.25em; width: 0.45rem; height: 0.8rem;
    border: solid var(--check); border-width: 0 3px 3px 0; transform: rotate(40deg);
}

/* login card: an index card */
.hp-login { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(28, 39, 66, 0.10); border-radius: 12px; padding: 1.9rem; }
.hp-login h2 { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid rgba(200, 55, 45, 0.55); margin-bottom: 0.6rem; }
.hp-login .sub { color: var(--ink-soft); margin-bottom: 1.1rem; }
.hp-login .btn { font-weight: 700; border-radius: 10px; padding: 0.75rem; }

/* ---------- sections ---------- */
.hp-section { padding: 4.5rem 0; }
.hp-h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; font-weight: 700; margin-bottom: 0.6rem; }
.hp-intro { color: var(--ink-soft); font-size: 1.08rem; max-width: 42rem; margin-bottom: 2.5rem; }

/* Mark / Teach / Plan: three ledger columns */
.hp-jobs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.hp-job { padding: 1.6rem 1.6rem 0.5rem; border-right: 1px solid var(--line); }
.hp-job:first-child { padding-left: 0; }
.hp-job:last-child { border-right: 0; padding-right: 0; }
.hp-job-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.9rem; font-weight: 700; margin-bottom: 1rem; }
.hp-icon { width: 30px; height: 30px; fill: none; stroke: var(--pen); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hp-job dt { font-weight: 700; font-size: 1.06rem; margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.hp-job dt:first-child { margin-top: 0; }
.hp-job dd { color: var(--ink-soft); margin: 0.3rem 0 0; line-height: 1.6; }
.hp-free { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pen); border: 1.5px solid var(--pen); border-radius: 4px; padding: 0.02rem 0.35rem; transform: rotate(-3deg); }

/* free tools: cards with a rubber stamp and a small preview */
.hp-free-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hp-free-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.75rem; }
.hp-free-card { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 1.4rem; align-items: center; padding: 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink) !important; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.hp-free-card:hover { border-color: #c9d3e3; transform: translateY(-2px); }
.hp-free-body { display: flex; flex-direction: column; gap: 0.45rem; }
.hp-free-body strong { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.35rem; }
.hp-free-body > span:not(.hp-go) { color: var(--ink-soft); line-height: 1.55; }
.hp-go { font-weight: 700; color: var(--primary); margin-top: 0.2rem; }
.hp-stamp { position: absolute; top: 0.9rem; right: 1rem; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pen); border: 2px solid var(--pen); outline: 1px solid var(--pen); outline-offset: 2px; border-radius: 3px; padding: 0.05rem 0.45rem; transform: rotate(-8deg); opacity: 0.85; }
.hp-timer-demo { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 0.6rem 1rem; text-align: center; }
.hp-timer-label { display: block; font-weight: 700; font-size: 0.85rem; }
.hp-timer-digits { display: block; font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 2.6rem; line-height: 1.15; letter-spacing: -0.02em; }
.hp-timer-bar { display: block; height: 7px; border-radius: 5px; background: var(--line); overflow: hidden; margin: 0.35rem 0.4rem 0; }
.hp-timer-bar span { display: block; width: 38%; height: 100%; background: var(--primary); border-radius: inherit; }
.hp-plan-demo { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.55rem; }
.hp-plan-tag { font-size: 0.75rem; font-weight: 700; color: var(--check); }
.hp-plan-line { display: block; height: 7px; border-radius: 4px; background: var(--rule); }
.hp-plan-line.short { width: 62%; }

/* built by education professionals: an ink band */
.hp-member { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); border: 1.5px solid var(--primary); border-radius: 4px; padding: 0.02rem 0.35rem; }

/* lessons and worksheets for members: copy beside a sample sheet */
.hp-create { background: #eef2f8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hp-create-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }
.hp-create .hp-h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin-bottom: 0.8rem; }
.hp-create-list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0.75rem; }
.hp-create-list li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); line-height: 1.6; }
.hp-create-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.75rem; height: 0.4rem; border-left: 2.5px solid #1a7f4b; border-bottom: 2.5px solid #1a7f4b; transform: rotate(-45deg); }
.hp-create-list strong { color: var(--ink); }
.hp-create-demo { position: relative; padding-bottom: 2.5rem; }
.hp-sheet { background: #fff; border-radius: 6px; box-shadow: 0 2px 4px rgba(28,39,66,0.06), 0 18px 40px rgba(28,39,66,0.14); padding: 1.4rem 1.5rem; font-size: 0.92rem; color: #111; transform: rotate(-1.2deg); }
.hp-sheet p { margin: 0.35rem 0; line-height: 1.45; }
.hp-sheet em { font-style: normal; font-weight: 700; margin-right: 0.3rem; }
.hp-sheet i { display: inline-block; width: 3.2rem; border-bottom: 1.5px solid #111; vertical-align: -0.1em; }
.hp-sheet-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #111; padding-bottom: 0.4rem; margin-bottom: 0.5rem; }
.hp-sheet-head small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #c8372d; }
.hp-sheet-head b { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.25rem; }
.hp-sheet-head span { font-size: 0.75rem; text-align: right; line-height: 1.8; color: #333; }
.hp-sheet-sec { font-weight: 700; margin-top: 0.8rem !important; }
.hp-sheet-bar { width: 72%; display: block; margin: 0.3rem 0 0 1.3rem; }
.hp-sheet-ans { padding-left: 1.3rem; }
.hp-sheet-last { max-width: 55%; }
.hp-sheet-key { position: absolute; right: -0.6rem; bottom: 0; width: 46%; transform: rotate(2deg); padding: 0.9rem 1.1rem; display: grid; gap: 0.15rem; font-size: 0.85rem; }
.hp-sheet-key b { color: #c8372d; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem; }

.hp-made { background: var(--ink); color: #e8ebf2; }
.hp-made .hp-h2 { color: #fff; }
.hp-made p { color: #c9cfdc; font-size: 1.08rem; line-height: 1.7; max-width: 34rem; }
.hp-made-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.hp-principles { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.hp-principles li { padding-left: 1.9rem; line-height: 1.6; color: #c9cfdc; }
.hp-principles li strong { display: block; color: #fff; font-size: 1.05rem; }
.hp-principles li::before { border-color: #4ade80; }

/* FAQ */
.hp-faq-wrap { max-width: 860px; }
.hp-faq { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.hp-faq details { border-bottom: 1px solid var(--line); }
.hp-faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--pen); }
.hp-faq details[open] summary::after { content: "\2212"; }
.hp-faq details p { color: var(--ink-soft); line-height: 1.7; padding: 0 0 1.2rem; max-width: 46rem; }

/* closing call to action */
.hp-cta { padding: 4rem 0 4.5rem; text-align: center; background: repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px), var(--paper); border-top: 1px solid var(--line); }
.hp-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 1.4rem; }
.hp-cta .hp-actions { justify-content: center; }
body.hp .lp-footer { background: var(--paper); border-color: var(--line); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
    .hp-hero { padding: 2.5rem 0 2.75rem; background: repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px), var(--paper); }
    .hp-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hp-jobs { grid-template-columns: 1fr; }
    .hp-job, .hp-job:first-child, .hp-job:last-child { padding: 1.4rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .hp-free-grid, .hp-made-grid, .hp-create-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hp-sheet-key { right: 0; }
    .hp-section { padding: 3rem 0; }
}
@media (max-width: 520px) {
    .hp-free-card { grid-template-columns: 1fr; }
    .hp-timer-demo, .hp-plan-demo { max-width: 220px; }
    .hp-lead { font-size: 1.05rem; }
    .hp-login { padding: 1.4rem; }
    .hp-actions .hp-btn { width: 100%; justify-content: center; }
}

/* worksheets card preview + three free cards in a row */
.hp-free-grid { grid-template-columns: repeat(3, 1fr); }
.hp-free-card { grid-template-columns: 1fr; align-items: start; }
.hp-timer-demo, .hp-plan-demo, .hp-ws-demo { max-width: 200px; }
.hp-ws-demo { display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem; font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 0.95rem; }
.hp-ws-demo i { font-style: normal; display: flex; align-items: center; justify-content: center; height: 1.7rem; }
.hp-ws-demo i.hl { background: rgba(200, 55, 45, 0.18); }
@media (max-width: 900px) { .hp-free-grid { grid-template-columns: 1fr; } }

@media (max-width: 820px) { .hp-hero .hp-btn-plain { display: none; } }   /* the quick links above cover it on phones */

/* "See all free tools" under the home page's free cards */
.hp-see-all { margin-top: 1.4rem; text-align: right; font-weight: 700; }
.hp-see-all a { color: var(--primary); text-decoration: none; }
.hp-see-all a:hover { text-decoration: underline; }
