/* TestFromNotes marketing site. Same paper, ink, pens and highlighters as the app. */
@font-face { font-family: "Lexend"; font-weight: 400; font-display: swap; src: url("fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 500; font-display: swap; src: url("fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 600; font-display: swap; src: url("fonts/lexend-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 700; font-display: swap; src: url("fonts/lexend-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("fonts/caveat-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #EEF2F7;
  --sheet: #FFFFFF;
  --ink: #1B2A4A;
  --ink-2: #4F5C78;
  --ink-3: #7A87A3;
  --rule: #D3DDEE;
  --rule-blue: #B9C9E6;
  --pen: #2350D8;
  --pen-dark: #1A3FB0;
  --pen-soft: #E3EAFC;
  --redpen: #D93A3A;
  --ok: #17895A;
  --hl: #FFE347;
  --font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --shadow: 0 1px 1px rgba(27, 42, 74, .06), 0 24px 48px -24px rgba(27, 42, 74, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pen); }
a:hover { color: var(--pen-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 22ch; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.wrap.narrow { max-width: 780px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px;
  background: var(--pen); color: #fff; font: 600 1rem/1 var(--font); text-decoration: none; border: 1.5px solid var(--pen); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--pen-dark); border-color: var(--pen-dark); color: #fff; }
.btn.big { min-height: 54px; padding: 0 26px; font-size: 1.08rem; border-radius: 12px; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: transparent; color: var(--pen); }
.btn.ghost:hover { background: var(--pen-soft); color: var(--pen-dark); }
.fine { font-size: .9rem; color: var(--ink-3); }
.center { text-align: center; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; }
.brand .logo { width: 32px; height: 32px; }
.links { display: flex; gap: 22px; margin-left: 18px; }
.links a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.links a:hover { color: var(--ink); }
.top-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.signin { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
@media (max-width: 900px) { .links { display: none; } }
@media (max-width: 420px) { .signin { display: none; } .top-cta .btn { padding: 0 14px; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 13ch; }
.lead { margin-top: 22px; font-size: 1.15rem; color: var(--ink-2); max-width: 44ch; }
.hero-actions { margin-top: 30px; display: grid; gap: 12px; justify-items: start; }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
}

/* The notebook page with the phone resting on it: the one bold element on the page. */
.hero-art { position: relative; min-height: 560px; width: 100%; max-width: 580px; justify-self: end; }
.notebook { position: absolute; left: 0; top: 10px; width: 390px; min-height: 470px; padding: 26px 30px 40px 64px; background: var(--sheet);
  border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-3deg);
  background-image: linear-gradient(to right, transparent 46px, #EE8B8B 46px, #EE8B8B 48px, transparent 48px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--rule-blue) 35px, var(--rule-blue) 36px);
  background-position: 0 0, 0 52px; font-family: var(--hand); color: #24366A; }
.notebook::before { content: ""; position: absolute; left: 16px; top: 64px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper);
  box-shadow: 0 150px 0 var(--paper), 0 300px 0 var(--paper); }
.nb-date { display: block; text-align: right; font-size: 1.25rem; color: var(--ink-3); line-height: 26px; }
.nb-title { font-size: 2.3rem; font-weight: 700; line-height: 36px; margin: 0 0 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nb-lines { list-style: none; margin: 0; padding: 0; font-size: 1.42rem; font-weight: 600; line-height: 36px; }
.nb-lines li::before { content: "– "; }
.notebook mark { color: inherit; padding: 0 2px; border-radius: 3px; background: linear-gradient(transparent 18%, rgba(255, 227, 71, .85) 18%, rgba(255, 227, 71, .85) 88%, transparent 88%) no-repeat;
  background-size: 100% 100%; animation: swipe .55s ease-out both; }
.notebook li:nth-child(1) mark { animation-delay: .35s; }
.notebook li:nth-child(3) mark { animation-delay: .9s; }
.notebook li:nth-child(4) mark { animation-delay: 1.35s; }
@keyframes swipe { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.nb-note { position: absolute; right: 30px; top: 46px; font-size: 1.45rem; font-weight: 700; color: var(--redpen); transform: rotate(-6deg); background: rgba(255,255,255,.85);
  padding: 0 10px; border: 2.5px solid var(--redpen); border-radius: 50% 46% 52% 44%; }

.phone { position: absolute; right: 0; top: 90px; width: 204px; padding: 9px; border: 0; border-radius: 38px; background: #1B2A4A; cursor: pointer;
  box-shadow: 0 2px 0 #0f1a33 inset, 0 30px 60px -20px rgba(27, 42, 74, .55); transform: rotate(4deg);
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) 1.7s both; }
.phone-screen { position: relative; display: block; border-radius: 30px; overflow: hidden; aspect-ratio: 1 / 2; background: var(--paper); perspective: 900px; }
.phone .face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; transition: transform .5s ease; }
.phone .back { transform: rotateY(180deg); }
.phone[aria-pressed="true"] .front { transform: rotateY(-180deg); }
.phone[aria-pressed="true"] .back { transform: rotateY(0); }
@keyframes rise { from { opacity: 0; transform: translateY(26px) rotate(4deg); } to { opacity: 1; transform: translateY(0) rotate(4deg); } }
.tap-hint { position: absolute; right: 214px; top: 500px; font: 700 1.45rem/1 var(--hand); color: var(--redpen); transform: rotate(-8deg);
  animation: rise-hint .5s ease 2.3s both; }
.tap-hint::after { content: ""; position: absolute; right: -40px; top: -8px; width: 34px; height: 22px; border-top: 2.5px solid var(--redpen); border-right: 2.5px solid var(--redpen);
  border-radius: 0 24px 0 0; }
@keyframes rise-hint { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) { .hero-art { justify-self: start; } }
@media (max-width: 560px) {
  .hero-art { min-height: 570px; }
  .notebook { width: 100%; min-height: 0; padding: 20px 18px 30px 52px; background-position: 0 0, 0 44px;
    background-image: linear-gradient(to right, transparent 38px, #EE8B8B 38px, #EE8B8B 40px, transparent 40px),
      repeating-linear-gradient(to bottom, transparent 0, transparent 31px, var(--rule-blue) 31px, var(--rule-blue) 32px); }
  .notebook::before { left: 12px; }
  .nb-title { font-size: 1.9rem; line-height: 32px; }
  .nb-lines { font-size: 1.3rem; line-height: 32px; }
  .nb-lines li:nth-child(5) { display: none; }
  .nb-note { right: 18px; top: 50px; font-size: 1.35rem; }
  .phone { width: 158px; top: 252px; right: 6px; border-radius: 28px; padding: 7px; }
  .phone-screen { border-radius: 22px; }
  .tap-hint { right: 176px; top: 470px; font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .notebook mark, .phone, .tap-hint { animation: none; }
  .phone .face { transition: none; }
}

/* ---------- How it works (a real sequence, so it's numbered) ---------- */
.how { padding: 72px 0; background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center;
  font: 700 2rem/1 var(--hand); color: var(--redpen); border: 2.5px solid var(--redpen); border-radius: 52% 46% 50% 44%; transform: rotate(-6deg); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); max-width: 36ch; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Feature walkthrough ---------- */
.features { padding: 88px 0 40px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; margin-top: 64px; }
.feature.flip .f-text { order: 2; }
.feature h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 14px; max-width: 18ch; }
.feature p { color: var(--ink-2); max-width: 46ch; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.shot.pad { padding: 22px 26px 0; }
.shot.pair { display: grid; gap: 14px; background: none; border: 0; box-shadow: none; overflow: visible; }
.shot.pair img { border-radius: 14px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.shot.pair img:last-child { width: 82%; margin-left: auto; margin-top: -60px; position: relative; }
.shot.phone-shot { width: 250px; justify-self: center; border-radius: 34px; border: 9px solid #1B2A4A; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .feature.flip .f-text { order: 0; }
  .shot.pair img:last-child { margin-top: -30px; }
}

/* ---------- Parents ---------- */
.parents { padding: 72px 0 88px; }
.parents-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.p-text p { color: var(--ink-2); margin-top: 14px; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
@media (max-width: 860px) { .parents-in { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Pricing ---------- */
.pricing { padding: 80px 0; background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pricing h2 { text-align: center; margin: 0 auto; }
.plan { max-width: 480px; margin: 36px auto 0; padding: 30px; border-radius: 18px; background: var(--paper); border: 1px solid var(--rule); }
.plan-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule); }
.plan-toggle button { min-height: 42px; border: 0; border-radius: 9px; background: none; font: 500 .98rem var(--font); color: var(--ink-2); cursor: pointer; }
.plan-toggle button[aria-checked="true"] { background: var(--pen); color: #fff; }
.plan-toggle span { font-size: .82rem; opacity: .85; }
.price { margin-top: 26px; font-size: 1.1rem; color: var(--ink-2); }
.price b { font-size: 3.4rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.plan-sub { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.plan .ticks { margin: 24px 0 28px; }
.plan .fine { margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 30px; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Closing and sign-in ---------- */
.closing { padding: 72px 0 88px; background: var(--ink); color: #E6ECF7; }
.closing-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.closing h2 { color: #fff; }
.closing p { margin: 14px 0 26px; color: #B7C2DA; max-width: 40ch; }
.closing .btn { background: #fff; color: var(--ink); border-color: #fff; }
.closing .btn:hover { background: var(--pen-soft); border-color: var(--pen-soft); color: var(--ink); }
.find { background: var(--sheet); color: var(--ink); border-radius: 16px; padding: 26px; }
.find h3 { margin-bottom: 14px; }
.find label { display: block; font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; }
.find-row { display: flex; }
.find-row input { flex: 1; min-width: 0; width: 100%; min-height: 48px; padding: 0 14px; font: 400 1rem var(--font); color: var(--ink); border: 1.5px solid var(--rule-blue); border-right: 0; border-radius: 10px 0 0 10px; background: #fff; }
.find-row input:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px var(--pen-soft); }
.find-row span { display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--rule-blue); border-radius: 0 10px 10px 0; background: var(--paper); color: var(--ink-2); font-size: .92rem; white-space: nowrap; }
.find-err { min-height: 1.4em; font-size: .88rem; color: var(--redpen); margin: 6px 0 8px; }
.find .btn.ghost { color: var(--pen); background: transparent; border-color: var(--pen); }
.find .btn.ghost:hover { background: var(--pen-soft); }
@media (max-width: 820px) { .closing-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.foot { padding: 26px 0 34px; font-size: .9rem; color: var(--ink-3); }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--ink-2); }

/* ---------- Legal pages ---------- */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc .updated { color: var(--ink-3); margin: 10px 0 30px; }
.doc h2 { font-size: 1.3rem; margin: 34px 0 10px; max-width: none; }
.doc p, .doc li { color: var(--ink-2); max-width: 68ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }

/* Friend's or promo code carried from the link */
.code-note { margin: 0 auto 18px; max-width: 640px; text-align: center; background: #E3EAFC; color: #1B2A4A; border-radius: 12px; padding: 8px 16px; font-size: .95rem; }
