@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Auth0Shell brand board */
  --ground: #0b0f0a;
  --ground-2: #141a13;
  --primary: #ffc629;
  --secondary: #a3e635;
  --veyra: #22e690;
  --frank: #c8f03c;
  --surface: #f7f8f3;
  --muted: #a4aa9e;

  --margin: clamp(16px, 2.4vw, 32px);
  --title: clamp(36px, 4vw, 56px);
  --heading: clamp(26px, 2.6vw, 36px);
  --lead: clamp(18px, 1.5vw, 21px);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--surface);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
h1, h2 { text-wrap: balance; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.bar-in, main, .foot { width: min(100% - var(--margin) * 2, 1120px); margin-inline: auto; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background-color 400ms, backdrop-filter 400ms;
}
.bar.stuck { background: color-mix(in srgb, var(--ground) 78%, transparent); backdrop-filter: saturate(160%) blur(18px); } /* taste-skill-ignore: Apple-style pinned bar, asked for */
.bar-in { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; transition: padding-block 400ms var(--ease); }
.bar.stuck .bar-in { padding-block: 10px; }
.links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.links a { text-decoration: none; transition: color 200ms; }
.links a:hover { color: var(--surface); }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo img:first-child { width: 28px; }
.logo img:last-child { width: 104px; }

.intro { position: relative; isolation: isolate; padding-block: clamp(40px, 6vw, 72px) clamp(40px, 5vw, 64px); text-align: center; }
/* a faint brand light drifting behind the headline */
.intro::before, .intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  width: min(62%, 620px);
  aspect-ratio: 1.5;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(70px);
  pointer-events: none;
}
.intro::before { left: 4%; background: var(--primary); animation: float-a 16s ease-in-out infinite alternate; }
.intro::after { right: 4%; background: var(--secondary); animation: float-b 19s ease-in-out infinite alternate; }
@keyframes float-a { from { transform: translate(-6%, -4%) scale(1); } to { transform: translate(14%, 10%) scale(1.12); } }
@keyframes float-b { from { transform: translate(8%, 8%) scale(1.1); } to { transform: translate(-14%, -6%) scale(1); } }

/* the headline: words rise in, then a thin light passes through them */
.word { display: inline-block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; vertical-align: top; }
.word > span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(100deg, var(--surface) 44%, var(--primary) 49%, var(--secondary) 53%, var(--surface) 58%) 100% 0 / 320% 100% no-repeat; /* taste-skill-ignore: the headline's passing light */
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 11s linear infinite;
}
.word:nth-child(1) > span { --w: 0; }
.word:nth-child(2) > span { --w: 1; }
.word:nth-child(3) > span { --w: 2; }
.word:nth-child(4) > span { --w: 3; }
.word > span { animation-delay: calc(1.6s + var(--w) * 160ms); }
@keyframes shine { 0% { background-position: 100% 0; } 16%, 100% { background-position: 0 0; } }
.js .word > span { transform: translateY(112%); }
.js.ready .word > span { transform: none; transition: transform 1000ms calc(var(--w) * 90ms) var(--ease); }

.verbs { display: inline-grid; justify-items: center; vertical-align: bottom; overflow: hidden; font-weight: 500; }
.verbs > span { grid-area: 1 / 1; opacity: 0; transform: translateY(70%); transition: opacity 500ms, transform 600ms var(--ease); }
.verbs > span:nth-child(1) { color: var(--primary); }
.verbs > span:nth-child(2) { color: color-mix(in srgb, var(--primary), var(--secondary)); }
.verbs > span:nth-child(3) { color: var(--secondary); }
.verbs > .on { opacity: 1; transform: none; }
.verbs > .out { opacity: 0; transform: translateY(-70%); }

.intro h1 { font-size: var(--title); }
.intro p { margin-top: 14px; font-size: var(--lead); color: var(--muted); }

.tiles { display: flex; gap: 16px; }
.tile {
  --glow: var(--primary);
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: clamp(460px, 44vw, 560px);
  background: var(--ground-2);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.tile-veyra { --glow: var(--veyra); }
.tile-frank { --glow: var(--frank); }
/* one light shared by all tiles: it crosses the gaps and blends between the brand colours */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(440px circle at var(--x, 50%) var(--y, 0), color-mix(in srgb, var(--lightc, var(--glow)) 13%, transparent), transparent 70%); /* taste-skill-ignore: pointer light on a tile */
  opacity: var(--light, 0);
  pointer-events: none;
}
.tile-copy { padding: clamp(32px, 3.6vw, 48px) 24px 28px; }
.tile h2 { font-size: var(--heading); }
.tile p { max-width: 24em; margin: 10px auto 0; color: var(--muted); text-wrap: balance; }
.more { display: inline-block; margin-top: 16px; font-weight: 500; }
.more { color: var(--glow); text-decoration: none; }
.more::after { content: " ›"; display: inline-block; margin-left: 4px; transition: transform 200ms var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more:hover::after { transform: translateX(3px); }

/* the living fragments inside the tiles */
.play {
  display: grid;
  gap: 10px;
  width: min(100% - 48px, 400px);
  min-height: 252px;
  margin: auto auto 28px;
  padding: 16px;
  background: var(--ground);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  list-style: none;
  align-content: start;
}
.msg { position: relative; justify-self: start; max-width: 88%; padding: 9px 13px; background: var(--ground-2); border-radius: 14px; }
.msg.you { justify-self: end; background: var(--primary); color: var(--ground); }
.tile .msg { margin: 0; color: var(--surface); }
.tile .msg.you { color: var(--ground); }
.tile .play p { max-width: 88%; }
.tile .play .score { max-width: none; margin: 0; }
.score { display: flex; justify-content: space-between; gap: 12px; margin-top: 2px; padding: 9px 13px; color: var(--surface); font-weight: 500; }
.score b { font-weight: 600; color: var(--glow); }
.journey li:not(.score) { display: flex; justify-content: space-between; padding: 9px 13px; background: var(--ground-2); border-radius: 10px; }
.journey li:not(.score)::after { content: "✓"; color: var(--veyra); } /* taste-skill-ignore: a real status tick */

/* FrankenApp: pick a phone, type the code, trust the browser */
.lab .label { padding: 2px 13px 0; color: var(--muted); font-size: 13px; }
.lab .phone { display: flex; justify-content: space-between; align-items: center; padding: 9px 13px; background: var(--ground-2); border-radius: 10px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 400ms, background-color 400ms; }
.lab .phone::after { content: ""; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); transition: box-shadow 300ms; }
.js .lab .pick.on, .lab .pick.on { background: color-mix(in srgb, var(--frank) 8%, var(--ground-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--frank) 55%, transparent);; transition: box-shadow 400ms, background-color 400ms; }
.lab .pick.on::after { box-shadow: inset 0 0 0 1.5px var(--frank), inset 0 0 0 4px var(--ground-2), inset 0 0 0 6px var(--frank); }
.lab .code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.lab .code span { display: grid; place-items: center; height: 38px; background: var(--ground-2); border-radius: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.js .lab .code span { color: transparent; transition: color 200ms calc(var(--d) * 110ms); }
.js .lab .code.on span { color: var(--surface); }
.lab .code span:nth-child(1) { --d: 0; }
.lab .code span:nth-child(2) { --d: 1; }
.lab .code span:nth-child(3) { --d: 2; }
.lab .code span:nth-child(4) { --d: 3; }
.lab .code span:nth-child(5) { --d: 4; }
.lab .code span:nth-child(6) { --d: 5; }
.js .lab .score { opacity: 0; transform: translateY(8px); }

.js .msg, .js .call .score, .js .journey .score { opacity: 0; transform: translateY(8px); }
.js .journey li:not(.score) { opacity: 0.35; }
.js .journey li:not(.score)::after { opacity: 0; transition: opacity 300ms; }
.js .play .on { opacity: 1; transform: none; transition: opacity 400ms, transform 500ms var(--ease); }
.js .journey li.on:not(.score) { opacity: 1; transition: opacity 400ms; }
.js .journey li.on::after { opacity: 1; }
.js .msg.typing { color: transparent; }
.msg.typing::after {
  content: "•••";
  position: absolute;
  left: 13px;
  top: 9px;
  color: var(--muted);
  letter-spacing: 2px;
  animation: typing 900ms ease-in-out infinite alternate;
}
@keyframes typing { from { opacity: 0.3; } to { opacity: 1; } }

.detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(80px, 10vw, 136px);
}
.detail h2 { font-size: var(--heading); }
.detail-copy > p { margin-top: 16px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 32px; }
.facts li { max-width: 9em; font-size: 15px; line-height: 1.3; color: var(--muted); }
.facts b { display: block; margin-bottom: 4px; font-size: var(--heading); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--surface); font-variant-numeric: tabular-nums; }
.detail figure { overflow: hidden; border-radius: var(--radius); background: var(--ground-2); }
.detail + .detail { padding-top: 0; }
.detail-flip figure { order: -1; }
.art { display: grid; place-items: center; aspect-ratio: 1; }
.art img { width: 76%; opacity: 0.85; animation: drift 9s ease-in-out infinite alternate; }
#veyra .art img { filter: hue-rotate(83deg); }
@keyframes drift { from { transform: translateY(-1.5%) scale(1); } to { transform: translateY(1.5%) scale(1.03); } }

.foot { padding-block: 24px 32px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--surface); }
.foot-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.foot-maker { display: inline-flex; align-items: center; gap: 8px; }
.foot-maker img { width: 68px; opacity: 0.6; filter: grayscale(1); transition: opacity 200ms; }
.foot-maker:hover img { opacity: 0.9; }
.foot-legal { margin-top: 8px; }

@media (max-width: 1000px) {
  .tiles { flex-direction: column; }
  .tile { flex: none; min-height: 0; }
}

@media (max-width: 760px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail-flip figure { order: 0; }
}

/* motion: everything rests visible unless the script opts in */
.js [data-rise] { opacity: 0; transform: translateY(14px); }
.js [data-rise].in { opacity: 1; transform: none; transition: opacity 700ms calc(var(--i, 0) * 60ms), transform 800ms calc(var(--i, 0) * 60ms) var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .js .word > span { transform: none; transition: none; }
  .word > span, .intro::before, .intro::after { animation: none; }
  .word > span { background-position: 0 0; }
  html { scroll-behavior: auto; }
  .more::after { transition: none; }
  .art img, .msg.typing::after { animation: none; }
  .js .lab .code span { transition: none; }
}
