/* The Callus site. Same tokens as the app (src/styles.css): neutral surfaces, amber = XP and actions,
   teal = "solved without AI" only. Fonts are served from this folder: the page asks no other site for anything. */

@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url('fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-weight: 400; font-display: swap; src: url('fonts/pixelify-sans-latin-400-normal.woff2') format('woff2'); }

:root {
  --pit: #111114;
  --coal: #17171b;
  --slab: #202026;
  --slab-2: #2b2b33;
  --ridge: #3d3d48;
  --line: #6a6a76;
  --bone: #f3f1ec;
  --ash: #a6a6b0;
  --amber: #ffb629;
  --amber-ink: #201400;
  --teal: #5fd4c4;
  --heat-1: #4d3812;

  --font-pixel: 'Pixelify Sans', 'Trebuchet MS', sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-mono: ui-monospace, Consolas, 'DejaVu Sans Mono', monospace;

  --r-panel: 10px;
  --r-ctl: 6px;
  --fast: 160ms;
  --mid: 240ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--coal); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; font: 400 17.5px/1.65 var(--font-body); color: var(--bone); background: var(--coal); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0 0 14px; }
a { color: var(--amber); text-underline-offset: 3px; }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--slab); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
img, video { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.fine { color: var(--ash); font-size: 15.5px; }

/* ---------- buttons ---------- */

.btn { display: inline-block; font: 700 16.5px/1.2 var(--font-body); color: var(--bone); background: var(--slab-2); border: 0; border-radius: var(--r-ctl); padding: 12px 20px; text-decoration: none; cursor: pointer; transition: background var(--fast), transform var(--fast); }
.btn:hover { background: var(--ridge); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: #ffc451; }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn:disabled:hover { background: var(--amber); }
.btn-small { padding: 7px 14px; font-size: 15.5px; }

/* ---------- header ---------- */

.top { background: var(--pit); }
.top-inner { display: flex; align-items: center; gap: 20px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; font: 400 28px/1 var(--font-pixel); color: var(--amber); text-decoration: none; }
.mark { image-rendering: pixelated; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top-nav a:not(.btn) { color: var(--ash); text-decoration: none; padding: 6px 10px; border-radius: var(--r-ctl); font-size: 16.5px; transition: color var(--fast); }
.top-nav a:not(.btn):hover { color: var(--bone); }

/* ---------- hero ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 22px; text-wrap: balance; }
.lede { font-size: 19.5px; max-width: 34em; color: var(--bone); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; scroll-margin-top: 40px; }

/* The one thing to try: tick the box and the XP doubles, as in the app. */
.log { margin: 0; }
.log-card { background: var(--slab); border-radius: var(--r-panel); padding: 24px 24px 20px; }
.log-title { font-weight: 700; font-size: 19px; margin-bottom: 2px; }
.log-meta { color: var(--ash); font-size: 15.5px; margin-bottom: 16px; }
.log-code { margin: 0 0 18px; padding: 14px 16px; background: var(--pit); border-radius: var(--r-ctl); font: 14px/1.6 var(--font-mono); color: #e9e7e1; overflow-x: auto; white-space: pre; }
.log-code code { background: none; padding: 0; font: inherit; border-radius: 0; }
.log-code .k { color: #f0b95a; }

.tick { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--slab-2); border-radius: var(--r-ctl); font-weight: 700; cursor: pointer; user-select: none; outline: 1px solid transparent; transition: outline-color var(--fast), background var(--fast); }
.tick:hover { outline-color: var(--line); }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick:has(input:focus-visible) { outline: 2px solid var(--bone); outline-offset: 2px; }
.box { flex: none; width: 22px; height: 22px; border-radius: 5px; border: 2px solid var(--line); display: grid; place-items: center; transition: background var(--fast), border-color var(--fast); }
.box::after { content: ''; width: 6px; height: 11px; border: solid var(--pit); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform var(--mid) var(--ease); }
.tick:has(input:checked) { color: var(--teal); }
.tick:has(input:checked) .box { background: var(--teal); border-color: var(--teal); }
.tick:has(input:checked) .box::after { transform: rotate(45deg) scale(1); }

.log-xp { margin: 14px 0 0; min-height: 1.65em; color: var(--ash); }
.xp strong { color: var(--amber); font-size: 19px; margin-right: 8px; font-variant-numeric: tabular-nums; }
.xp-solo { display: none; }
.log:has(input:checked) .xp-plain { display: none; }
.log:has(input:checked) .xp-solo { display: inline; }
.log:has(input:checked) .xp-solo strong { display: inline-block; animation: pop var(--mid) var(--ease); }
@keyframes pop { 0% { transform: scale(0.7); opacity: 0.3; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.log figcaption { color: var(--ash); font-size: 15.5px; margin-top: 10px; padding-left: 4px; }

/* ---------- the look ---------- */

.band { background: var(--pit); padding: 72px 0 64px; }
h2 { font-size: clamp(26px, 3vw, 32px); margin-bottom: 14px; }
.band h2 { margin-bottom: 28px; }
.demo { margin-bottom: 28px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--slab); border-radius: var(--r-panel); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.shots a { display: block; border-radius: var(--r-panel); outline: 1px solid transparent; transition: outline-color var(--fast); }
.shots a:hover { outline-color: var(--line); }
.shots figure { margin: 0; }
.shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--slab); border-radius: var(--r-panel); }
.shots figcaption { margin-top: 12px; color: var(--ash); font-size: 16px; }
.shots figcaption strong { color: var(--bone); }
.also { margin: 40px 0 0; max-width: 46em; color: var(--ash); }

/* ---------- sections ---------- */

.section { padding-top: 72px; padding-bottom: 8px; }
.section:last-of-type { padding-bottom: 80px; }
.section-lede { max-width: 42em; color: var(--ash); font-size: 18.5px; }
h2[id] { scroll-margin-top: 24px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.plan { background: var(--slab); border-radius: var(--r-panel); padding: 28px; }
.plan h3 { font-size: 21px; }
.price { color: var(--ash); margin: 4px 0 18px; }
.plan-pro .price { color: var(--amber); font-weight: 700; }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; }
.plan li { position: relative; padding: 5px 0 5px 22px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 0.95em; width: 8px; height: 8px; background: var(--ridge); }
.plan-pro li::before { background: var(--heat-1); }
.plan .fine { margin: 12px 0 0; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.facts > div { background: var(--slab); border-radius: var(--r-panel); padding: 24px; }
.facts h3 { margin-bottom: 10px; }
.facts p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.foot { background: var(--pit); color: var(--ash); font-size: 15.5px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; }
.foot-inner span { margin-right: auto; }
.foot a { color: var(--ash); }
.foot a:hover { color: var(--bone); }

/* ---------- 404 ---------- */

.missing-page { display: flex; flex-direction: column; min-height: 100vh; }
.missing-page main { flex: 1; }
.missing { padding-top: 96px; padding-bottom: 96px; }
.missing h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 18px; }

/* ---------- narrower screens ---------- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shots figure { max-width: 680px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .top-nav a:not(.btn) { display: none; }
  .lede { font-size: 18px; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .band, .section { padding-top: 56px; }
  .log-card, .plan, .facts > div { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
