/* TraceVoy site. Every colour, font and size lives in these tokens. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #07080a;
  --tone-1: rgb(255 255 255 / 0.028);
  --tone-2: rgb(255 255 255 / 0.05);
  --text: #f0f2f3;
  --text-2: #a2a8ac;
  --text-3: #6b7175;
  --accent: rgb(46 230 209);
  --accent-soft: rgb(46 230 209 / 0.14);
  --glow: 0 0 28px rgb(255 255 255 / 0.14);
  --radius: 14px;
  --gutter: clamp(16px, 4.2vw, 72px);
  --wide: 1680px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans JP", "Noto Sans KR", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16.5px/1.65 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The fog: faint, wide, mostly grey with a trace of the route teal. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 46% at 82% -6%, rgb(46 230 209 / 0.05), transparent 72%),
    radial-gradient(48% 42% at 6% 38%, rgb(150 166 176 / 0.045), transparent 72%),
    radial-gradient(70% 50% at 50% 112%, rgb(46 230 209 / 0.035), transparent 70%),
    var(--bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 50; background: var(--bg); padding: 8px 12px; }

/* Wordmark: "Trace" heavy italic in teal, "Voy" light in white, as in the app. */
.brand { display: inline-flex; align-items: baseline; text-decoration: none; font-size: 23px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.brand b { font-weight: 800; font-style: italic; color: var(--accent); letter-spacing: -0.03em; padding-right: 0.04em; }
.brand span { font-weight: 300; color: #fff; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter);
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
}
.top-over { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.top nav { display: flex; gap: 30px; white-space: nowrap; }
.top nav a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.25s var(--ease); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

/* Shared type */
.eyebrow { margin: 0 0 14px; color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { color: #fff; font-weight: 600; text-wrap: balance; }
h2.big { margin: 0; font-size: clamp(30px, 2.9vw, 50px); line-height: 1.08; letter-spacing: -0.035em; text-shadow: var(--glow); }
.sub { margin: 16px 0 0; max-width: 40em; color: var(--text-2); font-size: clamp(16px, 1.15vw, 18.5px); }

.section { padding: clamp(80px, 9vw, 150px) var(--gutter) 0; }
.wrap { max-width: var(--wide); margin: 0 auto; }
.section-head { margin-bottom: clamp(32px, 3.4vw, 56px); }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: max(640px, 100svh); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 0% 50%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(7 8 10 / 0.86) 0%, rgb(7 8 10 / 0.55) 26%, rgb(7 8 10 / 0) 50%),
    linear-gradient(0deg, var(--bg) 0%, rgb(7 8 10 / 0) 18%),
    linear-gradient(180deg, rgb(7 8 10 / 0.55) 0%, rgb(7 8 10 / 0) 16%);
}
.hero-copy { position: relative; z-index: 2; width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 96px var(--gutter) 64px; }
.hero h1 { margin: 0; font-size: clamp(40px, 3.9vw, 74px); line-height: 1.03; letter-spacing: -0.042em; text-shadow: 0 0 34px rgb(255 255 255 / 0.16); }
.hero .lead { margin: 24px 0 0; max-width: 27em; color: var(--text-2); font-size: clamp(17px, 1.2vw, 20px); line-height: 1.55; }
.soon { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; padding: 10px 22px 10px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); white-space: nowrap; }
.soon img { width: 44px; height: 44px; border-radius: 11px; }
.soon strong { display: block; font-size: 15.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
.soon span { display: block; font-size: 13px; color: var(--text-3); line-height: 1.35; }

/* 1 → 2 → 3 → 4 */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 36px); }
.step { position: relative; cursor: default; }
.step figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--tone-1); }
.step figure img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s var(--ease), filter 0.6s var(--ease); }
.step-head { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px; }
.num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tone-2); color: var(--text-2); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.step h3 { margin: 0; font-size: 19px; letter-spacing: -0.015em; white-space: nowrap; }
.step p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.bar { display: none; height: 2px; margin-top: 20px; border-radius: 2px; background: rgb(255 255 255 / 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 8px rgb(46 230 209 / 0.6); }
/* With the script, one step at a time lights up. */
.flow.live .bar { display: block; }
.flow.live .step figure img { opacity: 0.72; filter: saturate(0.85); }
.flow.live .step.on figure img { opacity: 1; filter: none; }
.flow.live .step.on .num { background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 14px rgb(46 230 209 / 0.25); }
.flow.live .step.on .bar i { width: 100%; transition: width var(--dwell, 3.6s) linear; }

/* Frames mosaic: four 16:9 frames and one 9:16 beside them. */
.mosaic { display: grid; grid-template-columns: 1fr 1fr 0.633fr; gap: clamp(10px, 1vw, 16px); }
.mosaic figure { margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--tone-1); }
.mosaic figure.tall { grid-column: 3; grid-row: 1 / span 2; aspect-ratio: auto; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.credit-line { margin: 18px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.6; }
.credit-line a { text-decoration-color: rgb(255 255 255 / 0.25); text-underline-offset: 3px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); }
.feature { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; align-items: center; align-content: start; padding: clamp(24px, 2.2vw, 34px); border-radius: 18px; background: var(--tone-1); }
.feature svg { width: 24px; height: 24px; color: var(--text-2); }
.feature h3 { margin: 0; font-size: 18.5px; letter-spacing: -0.015em; white-space: nowrap; }
.feature p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); margin-top: clamp(12px, 1.2vw, 20px); }
.looks figure { margin: 0; }
.looks .shot { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--tone-1); }
.looks img { width: 100%; height: 100%; object-fit: cover; }
.looks figcaption { margin-top: 10px; color: var(--text-3); font-size: 13.5px; }

/* Privacy band */
.quiet { text-align: center; padding-bottom: clamp(80px, 9vw, 150px); }
.quiet h2 { margin: 0 auto; max-width: 18em; }
.quiet .sub { margin-left: auto; margin-right: auto; }
.quiet .more { display: inline-block; margin-top: 26px; color: var(--text); font-size: 15.5px; font-weight: 500; text-decoration: underline; text-decoration-color: rgb(46 230 209 / 0.55); text-underline-offset: 5px; }
.quiet .more:hover { color: var(--accent); }

/* Footer */
.foot { padding: 40px var(--gutter) 48px; background: rgb(255 255 255 / 0.018); }
.foot-in { max-width: var(--wide); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.foot .brand { font-size: 19px; }
.foot nav { display: flex; white-space: nowrap; }
.foot nav a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.foot nav a + a::before { content: "·"; display: inline-block; margin: 0 12px; color: var(--text-3); }
.foot nav a:hover { color: var(--text); }
.foot p { margin: 0; color: var(--text-3); font-size: 13.5px; white-space: nowrap; }
.foot p a { text-decoration: none; }
.foot p a:hover { color: var(--text-2); }

/* Documents: privacy, terms, support, licenses */
.doc { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: clamp(48px, 7vw, 120px); justify-content: center; padding: clamp(32px, 4vw, 64px) var(--gutter) clamp(80px, 8vw, 128px); }
.toc { position: sticky; top: 32px; align-self: start; padding-top: 10px; }
.doc .toc a { display: block; padding: 5px 0; color: var(--text-3); font-size: 14px; text-decoration: none; transition: color 0.2s var(--ease); }
.doc .toc a:hover { color: var(--text); }
.doc h1 { margin: 0; font-size: clamp(38px, 3.3vw, 58px); line-height: 1.05; letter-spacing: -0.04em; text-shadow: var(--glow); }
.doc .updated { margin: 12px 0 0; color: var(--text-3); font-size: 14px; }
.doc .intro { margin: 28px 0 0; color: var(--text); font-size: 18.5px; line-height: 1.6; }
.doc h2 { margin: 56px 0 12px; font-size: 22px; letter-spacing: -0.02em; scroll-margin-top: 24px; }
.doc h3 { margin: 30px 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { margin: 10px 0; padding-left: 1.2em; }
.doc li { margin: 6px 0; padding-left: 0.2em; }
.doc li::marker { color: var(--text-3); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: rgb(46 230 209 / 0.5); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { color: var(--accent); }
.doc .notice { margin: 14px 0; padding: 16px 20px; border-radius: 12px; background: var(--tone-1); color: var(--text); font-size: 15.5px; line-height: 1.6; }
.doc .notice span { display: block; color: var(--text-2); }
.doc .ja { font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", var(--font); }
.doc .plain { list-style: none; padding: 0; }
.doc .plain li { padding-left: 0; }
.doc .facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.doc .facts li { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--tone-2); color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; }
.doc .q { margin-top: 44px; }
.doc .q + .q { margin-top: 36px; }
.doc .q h2 { margin: 0 0 8px; font-size: 19px; }
.doc .contact { margin-top: 64px; padding: 28px; border-radius: 18px; background: var(--tone-1); }
.doc .contact h2 { margin: 0 0 8px; }
.doc .contact .mail { display: inline-block; margin-top: 6px; color: var(--text); font-size: 19px; font-weight: 500; }
details { margin: 12px 0; border-radius: 12px; background: var(--tone-1); }
summary { cursor: pointer; padding: 14px 20px; color: var(--text); font-weight: 500; font-size: 15.5px; list-style: none; display: flex; align-items: center; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(-45deg); transition: transform 0.25s var(--ease); }
details[open] summary::before { transform: rotate(45deg); }
details > :not(summary) { margin-left: 20px; margin-right: 20px; }
details pre { margin: 0 0 18px; padding: 0 0 4px; max-height: 460px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); font: 12.5px/1.6 var(--mono); }
details ol { padding-bottom: 14px; }
.doc .credits li { font-size: 14.5px; line-height: 1.55; }

.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px var(--gutter); }
.center-page h1 { margin: 0; font-size: clamp(40px, 4vw, 64px); letter-spacing: -0.04em; text-shadow: var(--glow); }
.center-page p { margin: 14px 0 0; color: var(--text-2); }
.center-page a { color: var(--text); text-decoration-color: rgb(46 230 209 / 0.55); text-underline-offset: 4px; }

/* Widths */
@media (max-width: 1180px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 760px) {
  .top { padding-top: 18px; padding-bottom: 18px; }
  .top nav { gap: 22px; }
  .top nav .wide-only { display: none; }
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; display: block; height: 68svh; min-height: 440px; max-height: 600px; }
  .hero-media img { object-position: 52% 50%; }
  .hero::after { display: none; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 0%, rgb(7 8 10 / 0) 14%), linear-gradient(180deg, rgb(7 8 10 / 0.6) 0%, rgb(7 8 10 / 0) 18%); }
  .hero-copy { margin-top: -28px; padding-top: 0; padding-bottom: 8px; }
  .hero h1 { font-size: clamp(32px, 8.8vw, 44px); }
  .hero .lead { margin-top: 16px; font-size: 16.5px; }
  .soon { margin-top: 26px; }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .mosaic figure.tall { grid-column: auto; grid-row: auto; aspect-ratio: 9 / 16; }
  .looks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .looks .shot { aspect-ratio: 4 / 5; border-radius: 10px; }
  .looks figcaption { font-size: 12.5px; }
}
@media (max-width: 640px) {
  .flow, .features { grid-template-columns: minmax(0, 1fr); }
  .flow { row-gap: 40px; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
