:root {
  --bg: #0e0e18;
  --panel: #1a1930;
  --panel-2: #232145;
  --text: #eceaf6;
  --muted: #9a97b8;
  --gold: #d8b45a;
  --accent-a: #8a7cf0;
  --accent-b: #5aa7e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main, .nav, footer { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; row-gap: 8px; column-gap: 14px;
  padding-top: 18px; padding-bottom: 18px;
}
.nav nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav .wordmark {
  font-weight: 800; font-size: 24px; text-decoration: none;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.nav a { color: var(--text); text-decoration: none; }

h1 { font-size: 34px; line-height: 1.25; letter-spacing: -0.5px; }
h2 { margin-top: 2.2em; font-size: 26px; }
h3 { font-size: 19px; margin-bottom: 0.3em; }
a { color: var(--accent-b); }
.muted { color: var(--muted); }
.lede { font-size: 19px; color: var(--muted); }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #fff !important; text-decoration: none; font-weight: 650;
}
.btn-big { padding: 14px 30px; font-size: 19px; }
.btn-small { padding: 6px 16px; font-size: 15px; }

.hero { padding-top: 30px; text-align: left; }

.shots { display: flex; gap: 14px; margin: 34px 0; }
.shots img {
  width: calc(33.33% - 10px); height: auto; border-radius: 18px;
  border: 1px solid var(--panel-2);
}

.clue-demo {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px;
  align-items: center;
}
.clue-demo img {
  width: 100%; height: auto; border-radius: 18px;
  border: 1px solid var(--panel-2);
}
.clue-demo img.card-shot {
  max-width: 340px; justify-self: center; border: none;
}
.clue-demo .phone-shot {
  display: block; width: 100%; height: auto;
  max-width: 300px; justify-self: center;
  border-radius: 18px; border: 1px solid var(--panel-2);
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--panel-2);
  border-radius: 14px; padding: 6px 18px 12px;
}

.features { padding-left: 20px; }
.features li { margin-bottom: 8px; }

.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 18px; }
.post-list a { font-weight: 650; font-size: 19px; }
.post-list p { margin: 2px 0 0; }

.post h1 { margin-bottom: 4px; }
.post-date { margin-top: 0; }
.post img { max-width: 100%; border-radius: 12px; }
.post blockquote {
  margin: 1em 0; padding: 2px 18px; border-left: 3px solid var(--gold);
  background: var(--panel); border-radius: 0 10px 10px 0;
}
.post code {
  background: var(--panel-2); padding: 1px 6px; border-radius: 6px;
  font-size: 0.9em;
}

.cta-box {
  margin: 46px 0 10px; padding: 10px 22px 22px;
  background: var(--panel); border: 1px solid var(--gold);
  border-radius: 16px;
}
.cta-box h2 { margin-top: 14px; font-size: 21px; }

footer {
  margin-top: 70px; padding-top: 22px; padding-bottom: 40px;
  border-top: 1px solid var(--panel-2); font-size: 15px; color: var(--muted);
}
footer a { color: var(--text); }

@media (max-width: 700px) {
  h1 { font-size: 27px; }
  .grid, .clue-demo { grid-template-columns: 1fr; }
  .shots { flex-wrap: wrap; }
  .shots img { width: 100%; max-width: 340px; margin: 0 auto; }
}

/* Plain markdown tables (premium pricing) */
table { border-collapse: collapse; margin: 12px 0 18px; }
th, td { text-align: left; padding: 6px 22px 6px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* ── /a/<slug>/ — unlisted quiz-answer pages ─────────────────────────────
   The app's contrast panel, translated: centroid header (POS + shared
   definition) over a contiguous two-column tile mosaic, each tile wearing
   its signature along the top and its word on a straddling pill — the
   revealed state of the Sense Info panel. */
.answer-hero { padding-top: 26px; }
.answer-kicker { margin-bottom: 4px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }

.answer-sheet {
  margin-top: 26px; padding: 4px 0 0;
  background: var(--panel);
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  overflow: hidden;
}
.answer-centroid { text-align: center; padding: 14px 22px 4px; }
.answer-pos {
  margin: 0 0 4px; color: var(--accent-a);
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.answer-def { margin: 0 0 12px; font-size: 18px; }

.answer-tiles {
  /* Flex-wrap, not grid: a centered partial last row falls out naturally
     at ANY column count (2 tiles under 3 columns straddle grid lines,
     which grid can't center). */
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px;
  padding-top: 14px; /* room for the first row's straddling word pills */
}
.answer-tile { position: relative; margin: 0; width: calc((100% - 2px) / 2); }
/* ?g=3: the reel platforms' three-across arrangement (same numbering). */
.answer-tiles.cols-3 .answer-tile { width: calc((100% - 4px) / 3); }
.answer-tile-num {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #10131f;
  font-weight: 800; font-size: 13px; line-height: 22px; text-align: center;
}
.answer-letter {
  padding-right: 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}
.answer-tile img { display: block; width: 100%; height: auto; }
.answer-signature {
  position: absolute; top: 0; left: 0; right: 0; margin: 0;
  padding: 14px 12px 26px; text-align: center;
  font-style: italic; font-size: 15px; line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  background: linear-gradient(to bottom, rgba(0,0,0,0.72), rgba(0,0,0,0.40) 60%, rgba(0,0,0,0));
}
.answer-word {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px;
  padding: 3px 13px 3px 4px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--gold); font-weight: 800; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  z-index: 2;
}
/* Odd class sizes: the app centers the lone last tile; span + center it. */
@media (max-width: 520px) {
  .answer-def { font-size: 16px; }
  .answer-signature { font-size: 12.5px; padding-bottom: 18px; }
  .answer-word { font-size: 12px; top: -12px; gap: 7px; }
  .answer-tile-num { width: 19px; height: 19px; font-size: 11px; line-height: 19px; }
  .answer-letter { padding-right: 7px; }
}
@media (max-width: 460px) {
  .nav nav { gap: 10px; font-size: 14.5px; }
  .nav .wordmark { font-size: 21px; }
  .btn-small { padding: 5px 11px; font-size: 13px; }
}

/* ── /answers/ — the answer-key search ─────────────────────────────────── */
.answers-search {
  width: 100%; box-sizing: border-box; margin-top: 10px;
  padding: 13px 16px; font-size: 17px; color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px;
  outline: none;
}
.answers-search:focus { border-color: rgba(217, 166, 64, 0.6); }
.answers-results { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.answers-results button {
  padding: 8px 14px; font-size: 15px; font-weight: 600;
  color: var(--text); background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
  cursor: pointer;
}
.answers-results button:hover { border-color: rgba(217, 166, 64, 0.6); }
.answers-results button.selected {
  background: rgba(217, 166, 64, 0.16); border-color: var(--gold);
}
.answers-hint { margin-top: 10px; font-size: 14px; }
.answers-chooser {
  margin-top: 16px; padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
}
.answers-chooser p { margin: 0 0 10px; font-weight: 600; }
.answers-chooser .platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.answers-chooser a {
  display: inline-block; padding: 8px 14px; font-size: 14.5px; font-weight: 600;
  color: var(--text); text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px;
}
.answers-chooser a:hover { border-color: var(--gold); color: var(--gold); }

/* The landing page leads with the product; reading pages keep their familiar width. */
:root { --muted: #b1adc7; }
:focus-visible { outline: 3px solid #f0cb7a; outline-offset: 5px; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 10px; background: var(--panel); }
.skip-link:focus { top: 12px; }
.btn { color: #101322 !important; background: #e8c982; box-shadow: 0 3px 20px #0002; }
.btn:hover { background: #f5dcaa; }
.landing { background: radial-gradient(ellipse at 78% 12%, #28233f 0, transparent 39%), #0e0e18; }
.landing main, .landing .nav, .landing footer { max-width: 1120px; }
.landing .nav { padding-top: 24px; }
.home-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; padding: 62px 0 68px; }
.eyebrow { color: #e8c982; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.home-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(52px, 6.6vw, 78px); line-height: 1.04; letter-spacing: -.045em; margin: 24px 0; }
.home-hero h1 em { color: #e8c982; font-weight: 400; }
.hero-lede { max-width: 405px; font-size: 19px; line-height: 1.65; color: #c6c1d8; margin: 0 0 30px; }
.fine-print { font-size: 12px; color: var(--muted); margin-top: 14px; }
.text-link { display: inline-flex; gap: 14px; margin-top: 10px; font-size: 14px; color: var(--text); text-decoration: none; }
.hero-product { overflow: clip; position: relative; height: 548px; display: flex; justify-content: flex-end; align-items: center; isolation: isolate; }
.hero-product figure { margin: 0; }
.hero-phone { width: 232px; position: relative; z-index: 2; transform: rotate(5deg); margin-right: 26px !important; }
.hero-phone img { display: block; width: 100%; height: auto; border: 5px solid #302e42; border-radius: 31px; box-shadow: 0 24px 65px #0008; }
.hero-product figcaption { color: #e8c982; text-align: center; font-family: Georgia, serif; font-style: italic; margin-top: 10px; }
.floating-card { position: absolute; width: 210px; left: 24px; top: 65px; z-index: 3; transform: rotate(-9deg); }
.floating-card img { display: block; width: 100%; height: auto; border-radius: 15px; box-shadow: 0 20px 50px #0007; }
.orbit { position: absolute; border: 1px solid #bca4ec25; width: 460px; height: 460px; border-radius: 50%; z-index: -1; }
.orbit-one { transform: rotate(-25deg) scaleY(.63); }
.orbit-two { transform: rotate(40deg) scaleY(.8); }
.try-clue { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; border-top: 1px solid #ffffff14; border-bottom: 1px solid #ffffff14; padding: 48px 0; }
.landing h2 { font-family: Georgia, serif; font-weight: 400; line-height: 1.2; letter-spacing: -.025em; font-size: 36px; margin: 15px 0 20px; }
.try-clue h2 { font-size: 30px; }
.try-clue p:not(.eyebrow), .loop-grid p, .feature-duo p { color: #bfbacf; font-size: 16px; }
.sample-clue { background: #1a1929; border: 1px solid #c9b3eb30; border-radius: 18px; padding: 26px 30px; }
.sample-clue .clue-sentence, .sample-clue .clue-gloss { color: #f1edf8 !important; font-size: 22px !important; font-family: Georgia, serif; line-height: 1.6; text-wrap: balance; }
.sample-clue .clue-sentence { margin-top: 0; }
.sample-clue .clue-blank, .sample-clue .clue-pos { color: #e8c982; white-space: nowrap; }
.sample-clue .clue-blank { display: inline-block; }
.sample-clue summary { color: #e8c982; font-size: 14px; cursor: pointer; }
.answer-reveal { letter-spacing: .18em; color: #e8c982; }
.learning-loop { padding: 70px 0; }
.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; margin-top: 36px; }
.step-number { color: #9d90c3; font-family: Georgia, serif; font-size: 24px; }
.loop-grid h3 { font-size: 21px; margin: 10px 0; }
.loop-grid p { margin: 0; }
.feature-duo { display: grid; grid-template-columns: .8fr 1fr; gap: 80px; align-items: center; padding: 30px 50px 50px; border-radius: 24px; background: linear-gradient(140deg, #211e35, #141322); border: 1px solid #ffffff12; }
.sky-preview { text-align: center; }
.sky-preview video { width: 230px; max-width: 100%; height: auto; border-radius: 24px; display: block; margin: auto; border: 1px solid #ffffff20; }
.small-note { color: #e8c982 !important; font-size: 14px !important; }
.nuance-teaser { margin-top: 30px; padding-top: 28px; border-top: 1px solid #ffffff20; }
.pill { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; border: 1px solid #a292c5; border-radius: 30px; padding: 2px 9px; color: #d9c7ff; }
.nuance-teaser h3 { font-size: 20px; line-height: 1.4; }
.nuance-teaser a { font-size: 14px; color: #e8c982; }
.home-faq { max-width: 730px; margin: 70px auto; }
.home-faq details { border-bottom: 1px solid #ffffff20; padding: 18px 0; }
.home-faq summary { cursor: pointer; font-weight: 600; }
.home-faq details p { font-size: 16px; color: #bfbacf; }
.closing-cta { text-align: center; padding: 45px 0; }
.closing-cta h2 { font-size: 42px; margin-bottom: 30px; }
.home-reading { border-top: 1px solid #ffffff14; margin-top: 40px; padding-top: 20px; }
.home-reading h2 { font: 14px -apple-system, sans-serif; color: var(--muted); }
.reading-links { display: flex; gap: 30px; flex-wrap: wrap; }
.reading-links a { color: var(--text); font-size: 15px; }
.comparison-table { overflow-x: auto; margin: 30px 0; }
.comparison-table table { width: 100%; min-width: 540px; }
.comparison-table th, .comparison-table td { padding: 16px; vertical-align: top; }
.comparison-table thead { background: var(--panel); }
.comparison-table th:first-child { width: 23%; }
.source-note { font-size: 14px; color: var(--muted); }
@media (max-width: 850px) {
  .hero-product { height: 470px; }
  .hero-phone { width: 195px; margin-right: 8px !important; }
  .floating-card { width: 158px; top: 76px; }
  .orbit { width: 320px; height: 360px; }
  .feature-duo { gap: 36px; padding: 30px; }
  .try-clue { gap: 26px; }
}
@media (max-width: 700px) {
  .landing .nav { padding-top: 15px; }
  .nav nav a.nav-secondary { display: none; }
  .home-hero { grid-template-columns: 1fr; padding: 32px 0 30px; gap: 15px; }
  .home-hero h1 { font-size: 48px; margin: 20px 0; }
  .hero-lede { font-size: 17px; max-width: 340px; margin-bottom: 24px; }
  .hero-product { width: 330px; max-width: 100%; height: 390px; justify-self: center; }
  .hero-phone { width: 166px; margin-right: 26px !important; }
  .hero-phone img { border-radius: 24px; }
  .floating-card { width: 158px; top: 64px; left: 15px; }
  .try-clue, .feature-duo { grid-template-columns: 1fr; }
  .try-clue { padding: 32px 0; gap: 16px; }
  .sample-clue { padding: 22px; }
  .learning-loop { padding: 42px 0; }
  .landing h2 { font-size: 30px; }
  .loop-grid { grid-template-columns: 1fr; gap: 25px; margin-top: 24px; }
  .loop-grid article { padding-left: 48px; position: relative; }
  .step-number { position: absolute; left: 0; top: 4px; }
  .loop-grid h3 { margin-top: 0; }
  .feature-duo { padding: 28px 22px; gap: 28px; }
  .sky-preview video { width: 190px; }
  .home-faq { margin: 40px 0; }
  .closing-cta { padding: 25px 0; }
  .closing-cta .btn-big { font-size: 16px; padding: 14px 22px; }
  .btn-big { white-space: normal; text-align: center; }
  .orbit { max-width: 100%; }
}
