/* ============================================================
   Shape of Headline — landing.css
   School-facing landing page design system.
   Tokens + section styles. Loaded by index.php.
   Design language: warm paper, deep ink, single highlighter-amber
   accent. Display: Fraunces. Body/UI: Hanken Grotesk.
   ============================================================ */

:root {
    --paper: #fbfaf6;
    --paper-2: #f4f2ea;
    --ink: #171a22;
    --ink-soft: #5a5f6b;
    --amber: #f4b740;
    --amber-deep: #e0921c;
    --line: #e4e2db;
    --news-ink: #8b8b87;
    --news-paper: #edece6;
    --green: #1e8e4e;
    --green-bg: #e4f5ea;
    --card-shadow: 0 24px 60px -28px rgba(23, 26, 34, 0.35);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto,
        sans-serif;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- buttons ---------- */
.btn-primary,
.lp-btn-ghost {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 999px;
    padding: 14px 26px;
    transition: transform 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border: 1.5px solid var(--ink);
}
.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.18);
}
.lp-btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line);
}
.lp-btn-ghost:hover {
    border-color: var(--ink);
}

/* ---------- shared section furniture ---------- */
.lp-section {
    padding: 96px 0;
}
.lp-section--inset {
    background: var(--paper-2);
}
.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amber-deep);
    margin-bottom: 20px;
}
.lp-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--amber-deep);
    display: inline-block;
}
.lp-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 20ch;
    margin: 0 0 16px;
}
.lp-title em {
    font-style: italic;
    color: var(--amber-deep);
}
.lp-subtitle {
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    color: var(--ink-soft);
    max-width: 52ch;
    margin: 0;
}

/* ============================================================
   NAV / masthead — sticky, with wordmark -> logo scroll swap
   ============================================================ */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
    background: var(--paper);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}
.lp-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 32px;
    transition: padding 0.25s ease;
}
/* scrolled state: white bar + soft shadow (logo art blends onto white) */
.lp-nav.is-scrolled {
    background: #fff;
    box-shadow: 0 8px 24px -18px rgba(23, 26, 34, 0.4);
    border-bottom: 1px solid var(--line);
}
.lp-nav.is-scrolled .lp-nav__inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* brand: wordmark and logo occupy the same slot; we cross-fade between them */
.lp-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 34px;
    min-height: 34px;
}
.lp-brand__word {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: opacity 0.22s ease;
}
.lp-brand__word .dot {
    color: var(--amber-deep);
}
.lp-brand__logo {
    position: absolute;
    left: 0;
    top: 50%;
    width: 34px;
    height: 34px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}
/* on scroll: wordmark out, logo in */
.lp-nav.is-scrolled .lp-brand__word {
    opacity: 0;
}
.lp-nav.is-scrolled .lp-brand__logo {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.lp-nav__links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.95rem;
    font-weight: 500;
}
.lp-nav__links a {
    color: var(--ink-soft);
}
.lp-nav__links a:hover {
    color: var(--ink);
}
.lp-nav__login {
    font-weight: 600;
}
.lp-nav .btn-primary {
    padding: 11px 20px;
    font-size: 0.95rem;
    background: var(--amber);
    color: var(--ink);
    border-color: var(--amber);
}
.lp-nav .btn-primary:hover {
    filter: brightness(1.05);
}

/* ============================================================
   HERO + the signature split
   ============================================================ */
.lp-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 32px 96px;
}
.lp-hero__title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2.3rem, 5.2vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    max-width: 16ch;
    margin: 0 0 22px;
}
.lp-hero__title em {
    font-style: italic;
    color: var(--amber-deep);
}
.lp-hero__desc {
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    color: var(--ink-soft);
    max-width: 46ch;
    margin: 0 0 30px;
}
.lp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}
.lp-trust {
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.lp-trust b {
    color: var(--ink);
    font-weight: 600;
}
.lp-trust .sep {
    opacity: 0.4;
    margin: 0 0.5ch;
}

.lp-split {
    margin-top: 64px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}
.lp-panel-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin: 16px auto 0;
    text-align: center;
    max-width: 34ch;
}

/* BEFORE — drained broadsheet */
.lp-before {
    position: relative;
}
.lp-broadsheet {
    background: var(--news-paper);
    border: 1px solid #dbd9d1;
    border-radius: 3px;
    padding: 16px 16px 20px;
    filter: grayscale(0.35);
    box-shadow: 0 2px 0 #dbd9d1, 4px 6px 0 -2px #e4e2db;
    transform: rotate(-0.6deg);
    overflow: hidden;
    height: 340px;
}
.lp-bs-name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.15rem;
    text-align: center;
    color: #4a4a46;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #c9c7bf;
    padding-bottom: 6px;
}
.lp-bs-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.5rem;
    color: var(--news-ink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 0 8px;
    border-bottom: 1px solid #d6d4cc;
}
.lp-bs-cols {
    column-count: 4;
    column-gap: 9px;
    margin-top: 8px;
}
.lp-bs-head {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 0.62rem;
    line-height: 1.15;
    color: #565651;
    margin-bottom: 3px;
    break-inside: avoid;
}
.lp-bs-line {
    display: block;
    height: 3px;
    background: var(--news-ink);
    opacity: 0.32;
    border-radius: 1px;
    margin-bottom: 3px;
}
.lp-bs-line.s {
    width: 70%;
}
.lp-bs-line.m {
    width: 88%;
}
.lp-bs-gap {
    height: 7px;
}
.lp-bs-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(
        to bottom,
        rgba(237, 236, 230, 0),
        var(--news-paper)
    );
}

/* arrow */
.lp-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
}
.lp-arrow .word {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--amber-deep);
}
.lp-arrow svg {
    width: 44px;
    height: 44px;
}

/* AFTER — clean read card */
.lp-after {
    position: relative;
}
.lp-read-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px 24px 20px;
    box-shadow: var(--card-shadow);
    transform: rotate(0.5deg);
}
.lp-chip {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-deep);
    background: #fbefd2;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.lp-read-card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}
.lp-read-card p {
    font-size: 0.96rem;
    color: #33373f;
    line-height: 1.6;
    margin: 0;
}
.lp-hl {
    position: relative;
    white-space: nowrap;
}
.lp-hl::before {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 1px;
    height: 56%;
    background: var(--amber);
    opacity: 0.55;
    z-index: -1;
    border-radius: 2px;
    transform-origin: left center;
    transform: scaleX(0);
    animation: lp-swipe 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 1.1s forwards;
}
@keyframes lp-swipe {
    to {
        transform: scaleX(1);
    }
}
.lp-read-card .lp-divider {
    height: 1px;
    background: var(--line);
    margin: 18px 0 14px;
}
.lp-prompt {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lp-prompt .pen {
    color: var(--amber-deep);
}
.lp-fake-input {
    border: 1.5px dashed var(--line);
    border-radius: 10px;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #a8a69e;
    font-size: 0.88rem;
}
.lp-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}
.lp-streak {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}
.lp-verdict {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--green);
    background: var(--green-bg);
    padding: 5px 11px;
    border-radius: 999px;
}

/* ============================================================
   PROBLEM
   ============================================================ */
.lp-problem__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 44px;
}
.lp-problem__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.lp-section--inset .lp-problem__item {
    background: var(--paper);
}
.lp-problem__icon {
    font-size: 1.2rem;
    line-height: 1.4;
    flex-shrink: 0;
}
.lp-problem__text {
    font-size: 0.98rem;
    color: #33373f;
}
.lp-problem__text strong {
    color: var(--ink);
}

/* ============================================================
   HOW IT WORKS — numbered sequence (order is real)
   ============================================================ */
.lp-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 48px;
}
.lp-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 22px;
}
.lp-step__num {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--amber-deep);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.lp-step__num::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}
.lp-step h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.lp-step p {
    font-size: 0.94rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
}

/* ============================================================
   WHY SCHOOLS — feature grid
   ============================================================ */
.lp-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 48px;
}
.lp-why__card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 24px;
}
.lp-section--inset .lp-why__card {
    background: var(--paper);
}
.lp-why__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fbefd2;
    color: var(--amber-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.lp-why__card h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.22rem;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.lp-why__card p {
    font-size: 0.95rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
}

/* ============================================================
   TRUST
   ============================================================ */
.lp-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 44px;
}
.lp-trust-item {
    text-align: left;
}
.lp-trust-item__k {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lp-trust-item__k .tick {
    color: var(--green);
}
.lp-trust-item__v {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* ============================================================
   CTA
   ============================================================ */
.lp-cta {
    background: var(--ink);
    color: var(--paper);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
    margin: 0 auto;
}
.lp-cta h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}
.lp-cta p {
    color: #c9cbd2;
    font-size: 1.1rem;
    max-width: 44ch;
    margin: 0 auto 30px;
}
.lp-cta .btn-primary {
    background: var(--amber);
    color: var(--ink);
    border-color: var(--amber);
}
.lp-cta .btn-primary:hover {
    filter: brightness(1.05);
}
.lp-cta__note {
    font-size: 0.85rem;
    color: #9aa0ac;
    margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.lp-footer {
    border-top: 1px solid var(--line);
    padding: 36px 0;
    margin-top: 0;
}
.lp-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.lp-footer__mark {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
}
.lp-footer__mark .dot {
    color: var(--amber-deep);
}
.lp-footer__meta {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .lp-problem__list {
        grid-template-columns: 1fr;
    }
    .lp-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .lp-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lp-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 860px) {
    .lp-nav__links a:not(.btn-primary) {
        display: none;
    }
    .lp-split {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .lp-arrow {
        flex-direction: row;
        gap: 12px;
        padding: 6px 0;
    }
    .lp-arrow svg {
        transform: rotate(90deg);
    }
    .lp-broadsheet {
        transform: none;
        height: 300px;
    }
    .lp-read-card {
        transform: none;
    }
    .lp-section {
        padding: 72px 0;
    }
}
@media (max-width: 560px) {
    .lp-steps,
    .lp-why__grid,
    .lp-trust-grid {
        grid-template-columns: 1fr;
    }
    .lp-cta {
        padding: 48px 24px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .lp-hl::before {
        animation: none;
        transform: scaleX(1);
    }
    .btn-primary,
    .btn-primary:hover,
    .lp-btn-ghost:hover {
        transform: none;
    }
}
