/* Yeti Learns AI. Midnight base, aqua for wayfinding, pink only for the main action. */
:root {
  --midnight: #0d1230;
  --midnight-deep: #080b20;
  --surface: #171d42;
  --aqua: #74ffed;
  --pink: #fe81d1;
  --text: #f1f4fc;
  --muted: #c3cae3;
  --faint: #a3accd;
  --line: rgba(241, 244, 252, 0.14);
  --aqua-wash: rgba(116, 255, 237, 0.1);

  --sans: "Atkinson Hyperlegible Next", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, monospace;

  /* one spacing scale, used everywhere */
  --s1: 8px; --s2: 12px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 72px; --s8: 104px;
  --read: 700px;   /* guide column: about 70 characters a line */
  --wide: 1080px;
  --gutter: 24px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s5); background: var(--midnight); }
body { margin: 0; background: var(--midnight); color: var(--text); font: 400 19px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--aqua); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
strong, b { font-weight: 700; color: var(--text); }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.3em; }
li { margin-bottom: var(--s2); padding-left: 0.2em; }
li::marker { color: var(--aqua); }

h1, h2, h3 { font-family: var(--sans); font-weight: 700; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.1; letter-spacing: -0.022em; margin: 0 0 var(--s4); }
h2 { font-size: clamp(27px, 3.6vw, 34px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 var(--s3); }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.005em; margin: var(--s5) 0 var(--s2); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s3); top: var(--s3); z-index: 10; background: var(--aqua); color: var(--midnight); padding: var(--s1) var(--s3); border-radius: 8px; }

.kicker { display: block; font: 500 14px/1.4 var(--mono); letter-spacing: 0.02em; color: var(--aqua); margin: 0 0 var(--s2); }

/* header + footer */
.top { border-bottom: 1px solid var(--line); }
.bar { max-width: var(--wide); margin: 0 auto; padding: var(--s3) var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand i { width: 28px; height: 28px; border-radius: 8px; background: var(--aqua); color: var(--midnight); display: inline-grid; place-items: center; font-style: normal; font-size: 16px; font-weight: 800; }
.top nav { display: flex; align-items: center; gap: var(--s4); font-size: 16px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--text); }

.btn, button.go, .done .dl {
  display: inline-flex; align-items: center; justify-content: center; font: 700 17px/1.2 var(--sans);
  background: var(--pink); color: var(--midnight); border: 0; border-radius: 999px; padding: 15px 26px; min-height: 52px;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, button.go:hover, .done .dl:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -10px var(--pink); }
button.go:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.btn.small { font-size: 15px; padding: 9px 16px; min-height: 40px; }

.foot { max-width: var(--wide); margin: 0 auto; padding: var(--s6) var(--gutter); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2) var(--s4); color: var(--faint); font-size: 16px; }
.foot a { color: var(--muted); }
footer { border-top: 1px solid var(--line); margin-top: var(--s7); }

/* email capture */
.capture label { display: block; font-size: 17px; font-weight: 500; color: var(--text); margin: 0 0 var(--s2); }
.row { display: flex; gap: var(--s1); }
.row input[type=email] {
  flex: 1; min-width: 0; min-height: 52px; font: 400 18px var(--sans); color: var(--text); background: var(--midnight-deep);
  border: 1px solid var(--line); border-radius: 999px; padding: 0 22px; transition: border-color .15s;
}
.row input[type=email]::placeholder { color: var(--faint); }
.row input[type=email]:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px var(--aqua-wash); }
.bot-check:not(:empty) { margin-top: var(--s2); }
.fine { font-size: 15px; line-height: 1.5; color: var(--faint); margin: var(--s2) 0 0; }
.fine a { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--pink); font-size: 16px; margin: var(--s1) 0 0; }
.err:empty { display: none; }
.done { display: none; }
.capture.ok form { display: none; }
.capture.ok .done { display: block; }
.done p { margin: 0 0 var(--s3); }
.chip { display: inline-block; font: 500 14px/1 var(--mono); background: var(--aqua); color: var(--midnight); padding: 7px 12px; border-radius: 999px; }

/* home */
.hero { position: relative; overflow: hidden; text-align: center; padding: var(--s8) var(--gutter) var(--s7); background: radial-gradient(90% 62% at 50% 100%, rgba(116, 255, 237, 0.13), transparent 72%); }
.hero h1 { font-size: clamp(40px, 6.6vw, 72px); line-height: 1.06; letter-spacing: -0.028em; max-width: 17ch; margin: 0 auto var(--s4); }
.hero h1 em { font-style: normal; color: var(--aqua); }
.lede { font-size: clamp(20px, 2.3vw, 23px); line-height: 1.55; color: var(--muted); max-width: 33em; margin: 0 auto var(--s5); text-wrap: balance; }
.hero .capture { max-width: 520px; margin: 0 auto var(--s7); text-align: left; }
.hero .capture label, .hero .fine { text-align: center; }
.hero figure { margin: 0 auto; max-width: 720px; position: relative; }
.hero figure img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(116, 255, 237, 0.32); }
figcaption { font: 400 14px/1.5 var(--mono); color: var(--muted); margin-top: var(--s2); }

.section { max-width: var(--wide); margin: 0 auto; padding: var(--s8) var(--gutter) 0; }
.section-head { max-width: var(--read); margin-bottom: var(--s6); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--aqua); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: var(--s4); }
.card h3 { font-size: 25px; line-height: 1.25; letter-spacing: -0.012em; margin: 0 0 var(--s1); }
.card p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 var(--s3); }
.card-title { font-size: 25px; line-height: 1.25; letter-spacing: -0.012em; margin: 0 0 var(--s1); }
.guides-index { padding-top: var(--s7); }
.guides-index .section-head { margin-bottom: var(--s5); }
.card .more { color: var(--aqua); font-weight: 700; font-size: 17px; }

/* guide pages */
.guide { max-width: calc(var(--read) + var(--gutter) * 2); margin: 0 auto; padding: var(--s6) var(--gutter) 0; }
.back { display: inline-block; color: var(--muted); font-size: 16px; text-decoration: none; margin-bottom: var(--s5); }
.back:hover { color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s3); }
.tag { font: 500 14px/1 var(--mono); padding: 7px 12px; border-radius: 999px; background: var(--aqua-wash); color: var(--aqua); }
.guide-sub { font-size: clamp(20px, 2.3vw, 22px); line-height: 1.55; color: var(--muted); margin: 0 0 var(--s5); }
.guide-art { margin: 0 0 var(--s5); }
.guide-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.callout { background: var(--aqua-wash); border-radius: var(--radius); padding: var(--s4); margin: 0 0 var(--s4); }
.callout > :last-child { margin-bottom: 0; }
.tip { background: var(--surface); border-radius: var(--radius); padding: var(--s4); margin: var(--s4) 0; font-size: 18px; line-height: 1.65; }
.tip > :last-child { margin-bottom: 0; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: var(--s7) 0; }

code { font: 400 0.88em/1.5 var(--mono); background: var(--midnight-deep); padding: 0.14em 0.42em; border-radius: 6px; overflow-wrap: anywhere; }
.prompt { background: var(--midnight-deep); border: 1px solid var(--line); border-radius: var(--radius); margin: var(--s4) 0; overflow: hidden; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.prompt-label { font: 500 14px/1.3 var(--mono); color: var(--muted); }
.copy { flex: none; font: 700 15px/1 var(--sans); min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--aqua); background: transparent; color: var(--aqua); cursor: pointer; transition: background .15s, color .15s; }
.copy:hover, .copy.copied { background: var(--aqua); color: var(--midnight); }
.prompt pre { margin: 0; padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt code { display: block; background: none; padding: 0; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.ph { color: var(--aqua); background: var(--aqua-wash); border-radius: 4px; padding: 0 3px; }

.minis { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); margin: var(--s4) 0; }
.mini { background: var(--surface); border-radius: var(--radius); padding: var(--s3) 20px; font-size: 17px; line-height: 1.55; }
.mini b { display: block; margin-bottom: 6px; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; padding: var(--s3) 0; }
summary::marker { color: var(--aqua); }
details p { padding-left: 1.1em; margin-bottom: var(--s3); color: var(--muted); }

.signup { background: var(--surface); border-radius: 22px; padding: var(--s5); margin-top: var(--s7); scroll-margin-top: var(--s5); }
.signup h2 { margin-bottom: var(--s1); }
.signup .intro { color: var(--muted); margin-bottom: var(--s4); }
.signup .row input[type=email] { background: var(--midnight); }

.prose { max-width: calc(var(--read) + var(--gutter) * 2); margin: 0 auto; padding: var(--s7) var(--gutter) 0; }

.strip { margin: var(--s5) calc(var(--gutter) * -1) var(--s1); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.strip img { width: auto; max-width: none; height: 200px; }
.credit { font-size: 15px; line-height: 1.5; color: var(--faint); margin: 0 0 var(--s4); }
.credit a { color: var(--muted); }
.credit-gap { margin-top: var(--s5); }
.card.feature img { aspect-ratio: auto; height: 190px; object-fit: cover; object-position: left center; }
.card.feature { margin-bottom: var(--s2); }
details .prompt { margin-top: 0; margin-bottom: var(--s3); }

/* waitlist landing page */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lp-hero { max-width: var(--wide); margin: 0 auto; padding: var(--s7) var(--gutter); display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s6); align-items: center; }
.lp-hero h1 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.lp-lede { font-size: clamp(19px, 2vw, 21px); line-height: 1.55; color: var(--muted); margin: 0 0 var(--s5); }
.lp-copy .row button.go, .lp-final .row button.go { flex: none; }
.sample { margin: 0; }
.sample figcaption { margin: 0 0 var(--s2); color: var(--faint); }
.sample-doc { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); color: var(--text); text-decoration: none; transition: border-color .15s; }
.sample-doc:hover { border-color: var(--aqua); }
.sample-tag { display: block; font: 500 13px/1 var(--mono); letter-spacing: .08em; color: var(--aqua); margin-bottom: var(--s2); }
.sample-doc strong { display: block; font-size: 21px; line-height: 1.3; margin-bottom: var(--s3); }
.sample-doc ol { margin: 0 0 var(--s3); padding-left: 1.3em; font-size: 16px; line-height: 1.5; color: var(--muted); }
.sample-doc li { margin-bottom: 6px; }
.sample-link { color: var(--aqua); font-weight: 700; font-size: 16px; }

.lp-section { padding: var(--s7) var(--gutter); }
.lp-tint { background: var(--midnight-deep); }
.lp-inner { max-width: calc(var(--wide) - var(--gutter) * 2); margin: 0 auto; }
.lp-inner > h2 { margin-bottom: var(--s5); }
.lp-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s7); align-items: start; }
.lp-split h2 { margin-bottom: var(--s2); }
.lp-split p:last-child { margin-bottom: 0; }
.lp-strong { color: var(--text); font-weight: 700; }
.lp-split > div > p:not(.lp-strong) { color: var(--muted); }
.lp-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--s6); margin: 0; }
.lp-list > div { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.lp-list dt { font-weight: 700; }
.lp-list dd { margin: 2px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.lp-note { margin-top: var(--s4); }
.lp-checks { list-style: none; padding: 0; margin: 0; }
.lp-checks li { position: relative; padding: 0 0 0 34px; margin-bottom: var(--s3); color: var(--muted); }
.lp-checks li:last-child { margin-bottom: 0; }
.lp-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--aqua); font-weight: 800; }
.lp-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 820px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 18px; line-height: 1.35; }
.lp-table th, .lp-table td { text-align: left; padding: var(--s3) 20px; border-top: 1px solid var(--line); font-weight: 400; color: var(--muted); }
.lp-table thead th { border-top: 0; font-weight: 700; color: var(--text); }
.lp-table tbody th { color: var(--faint); }
.lp-table .on { background: var(--surface); color: var(--text); font-weight: 700; }
.wl-count { font-size: 17px; line-height: 1.4; color: var(--muted); margin: var(--s2) 0 0; }
.wl-count + .fine { margin-top: 4px; }
.lp-final .wl-count { text-align: center; }
.lp-final { text-align: center; }
.lp-final .lp-inner { max-width: 620px; }
.lp-final .lp-inner > h2 { margin-bottom: var(--s4); }
.lp-final .capture { text-align: left; }
.lp-final .fine { text-align: center; }

.home-wl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; background: var(--surface); border-radius: 22px; padding: var(--s6); }
.home-wl h2 { margin-bottom: var(--s2); }
.home-wl p.pitch { color: var(--muted); margin: 0; }
.wl-note { background: var(--surface); }

/* gentle entrance on load only */
.rise { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.d2 { animation-delay: .07s; } .d3 { animation-delay: .14s; } .d4 { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .btn, button.go, .card, .done .dl { transition: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --s7: 56px; --s8: 72px; }
  body { font-size: 18px; }
  .cards, .minis, .home-wl, .lp-hero, .lp-split, .lp-list { grid-template-columns: 1fr; }
  .home-wl { padding: var(--s4) 20px; gap: var(--s4); }
  .lp-hero { padding-top: var(--s5); gap: var(--s6); }
  .lp-split { gap: var(--s3); }
  .lp-table { font-size: 16px; }
  .lp-table th, .lp-table td { padding: var(--s2); }
  .callout, .tip { padding: 20px; }
  .signup { padding: var(--s4) 20px; }
  .top nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .row { flex-direction: column; }
  button.go { width: 100%; }
  .row input[type=email] { flex: none; }
}
