/* Oracular's landing page. Standalone: no app bundle, no framework, so it can move to its own
   domain as it is. Tokens are the app's dark look (src/index.css html.dark, palette-dark.js). */
@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #0b0c0f;
  --surface: #14161a;
  --surface-2: #1b1e23;
  --ink: #e8eaee;
  --muted: #a3acb9;
  --line: #262a31;
  --accent: #8b7dff;
  --accent-ink: #0b0c0f;
  --up: #56bb90;
  --down: #ff7f8a;
  --radius: 6px;
  --m: clamp(16px, 2.6vw, 40px);
  /* the five sizes */
  --s-xl: clamp(48px, 8vw, 132px);
  --s-l: clamp(34px, 4.4vw, 68px);
  --s-m: clamp(22px, 2vw, 28px);
  --s-b: 18px;
  --s-s: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--s-b)/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: #3730a3; color: #eef2ff; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius);
  font: 600 16px/1 Inter, sans-serif; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { background: #a094ff; }
.btn:active { transform: scale(.97); }
.btn.small { height: 38px; padding: 0 16px; font-size: var(--s-s); }
.link { text-decoration: none; color: var(--ink); transition: color .15s; }
.link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---- navigation ---- */
.nav {
  position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--m); font-size: var(--s-s);
}
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; font-size: 17px; }
.mark img { width: 28px; height: 28px; }
.nav nav { display: flex; align-items: center; gap: 28px; }

/* ---- hero: a sentence split by a frame, the frame a reel of the app ---- */
.hero { position: relative; height: 210svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero h1 { position: absolute; left: 0; right: 0; top: 47%; height: 2.2em; transform: translateY(-50%); z-index: 2; font-size: clamp(34px, 4vw, 64px); font-weight: 560; }
.half { position: absolute; top: 50%; transform: translateY(-50%); max-width: 25vw; }
.half.l { left: var(--m); }
.half.r { right: var(--m); text-align: right; }
.reel {
  position: absolute; left: 50%; top: 47%; width: 44vw; transform: translate(-50%, -50%);
  display: grid; gap: 24px;
}
.frame { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.frame img.tall, .shot.crop img.tall { object-position: 0 9%; }
.reel-track { display: grid; gap: 24px; transform: translateY(calc(var(--step, 0) * -1 * (44vw * 10 / 16 + 24px))); transition: transform .7s var(--ease); }
.reel-win { height: calc(44vw * 10 / 16 + 120px); margin: -60px 0; overflow: hidden; display: grid; padding-top: 60px; }
.cap { position: absolute; left: 50%; transform: translateX(-50%); top: calc(47% + 44vw * 10 / 32 + 72px); width: 44vw; color: var(--muted); font-size: var(--s-s); text-align: center; }
.sub { position: absolute; left: var(--m); bottom: 32px; max-width: 25vw; display: grid; gap: 22px; justify-items: start; }
.sub p { color: var(--ink); }

/* ---- showcase: the heading is a ticker box ---- */
section { position: relative; }
.wrap { padding: 0 var(--m); }
.try { padding: 120px var(--m) 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-content: start; }
.try h2 { grid-column: 1 / -1; font-size: var(--s-m); font-weight: 560; letter-spacing: -0.02em; color: var(--ink); }
.try form { grid-column: 1 / -1; display: flex; align-items: baseline; }
.ask {
  width: 100%; border: 0; background: transparent; color: var(--ink); padding: 0; margin: 0;
  font: 600 var(--s-xl)/1 Inter, sans-serif; letter-spacing: -0.045em; text-transform: uppercase; caret-color: var(--accent);
}
.ask::placeholder { color: #3a3f48; }
.ask:focus { outline: none; }
.answer { min-height: 300px; }
.examples { align-self: end; display: grid; gap: 14px; justify-items: start; }
.examples p { color: var(--muted); font-size: var(--s-s); }
.examples div { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius); background: var(--surface-2); color: var(--ink);
  font: 500 17px/1 Inter, sans-serif; cursor: pointer; transition: background-color .15s, transform .15s;
}
.chip:hover { background: #262a31; }
.chip:active { transform: scale(.96); }

/* the app's own panel: its conventions apply inside data-ui (borders, small type) */
.ui { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; font-size: 14px; line-height: 1.45; max-width: 560px; }
.ui .row { display: grid; grid-template-columns: 96px 1fr 120px; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); } /* taste-skill-ignore: inside the app's own panel (data-ui) */
.ui .row:first-of-type { border-top: 0; }
.ui .k { color: var(--muted); }
.ui .v { font-weight: 600; text-align: right; }
.ui .up { color: var(--up); } .ui .down { color: var(--down); } .ui .flat { color: var(--muted); }
.ui .bar { position: relative; height: 6px; border-radius: 3px; background: #23262d; }
.ui .bar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #3a3f48; }
.ui .bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.ui .head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.ui .head b { font-size: 16px; }
.ui .foot { margin-top: 10px; color: var(--muted); font-size: 13px; }
.ui .go { display: inline-block; margin-top: 14px; color: #b5abff; font-weight: 600; text-decoration: none; }
.ui .go:hover { text-decoration: underline; }

/* ---- how it works: drag through the stages ---- */
.how { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
.how .field { padding: 120px var(--m) 150px; }
.how .field.a { background: var(--bg); }
.how .field.b { background: var(--surface); display: grid; place-items: center; }
.how h2 { font-size: var(--s-l); max-width: 12ch; transition: opacity .2s; }
.how .field.a > p { margin-top: 28px; max-width: 44ch; color: var(--ink); transition: opacity .2s; }
.how .ui { width: min(460px, 100%); background: var(--bg); transition: opacity .2s; }
.how .swap { opacity: 0; }
.slide { position: absolute; left: var(--m); right: var(--m); bottom: 36px; display: grid; gap: 12px; }
.slide input { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer; }
.slide input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: #2a2e35; }
.slide .fill { position: absolute; left: 0; top: 12px; height: 8px; width: var(--fill, 0%); border-radius: 4px; background: var(--ink); pointer-events: none; transition: width .2s var(--ease); }
.slide .track { position: relative; }
.slide .track input { position: relative; z-index: 1; }
.slide input::-moz-range-track { height: 8px; border-radius: 4px; background: #2a2e35; }
.slide input::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--ink); }
.slide input::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 4px; background: var(--accent); border: 0; transition: transform .15s; }
.slide input::-moz-range-thumb { width: 32px; height: 32px; border-radius: 4px; background: var(--accent); border: 0; }
.slide input:active::-webkit-slider-thumb { transform: scale(1.1); }
.stops { display: grid; grid-template-columns: repeat(4, 1fr); font-size: var(--s-s); color: var(--muted); }
.stops button { all: unset; cursor: pointer; }
.stops button:nth-child(2) { text-align: center; transform: translateX(-17%); }
.stops button:nth-child(3) { text-align: center; transform: translateX(17%); }
.stops button:last-child { text-align: right; }
.stops button[aria-current="true"] { color: var(--ink); }
.stops button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---- proof: large marks on tiles ---- */
.proof { padding: 200px var(--m) 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--surface); border-radius: var(--radius); padding: 24px; aspect-ratio: 3 / 2; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.tile.h { grid-column: span 2; aspect-ratio: auto; background: var(--accent); color: var(--accent-ink); }
.tile.h h2 { font-size: var(--s-l); max-width: 10ch; }
.tile.h p { font-size: var(--s-s); max-width: 46ch; color: #15121f; }
.tile b { font-size: clamp(34px, 3.6vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.tile p { font-size: var(--s-s); color: var(--ink); line-height: 1.45; }

/* ---- features: small proof beside text ---- */
.more { padding: 200px var(--m) 0; }
.more > h2 { font-size: var(--s-l); margin-bottom: 72px; }
.mods { display: grid; gap: 112px; }
.mod { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.mod h3 { font-size: var(--s-m); }
.shot { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; height: auto; }
.shot.crop { aspect-ratio: 16 / 10; }
.shot.crop img { height: 100%; object-fit: cover; object-position: top left; }
.mod h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.mod p { margin-top: 14px; font-size: var(--s-b); color: var(--ink); max-width: 40ch; }
.mod p + p { color: var(--muted); font-size: var(--s-s); }

/* ---- questions: an index, one answer ---- */
.faq { padding: 220px var(--m) 0; display: grid; grid-template-columns: 5fr 1fr 6fr; }
.faq ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; grid-column: 1; }
.faq h2 { font-size: var(--s-b); font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 14px; grid-column: 1; }
.q { all: unset; display: flex; gap: 14px; align-items: baseline; padding: 9px 0; cursor: pointer; color: var(--muted); font-size: var(--s-b); line-height: 1.35; transition: color .15s; }
.q::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3a3f48; transform: translateY(-2px); transition: background-color .15s; }
.q[aria-expanded="true"] { color: var(--ink); }
.q[aria-expanded="true"]::before { background: var(--accent); }
.q:hover { color: var(--ink); }
.q:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pane { grid-column: 3; grid-row: 1 / span 2; position: sticky; top: 120px; align-self: start; font-size: var(--s-m); line-height: 1.32; max-width: 30ch; transition: opacity .15s; }
.faq .inline { display: none; }

/* ---- closing: a sentence with a blank ---- */
.close { padding: 200px var(--m) 0; }
.close form { font: 600 clamp(36px, 6vw, 100px)/1.12 Inter, sans-serif; letter-spacing: -0.04em; }
.close input {
  width: 4.2em; height: 1.1em; vertical-align: baseline; border: 0; border-radius: var(--radius); background: var(--surface-2);
  color: var(--ink); font: inherit; text-transform: uppercase; padding: 0 .18em; margin: 0 .08em;
}
.close input::placeholder { color: #4b515c; }
.close button {
  height: 1.1em; padding: 0 .22em; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink);
  font: inherit; cursor: pointer; vertical-align: baseline; transition: background-color .15s, transform .15s;
}
.close button:hover { background: #a094ff; }
.close button:active { transform: scale(.97); }
.close p { margin-top: 28px; font-size: 16px; color: var(--muted); max-width: 60ch; }

/* ---- footer: one quiet line ---- */
footer { margin-top: 14svh; padding: 0 var(--m) 30px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: baseline; font-size: var(--s-s); color: var(--muted); }
footer nav { display: flex; gap: 24px; }
footer nav a { color: var(--ink); text-decoration: none; }
footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer .end { text-align: right; }

/* ---- entrances (only with script; content shows without it) ---- */
.js [data-in] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 75ms); }
.js [data-in].in { opacity: 1; transform: none; }
.drift { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.04); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-in] { opacity: 1; transform: none; transition: none; }
  .reel-track, .how h2, .how .ui, .pane { transition: none; }
  .drift { animation: none; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.h { grid-column: span 2; }
  .mod { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .how .field { padding-top: 96px; }
}

/* ---- phones: their own composition ---- */
@media (max-width: 760px) {
  :root { --m: 16px; }
  .nav nav .link { display: none; }
  .hero { height: auto; }
  .stage { position: relative; height: auto; overflow: visible; padding: 112px var(--m) 56px; display: grid; gap: 20px; }
  .hero h1 { position: relative; inset: auto; display: grid; gap: 4px; }
  .half { position: static; transform: none; max-width: none; display: block; }
  .hero h1 { font-size: 9.5vw; }
  .half.r { text-align: right; }
  .reel, .cap, .sub { position: static; transform: none; width: auto; max-width: none; }
  .reel-win { height: auto; margin: 0; padding: 0; }
  .reel-track { transform: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .reel-track .frame { scroll-snap-align: start; aspect-ratio: 4 / 3; }
  .cap { text-align: left; }
  .sub { margin-top: 8px; }
  .try { grid-template-columns: 1fr; padding: 96px var(--m); min-height: 0; }
  .ask { font-size: 15vw; }
  .ui .row { grid-template-columns: 78px 1fr 92px; }
  .how { grid-template-columns: 1fr; }
  .how .field { padding: 64px var(--m) 56px; }
  .how .field.b { order: -1; padding: 40px var(--m) 8px; }
  .how h2 { font-size: 9vw; }
  .slide { position: static; order: 0; padding: 20px var(--m) 4px; background: var(--surface); }
  .how .field.a { order: 1; padding-top: 40px; }
  .stops { font-size: 16px; }
  .proof { padding-top: 120px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; }
  .tile { aspect-ratio: auto; min-height: 150px; padding: 16px; }
  .tile.h h2 { font-size: 9vw; }
  .tile b { font-size: 34px; }
  .tile p { font-size: 16px; }
  .more { grid-template-columns: 1fr; padding-top: 120px; gap: 40px; }
  .more > h2 { position: static; font-size: 9vw; max-width: none; }
  .mods { gap: 64px; }
  .mod { grid-template-columns: 1fr; gap: 16px; }
  .faq { grid-template-columns: 1fr; padding-top: 120px; }
  .pane { display: none; }
  .faq .inline { display: block; padding: 0 0 14px 22px; font-size: 18px; line-height: 1.45; }
  .faq .inline[hidden] { display: none; }
  .close { padding-top: 140px; }
  .close form { font-size: 11vw; }
  footer { grid-template-columns: 1fr; gap: 8px; margin-top: 20svh; padding-bottom: 24px; }
  footer nav { flex-wrap: wrap; gap: 8px 20px; }
  footer .end { text-align: left; }
}
