/* Joyne marketing site.
   Tokens from the approved "Evolution" brand kit. Direction: a drafting-table
   navy for the hero and the close, paper and white between, one accent (Joyne
   blue), evidence teal for sheet references and "Released". Monospace for the
   things a drawing set would label. Mobile first. */

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

:root {
  --joyne-blue: #416AFF;
  --joyne-navy: #060F3B;
  --joyne-paper: #F5F7FF;
  --joyne-soft-blue: #8DABFF;
  --joyne-surface: #FFFFFF;
  --joyne-text: #212C52;
  --joyne-muted: #505C6C;
  --joyne-rule: #CDD0E5;
  --joyne-attention: #ED9807;
  --joyne-teal: #0E7C7B;
  --joyne-font: Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* derived */
  --blue-hover: #5479FF;
  --blue-deep: #2A4FD9;
  --navy-2: #0B1752;
  --navy-line: rgba(141, 171, 255, .16);
  --rule-soft: #E6E9F4;
  --muted-2: #677188;
  --teal-bright: #3CC4BC;
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1360px;
  --space: clamp(80px, 10vw, 144px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::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;
  font: 400 17px/1.6 var(--joyne-font);
  font-feature-settings: "cv11", "ss01", "ss03";
  color: var(--joyne-text);
  background: var(--joyne-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { max-width: 100%; }
a { color: var(--joyne-blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { color: var(--joyne-navy); margin: 0; font-weight: 640; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--joyne-attention); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(65, 106, 255, .22); }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--joyne-surface); color: var(--joyne-navy); padding: 10px 14px; border-radius: 8px;
  font-weight: 560;
}
.skip:focus { top: 12px; }

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

/* ---------- button (the only one: Book a pilot) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px 0 20px;
  background: var(--joyne-blue); color: #fff;
  border-radius: 10px;
  font: 600 0.98rem/1 var(--joyne-font); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(6, 15, 59, .25), 0 10px 28px -12px rgba(65, 106, 255, .9);
  transition: background .18s, transform .18s var(--ease), box-shadow .18s;
}
.btn:hover { background: var(--blue-hover); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-arrow { transition: transform .18s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(2px); }
.btn-sm { min-height: 36px; padding: 0 12px 0 14px; font-size: 0.9rem; border-radius: 9px; gap: 6px; }
.btn-lg { min-height: 52px; padding: 0 22px 0 26px; font-size: 1.05rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 15, 59, .82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  margin-bottom: -64px; /* sits over the dark hero, so the colours match */
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: rgba(141, 171, 255, .14); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: block; padding: 6px 0; margin-right: auto; }
.brand img { display: block; width: 96px; height: auto; }
.nav { display: none; gap: 30px; margin-right: 28px; }
.nav a { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color .15s; }
.nav a:hover { color: #fff; }
@media (min-width: 860px) { .nav { display: flex; } }

/* ---------- hero (dark) ---------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--joyne-navy); color: #fff;
  padding: calc(64px + clamp(32px, 3.6vw, 56px)) 0 var(--space);
}
/* drafting grid, fading out from the top */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 10%, transparent 72%);
  opacity: .55;
}
.hero h1 { color: #fff; }
.hero-head { display: grid; gap: 24px; }
.hero-title { min-width: 0; }
.hero h1 {
  font-size: clamp(2.5rem, 1rem + 3.5vw, 4.5rem);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 640;
  text-wrap: balance;
  margin-top: 20px;
}
.hero .sub { color: rgba(255, 255, 255, .72); font-size: clamp(1.06rem, 1rem + .25vw, 1.18rem); line-height: 1.55; max-width: 30em; }
.hero-side .btn { margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 10px; border-radius: 99px;
  font-size: 0.86rem; font-weight: 520; color: var(--joyne-soft-blue);
  background: rgba(65, 106, 255, .12); border: 1px solid rgba(141, 171, 255, .24);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 3px rgba(60, 196, 188, .18); }
.back { font-size: 0.92rem; }
.back a { color: var(--joyne-soft-blue); text-decoration: none; }
.back a:hover { color: #fff; }
.hero .back { color: var(--joyne-soft-blue); }

@media (min-width: 1000px) {
  .hero--media .hero-head { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 56px; align-items: end; }
  .hero-side { padding-bottom: 6px; }
}
.hero--plain .hero-head { max-width: 860px; }
.hero--plain .wrap { position: relative; }
.hero-mark { display: none; }
@media (min-width: 1000px) {
  .hero-mark {
    display: block; position: absolute; right: var(--gutter); top: 50%;
    width: clamp(240px, 24vw, 340px); height: auto; transform: translateY(-50%);
    color: rgba(141, 171, 255, .7);
    filter: drop-shadow(0 0 18px rgba(65, 106, 255, .6));
  }
}
.hero--plain .sub { max-width: 34em; }

/* hero with a product window: the dark ends partway down the window */
.hero--media { padding-bottom: 0; }
.hero--media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: clamp(64px, 14vw, 220px); background: var(--joyne-surface);
}
/* glow behind the window */
.hero--media .wrap { position: relative; }
.hero--media .wrap::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 10%; right: 10%; bottom: 8%; height: 70%;
  background: radial-gradient(ellipse at 50% 50%, rgba(65, 106, 255, .42), transparent 68%);
  filter: blur(30px);
}
.hero--plain { padding-bottom: clamp(56px, 7vw, 96px); }
.hero--short h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem); margin-top: 14px; }

/* page-load motion for the hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-side, .window-hero { animation: rise .8s var(--ease) both; }
  .hero-side { animation-delay: .08s; }
  .window-hero { animation-duration: 1s; animation-delay: .16s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- product window ---------- */
.window {
  position: relative; margin: 0;
  border-radius: 14px; overflow: hidden;
  background: var(--navy-2);
  border: 1px solid rgba(141, 171, 255, .22);
  box-shadow:
    0 0 0 1px rgba(6, 15, 59, .5),
    0 2px 4px rgba(6, 15, 59, .12),
    0 30px 80px -30px rgba(6, 15, 59, .55);
}
.window-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  height: 40px; padding: 0 10px 0 16px;
  background: linear-gradient(#111E5E, #0B1752);
  border-bottom: 1px solid rgba(141, 171, 255, .12);
}
.window-dots { display: inline-flex; gap: 7px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.window-title {
  display: inline-flex; align-items: center; gap: 9px; min-width: 0;
  font: 500 0.76rem/1 var(--mono); letter-spacing: .02em; color: rgba(255, 255, 255, .64);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); }
@media (prefers-reduced-motion: no-preference) {
  .live { animation: live 2.4s ease-in-out infinite; }
}
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgba(60, 196, 188, .5); } 50% { box-shadow: 0 0 0 5px rgba(60, 196, 188, 0); } }
.media-toggle {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 26px; padding: 0 10px;
  font: 500 0.72rem/1 var(--mono); letter-spacing: .03em; color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 7px;
  cursor: pointer; transition: background .15s, color .15s;
}
.media-toggle:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.media-toggle .i-play { display: none; }
.media-toggle.is-paused .i-play { display: block; }
.media-toggle.is-paused .i-pause { display: none; }
.window-body { position: relative; aspect-ratio: 16 / 9; background: var(--joyne-paper); }
.window-body video { display: block; width: 100%; height: 100%; object-fit: cover; }

.window-hero { margin-inline: calc(var(--gutter) * -1 + 10px); }
.window-hero .window-body { aspect-ratio: 1920 / 980; }
.window-cat .window-body { aspect-ratio: 1920 / 990; }
@media (min-width: 700px) {
  .window-hero { margin-inline: 0; margin-top: clamp(36px, 3.4vw, 52px); }
}
@media (min-width: 1000px) {
  .window-hero .window-body { aspect-ratio: 1920 / 880; }
  .window-cat .window-body { aspect-ratio: 1920 / 990; }
}
/* The window runs a little wider than the text on large screens */
@media (min-width: 1380px) {
  .window-hero { margin-inline: -40px; }
}
@media (max-width: 699px) {
  .window-hero { margin-top: 36px; border-radius: 12px; }
  /* Small screens: a taller crop anchored on the quote panel, paper margins trimmed */
  .window-hero .window-body, .window-hero.window-cat .window-body { aspect-ratio: 3 / 2; overflow: hidden; }
  .window-hero video { object-position: 100% 50%; transform: scale(1.18); transform-origin: 97% 50%; }
  .window-dots { display: none; }
  .window-bar { grid-template-columns: 1fr auto; padding-left: 12px; }
}

/* ---------- proof strip ---------- */
.proof { border-bottom: 1px solid var(--rule-soft); }
.proof-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 16px; padding-top: clamp(28px, 3.5vw, 44px); padding-bottom: clamp(28px, 3.5vw, 44px);
}
.proof-label {
  font: 600 0.72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2);
}
.proof-in { display: flex; flex-wrap: wrap; gap: 6px; }
.proof-in li {
  padding: 5px 10px; border-radius: 7px; font-size: 0.9rem; font-weight: 500; color: var(--joyne-text);
  background: var(--joyne-paper); border: 1px solid var(--rule-soft);
}
.proof-arrow { position: relative; width: 40px; height: 1px; background: var(--joyne-rule); margin: 0 4px; }
.proof-arrow::after {
  content: ""; position: absolute; right: -1px; top: -3.5px; width: 7px; height: 7px;
  border-top: 1px solid var(--joyne-rule); border-right: 1px solid var(--joyne-rule); transform: rotate(45deg);
}
.proof-out {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 600; color: var(--joyne-navy);
}
.proof-out::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--joyne-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3 7 10.7l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
@media (max-width: 699px) {
  .proof-inner { justify-content: flex-start; }
  .proof-arrow { width: 100%; height: 0; background: none; margin: 2px 0; }
  .proof-arrow::after { display: none; }
}

/* ---------- sections ---------- */
.section { padding: var(--space) 0; }
.section--paper, .see { background: var(--joyne-paper); }
.section-head { display: grid; gap: 28px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--joyne-blue);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.title {
  font-size: clamp(2rem, 1.3rem + 2.1vw, 3.2rem); line-height: 1.04; letter-spacing: -0.038em;
  text-wrap: balance; max-width: 16em;
}
.sub { margin-top: 16px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--joyne-muted); max-width: 34em; }
@media (min-width: 900px) {
  .section-head:has(> .tabs) { grid-template-columns: minmax(0, 1fr) auto; }
}

/* statement */
.statement-section { padding: clamp(80px, 9.5vw, 136px) 0; }
.statement {
  font-size: clamp(1.9rem, 1rem + 2.9vw, 3.6rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 620;
  max-width: 21em; text-wrap: pretty;
}
.statement span { color: #8790A6; }

/* ---------- see it quote ---------- */
.tabs {
  display: inline-flex; justify-self: start; gap: 2px; padding: 4px;
  background: #E9EDFB; border: 1px solid #DCE1F3; border-radius: 12px;
  max-width: 100%;
}
.tabs [role="tab"] {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--joyne-muted);
  font: 560 0.94rem/1 var(--joyne-font); white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.tabs [role="tab"]:hover { color: var(--joyne-navy); }
.tabs [role="tab"][aria-selected="true"] {
  background: var(--joyne-surface); color: var(--joyne-navy);
  box-shadow: 0 1px 2px rgba(6, 15, 59, .1), 0 0 0 1px rgba(6, 15, 59, .05);
}
.see-panel[hidden] { display: none; }
.see-panel:focus-visible { outline-offset: 6px; border-radius: 16px; }
.see .window { box-shadow: 0 0 0 1px rgba(6, 15, 59, .04), 0 2px 4px rgba(6, 15, 59, .06), 0 40px 80px -40px rgba(6, 15, 59, .45); }
.see .window-body { aspect-ratio: 1920 / 990; }
@media (max-width: 459px) {
  .tabs { display: flex; width: 100%; }
  .tabs [role="tab"] { flex: 1 1 0; padding: 0 6px; font-size: 0.86rem; }
}
@media (min-width: 900px) { .tabs { justify-self: end; } }

/* ---------- how it works ---------- */
.steps { display: grid; gap: 48px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.steps h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.02em; margin-top: 10px; }
.steps p { margin-top: 8px; color: var(--joyne-muted); max-width: 24em; }
.step-n { display: block; margin-top: 26px; font: 600 0.78rem/1 var(--mono); letter-spacing: .1em; color: var(--joyne-blue); }
.viz {
  position: relative; height: 176px; overflow: hidden;
  background: var(--joyne-paper); border: 1px solid var(--rule-soft); border-radius: 14px;
  background-image: radial-gradient(rgba(6, 15, 59, .09) 1px, transparent 1px);
  background-size: 14px 14px;
}
/* 1: the sheets in the set */
.viz-sheets .sheet {
  position: absolute; left: 50%; top: 50%; width: 190px;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; font-size: 0.86rem; font-weight: 520; color: var(--joyne-navy);
  background: #fff; border: 1px solid var(--rule-soft); border-radius: 9px;
  box-shadow: 0 1px 2px rgba(6, 15, 59, .06), 0 8px 20px -10px rgba(6, 15, 59, .25);
  transition: transform .8s var(--ease);
}
.viz-sheets .sheet b {
  font: 600 0.72rem/1 var(--mono); color: var(--joyne-teal);
  padding: 4px 6px; border-radius: 5px; background: rgba(14, 124, 123, .1);
}
.viz-sheets .sheet:nth-child(1) { transform: translate(-50%, -50%) translate(-26px, -38px) rotate(-3deg); }
.viz-sheets .sheet:nth-child(2) { transform: translate(-50%, -50%) translate(0, 0); z-index: 1; }
.viz-sheets .sheet:nth-child(3) { transform: translate(-50%, -50%) translate(26px, 38px) rotate(2.5deg); z-index: 2; }
/* 2: a traced run and its quantity */
.viz-measure svg { position: absolute; inset: 22px 22px 58px; width: calc(100% - 44px); height: calc(100% - 80px); overflow: visible; }
.viz-measure .grid { stroke: rgba(6, 15, 59, .12); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.viz-measure .trace {
  fill: none; stroke: var(--joyne-blue); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 400; stroke-dashoffset: 0;
}
.viz-measure circle { fill: #fff; stroke: var(--joyne-blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.viz-measure .qty {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; font-size: 0.86rem; font-weight: 560; color: var(--joyne-navy);
  background: #fff; border: 1px solid var(--rule-soft); border-radius: 9px;
  box-shadow: 0 8px 20px -12px rgba(6, 15, 59, .3);
}
.viz-measure .qty span { color: var(--joyne-muted); font-weight: 450; }
.viz-measure .qty b {
  margin-left: auto; font: 600 0.72rem/1 var(--mono); color: var(--joyne-teal);
  padding: 4px 6px; border-radius: 5px; background: rgba(14, 124, 123, .1);
}
/* 3: quote lines and the stamp */
.viz-release { padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.viz-release .row { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.viz-release .row i { display: block; height: 7px; border-radius: 4px; background: #DCE1F1; }
.viz-release .row i:first-child { width: 52%; }
.viz-release .row:nth-child(2) i:first-child { width: 40%; }
.viz-release .row:nth-child(3) i:first-child { width: 60%; }
.viz-release .row i:last-child { width: 16%; margin-left: auto; background: #C9D0E8; }
.viz-release .stamp {
  position: absolute; right: 20px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 10px; border: 2px solid var(--joyne-teal); border-radius: 8px;
  font: 700 0.84rem/1 var(--joyne-font); letter-spacing: .08em; text-transform: uppercase; color: var(--joyne-teal);
  background: #fff; transform: rotate(-4deg);
}
@media (prefers-reduced-motion: no-preference) {
  .js .steps li:not(.is-in) .viz-sheets .sheet { transform: translate(-50%, -50%); }
  .js .steps li:not(.is-in) .viz-measure .trace { stroke-dashoffset: 400; }
  .viz-measure .trace { transition: stroke-dashoffset 1.6s var(--ease) .3s; }
  .js .steps li:not(.is-in) .viz-release .stamp { opacity: 0; transform: rotate(-4deg) scale(1.3); }
  .viz-release .stamp { transition: opacity .3s .6s, transform .5s var(--ease) .6s; }
}

/* ---------- features (bento) ---------- */
.features { display: grid; gap: 20px; }
.feature {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--joyne-surface); border: 1px solid var(--rule-soft); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(6, 15, 59, .04);
}
.feature-img { position: relative; background: var(--joyne-paper); border-bottom: 1px solid var(--rule-soft); overflow: hidden; }
.feature-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-sm .feature-img { aspect-ratio: 16 / 10; }
.feature-lg .feature-img { aspect-ratio: 820 / 700; }
.feature-copy { padding: 24px 26px 28px; }
.feature h3 { font-size: 1.22rem; letter-spacing: -0.02em; }
.feature p { margin-top: 8px; color: var(--joyne-muted); max-width: 30em; }
@media (min-width: 900px) {
  .features { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 24px; }
  .feature-lg { grid-row: span 2; }
  .feature-lg .feature-img { aspect-ratio: auto; flex: 1 1 0; min-height: 360px; }
  .feature-lg .feature-img img { position: absolute; inset: 0; object-position: 50% 60%; }
  .feature-lg .feature-copy { padding: 30px 32px 34px; }
  .feature-lg h3 { font-size: 1.45rem; }
}

/* ---------- trades ---------- */
.trade-list { display: grid; border-top: 1px solid var(--rule-soft); }
@media (min-width: 800px) { .trade-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.trade-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 8px 18px 0; border-bottom: 1px solid var(--rule-soft);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.trade-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  color: var(--joyne-blue); background: var(--joyne-paper); border: 1px solid var(--rule-soft);
  transition: background .15s, color .15s, border-color .15s;
}
.section--paper .trade-icon { background: #fff; }
.trade-icon .icon { width: 26px; height: 26px; }
.trade-text { display: grid; gap: 2px; min-width: 0; }
.trade-name { font-weight: 600; color: var(--joyne-navy); letter-spacing: -0.01em; }
.trade-name .tag { display: inline-block; margin-left: 10px; vertical-align: 2px; }
.trade-meta { font-size: 0.92rem; color: var(--joyne-muted); }
.tag {
  font: 600 0.64rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 6px; border-radius: 5px; color: var(--joyne-teal); background: rgba(14, 124, 123, .1);
}
.trade-arrow { margin-left: auto; color: var(--joyne-rule); font-size: 1.1rem; transition: transform .18s var(--ease), color .18s; }
.trade-list a:hover .trade-icon { background: var(--joyne-blue); border-color: var(--joyne-blue); color: #fff; }
.trade-list a:hover .trade-arrow { color: var(--joyne-blue); transform: translateX(4px); }
.trade-list a:hover .trade-name { color: var(--joyne-blue); }
.trade-list a[aria-current="page"] { opacity: .5; }

/* ---------- closing (dark) ---------- */
.closing {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--joyne-navy); color: #fff;
}
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(ellipse 50% 60% at 50% 110%, rgba(65, 106, 255, .45), transparent 70%),
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  background-position: center, center, center;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, #000 20%, transparent 80%);
}
.closing-inner {
  padding-top: clamp(96px, 12vw, 176px); padding-bottom: clamp(96px, 12vw, 176px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.closing h2 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; }
.closing .sub { color: rgba(255, 255, 255, .7); margin-top: 18px; text-wrap: balance; }
.closing .btn { margin-top: 40px; }

/* ---------- category pages ---------- */
.mapping { max-width: 980px; }
.mapping-head, .mapping li { display: grid; gap: 4px; }
.mapping-head {
  display: none; font: 600 0.72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2);
  padding-bottom: 14px;
}
.mapping ul { border-top: 1px solid var(--rule-soft); }
.mapping li { padding: 20px 0; border-bottom: 1px solid var(--rule-soft); font-size: 1.05rem; }
.mapping .from { color: var(--joyne-muted); }
.mapping .to { color: var(--joyne-navy); font-weight: 560; }
.mapping .arrow { display: none; color: var(--joyne-blue); }
@media (min-width: 700px) {
  .mapping-head, .mapping li { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 16px; align-items: baseline; }
  .mapping-head { display: grid; }
  .mapping .arrow { display: block; }
}

.prose { max-width: 820px; }
.prose p { max-width: 38em; margin-top: 18px; font-size: 1.08rem; }
.prose p:first-child { margin-top: 0; }
.note { font-size: 0.9rem; line-height: 1.55; color: var(--joyne-muted); margin-top: 28px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule-soft); font-size: 0.92rem; }
.footer-inner { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand p { margin-top: 14px; color: var(--joyne-muted); max-width: 22em; }
.footer-brand .brand img { width: 96px; }
.footer-h { font: 600 0.72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { color: var(--joyne-text); text-decoration: none; }
.footer-nav a:hover { color: var(--joyne-blue); }
nav.footer-nav ul { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 40px; }
.footer-base { padding-bottom: 32px; color: var(--muted-2); font-size: 0.86rem; }
.footer-base-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-top: 20px; border-top: 1px solid var(--rule-soft);
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: var(--muted-2); text-decoration: none; }
.footer-legal a:hover { color: var(--joyne-blue); text-decoration: underline; }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: minmax(0, 1.4fr) auto auto; column-gap: 80px; }
}
.closing + .site-footer, main:has(> .closing:last-child) + .site-footer { border-top: 0; }

/* ---------- reveal on scroll (site.js adds .is-in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- legal pages ---------- */
.hero .updated { margin-top: 18px; color: rgba(255, 255, 255, .62); font-size: 0.95rem; }
.section--legal { padding-top: clamp(48px, 6vw, 80px); }
.legal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.legal-toc ol { display: grid; gap: 8px; font-size: 0.92rem; }
.legal-toc a { color: var(--joyne-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--joyne-blue); }
@media (max-width: 999px) {
  .legal-toc { padding: 20px 22px; border: 1px solid var(--rule-soft); border-radius: 12px; background: var(--joyne-paper); }
  .legal-toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 24px; }
}
@media (min-width: 1000px) {
  .legal { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
  .legal-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
}
.legal-body { max-width: 760px; min-width: 0; }
.legal-intro p { font-size: 1.15rem; color: var(--joyne-navy); }
.legal-section { margin-top: 56px; }
.legal-body h2 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.25; scroll-margin-top: 96px; }
.legal-body h3 { font-size: 1.08rem; margin-top: 28px; }
.legal-body h2 + p, .legal-body h3 + p, .legal-body h2 + ul { margin-top: 12px; }
.legal-body p, .legal-body li { font-size: 1.02rem; }
.legal-body ul { list-style: disc; padding-left: 1.3em; margin-top: 16px; display: grid; gap: 8px; max-width: 42em; }
.legal-body li::marker { color: var(--joyne-soft-blue); }
.legal-body code { font: 0.88em var(--mono); color: var(--joyne-navy); }
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--rule-soft); border-radius: 12px; }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9rem; line-height: 1.45; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap thead th {
  font: 600 0.7rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2); background: var(--joyne-paper);
}
.table-wrap tbody th { font-weight: 600; color: var(--joyne-navy); }
mark.tbc {
  background: rgba(237, 152, 7, .18); color: inherit; padding: 0 .2em; border-radius: 3px;
  box-shadow: inset 0 -1px 0 var(--joyne-attention);
}
.text-action { font-weight: 600; }
.consent-status {
  display: inline-block; padding: 10px 14px; border-radius: 10px; font-size: 0.95rem;
  color: var(--joyne-navy); background: var(--joyne-paper); border: 1px solid var(--rule-soft);
}

/* ---------- booking page ---------- */
.book-section { padding-top: clamp(40px, 5vw, 64px); }
.cal-embed { width: 100%; min-height: 680px; overflow: auto; }

/* ---------- cookie banner (analytics.js) ---------- */
.consent {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px;
  max-height: calc(100vh - 24px); overflow: auto;
  padding: 22px 22px 20px; border-radius: 14px;
  background: var(--joyne-navy); color: rgba(255, 255, 255, .78);
  border: 1px solid rgba(141, 171, 255, .26);
  box-shadow: 0 24px 60px -20px rgba(6, 15, 59, .7), 0 2px 6px rgba(6, 15, 59, .3);
  font-size: 0.92rem; line-height: 1.5;
}
@media (min-width: 640px) { .consent { left: 24px; right: auto; bottom: 24px; width: 464px; } }
@media (prefers-reduced-motion: no-preference) {
  .consent { animation: consent-in .35s var(--ease) both; }
}
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.consent:focus { outline: none; }
.consent:focus-visible { outline: 3px solid var(--joyne-attention); outline-offset: 3px; }
.consent-h { color: #fff; font-weight: 640; font-size: 1.02rem; letter-spacing: -0.01em; padding-right: 36px; }
.consent-p { margin-top: 8px; }
.consent a { color: var(--joyne-soft-blue); }
.consent a:hover { color: #fff; }
.consent-note { color: #fff; }
.consent-prefs { margin-top: 14px; border-top: 1px solid rgba(141, 171, 255, .18); }
.consent-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(141, 171, 255, .18); }
.consent-opt label { cursor: pointer; }
.consent-opt b { display: block; color: #fff; font-weight: 600; }
.consent-opt span { display: block; font-size: 0.86rem; color: rgba(255, 255, 255, .64); }
.consent-opt input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0; cursor: pointer;
  position: relative; width: 38px; height: 22px; border-radius: 99px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(141, 171, 255, .3);
  transition: background .18s;
}
.consent-opt input::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .18s var(--ease);
}
.consent-opt input:checked { background: var(--joyne-blue); border-color: var(--joyne-blue); }
.consent-opt input:checked::before { transform: translateX(16px); }
.consent-opt input:disabled { cursor: not-allowed; opacity: .55; }
.consent-opt input:disabled + label { cursor: default; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent-btn {
  min-height: 40px; padding: 0 14px; border-radius: 9px; cursor: pointer;
  font: 600 0.88rem/1 var(--joyne-font); letter-spacing: -0.005em;
  background: #fff; color: var(--joyne-navy); border: 1px solid #fff;
  transition: background .15s, color .15s, border-color .15s;
}
.consent-btn:hover { background: var(--joyne-paper); }
.consent-btn--quiet { background: transparent; color: #fff; border-color: rgba(141, 171, 255, .4); }
.consent-btn--quiet:hover { background: rgba(141, 171, 255, .12); }
.consent-btn--save { background: var(--joyne-blue); color: #fff; border-color: var(--joyne-blue); }
.consent-btn--save:hover { background: var(--blue-hover); }
.consent-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 0; color: rgba(255, 255, 255, .7);
}
.consent-close:hover { color: #fff; background: rgba(141, 171, 255, .14); }

/* Booking fallback: shown only when the Cal.com embed never reports ready. */
.cal-fallback { padding: 28px; margin-bottom: 20px; border: 1px solid var(--rule-soft, #CDD0E5); border-radius: 12px; background: var(--joyne-paper, #F5F7FF); }
.cal-fallback p { margin: 0 0 16px; }
.cal-embed.cal-unready { min-height: 0; height: 0; overflow: hidden; }
