@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/assets/fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-italic.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(/assets/fonts/dmsans.woff2) format("woff2"); }

:root {
  --paper: #f6f0e2;
  --paper-2: #efe6d1;
  --card: #fffdf7;
  --ink: #14204a;
  --ink-2: #3b4670;
  --muted: #6b7190;
  --blue: #1f4fd1;
  --red: #d7322d;
  --yellow: #ffd23a;
  --rule: rgba(31, 79, 209, .13);
  --line: rgba(20, 32, 74, .14);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 5.4vw, 3.6rem); font-weight: 850; font-stretch: 78%; }
h3 { font-size: 1.15rem; font-weight: 750; font-stretch: 90%; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 99; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* highlighter pen */
.marker { position: relative; white-space: nowrap; z-index: 0; }
.marker::before { content: ""; position: absolute; z-index: -1; left: -.12em; right: -.12em; bottom: .06em; height: .42em; background: var(--yellow); border-radius: .2em .5em .3em .6em; transform: rotate(-1.4deg); }

.notice { background: var(--ink); color: #fff; text-align: center; padding: 8px 16px; font-size: .92rem; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 240, 226, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font: 900 1.35rem/1 var(--display); font-stretch: 80%; letter-spacing: -.01em; }
.brand-word small { font: 600 .68rem/1.3 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.brand-light { color: #fff; }
.brand-light .brand-word small { color: rgba(255, 255, 255, .6); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.nav-login):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--yellow); }
.nav-login { background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px; }
.nav-login:hover { background: var(--blue); }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 700 1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--yellow); transform: translate(-1px, -1px); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #fff; }
.btn-line-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-line-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { position: relative; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: 22px; }
.kicker-pill { background: var(--red); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.kicker-pill i { font-style: normal; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 900; font-stretch: 72%; line-height: .95; letter-spacing: -.02em; }
.hero h1 em { display: inline-block; margin-top: .14em; font-size: .92em; color: var(--blue); line-height: 1; }
.lede { margin-top: 24px; font-size: 1.12rem; max-width: 34em; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.doodle-arrow { position: absolute; width: 110px; right: 4%; bottom: -70px; color: var(--red); transform: rotate(-8deg); }

/* notebook page */
.page { position: relative; margin: 0; background: var(--card); border-radius: 6px; padding: 34px 28px 30px 64px; transform: rotate(1.6deg);
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -24px rgba(20, 32, 74, .35);
  background-image: linear-gradient(90deg, transparent 46px, rgba(215, 50, 45, .55) 46px, rgba(215, 50, 45, .55) 48px, transparent 48px),
    repeating-linear-gradient(180deg, transparent 0 37px, var(--rule) 37px 38px);
  background-position: 0 0, 0 22px; }
.tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 210, 58, .7); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.page-head { display: flex; flex-direction: column; margin-bottom: 8px; }
.page-date { font: italic 1rem var(--serif); color: var(--muted); }
.page-title { font: 850 1.7rem/1.2 var(--display); font-stretch: 80%; }
.page-list { list-style: none; margin: 0; padding: 0; }
.page-list li { display: flex; align-items: center; gap: 14px; height: 38px; font-weight: 600; font-size: 1.06rem; }
.tick { position: relative; flex: none; width: 20px; height: 20px; border: 2px solid var(--c, var(--ink)); border-radius: 4px; }
.tick::after { content: ""; position: absolute; left: 3px; top: -6px; width: 9px; height: 17px; border: solid var(--c, var(--ink)); border-width: 0 3px 3px 0; transform: rotate(40deg); border-radius: 1px; }
.page-foot { margin-top: 10px; font: italic 1.12rem var(--serif); color: var(--blue); }
.sticky { position: absolute; right: -18px; bottom: -40px; width: 150px; padding: 16px 14px 18px; background: var(--yellow); transform: rotate(-6deg); font: 700 .95rem/1.3 var(--body); box-shadow: 0 14px 24px -14px rgba(20, 32, 74, .45); }
.sticky b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15rem; }

/* ---------- section heads ---------- */
section { position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > p:last-child { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); max-width: 36em; }
.section-head h2 em, .app-copy h2 em, .contact h2 em { color: var(--blue); }
.eyebrow { font: 700 .78rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.eyebrow-light { color: var(--yellow); }

/* ---------- why ---------- */
.why { padding: clamp(64px, 9vw, 120px) 0; background: var(--card); border-block: 1px solid var(--line); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.checks li { display: flex; gap: 14px; padding: 24px 22px 26px 0; border-bottom: 1px solid var(--line); }
.checks li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.box { position: relative; flex: none; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 5px; margin-top: 2px; }
.box::after { content: ""; position: absolute; left: 6px; top: -8px; width: 11px; height: 22px; border: solid #1e9e4a; border-width: 0 4px 4px 0; transform: rotate(40deg); border-radius: 2px; }
.checks h3 { margin-bottom: 6px; }
.checks p { color: var(--ink-2); font-size: .97rem; }

/* ---------- subjects: book spines ---------- */
.subjects { padding: clamp(64px, 9vw, 120px) 0; }
.subjects-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.shelf { display: flex; flex-direction: column; gap: 8px; }
.spine { --c: var(--blue); position: relative; display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 20px; min-height: 74px; padding: 12px 24px 12px 26px; background: var(--c); color: #fff; border-radius: 4px 10px 10px 4px;
  box-shadow: inset 8px 0 0 rgba(0, 0, 0, .14), inset -1px 0 0 rgba(255, 255, 255, .25), 0 3px 0 rgba(20, 32, 74, .18); transition: transform .2s; }
.spine:nth-child(2) { margin-left: 18px; } .spine:nth-child(3) { margin-right: 22px; } .spine:nth-child(4) { margin-left: 8px; } .spine:nth-child(5) { margin-left: 26px; margin-right: -6px; } .spine:nth-child(6) { margin-right: 10px; }
.spine::after { content: ""; position: absolute; top: 10px; bottom: 10px; left: 226px; width: 1px; background: rgba(255, 255, 255, .3); }
.spine:hover { transform: translateX(-8px); }
.spine h3 { font-size: 1.3rem; font-stretch: 82%; }
.spine p { font-size: .94rem; line-height: 1.45; color: rgba(255, 255, 255, .9); }

/* ---------- app section ---------- */
.appsec { padding: clamp(64px, 9vw, 120px) 0; background: var(--ink); color: #fff; overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.app-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.app-copy h2 em { color: var(--yellow); }
.app-copy > p { margin-top: 18px; font-size: 1.08rem; color: rgba(255, 255, 255, .78); max-width: 32em; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 34px 0 6px; }
.feat div { border-top: 2px solid var(--yellow); padding-top: 12px; }
.feat dt { font: 750 1.06rem var(--display); font-stretch: 90%; }
.feat dd { margin: 4px 0 0; color: rgba(255, 255, 255, .72); font-size: .95rem; }

.phone { justify-self: center; width: 300px; padding: 12px; border-radius: 44px; background: #0b1230; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .7); transform: rotate(-3deg); }
.phone-screen { position: relative; height: 590px; border-radius: 34px; background: var(--paper); color: var(--ink); padding: 26px 18px 0; overflow: hidden; font-size: 13px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font: 850 1.5rem var(--display); font-stretch: 80%; margin: 8px 0 14px; }
.ph-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.ph-label { font: 700 .7rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.ph-card { --c: var(--blue); position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 12px; padding: 11px 12px 11px 16px; margin-bottom: 8px; border: 1px solid var(--line); overflow: hidden; }
.ph-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.ph-card b { font-size: .96rem; }
.ph-card span { color: var(--muted); font-size: .8rem; }
.ph-card em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) rotate(-6deg); font-size: 1.4rem; color: var(--red); }
.ph-file { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.ph-pdf { background: var(--red); color: #fff; font: 800 .62rem var(--body); padding: 6px 5px; border-radius: 4px; }
.ph-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 16px 20px 22px; background: var(--card); border-top: 1px solid var(--line); }
.ph-tabs i { width: 22px; height: 22px; border-radius: 7px; background: var(--paper-2); }
.ph-tabs i.on { background: var(--ink); }

/* ---------- how ---------- */
.how { padding: clamp(64px, 9vw, 120px) 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; border-top: 2px dashed rgba(20, 32, 74, .35); }
.steps li { position: relative; }
.num { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); font: 900 1.6rem var(--display); margin-bottom: 18px; }
.steps li:last-child .num { background: var(--yellow); }
.steps h3 { margin-bottom: 6px; font-size: 1.25rem; }
.steps p { color: var(--ink-2); font-size: .98rem; }

/* ---------- contact ---------- */
.contact { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.contact-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy > p { margin-top: 18px; font-size: 1.08rem; color: var(--ink-2); max-width: 30em; }
.reach { list-style: none; padding: 0; margin: 28px 0 0; }
.reach li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.reach span { width: 90px; flex: none; font: 700 .75rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.reach a, .reach b { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.reach a:hover { text-decoration: underline; }
.enquire { position: relative; background: var(--card); border-radius: 8px; padding: 36px 30px 28px; box-shadow: 0 24px 50px -28px rgba(20, 32, 74, .4); display: grid; gap: 16px; }
.enquire h3 { font-size: 1.6rem; font-stretch: 80%; font-weight: 850; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.enquire label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 6px; font-weight: 600; font-size: .92rem; }
.enquire label input, .enquire label textarea { flex: 1 0 100%; }
.enquire small { font-weight: 400; color: var(--muted); }
.enquire input, .enquire textarea { width: 100%; font: 400 1rem var(--body); color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid rgba(20, 32, 74, .25); border-radius: 0; padding: 8px 2px; transition: border-color .15s; }
.enquire textarea { resize: vertical; background-image: repeating-linear-gradient(180deg, transparent 0 31px, var(--rule) 31px 32px); line-height: 32px; padding-top: 0; }
.enquire input:focus, .enquire textarea:focus { outline: none; border-bottom-color: var(--blue); }
.enquire .btn { justify-self: start; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #1e7a3c; } .form-msg.err { color: var(--red); }
.privacy-line { font-size: .84rem; color: var(--muted); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #fff; padding: 56px 0 28px; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-tag { margin-top: 14px; font: italic 1.3rem var(--serif); color: var(--yellow); }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.foot-nav a { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 500; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; color: rgba(255, 255, 255, .6); }
.foot-base a { color: rgba(255, 255, 255, .8); }

/* ---------- legal pages ---------- */
.legal { padding: 56px 0 90px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 900; font-stretch: 76%; margin-bottom: 10px; }
.legal h2 { font-size: 1.4rem; font-stretch: 86%; font-weight: 800; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-style: italic; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-in, .subjects-in, .app-in, .contact-in { grid-template-columns: 1fr; }
  .page { max-width: 440px; margin: 10px auto 40px; }
  .doodle-arrow { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .phone { transform: rotate(-2deg); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn { display: grid; gap: 6px; place-content: center; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; }
  .menu-btn span:not(.sr) { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .nav-login { margin-top: 12px; text-align: center; border: 0; }
  .checks li, .checks li + li { padding: 20px 0; border-left: 0; }
  .spine { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px 14px 24px; margin: 0 !important; }
  .spine::after { display: none; }
  .feat { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .enquire { padding: 32px 20px 24px; }
  .sticky { right: -6px; bottom: -48px; width: 130px; }
  .page { padding-left: 58px; padding-right: 18px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .foot-nav { grid-template-columns: 1fr; }
}
.legal + .foot .foot-base { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 760px) {
  .nav.nav-static { position: static; display: flex; flex-direction: row; gap: 14px; padding: 0; background: none; border: 0; }
  .nav.nav-static a { padding: 0; border: 0; font-size: .95rem; }
  .nav.nav-static .nav-login { margin: 0; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
