@font-face {
    font-family: "PT Mono";
    src: url("../fonts/PTMono-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PT Mono";
    src: url("../fonts/PTMono-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.notebook-landing {
    --landing-ink: #24252a;
    --landing-muted: #626b73;
    --landing-teal: #08c2cf;
    --landing-teal-dark: #01929c;
    --landing-mint: #e3f9fa;
    --landing-mint-strong: #b9eef1;
    --landing-yellow: #f8ca73;
    --landing-coral: #08c2cf;
    --landing-lilac: #dff7f9;
    --landing-paper: #fffdfa;
    --landing-line: #dcebed;
    overflow: hidden;
    color: var(--landing-ink);
    background: var(--landing-paper);
    font-family: Montserrat, "Montserrat-Alternates", sans-serif;
}

.notebook-landing__container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.notebook-section {
    padding: 112px 0;
}

.notebook-kicker {
    margin: 0 0 18px;
    color: var(--landing-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.notebook-kicker span {
    display: inline-flex;
    margin-right: 8px;
    padding: 7px 10px;
    color: var(--landing-ink);
    background: var(--landing-yellow);
    border-radius: 9px;
    letter-spacing: 0.04em;
}

.notebook-heading {
    max-width: 840px;
    margin-bottom: 52px;
}

.notebook-heading--row {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
    align-items: end;
    gap: 72px;
}

.notebook-heading h2,
.notebook-free h2,
.notebook-faq h2 {
    margin: 0;
    color: var(--landing-ink);
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.055em;
}

.notebook-heading > p:last-child,
.notebook-heading--row > p {
    max-width: 680px;
    margin: 22px 0 0;
    color: var(--landing-muted);
    font-size: 17px;
    line-height: 1.65;
}

.notebook-heading--row > p {
    margin: 0;
}

.notebook-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.notebook-button:hover { transform: translateY(-2px); }

.notebook-button--primary {
    color: #fff;
    background: var(--landing-teal);
    box-shadow: 0 14px 32px rgba(8, 194, 207, 0.2);
}

.notebook-button--primary:hover { background: var(--landing-teal-dark); }

.notebook-button--ghost {
    color: var(--landing-ink);
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(24, 34, 44, 0.14);
}

.notebook-button--ghost:hover { background: #fff; border-color: var(--landing-teal); }

.notebook-button--light {
    color: var(--landing-ink);
    background: var(--landing-yellow);
}

.notebook-text-link {
    align-self: end;
    padding-bottom: 8px;
    color: var(--landing-teal);
    font-size: 13px;
    font-weight: 800;
}

.notebook-hero {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 4% 20%, rgba(248, 202, 115, 0.3) 0 10%, transparent 10.5%),
        radial-gradient(circle at 96% 72%, rgba(8, 194, 207, 0.16) 0 13%, transparent 13.5%),
        linear-gradient(145deg, #ebfbfc 0%, #f8fcfc 55%, #fff6e4 100%);
    border-bottom: 1px solid var(--landing-line);
}

.notebook-hero__grid {
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
    align-items: center;
    gap: 72px;
    padding-block: 72px 82px;
}

.notebook-hero__copy {
    min-width: 0;
}

.notebook-hero h1 {
    margin: 0;
    color: var(--landing-ink);
    font-size: clamp(58px, 7vw, 92px);
    font-weight: 800;
    line-height: 0.93;
    letter-spacing: -0.07em;
}

.notebook-hero h1 em {
    position: relative;
    color: var(--landing-teal);
    font-style: normal;
}

.notebook-hero h1 em::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 10px;
    z-index: -1;
    background: var(--landing-yellow);
    border-radius: 999px;
    transform: rotate(-1deg);
}

.notebook-hero__subtitle {
    max-width: 640px;
    margin: 24px 0 0;
    color: var(--landing-ink);
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.notebook-hero__lead {
    max-width: 640px;
    margin: 18px 0 0;
    color: var(--landing-muted);
    font-size: 18px;
    line-height: 1.68;
}

.notebook-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 32px;
}

.notebook-hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 24px 0 0;
    padding: 0;
    color: #536069;
    list-style: none;
    font-size: 12px;
    font-weight: 700;
}

.notebook-hero__proof li { display: flex; align-items: center; gap: 6px; }
.notebook-hero__proof span { color: var(--landing-teal); }

.study-scene {
    position: relative;
    min-height: 520px;
}

.study-scene::before {
    content: "";
    position: absolute;
    width: 410px;
    height: 410px;
    top: 50%;
    left: 50%;
    background: var(--landing-mint-strong);
    border-radius: 42% 58% 55% 45% / 52% 44% 56% 48%;
    transform: translate(-50%, -50%) rotate(8deg);
}

.study-scene__card {
    position: absolute;
    z-index: 2;
    width: min(370px, 82%);
    top: 50%;
    left: 50%;
    padding: 26px;
    background: #fff;
    border: 1px solid rgba(24, 34, 44, 0.09);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(6, 17, 37, 0.16);
    transform: translate(-50%, -50%) rotate(2.5deg);
}

.study-scene__top,
.study-scene__progress > div {
    display: flex;
    justify-content: space-between;
    color: var(--landing-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.study-scene__top strong { color: var(--landing-teal); }

.study-scene__title {
    margin: 20px 0 7px;
    color: var(--landing-ink);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.study-scene__title code { color: var(--landing-teal); font-family: monospace; }

.study-scene__card > p {
    margin: 0;
    color: var(--landing-muted);
    font-size: 12px;
    line-height: 1.5;
}

.study-scene__code {
    display: grid;
    gap: 7px;
    margin: 20px 0;
    padding: 16px;
    color: #cfdae0;
    background: #061125;
    border-radius: 14px;
    font-family: "PT Mono", monospace;
    font-size: 11px;
}

.study-scene__code i { color: var(--landing-yellow); font-style: normal; }
.study-scene__code b { color: var(--landing-teal); }

.study-scene__task {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    background: #edfbfc;
    border: 1px solid #bfecef;
    border-radius: 13px;
}

.study-scene__task > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--landing-teal);
    border-radius: 50%;
    font-size: 12px;
}

.study-scene__task p { display: grid; gap: 3px; margin: 0; color: var(--landing-muted); font-size: 9px; }
.study-scene__task strong { color: var(--landing-ink); font-size: 11px; }

.study-scene__progress { margin-top: 18px; }
.study-scene__progress strong { color: var(--landing-ink); }
.study-scene__progress > i {
    height: 7px;
    display: block;
    margin-top: 8px;
    overflow: hidden;
    background: #e5ebe8;
    border-radius: 999px;
}
.study-scene__progress > i b { width: 58%; height: 100%; display: block; background: var(--landing-teal); }

.study-scene__note {
    position: absolute;
    z-index: 3;
    display: grid;
    padding: 14px 17px;
    color: var(--landing-ink);
    background: var(--landing-yellow);
    border: 3px solid #fff;
    border-radius: 17px;
    box-shadow: 0 15px 34px rgba(56, 60, 39, 0.13);
    transform: rotate(-7deg);
}

.study-scene__note strong { font-size: 22px; line-height: 1; }
.study-scene__note span { margin-top: 4px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.study-scene__note--tasks { top: 82px; right: 2px; }
.study-scene__note--free { bottom: 70px; left: 3px; background: var(--landing-coral); transform: rotate(6deg); }

.study-scene__spark { position: absolute; z-index: 4; color: var(--landing-teal); font-size: 28px; }
.study-scene__spark--one { top: 35px; left: 35px; }
.study-scene__spark--two { right: 48px; bottom: 32px; color: var(--landing-yellow); font-size: 15px; }

.notebook-numbers { background: #fff; border-bottom: 1px solid var(--landing-line); }
.notebook-numbers__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.notebook-numbers__grid > div { min-height: 104px; display: grid; align-content: center; gap: 4px; padding: 18px 28px; border-left: 1px solid var(--landing-line); }
.notebook-numbers__grid > div:last-child { border-right: 1px solid var(--landing-line); }
.notebook-numbers strong { color: var(--landing-ink); font-size: 29px; }
.notebook-numbers span { color: var(--landing-muted); font-size: 10px; font-weight: 700; }

.notebook-route { background: #fff; }
.notebook-route__steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.notebook-route__steps::before { content: ""; position: absolute; top: 28px; right: 15%; left: 15%; border-top: 2px dashed #cbd7d2; }
.notebook-route__steps li { position: relative; padding: 0 24px 30px; text-align: center; }
.notebook-route__number { position: relative; z-index: 2; width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 26px; color: #fff; background: var(--landing-teal); border: 8px solid #fff; border-radius: 50%; font-size: 13px; font-weight: 900; box-shadow: 0 0 0 1px #c9d7d2; }
.notebook-route__visual { width: 100%; height: 170px; position: relative; display: grid; place-items: center; margin-bottom: 24px; overflow: hidden; background: #edf8f4; border-radius: 24px; }
.notebook-route__steps li:nth-child(2) .notebook-route__visual { background: #fff5d7; }
.notebook-route__steps li:nth-child(3) .notebook-route__visual { background: #e4f8fa; }
.notebook-route__steps small { color: var(--landing-teal); font-size: 9px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.notebook-route__steps h3 { margin: 9px 0 10px; color: var(--landing-ink); font-size: 22px; letter-spacing: -0.025em; }
.notebook-route__steps p { margin: 0; color: var(--landing-muted); font-size: 13px; line-height: 1.55; }

.notebook-route__visual--read b { width: 86px; height: 100px; display: grid; place-items: center; color: var(--landing-teal); background: #fff; border-radius: 6px 18px 18px 6px; box-shadow: 0 12px 28px rgba(32, 80, 65, 0.14); font-size: 24px; transform: rotate(-5deg); }
.notebook-route__visual--read i { position: absolute; width: 30px; height: 5px; right: 23%; background: var(--landing-yellow); border-radius: 999px; transform: rotate(8deg); }
.notebook-route__visual--read i:nth-child(1) { top: 45px; }
.notebook-route__visual--read i:nth-child(2) { top: 58px; width: 20px; }
.notebook-route__visual--read i:nth-child(3) { display: none; }

.notebook-route__visual--code span { width: 88px; height: 70px; display: grid; place-items: center; color: #fff; background: #061125; border-radius: 18px; font-family: monospace; font-size: 24px; font-weight: 800; transform: rotate(4deg); }
.notebook-route__visual--code i { position: absolute; width: 38px; height: 38px; background: var(--landing-coral); border-radius: 50%; }
.notebook-route__visual--code i:nth-child(2) { top: 25px; left: 24%; }
.notebook-route__visual--code i:nth-child(3) { right: 23%; bottom: 20px; background: var(--landing-yellow); border-radius: 9px; }

.notebook-route__visual--progress span { width: 92px; height: 92px; display: grid; place-items: center; color: var(--landing-teal-dark); background: #fff; border: 12px solid var(--landing-mint-strong); border-right-color: var(--landing-teal); border-radius: 50%; font-size: 20px; font-weight: 900; transform: rotate(-9deg); }
.notebook-route__visual--progress i { position: absolute; width: 68px; height: 8px; right: 15%; bottom: 32px; background: #cdeff2; border-radius: 999px; transform: rotate(-6deg); }
.notebook-route__visual--progress i b { width: 70%; height: 100%; display: block; background: var(--landing-yellow); border-radius: inherit; }

.notebook-audience { background: #f5f7f4; }
.notebook-audience__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience-tile { min-height: 390px; display: flex; padding: 28px; flex-direction: column; border-radius: 28px; }
.audience-tile--mint { background: var(--landing-mint); }
.audience-tile--yellow { background: #fff1d3; }
.audience-tile--coral { background: #dff7f9; }
.audience-tile > div { width: 92px; height: 92px; display: grid; place-items: center; margin: 8px auto 54px; color: #fff; background: var(--landing-teal); border-radius: 46% 54% 42% 58%; font-size: 37px; font-weight: 900; transform: rotate(-7deg); }
.audience-tile--yellow > div { color: var(--landing-ink); background: var(--landing-yellow); transform: rotate(6deg); }
.audience-tile--coral > div { color: var(--landing-ink); background: var(--landing-yellow); }
.audience-tile > span { color: var(--landing-teal-dark); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.audience-tile h3 { margin: 9px 0 12px; color: var(--landing-ink); font-size: 24px; line-height: 1.15; letter-spacing: -0.03em; }
.audience-tile p { margin: 0; color: #57636b; font-size: 13px; line-height: 1.55; }

.notebook-inside { background: #fff; }
.notebook-inside__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.inside-card { min-height: 390px; position: relative; overflow: hidden; padding: 34px; background: #e6f8fa; border-radius: 30px; }
.inside-card--wide { min-height: 350px; display: grid; grid-column: 1 / -1; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 50px; background: #e3f9fa; }
.inside-card--tasks { background: #fff1d3; }
.inside-card--account { background: #dff7f9; }
.inside-card > span,
.inside-card--wide span { color: var(--landing-teal-dark); font-size: 9px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.inside-card h3 { max-width: 490px; margin: 14px 0 15px; color: var(--landing-ink); font-size: clamp(27px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.04em; }
.inside-card p { max-width: 560px; margin: 0; color: #59666d; font-size: 14px; line-height: 1.6; }
.inside-card__paper { min-height: 210px; display: grid; align-content: center; gap: 13px; padding: 34px; background: #fff; border-radius: 22px; box-shadow: 0 22px 45px rgba(48, 88, 75, 0.14); transform: rotate(2deg); }
.inside-card__paper i { width: 90%; height: 8px; display: block; background: #dfe9e5; border-radius: 999px; }
.inside-card__paper i:nth-child(2) { width: 70%; }
.inside-card__paper i:last-child { width: 56%; }
.inside-card__paper b { width: fit-content; padding: 11px 14px; color: #fff; background: #061125; border-radius: 10px; font-family: monospace; }
.inside-card--tasks > div { position: absolute; right: 30px; bottom: 28px; left: 30px; display: flex; gap: 8px; }
.inside-card--tasks i { flex: 1; padding: 15px 10px; color: #80704c; background: rgba(255,255,255,.6); border-radius: 12px; font-style: normal; font-size: 11px; font-weight: 800; text-align: center; }
.inside-card--tasks i.is-done { color: #fff; background: var(--landing-teal); }
.inside-card--account a { position: absolute; right: 34px; bottom: 34px; left: 34px; color: var(--landing-teal-dark); font-size: 12px; font-weight: 800; }

.notebook-preview { background: #f5f7f4; }
.notebook-preview .library-card { background: #fff; }
.notebook-preview__empty { display: flex; align-items: center; gap: 30px; padding: 40px; background: #fff; border: 1px dashed #c9d4ce; border-radius: 28px; }
.notebook-preview__empty > span { width: 110px; height: 110px; display: grid; flex: 0 0 auto; place-items: center; color: #fff; background: var(--landing-teal); border-radius: 30px; font-size: 25px; font-weight: 800; transform: rotate(-4deg); }
.notebook-preview__empty h3 { margin: 0 0 8px; font-size: 24px; }
.notebook-preview__empty p { margin: 0; color: var(--landing-muted); }

.notebook-free { padding: 100px 0; color: #fff; background: #24252a; }
.notebook-free__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 80px; }
.notebook-free .notebook-kicker { color: var(--landing-teal); }
.notebook-free h2 { color: #fff; font-size: clamp(40px, 5.5vw, 66px); }
.notebook-free__grid > div:last-child { display: grid; justify-items: start; gap: 26px; }
.notebook-free__grid > div:last-child p { margin: 0; color: #d9e4e6; font-size: 16px; line-height: 1.7; }

.notebook-faq { background: #fff; }
.notebook-faq__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.notebook-faq__items { border-top: 1px solid var(--landing-line); }
.notebook-faq details { border-bottom: 1px solid var(--landing-line); }
.notebook-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; color: var(--landing-ink); list-style: none; font-size: 16px; font-weight: 800; cursor: pointer; }
.notebook-faq summary::-webkit-details-marker { display: none; }
.notebook-faq summary span { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; color: var(--landing-teal-dark); background: var(--landing-mint); border-radius: 50%; font-size: 20px; transition: transform 160ms ease; }
.notebook-faq details[open] summary span { transform: rotate(45deg); }
.notebook-faq details p { max-width: 700px; margin: -5px 0 24px; padding-right: 50px; color: var(--landing-muted); font-size: 14px; line-height: 1.65; }

.notebook-landing a:focus-visible,
.notebook-landing button:focus-visible,
.notebook-landing summary:focus-visible {
    outline: 3px solid rgba(8, 194, 207, 0.35);
    outline-offset: 3px;
}

@media (max-width: 1040px) {
    .notebook-hero__grid { grid-template-columns: 1fr; gap: 18px; }
    .notebook-hero__copy { max-width: 760px; }
    .study-scene { width: min(600px, 100%); margin-inline: auto; }
    .notebook-heading--row { grid-template-columns: 1fr; gap: 24px; }
    .notebook-heading--row > p { max-width: 680px; }
    .notebook-audience__grid { grid-template-columns: 1fr 1fr; }
    .audience-tile:last-child { grid-column: 1 / -1; min-height: 330px; }
    .audience-tile:last-child > div { margin-bottom: 30px; }
}

@media (max-width: 800px) {
    .notebook-section { padding: 84px 0; }
    .notebook-numbers__grid { grid-template-columns: repeat(2, 1fr); }
    .notebook-numbers__grid > div:nth-child(3) { border-top: 1px solid var(--landing-line); }
    .notebook-route__steps { grid-template-columns: 1fr; gap: 30px; }
    .notebook-route__steps::before { display: none; }
    .notebook-route__steps li { max-width: 620px; width: 100%; margin-inline: auto; }
    .notebook-route__visual { height: 190px; }
    .notebook-inside__grid { grid-template-columns: 1fr; }
    .inside-card--wide { grid-column: auto; grid-template-columns: 1fr; }
    .notebook-free__grid,
    .notebook-faq__grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 620px) {
    .notebook-landing__container { width: min(100% - 28px, 1180px); }
    .notebook-section { padding: 68px 0; }
    .notebook-hero__grid { min-height: auto; padding-block: 58px 64px; }
    .notebook-hero h1 {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: clamp(27px, 10.4vw, 46px);
        line-height: 0.98;
        letter-spacing: -0.055em;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
        text-wrap: balance;
    }
    .notebook-hero__lead { font-size: 16px; }
    .notebook-hero__actions { align-items: stretch; flex-direction: column; }
    .notebook-hero__actions .notebook-button { width: 100%; }
    .study-scene { min-height: 470px; }
    .study-scene::before { width: 330px; height: 330px; }
    .study-scene__card { width: min(340px, 88%); padding: 21px; }
    .study-scene__note--tasks { top: 36px; right: -5px; }
    .study-scene__note--free { bottom: 30px; left: -4px; }
    .notebook-heading h2,
    .notebook-free h2,
    .notebook-faq h2 { font-size: clamp(38px, 12vw, 52px); }
    .notebook-audience__grid { grid-template-columns: 1fr; }
    .audience-tile,
    .audience-tile:last-child { min-height: 350px; grid-column: auto; }
    .inside-card { min-height: 370px; padding: 26px; }
    .inside-card--wide { min-height: 0; }
    .inside-card--account a { right: 26px; bottom: 26px; left: 26px; }
    .notebook-preview__empty { align-items: flex-start; flex-direction: column; padding: 28px; }
    .notebook-free { padding: 76px 0; }
    .notebook-faq details p { padding-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .notebook-landing *,
    .notebook-landing *::before,
    .notebook-landing *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
