/* Odyssey Design, the site.
 *
 * A pro-tool page: neutral zinc ground, Geist for everything, Geist Mono for
 * anything you would type or count. One accent, the application's own cobalt,
 * so the page and the screenshots agree. Used for actions and focus only.
 *
 * Shape rule: controls are 8px, panels and media are 14px, the only pill is
 * the small status label and the export-format chips.
 */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */

:root {
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --bg: #f7f7f8;
  --surface: #ffffff;
  --sunk: #eeeef0;
  --ink: #111214;
  --ink-2: #4a4c53;
  --ink-3: #71737b;
  --rule: #e1e1e5;
  --rule-strong: #c9c9cf;
  --accent: #2350d6;
  --accent-ink: #ffffff;
  --accent-soft: #e6ecfc;
  --code-bg: #111214;
  --code-ink: #d9dade;
  --code-dim: #8a8c94;
  --shadow: 0 1px 2px rgb(17 18 20 / 0.05), 0 30px 70px -30px rgb(35 50 110 / 0.30);
  --warn: #8a4b00;
  --warn-soft: #fbecd6;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-ctl: 8px;
  --r-media: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d0f;
    --surface: #15161a;
    --sunk: #1c1d22;
    --ink: #ededef;
    --ink-2: #a9abb3;
    --ink-3: #7c7e87;
    --rule: #24252b;
    --rule-strong: #34363d;
    --accent: #6f8fff;
    --accent-ink: #0a0c14;
    --accent-soft: #161d36;
    --code-bg: #08090b;
    --code-ink: #d9dade;
    --code-dim: #7c7e87;
    --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 30px 80px -30px rgb(0 0 0 / 0.8);
    --warn: #f0b265;
    --warn-soft: #2e2213;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0d0f;
  --surface: #15161a;
  --sunk: #1c1d22;
  --ink: #ededef;
  --ink-2: #a9abb3;
  --ink-3: #7c7e87;
  --rule: #24252b;
  --rule-strong: #34363d;
  --accent: #6f8fff;
  --accent-ink: #0a0c14;
  --accent-soft: #161d36;
  --code-bg: #08090b;
  --code-ink: #d9dade;
  --code-dim: #7c7e87;
  --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 30px 80px -30px rgb(0 0 0 / 0.8);
  --warn: #f0b265;
  --warn-soft: #2e2213;
  color-scheme: dark;
}

/* Theme-matched screenshots. */
.only-dark { display: none; }
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}

/* ------------------------------------------------------------------ base */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-weight: 600; letter-spacing: -0.035em; }
h3 { font: 600 17px/1.35 var(--sans); letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font: 400 0.86em/1.4 var(--mono);
  background: var(--sunk);
  padding: 0.12em 0.38em;
  border-radius: 5px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--r-ctl);
}
.skip-link:focus { top: 12px; }

.ph {
  font-family: "Phosphor" !important;
  font-style: normal; font-weight: normal; font-variant: normal;
  line-height: 1; letter-spacing: 0;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  vertical-align: -0.125em;
}

.muted { color: var(--ink-3); }

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.015em; color: var(--ink); text-decoration: none;
}
.nav__brand img { border-radius: 5px; }
.nav__brand span { font-weight: 400; color: var(--ink-3); }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  padding: 7px 12px; border-radius: var(--r-ctl);
  font-size: 14.5px; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--ink); background: var(--sunk); }
.nav__links a.nav__cta { color: var(--accent-ink); background: var(--accent); font-weight: 500; margin-left: 8px; }
.nav__links a.nav__cta:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.nav__theme {
  margin-left: 6px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--r-ctl); background: transparent;
  color: var(--ink-2); font-size: 16px; cursor: pointer;
}
.nav__theme:hover { color: var(--ink); border-color: var(--rule-strong); }
@media (max-width: 640px) { .nav__links a[data-secondary] { display: none; } }

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

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 18px; border-radius: var(--r-ctl);
  font: 500 15px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap;
  color: var(--ink); background: var(--surface); border: 1px solid var(--rule-strong);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s var(--ease);
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn .ph { font-size: 17px; }
.btn--primary { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); border-color: transparent; }
.btn--lg { height: 50px; padding: 0 22px; font-size: 16px; }

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

.hero { padding-top: clamp(56px, 8vw, 96px); }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; max-width: 17em;
}
.hero h1 span { display: block; color: var(--ink-3); }
.hero__sub {
  margin-top: 24px; max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.55; color: var(--ink-2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero__shot { margin-top: clamp(48px, 6vw, 80px); }

/* A framed real screenshot. */
.frame {
  border-radius: var(--r-media); overflow: hidden;
  border: 1px solid var(--rule); background: var(--surface);
  box-shadow: var(--shadow);
}

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

.section { padding-top: clamp(96px, 12vw, 160px); }
.section--tight { padding-top: clamp(56px, 7vw, 96px); }
.section__head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2, .section__head h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; }
.section__head p { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: clamp(56px, 7vw, 96px) 0 0; }

/* --------------------------------------------------------------- editors */

.switch {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule); margin-bottom: 28px;
}
.switch__tab {
  position: relative; text-align: left; cursor: pointer;
  padding: 20px 20px 4px 0; background: none; border: 0; color: inherit; font: inherit;
}
.switch__tab::before {
  content: ""; position: absolute; left: 0; right: 20px; top: -1px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.switch__tab[aria-selected="true"]::before { transform: scaleX(1); }
.switch__name {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink-3);
  transition: color 0.2s;
}
.switch__name .ph { font-size: 18px; }
.switch__line { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.switch__tab:hover .switch__name,
.switch__tab[aria-selected="true"] .switch__name { color: var(--ink); }
.switch__tab[aria-selected="true"] .switch__line { color: var(--ink-2); }
.switch__tab:focus-visible { outline-offset: 4px; }
.stage .frame { animation: rise 0.5s var(--ease); aspect-ratio: 16 / 9; }
.stage .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 860px) {
  .switch { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .switch__line { display: none; }
  .switch__tab { padding-bottom: 12px; }
}

/* ----------------------------------------------------------------- bento */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.cell {
  position: relative; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r-media); background: var(--surface);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex; flex-direction: column;
}
.cell h3 { font-size: 19px; }
.cell p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; max-width: 52ch; }
.cell--8 { grid-column: span 8; }
.cell--7 { grid-column: span 7; }
.cell--5 { grid-column: span 5; }
.cell--4 { grid-column: span 4; }
.cell--12 { grid-column: span 12; }

/* An image that bleeds off the cell's bottom edge. */
.cell__shot {
  margin: 28px calc(-1 * clamp(22px, 2.6vw, 32px)) calc(-1 * clamp(22px, 2.6vw, 32px));
  border-top: 1px solid var(--rule); margin-top: auto; padding-top: 0;
}
.cell__shot img { width: 100%; }
.cell__text { margin-bottom: 28px; }

.cell--count { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, var(--rule)); }
.count { font: 600 clamp(72px, 8vw, 112px)/0.9 var(--sans); letter-spacing: -0.05em; color: var(--ink); }
.count + p { margin-top: 14px; }
.tally { margin: auto 0 0; padding-top: 28px; display: grid; grid-template-columns: repeat(3, auto); gap: 12px 24px; justify-content: start; }
.tally dt { font: 500 26px/1 var(--mono); letter-spacing: -0.03em; color: var(--ink); }
.tally dd { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }

.cell--code { background: var(--code-bg); border-color: var(--code-bg); }
.cell--code h3 { color: #f1f1f3; }
.cell--code p { color: #a9abb3; }
.routes { margin: auto 0 0; padding-top: 26px; color: var(--code-ink); }
.routes div { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid #23252b; }
.routes dt { font: 500 13.5px/1.5 var(--mono); color: #8fa6ff; }
.routes dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--code-dim); }
.routes dd b { color: var(--code-ink); font-weight: 400; }

.export { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.chips li {
  font: 500 13px/1 var(--mono); padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--rule-strong); color: var(--ink);
}

@media (max-width: 960px) {
  .cell--8, .cell--7, .cell--5, .cell--4 { grid-column: span 12; }
  .export { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- local */

.local { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.local h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; }
.local p { margin-top: 18px; color: var(--ink-2); max-width: 52ch; }
.local p + p { margin-top: 12px; }
.code {
  margin: 0; overflow-x: auto;
  padding: clamp(22px, 3vw, 36px); border-radius: var(--r-media);
  background: var(--code-bg); color: var(--code-ink);
  font: 400 14px/1.8 var(--mono); border: 1px solid var(--rule);
}
.code code { background: none; padding: 0; font: inherit; }
.code b { color: #8fa6ff; font-weight: 500; }
.code i { color: var(--code-dim); font-style: normal; }
@media (max-width: 860px) { .local { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- install */

.install { border: 1px solid var(--rule); border-radius: var(--r-media); background: var(--surface); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.tab {
  padding: 8px 14px; border: 0; border-radius: var(--r-ctl); background: transparent; cursor: pointer;
  font: 500 14.5px/1 var(--sans); color: var(--ink-3); white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--sunk); }
.panel { padding: clamp(22px, 3.4vw, 40px); }
.panel__lead { max-width: 64ch; color: var(--ink-2); margin-bottom: 22px; }
.panel__action { margin-top: 26px; }

.cmd {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 6px 6px 6px 16px; border-radius: var(--r-ctl); background: var(--code-bg);
}
.cmd code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  background: none; padding: 8px 0; color: var(--code-ink); font-size: 14px;
}
.cmd code::before { content: "$ "; color: var(--code-dim); }
.cmd__copy {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: transparent; color: var(--code-dim); cursor: pointer; font-size: 16px;
}
.cmd__copy:hover { color: #fff; background: #1f2127; }
.cmd__copy[data-copied] { color: #8fa6ff; }

.note { margin-top: 20px; max-width: 72ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.status {
  display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 999px;
  font: 500 12.5px/1.6 var(--sans); color: var(--warn); background: var(--warn-soft);
}
.install__more { margin-top: 20px; font-size: 15px; color: var(--ink-3); }

/* ---------------------------------------------------------------- limits */

.limits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.limit { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-media); background: var(--sunk); }
.limit p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; max-width: 60ch; }
.limit--lead { grid-row: span 2; background: transparent; border: 1px solid var(--rule); display: flex; flex-direction: column; justify-content: space-between; }
.limit--lead h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.03em; }
.limit--lead p { font-size: 17px; margin-top: 18px; }
.limit--lead .ph { font-size: 28px; color: var(--ink-3); margin-bottom: 40px; }
@media (max-width: 860px) {
  .limits { grid-template-columns: 1fr; }
  .limit--lead { grid-row: auto; }
}

/* ------------------------------------------------------------- downloads */

.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl { padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--rule); border-radius: var(--r-media); background: var(--surface); }
.dl h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.dl h3 .ph { font-size: 20px; color: var(--ink-3); }
.dl p { margin: 12px 0 20px; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }

.scroller { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-media); background: var(--surface); }
.sums { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sums th {
  text-align: left; padding: 12px 18px; font-weight: 500; font-size: 13px;
  color: var(--ink-3); border-bottom: 1px solid var(--rule); background: var(--sunk);
}
.sums td { padding: 14px 18px; vertical-align: top; }
.sums tr + tr td { border-top: 1px solid var(--rule); }
.sums td:first-child, .sums td:last-child { font-family: var(--mono); font-size: 13.5px; }
.sums td:last-child { word-break: break-all; color: var(--ink-2); min-width: 300px; }

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

.footer { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--rule); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  padding-top: 28px; padding-bottom: 40px; font-size: 14.5px; color: var(--ink-3);
}
.footer__mark { font-weight: 600; font-size: 15.5px; letter-spacing: -0.015em; color: var(--ink); margin-right: 8px; }
.footer__mark span { font-weight: 400; color: var(--ink-3); }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__spacer { margin-left: auto; }
@media (max-width: 640px) { .footer__spacer { margin-left: 0; width: 100%; } }

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .bento .reveal:nth-child(2), .limits .reveal:nth-child(2) { transition-delay: 0.06s; }
  .bento .reveal:nth-child(3), .limits .reveal:nth-child(3) { transition-delay: 0.12s; }
  .bento .reveal:nth-child(4) { transition-delay: 0.06s; }
  .hero__copy > * { animation: rise 0.9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero__shot { animation: rise-far 1.1s var(--ease) 0.24s both; }
  @keyframes rise-far { from { opacity: 0; transform: translateY(32px) scale(0.985); } }
}
@media (prefers-reduced-motion: reduce) {
  .stage .frame { animation: none; }
}
