/* Odd Quest Studio — site styles
   Each product section uses that product's own brand fonts and colors. */

:root {
  --accent: #FF3E8A;
  --ink: #000000;
  --muted: #86868b;
  --line: #d2d2d7;
  --ts-scale: 1;

  /* TableScribe */
  --ts-green: #1A763F;
  --ts-green-ink: #0D6332;
  --ts-ink: #1D201E;
  --ts-text: #262B27;
  --ts-paper: #F3F5F1;
  --ts-line: #E3E6E1;
  --ts-muted: #6A706B;
  --ts-faint: #8A908B;
  --ts-mint: #E2F6E6;
  --ts-red: #D73431;
  --ts-person: #2A61B1;
  --ts-item: #976B03;
  --ts-faction: #8D2D7D;
  --ts-place: #A8471B;

  /* PostPilot */
  --pp-charcoal: #2E2F34;
  --pp-lime: #D0F582;

  /* Handwrite */
  --hw-blue: #3760C8;
  --hw-accent: #FFE89A;
  --hw-navy: #1B2A5A;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 8px;
  background: #000; color: #fff; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.accent-dot { color: var(--accent); }

/* ---------- Header ---------- */
.site-header__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px; min-height: 60px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 19px;
  letter-spacing: -0.02em; text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #1d1d1f; text-decoration: none;
}
.site-nav a:hover { color: #424245; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(96px, 12vw, 168px) 24px; text-align: center; }
.hero h1 {
  margin: 0;
  font-family: 'Inter Tight', sans-serif; font-weight: 900;
  font-size: clamp(38px, 10vw, 150px); line-height: 0.9; letter-spacing: -0.055em;
}
.hero__muted { color: var(--muted); }
.hero__line { display: block; }
.hero__line--bold { padding-bottom: 0.1em; }
.hero__odd { font-style: italic; padding-right: 0.05em; }
.hero__bold { position: relative; display: inline-block; }
.hero__squiggle {
  position: absolute; left: -0.01em; top: 0.85em; width: 100%; height: 0.11em;
  overflow: visible;
}
.hero__squiggle path {
  fill: none; stroke: var(--accent); stroke-width: 0.06em;
  stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.hero__cycle { color: var(--accent); }

/* The period, "products." and the squiggle share one color: studio pink, then
   PostPilot steel blue, TableScribe green, Handwrite blue. A new color every 3s,
   fading over 1.2s. Off under "Reduce motion" (stays pink). */
@media (prefers-reduced-motion: no-preference) {
  .hero__cycle { animation: hero-cycle-color 12s linear infinite; }
  .hero__squiggle path { animation: hero-cycle-stroke 12s linear infinite; }
}
@keyframes hero-cycle-color {
  0%, 15%   { color: var(--accent); }
  25%, 40%  { color: #398BC7; }
  50%, 65%  { color: #1A763F; }
  75%, 90%  { color: #3760C8; }
  100%      { color: var(--accent); }
}
@keyframes hero-cycle-stroke {
  0%, 15%   { stroke: var(--accent); }
  25%, 40%  { stroke: #398BC7; }
  50%, 65%  { stroke: #1A763F; }
  75%, 90%  { stroke: #3760C8; }
  100%      { stroke: var(--accent); }
}

/* ---------- Product sections (shared shape) ---------- */
.product {
  position: relative;
  padding: clamp(88px, 10vw, 120px) 24px;
  text-align: center;
  overflow: hidden;
  scroll-margin-top: 0;
}
.product__inner { position: relative; }
.product__logo { height: 64px; display: flex; align-items: center; justify-content: center; }
.product__title {
  margin: 28px auto 0; max-width: 860px;
  font-size: clamp(34px, 5.4vw, 68px); line-height: 1.04;
}
.product__desc { max-width: 600px; margin: 20px auto 0; font-size: 20px; line-height: 1.5; }
.cta {
  display: inline-flex; align-items: center; min-height: 52px;
  margin-top: 32px; padding: 0 28px; border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 17px; font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.cta:active { transform: none; }
.product__visual {
  max-width: 1000px; margin: 64px auto 0;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 760px) {
  .product__visual { min-height: 540px; }
}

/* ---------- TableScribe ---------- */
.product--ts {
  background: var(--ts-paper); color: var(--ts-ink);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
}
.ts-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 38px; letter-spacing: -0.035em; }
.ts-logo img { width: 46px; height: 46px; }
.product--ts .product__title { font-weight: 600; letter-spacing: -0.045em; }
.ts-accent { color: var(--ts-green); }
.product--ts .product__desc { color: var(--ts-muted); }
.product--ts .cta { background: var(--ts-green); color: #ffffff; }

/* Device stage: laid out at 1232×542 and scaled to fit (JS sets --ts-scale exactly;
   the breakpoints below are the no-JS fallback). */
.ts-visual {
  position: relative; width: 100%; max-width: 1232px;
  height: calc(542px * var(--ts-scale));
  margin: 64px auto 0;
}
@media (max-width: 1279px) { :root { --ts-scale: 0.75; } }
@media (max-width: 971px)  { :root { --ts-scale: 0.55; } }
@media (max-width: 725px)  { :root { --ts-scale: 0.4; } }
@media (max-width: 540px)  { :root { --ts-scale: 0.27; } }
@media (max-width: 380px)  { :root { --ts-scale: 0.22; } }
.ts-stage {
  position: absolute; left: 50%; top: 0; width: 1232px; height: 542px;
  transform: translateX(-50%) scale(var(--ts-scale)); transform-origin: top center;
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: flex-end;
  text-align: left;
}

/* iPhone — recording */
.iphone {
  position: relative; z-index: 2; flex: 0 0 190px; height: 386px;
  margin-right: -40px; margin-bottom: 16px; padding: 8px;
  background: var(--ts-ink); border-radius: 36px;
  box-shadow: 0 30px 60px rgba(25, 72, 44, 0.22);
}
.iphone__screen {
  height: 100%; border-radius: 28px; background: #ffffff;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 12px 14px 24px;
}
.iphone__status {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600; color: var(--ts-ink);
}
.iphone__island { width: 62px; height: 18px; border-radius: 10px; background: var(--ts-ink); }
.rec { text-align: center; }
.rec__label {
  margin: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--ts-red);
}
.rec__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ts-red); }
.rec__time {
  margin: 6px 0 0; font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 500; font-size: 26px; letter-spacing: -0.02em; color: var(--ts-ink);
  font-variant-numeric: tabular-nums;
}
.wave { display: flex; align-items: center; gap: 4px; height: 64px; }
.wave span { width: 5px; border-radius: 3px; background: var(--ts-green); }
.rec__ctl { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rec__btn {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--ts-line);
}
.rec__stop { width: 22px; height: 22px; border-radius: 7px; background: var(--ts-red); }
.rec__title { font-size: 12px; font-weight: 500; color: var(--ts-muted); }

/* Mac — recap */
.mac {
  position: relative; z-index: 1; flex: 0 1 780px; min-width: 0;
  display: flex; flex-direction: column; align-items: center;
}
.mac__bezel {
  width: 100%; background: var(--ts-ink); border-radius: 18px 18px 0 0;
  padding: 12px 12px 14px; box-shadow: 0 40px 80px rgba(25, 72, 44, 0.22);
}
.mac__screen { background: #ffffff; border-radius: 6px; overflow: hidden; display: flex; min-height: 500px; }
.mac__rail {
  flex: 0 0 46px; background: var(--ts-paper); border-right: 1px solid var(--ts-line);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0;
}
.mac__icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.mac__icon--on { border-radius: 7px; background: #E4F5E8; box-shadow: inset 0 0 0 1px #B4DEBF; }
.mac__main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.recap { flex: 1 1 auto; padding: 36px 48px 20px; color: var(--ts-text); }
.recap__meta {
  margin: 0; display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; color: var(--ts-faint);
}
.recap__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ts-green); }
.recap__dot.is-writing { background: var(--ts-item); }
.recap__title {
  margin: 8px 0 0; font-family: -apple-system, 'Geist', system-ui, sans-serif;
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
}
.recap__sub { margin: 14px 0 0; font-size: 14px; font-weight: 700; }
.recap__body { margin: 10px 0 0; min-height: 210px; font-size: 15px; line-height: 1.75; color: var(--ts-text); }
.recap__caret {
  display: inline-block; width: 2px; height: 16px; margin-left: 1px; vertical-align: -3px;
  background: transparent;
}
.recap__caret.is-on { background: var(--ts-green); }
.ent { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.wiki__desc .ent { text-underline-offset: 2px; }
.ent--item { color: var(--ts-item); }
.ent--person { color: var(--ts-person); }
.ent--faction { color: var(--ts-faction); }
.ent--place { color: var(--ts-place); }
.pipeline {
  margin: 0 16px 14px; padding: 8px 10px; border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--ts-line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-size: 11px; color: var(--ts-faint);
}
.pipeline__write {
  padding: 3px 9px; border-radius: 999px; font-weight: 500;
  background: var(--ts-mint); color: var(--ts-green-ink);
}
.pipeline__write.is-active { background: var(--ts-green); color: #ffffff; }
.mac__base {
  width: 112%; height: 16px; background: #CDD2CC; border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 20px rgba(25, 72, 44, 0.12);
}

/* iPad — players' wiki */
.ipad {
  position: relative; z-index: 2; flex: 0 0 364px; height: 484px;
  margin-left: -48px; margin-bottom: 16px; padding: 12px;
  background: var(--ts-ink); border-radius: 30px;
  box-shadow: 0 30px 60px rgba(25, 72, 44, 0.22);
}
.ipad__screen {
  height: 100%; border-radius: 18px; background: #ffffff; overflow: hidden;
  display: flex; flex-direction: column; color: var(--ts-text);
}
.wiki__head { padding: 14px 16px 10px; border-bottom: 1px solid var(--ts-line); }
.wiki__campaign { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.wiki__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wiki__head .wiki__chips { gap: 5px; margin-top: 8px; }
.chip {
  padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 500;
  background: var(--ts-mint); color: var(--ts-green-ink);
}
.chip--on { background: var(--ts-green); color: #ffffff; }
.wiki__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.wiki__who { display: flex; align-items: center; gap: 10px; }
.wiki__avatar {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #DCE6F4;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: var(--ts-person);
}
.wiki__name { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ts-ink); }
.wiki__kind { margin: 1px 0 0; font-size: 11px; color: var(--ts-muted); }
.wiki__desc { margin: 0; font-size: 12px; line-height: 1.55; color: var(--ts-muted); }
.wiki__label {
  margin: 6px 0 0; font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ts-faint);
}
.wiki__rows { display: flex; flex-direction: column; gap: 6px; }
.wiki__row {
  display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px;
  border-radius: 8px; background: var(--ts-paper); font-size: 12px; font-weight: 500;
}
.wiki__row span + span { color: var(--ts-faint); }
.tag { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.tag--faction { background: #F3E6F1; color: var(--ts-faction); }
.tag--place { background: #F6E7DF; color: var(--ts-place); }
.tag--item { background: #F4EDDA; color: var(--ts-item); }

/* ---------- PostPilot ---------- */
.product--pp {
  background: var(--pp-charcoal); color: #ffffff;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.pp-bgmark {
  position: absolute; left: -18%; top: 4%; width: 70%; height: auto;
  opacity: 0.05; pointer-events: none;
}
.pp-logo { height: 40px; width: auto; }
.product--pp .product__title { font-family: 'Gelasio', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.product--pp .product__desc { font-weight: 500; color: #E6E6E7; }
.product--pp .cta { background: var(--pp-lime); color: var(--pp-charcoal); }
.pp-stack { position: relative; width: min(100%, 796px); aspect-ratio: 796 / 540; }
.pp-stack img { position: absolute; height: auto; }
.pp-stack__cardfolio {
  left: 13.8%; top: 33.3%; width: 82.8%; z-index: 1;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.45));
}
.pp-stack__6x11 {
  left: 0; top: 3.7%; width: 49.3%; z-index: 2; transform: rotate(-3deg);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}
.pp-stack__4x6 {
  left: 48.6%; top: 5.6%; width: 51.4%; z-index: 3; transform: rotate(3deg);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

/* ---------- Handwrite ---------- */
.product--hw {
  background: var(--hw-blue); color: #ffffff;
  font-family: 'Lato', system-ui, sans-serif;
}
.hw-logo { height: 60px; width: auto; }
.product--hw .product__title { font-weight: 400; }
.product--hw .cta { background: var(--hw-accent); color: var(--hw-navy); }
.plotter {
  width: min(100%, 796px); padding: 24px; background: #F5F5F5; border-radius: 12px;
  box-shadow: 0 30px 60px rgba(10, 24, 70, 0.3);
}
.plotter svg { width: 100%; height: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #ffffff; color: var(--ink); }
.site-footer__inner {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(88px, 10vw, 136px) 24px 28px; text-align: center;
}
.site-footer__title {
  margin: 0; font-family: 'Inter Tight', sans-serif; font-weight: 900;
  font-size: clamp(52px, 8vw, 116px); line-height: 0.92; letter-spacing: -0.055em;
}
.site-footer__email {
  display: inline-block; margin-top: 32px;
  font-family: 'Inter Tight', sans-serif; font-weight: 800;
  font-size: clamp(26px, 4vw, 56px); letter-spacing: -0.03em;
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 6px; text-underline-offset: 10px; word-break: break-word;
}
.site-footer__email:hover { color: #424245; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 104px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: #6e6e73; text-align: left;
}
