/* Learn AI with Thomas: shared styles (tokens, type, header, footer, buttons, forms, FAQ, motion).
   Colours: Tom, 23 Nov 2026 (fresh green on white, mint dot field, forest green for deep text). Inter only. No gradients. */

/* Inter, served from this site (no Google Fonts call). SIL Open Font License 1.1, see /fonts/OFL.txt */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green: #18865A;        /* fresh green: buttons, the highlighted phrase, links, the status light. White on it is 4.57 to 1 */
  --green-press: #116A46;  /* pressed buttons */
  --deep: #1A4E3C;         /* forest green: big dark text only, and small green text on a mint wash */
  --tint: #E8F7EE;         /* mint wash: small highlights */
  --panel: #F3F8F5;        /* section bands and soft cards */
  --ink: #16211C;          /* text and headings */
  --grey: #5C6660;         /* notes and labels */
  --mint: #5BC08D;         /* decoration only (dots, pulses). Never text. Lighter steps: #9AD9B5, #CDEEDB */
  --white: #FFFFFF;
  --line: #DCE8E1;         /* hairlines inside white cards */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);       /* soft ease out: fades and slides */
  --pop: cubic-bezier(0.34, 1.4, 0.64, 1);      /* small overshoot: pops */
  --radius: 24px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(22, 33, 28, 0.05), 0 12px 32px rgba(22, 33, 28, 0.07);
  --shadow-lift: 0 2px 4px rgba(22, 33, 28, 0.06), 0 22px 48px rgba(22, 33, 28, 0.12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: #CDEEDB; color: var(--deep); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.section { padding-block: 120px; position: relative; }
.band { background: var(--panel); }
.center { text-align: center; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(42px, 6.6vw, 88px); line-height: 1.02; font-weight: 800; letter-spacing: -0.038em;
  text-wrap: balance;
}
.h2 { font-size: clamp(32px, 4.3vw, 54px); line-height: 1.06; font-weight: 800; letter-spacing: -0.032em; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--grey); text-wrap: pretty; }
.note { font-size: 15px; line-height: 1.5; color: var(--grey); }
.green { color: var(--green); }
.deep { color: var(--deep); }
.section-head { display: grid; gap: 18px; justify-items: center; text-align: center; margin-bottom: 64px; }
.section-head .lede { max-width: 620px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding-inline: 14px; pointer-events: none;
}
.site-header__bar {
  pointer-events: auto; width: 100%; max-width: 1168px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, 0); box-shadow: 0 0 0 rgba(22, 33, 28, 0);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), max-width 0.5s var(--ease);
}
.site-header.is-stuck .site-header__bar {
  max-width: 980px; background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow);
}
.logo { display: inline-flex; align-items: center; gap: 0.27em; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.025em; white-space: nowrap; }
.logo__name { color: var(--green); }
.logo__light { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--green); flex: none; }
.logo__light::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); opacity: 0;
  animation: light-pulse 2.8s var(--ease) infinite;
}
@keyframes light-pulse { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(3.2); opacity: 0; } }

.site-header__right { display: flex; align-items: center; gap: 8px; }
.nav-pill { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--panel); }
.nav-pill a {
  padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-pill a:hover, .nav-pill a[aria-current="page"] { background: var(--white); color: var(--green); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); position: relative; }
.nav-toggle span, .nav-toggle span::before { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); content: ""; transition: transform 0.3s var(--ease); }
.nav-toggle span { top: 18px; }
.nav-toggle span::before { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(-7px) rotate(-90deg); }
.nav-sheet {
  pointer-events: auto; position: absolute; top: 72px; right: 14px; width: min(280px, calc(100vw - 28px));
  padding: 10px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow-lift);
  display: grid; transform-origin: top right;
  opacity: 0; transform: scale(0.94) translateY(-6px); visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
}
.nav-sheet.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.nav-sheet a { padding: 13px 16px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 17px; }
.nav-sheet a:hover, .nav-sheet a[aria-current="page"] { background: var(--panel); color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; background: var(--green); color: var(--white);
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 0.12s ease-out, background 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { box-shadow: 0 8px 22px rgba(24, 134, 90, 0.3); }
.btn:active { transform: scale(0.97); background: var(--green-press); }
.btn--small { padding: 11px 18px; font-size: 15px; }
.btn--big { padding: 18px 28px; font-size: 18px; }
.btn--quiet { background: var(--panel); color: var(--ink); }
.btn--quiet:hover { box-shadow: none; background: var(--tint); color: var(--deep); }
.btn--quiet:active { background: var(--tint); }
.btn .arrow { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.text-link { font-weight: 600; color: var(--green); text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--tint); transition: text-decoration-color 0.2s; }
.text-link:hover { text-decoration-color: var(--green); }

/* ---------- Sign up box ---------- */
.signup { width: 100%; max-width: 520px; margin-inline: auto; display: grid; gap: 12px; justify-items: center; }
.signup__box {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 24px;
  border-radius: 999px; background: var(--white); box-shadow: var(--shadow), 0 0 0 1.5px var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.signup__box:focus-within { box-shadow: var(--shadow-lift), 0 0 0 2px var(--green); }
.signup__box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; padding: 10px 0; }
.signup__box input::placeholder { color: var(--grey); opacity: 0.8; }
.signup__key {
  display: none; align-items: center; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--panel);
  font-size: 14px; font-weight: 600; color: var(--grey); opacity: 0; transform: scale(0.8);
  transition: opacity 0.2s var(--ease), transform 0.3s var(--pop);
}
@media (hover: hover) and (min-width: 700px) { .signup__key { display: inline-flex; } }
.signup.is-valid .signup__key { opacity: 1; transform: none; }
.signup__status { min-height: 0; font-size: 15px; color: var(--grey); text-align: center; }
.signup__status:empty { display: none; }
.signup__status button { font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.signup__status.is-error { color: var(--ink); font-weight: 600; }
.signup__thanks {
  display: none; width: 100%; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 24px;
  background: var(--tint); color: var(--deep); text-align: left;
}
.signup__thanks strong { display: block; font-size: 18px; letter-spacing: -0.01em; }
.signup__thanks span { font-size: 15px; }
.signup__tick { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.signup__tick svg { width: 18px; height: 18px; }
.signup.is-done .signup__box, .signup.is-done .signup__status { display: none; }
.signup.is-done .signup__thanks { display: flex; animation: pop-in 0.5s var(--pop) both; }
.signup.is-done .signup__tick path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.4s 0.25s var(--ease) forwards; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.first-readers { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--grey); background: var(--white); padding: 7px 16px; border-radius: 999px; }
.first-readers i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* ---------- Dot field (drawn by js/site.js) ---------- */
.dots { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; pointer-events: none; z-index: 0; }
.dots--top { top: 0; bottom: auto; height: 100%; }
.over-dots { position: relative; z-index: 1; }

/* ---------- The highlight: a selection pulled across our phrase by Tom's cursor ---------- */
.mark { position: relative; display: inline-block; white-space: nowrap; color: var(--green); padding-inline: 0.14em; margin-inline: -0.02em; }
.mark__fill {
  position: absolute; left: 0; top: 0.06em; bottom: 0.02em; width: 100%; background: var(--tint); border-radius: 0.1em; z-index: -1;
}
.mark__fill::before, .mark__fill::after {
  content: ""; position: absolute; top: -0.06em; bottom: -0.06em; width: 0.045em; min-width: 3px; border-radius: 3px; background: var(--green);
}
.mark__fill::before { left: 0; }
.mark__fill::after { right: 0; }
.mark__tag {
  position: absolute; right: -0.2em; bottom: -0.62em; transform: translateX(100%);
  display: flex; align-items: flex-start; font-size: 14px; letter-spacing: 0; line-height: 1; font-weight: 700; z-index: 2;
}
.mark__tag svg { width: 24px; height: 24px; flex: none; margin-right: -3px; }
.mark__tag b {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; font-size: 15px; border-radius: 999px 999px 999px 999px;
  background: var(--green); color: var(--white); font-weight: 700; white-space: nowrap;
}
.mark__tag b svg { width: 12px; height: 12px; margin: 0; display: none; }
.mark.is-yes .mark__tag b svg { display: block; }
html.js.motion .mark__fill { width: 0; }
html.js.motion .mark__fill::after, html.js.motion .mark__tag { opacity: 0; }
html.js.motion .mark.is-on .mark__fill { width: 100%; transition: width 0.9s cubic-bezier(0.65, 0, 0.2, 1); }
html.js.motion .mark.is-on .mark__fill::after, html.js.motion .mark.is-on .mark__tag { opacity: 1; transition: opacity 0.15s; }
html.js.motion .mark.is-yes .mark__tag b { animation: tag-pop 0.45s var(--pop); }
@keyframes tag-pop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@media (max-width: 640px) { .mark__tag { right: 0; transform: translateX(30%); bottom: -1.9em; } }

/* ---------- Motion: blur in words, fade up, pop in. Only when js/site.js has put .motion on <html> ---------- */
html.js.motion [data-split] { visibility: hidden; }
html.js.motion [data-split].is-split { visibility: visible; }
.w { display: inline-block; }
html.js.motion .w { opacity: 0; filter: blur(12px); transform: translateY(0.22em); }
html.js.motion .is-in .w, html.js.motion .is-in.w {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
html.js.motion [data-rise] { opacity: 0; transform: translateY(22px); }
html.js.motion [data-rise].is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.js.motion [data-pop] { opacity: 0; transform: translateY(26px) scale(0.95); }
html.js.motion [data-pop].is-in { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.75s var(--pop); transition-delay: calc(var(--d, 0) * 110ms); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 760px; margin-inline: auto; }
.faq__item { border-radius: 22px; background: var(--white); box-shadow: var(--shadow); transition: box-shadow 0.3s var(--ease); }
.faq__item:hover { box-shadow: var(--shadow-lift); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; text-align: left; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.faq__icon { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--panel); transition: background 0.3s var(--ease), transform 0.5s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 10px; top: 15px; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.4s var(--ease), background 0.3s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--green); transform: rotate(180deg); }
.faq__q[aria-expanded="true"] .faq__icon::before, .faq__q[aria-expanded="true"] .faq__icon::after { background: var(--white); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 72px 24px 24px; color: var(--grey); opacity: 0; transform: translateY(-6px); transition: opacity 0.3s var(--ease), transform 0.45s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: 0.08s; }
html:not(.js) .faq__a { grid-template-rows: 1fr; }
html:not(.js) .faq__a p { opacity: 1; transform: none; }

/* ---------- Closing sign up ---------- */
.closing { padding-block: 130px 190px; text-align: center; overflow: hidden; }
.closing .wrap { display: grid; gap: 26px; justify-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-block: 72px 40px; }
.site-footer .wrap { display: grid; gap: 56px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.site-footer__brand { display: grid; gap: 14px; max-width: 340px; align-content: start; }
.site-footer .logo__light { background: var(--mint); }
.site-footer p, .site-footer li { font-size: 15px; color: #C9D1CC; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 56px; }
.site-footer h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--white); }
.site-footer li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer li a { display: inline-flex; align-items: center; gap: 9px; }
.soc { width: 17px; height: 17px; flex: none; }
.site-footer li a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12); }

/* ---------- Small pages hero (issues, guides, privacy) ---------- */
.page-hero { padding: 190px 0 90px; text-align: center; position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; gap: 20px; justify-items: center; }
.page-hero .lede { max-width: 600px; }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .section { padding-block: 84px; }
  .section-head { margin-bottom: 44px; }
  .nav-pill { display: none; }
  .nav-toggle { display: block; }
  .site-header__bar { padding-left: 18px; }
  .site-header .btn--small { padding: 11px 15px; }
  .page-hero { padding: 150px 0 64px; }
  .closing { padding-block: 90px 150px; }
}
@media (max-width: 420px) {
  .logo { font-size: 15px; gap: 7px; }
  .site-header { padding-inline: 8px; }
  .site-header__bar { padding: 8px 8px 8px 14px; gap: 8px; }
  .site-header__right { gap: 6px; }
  .site-header .btn--small { padding: 11px 13px; font-size: 14px; }
  .site-header .btn--small .arrow { display: none; }
  .signup__box { padding-left: 18px; }
  .signup__box .btn { padding-inline: 16px; }
  .faq__q { font-size: 17px; padding: 18px; }
  .faq__a p { padding: 0 18px 20px; }
}

/* ---------- Reduce motion: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-stuck .site-header__bar { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Small green text needs white under it (4.57 to 1). On a mint or soft panel it switches to forest green. */
.band .text-link, .band .green { color: var(--deep); }
.full { width: 100%; }
.mark { isolation: isolate; }

/* ?still=1 or reduced motion: everything shows finished, nothing animates */
html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; }
