/* join.comeawaywith.me (TD-0056): the campaign page between Instagram and the demo.
   Style of the app's sign-in screen B (projects/app/public/sign-in.css): cobalt with the dot
   matrix and the dotted lime routes meeting in a coral point, white cards, the strong lime demo
   button. Tokens: tokens.css, fonts: fonts.css (both copied from brand/ by tools/sync-brand.mjs).
   Rules: docs/4_BRAND.md (never lime text on white; lime only on cobalt or ink). Mobile first. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Keyboard focus: cobalt on light surfaces, lime on cobalt. */
:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

:is(.hero, .steps, .lost, .foot) :focus-visible {
  outline-color: var(--lime);
}

:is(.lang-menu, .pass, .step, .lost-card) :focus-visible {
  outline-color: var(--cobalt);
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Cobalt surfaces with the dot matrix (hero, steps, 404). */
.hero,
.steps,
.lost {
  background-color: var(--cobalt);
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.3px, transparent 1.7px);
  background-size: 16px 16px;
  color: #ffffff;
}

/* ==== TOP BAR: begin. The same block, byte for byte, in projects/coming-soon/public/assets/styles.css
   and projects/join/public/assets/styles.css (P68, owner 20 Oct; the tests compare them). Dark and
   sticky: the footer's ink, the logo on dark (30 px tall, 22 px on phones), the section links white
   (the section in view underlined; a row of chips under the bar below 1400 px, the current chip
   lime with ink text), the language and Instagram as white buttons with ink text and icons (lime
   under the pointer, as in the app's dark bar), one button more: the demo, cobalt with white
   text. Focus: a lime ring on ink, cobalt inside the white language list. Markup:
   site_header() in each project's app/views/chrome.php; only tokens from tokens.css are used. ==== */
:root { --header-h: 120px; }
.skip { position: absolute; z-index: 100; top: 8px; inset-inline-start: 8px; padding: 10px 14px; border-radius: 10px; background: var(--lime); color: var(--ink); font: 700 15px/1.2 var(--f-ui); text-decoration: none; transform: translateY(-160%); }
.skip:focus, .skip:focus-visible { transform: none; outline: 3px solid var(--card); outline-offset: 2px; box-shadow: none; }
.sitenav { --nav-pad: 40px; position: sticky; top: 0; z-index: 60; background: var(--ink); color: #fff; }
.sitenav__in { display: grid; grid-template-areas: "logo right" "links links"; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 76px auto; align-items: center; column-gap: 28px; max-width: 1440px; margin: 0 auto; padding: 0 var(--nav-pad); }
.sitenav .logo { grid-area: logo; justify-self: start; display: inline-flex; min-width: 0; border-radius: 6px; }
.sitenav .logo img { display: block; width: auto; max-width: 100%; height: 30px; object-fit: contain; object-position: left center; }
.sitenav__links { grid-area: links; display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--nav-pad)); padding: 0 var(--nav-pad) 10px; scroll-padding: 0 var(--nav-pad); scrollbar-width: none; font: 600 14.5px/1 var(--f-ui); }
.sitenav__links::-webkit-scrollbar { display: none; }
.sitenav__links a { display: inline-flex; flex: none; align-items: center; height: 34px; padding: 0 14px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .86); text-decoration: none; white-space: nowrap; }
.sitenav__links a[aria-current] { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.sitenav__right { grid-area: right; display: flex; align-items: center; gap: 10px; }
.sitenav .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sitenav .lang { position: relative; }
.sitenav .lang-button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1.5px solid #fff; border-radius: 12px; background: #fff; color: var(--ink); font: 600 14px/1 var(--f-ui); cursor: pointer; list-style: none; user-select: none; }
.sitenav .lang-button::-webkit-details-marker { display: none; }
.sitenav .lang-button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sitenav .lang[open] .lang-button { border-color: var(--lime); background: var(--lime); }
.sitenav .lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 30; display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 2px; max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 8px; list-style: none; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55), 6px 6px 0 var(--ink); color: var(--ink); }
.sitenav .lang-menu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); font: 400 15px/1.3 var(--f-ui); text-decoration: none; }
.sitenav .lang-menu a[aria-current] { background: var(--lime); font-weight: 700; }
.sitenav .iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid #fff; border-radius: 12px; background: #fff; color: var(--ink); }
.sitenav .iconbtn svg { width: 20px; height: 20px; }
/* The demo button: cobalt, white text, a stub torn off along a dashed line; its half notches take
   the bar's ink, which is what lies behind them. */
.sitenav__demo { display: inline-flex; align-items: stretch; min-height: 38px; border: 1.5px solid var(--cobalt); border-radius: 11px; background: var(--cobalt); color: #fff; font: 600 13.5px/1.15 var(--f-ui); text-decoration: none; white-space: nowrap; }
.sitenav__demo > span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; }
.sitenav__demo > .sitenav__stub { position: relative; padding: 0 10px; border-inline-start: 1.5px dashed rgba(255, 255, 255, .5); }
.sitenav__demo > .sitenav__stub::before, .sitenav__demo > .sitenav__stub::after { content: ''; position: absolute; inset-inline-start: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.sitenav__demo > .sitenav__stub::before { top: -6px; }
.sitenav__demo > .sitenav__stub::after { bottom: -6px; }
.sitenav__demo svg { width: 16px; height: 16px; flex: none; }
[dir="rtl"] .sitenav__demo svg { transform: scaleX(-1); }
.sitenav :focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; box-shadow: none; }
.sitenav .lang-menu :focus-visible { outline-color: var(--cobalt); }
/* A section reached through a link lands right under the bar (its own padding gives the room). */
main, main [id] { scroll-margin-top: var(--header-h); }
@media (hover: hover) {
  .sitenav__links a:hover { border-color: #fff; color: #fff; }
  .sitenav .lang-button:hover, .sitenav .iconbtn:hover { border-color: var(--lime); background: var(--lime); color: var(--ink); }
  .sitenav .lang-menu a:hover { background: var(--cobalt-50); }
  .sitenav__demo:hover { background: var(--cobalt-ink); border-color: var(--cobalt-ink); }
}
@media (max-width: 760px) {
  :root { --header-h: 108px; }
  .sitenav { --nav-pad: 18px; }
  .sitenav__in { grid-template-rows: 64px auto; column-gap: 10px; }
  .sitenav .logo img { height: 22px; }
  .sitenav__demo { display: none; }
  .sitenav .lang-button { padding: 0 10px; }
  .sitenav .lang-name { display: none; }
  /* On phones the open list hangs from the bar, as wide as the screen allows (320 px included). */
  .sitenav__in { position: relative; }
  .sitenav .lang { position: static; }
  .sitenav .lang-menu { top: 58px; inset-inline: var(--nav-pad); grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  :root { --header-h: 76px; }
  .sitenav__in { grid-template-areas: "logo links right"; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 76px; }
  .sitenav__links { gap: 24px; overflow: visible; margin: 0; padding: 0; }
  .sitenav__links a { height: auto; padding: 6px 0; border: 0; border-radius: 0; background: none; }
  .sitenav__links a[aria-current] { background: none; color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
}
@media (min-width: 1400px) and (hover: hover) {
  .sitenav__links a:hover { text-decoration: underline; text-underline-offset: 6px; }
}
/* ==== TOP BAR: end ==== */

/* ---------- Hero: the headline, "Open the demo" and the demo trip's pass. ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding: 28px 0 44px;
}

/* The routes are drawn in px around the ticket (viewBox 0 0 1 1 on a 1 px box, overflow visible)
   and never cross text: on phones they run in the band above the ticket and meet at its top edge,
   on wide screens they come down the gap between the text and the ticket and from behind it.
   The hero clips whatever runs past its edges. */
.pass-wrap {
  position: relative;
  align-self: center;
}

.arcs {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
}

.arcs-wide {
  display: none;
  top: 50%;
  right: auto;
  left: 0;
}

.arcs-routes path {
  fill: none;
  stroke: var(--lime);
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.arcs-ring,
.arcs-pulse {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
}

.arcs-ring {
  stroke-dasharray: 4 6;
}

.arcs-pulse {
  transform-box: fill-box;
  transform-origin: center;
  vector-effect: non-scaling-stroke;
  animation: pulse 2.4s ease-out infinite;
}

.arcs-point {
  fill: var(--coral);
  stroke: #ffffff;
  stroke-width: 3;
}

@keyframes pulse {
  from { opacity: 0.9; transform: scale(0.4); }
  to { opacity: 0; transform: scale(2.2); }
}

/* One shrinkable column on phones: an auto track would grow to the longest word (Finnish
   "Montenegrossa." at 320 px) and the hero would be clipped. */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  max-width: 1240px;
  grid-template-columns: minmax(0, 1fr);
  gap: 72px; /* room for the routes above the ticket */
  margin: 0 auto;
  padding: 0 16px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1.3 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker-tile {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  color: var(--cobalt);
  font-family: var(--f-ui);
  letter-spacing: 0;
}

.hero-copy {
  min-width: 0;
}

.hero-title {
  margin: 18px 0 16px;
  color: #ffffff;
  font: 800 clamp(34px, 12vw, 46px)/0.95 var(--f-display);
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}

.hand {
  display: block;
  margin-top: 8px;
  color: var(--lime);
  font: 700 clamp(34px, 11vw, 42px)/0.95 var(--f-hand);
  letter-spacing: 0;
  transform: rotate(-3deg);
  transform-origin: left;
}

.hero-lead {
  max-width: 540px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.5;
}

.hero-actions {
  display: grid;
  max-width: 460px;
  gap: 16px;
}

.have-account {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.have-account a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* The demo: the main way in — lime, ink frame, offset shadow and a stub (screen B). */
.demo-button {
  display: flex;
  min-height: 64px;
  align-items: stretch;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.demo-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.demo-body {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}

.demo-body > .icon {
  width: 24px;
  height: 24px;
}

.demo-title {
  display: block;
  font: 700 19px/1.15 var(--f-ui);
}

.demo-note {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font: 500 11.5px/1.25 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:is(.demo-button, .signin-button) > .stub {
  display: grid;
  width: 56px;
  flex: none;
  place-items: center;
  border-left: 2px dashed var(--ink);
}

:is(.demo-button, .signin-button) > .stub .icon {
  width: 22px;
  height: 22px;
}

/* The pass of the demo trip: a white ticket with notches at the perforation (docs/4_BRAND.md §6).
   The notches are cut out of the ticket, not painted over it: the two halves carry the white and
   each is masked with a half circle at both ends of the perforation, so the hero's dot matrix
   shows through (two mask layers of 51% each, one per end, add up to the whole half). */
.pass {
  --notch: 12px;
  position: relative;
  border-radius: 26px;
  color: var(--ink);
  box-shadow: var(--sh-3);
}

.pass-main,
.pass-stub {
  background: var(--card);
  -webkit-mask:
    radial-gradient(circle at 0 var(--notch-y), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% var(--notch-y), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 var(--notch-y), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% var(--notch-y), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
}

.pass-main {
  --notch-y: 100%;
  border-radius: 26px 26px 0 0;
  padding: 22px 22px 18px;
}

.pass-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  color: var(--ink-3);
  font: 500 11px/1.4 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pass-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cobalt-ink);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-50);
}

.pass-title {
  margin: 12px 0 8px;
  font: 800 30px/1.02 var(--f-display);
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.pass-route {
  color: var(--ink-2);
  font: 500 12px/1.5 var(--f-mono);
  letter-spacing: 0.04em;
}

/* The numbers on top, then the day colours and the mascot; on a very narrow phone the mascot
   moves under the day colours instead of covering them. */
.pass-stub {
  --notch-y: 1px; /* the same centre as the main half's notch: the stub overlaps it by 1 px */
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 12px;
  margin-top: -1px; /* no hairline of the hero between the two white halves at fractional sizes */
  border-top: 2px dashed var(--line-2);
  border-radius: 0 0 26px 26px;
  padding: 18px 22px 20px;
}

.pass-stats {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.pass-stats div {
  display: flex;
  flex-direction: column-reverse;
}

.pass-stats dd {
  font: 800 34px/1 var(--f-display);
  letter-spacing: -0.03em;
}

.pass-stats dt {
  margin-top: 4px;
  color: var(--ink-3);
  font: 500 11px/1.2 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Day colours of the route, 1-10, with their AA text colours. */
.pass-days {
  display: grid;
  grid-template-columns: repeat(5, 22px);
  gap: 4px;
  padding: 0;
  list-style: none;
}

.day {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  font: 500 10px/1 var(--f-mono);
}

.day-1 { background: var(--d1); color: var(--d1-text); }
.day-2 { background: var(--d2); color: var(--d2-text); }
.day-3 { background: var(--d3); color: var(--d3-text); }
.day-4 { background: var(--d4); color: var(--d4-text); }
.day-5 { background: var(--d5); color: var(--d5-text); }
.day-6 { background: var(--d6); color: var(--d6-text); }
.day-7 { background: var(--d7); color: var(--d7-text); }
.day-8 { background: var(--d8); color: var(--d8-text); }
.day-9 { background: var(--d9); color: var(--d9-text); }
.day-10 { background: var(--d10); color: var(--d10-text); }

/* The mascot (P58) on its own, never beside the sign (it would read as two characters; owner,
   20 Oct; docs/4_BRAND.md §11), at least 48 px. */
.mascot {
  height: auto;
}

.pass-mascot {
  width: 112px;
  margin: -18px -6px -8px auto;
}

/* ---------- Sections ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--cobalt-ink);
  font: 500 12px/1.4 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 12px;
  color: var(--ink);
  font: 800 34px/1.02 var(--f-display);
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.section-body {
  max-width: 580px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

/* What the demo is. */
.about {
  padding: 56px 0;
}

.about-grid {
  display: grid;
  gap: 28px;
}

.about-cta {
  max-width: 460px;
  margin-top: 26px;
}

.about-points {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.about-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--card);
  box-shadow: var(--sh-1);
  font-weight: 500;
  line-height: 1.4;
}

.point-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 11px;
}

.point-icon .icon {
  width: 20px;
  height: 20px;
}

.point-1 { background: var(--lime); color: var(--ink); }
.point-2 { background: var(--coral); color: var(--ink); }
.point-3 { background: var(--cobalt); color: #ffffff; }
.point-4 { background: var(--d2); color: var(--d2-text); }

/* Screens from the demo: a strip that scrolls sideways on phones, a row of four on desktops. */
.inside {
  padding: 56px 0 44px;
  background: var(--card);
}

.shots-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding: 0 16px;
  scroll-snap-type: x mandatory;
  padding: 28px 16px 12px;
  scrollbar-width: thin;
}

.shots-scroll:focus-visible {
  outline-offset: -3px;
}

.shots {
  display: grid;
  grid-auto-columns: min(66%, 250px);
  grid-auto-flow: column;
  gap: 18px;
  padding: 0;
  list-style: none;
}

.shot {
  scroll-snap-align: start;
}

.shot-frame {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 5px 0 var(--ink);
}

.shot-frame img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 16px;
}

.shot figcaption strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 17px/1.25 var(--f-ui);
}

.shot figcaption strong .day {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
}

.shot figcaption > span {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

.map-credit {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 12px;
}

/* Three steps, on cobalt, with the demo button again. */
.steps {
  padding: 56px 0;
}

.steps .eyebrow {
  color: #ffffff;
}

.steps .section-title {
  color: #ffffff;
}

.step-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  border-radius: 22px;
  padding: 20px 20px 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--sh-3);
}

.step-no {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--ink-3);
  font: 500 13px/1 var(--f-mono);
  letter-spacing: 0.1em;
}

.step-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--lime);
}

.step:nth-child(2) .step-icon {
  background: var(--coral);
}

.step:nth-child(3) .step-icon {
  background: var(--cobalt);
  color: #ffffff;
}

.step-icon .icon {
  width: 22px;
  height: 22px;
}

.step h3 {
  margin: 14px 0 6px;
  font: 800 23px/1.1 var(--f-display);
  letter-spacing: -0.02em;
}

.step p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}

.steps-cta {
  max-width: 460px;
  margin-top: 30px;
}

/* In testing, and the way in for those who already have an account (auth stays in the app). */
.access {
  padding: 56px 0 28px;
}

.access-grid {
  display: grid;
  gap: 24px;
}

.signin-card {
  border: 1.5px solid var(--line);
  border-radius: 26px;
  padding: 26px 24px 24px;
  background: var(--card);
  box-shadow: var(--sh-2);
}

/* The brand mark of the card: the full logo (never the lone sign; owner, 20 Oct). */
.signin-logo {
  width: auto;
  height: 24px;
}

.signin-card h3 {
  margin: 16px 0 6px;
  font: 800 26px/1.05 var(--f-display);
  letter-spacing: -0.03em;
}

.signin-card p {
  margin-bottom: 18px;
  color: var(--ink-2);
}

/* Primary action: cobalt with a dashed stub (docs/4_BRAND.md, buttons). */
.signin-button {
  display: flex;
  min-height: 52px;
  align-items: stretch;
  border-radius: 14px;
  background: var(--cobalt);
  color: #ffffff;
  font: 600 16px/1.2 var(--f-ui);
  text-decoration: none;
}

.signin-label {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 8px 12px;
  text-align: center;
}

.signin-button .stub {
  border-left-color: rgba(255, 255, 255, 0.45);
}

/* Instagram, with the mascot. */
.follow {
  padding: 28px 0 64px;
}

.follow-card {
  display: grid;
  justify-items: start;
  gap: 20px;
  border: 2px solid var(--ink);
  border-radius: 26px;
  padding: 26px 22px;
  background: var(--card);
  box-shadow: 0 6px 0 var(--ink);
}

.follow-mascot {
  width: 148px;
}

.ig-button {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  border-radius: 16px;
  padding: 12px 18px 12px 14px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
}

.ig-button .icon {
  width: 28px;
  height: 28px;
}

.ig-button strong {
  display: block;
  font: 700 16px/1.25 var(--f-ui);
}

.ig-button small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font: 500 12px/1.3 var(--f-mono);
}

.follow-note {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 13px;
}

/* Footer: the home page's (projects/coming-soon/public/assets/styles.css, .foot), rule for rule:
   ink, one row that wraps (the logo on dark, the tagline, a spacer, the note, the privacy policy,
   Instagram; the rights wrap below), 1440 px wide, 40 px gutter (18 px on phones), 13.5 px. */
.foot {
  background: var(--ink);
  color: #c9cce4;
}

.foot__in {
  display: flex;
  max-width: 1440px;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin: 0 auto;
  padding: 36px 40px;
  font-size: 13.5px;
  line-height: 1.5;
}

.foot__in a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.foot__in .grow {
  min-width: 0;
  flex: 1;
}

.foot__logo img {
  width: auto;
  height: 20px;
}

.foot__ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.foot__ig .icon {
  width: 16px;
  height: 16px;
}

/* 404: the card on cobalt fills the screen down to the footer. */
.page-lost {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}

.page-lost .lost {
  flex: 1;
}

.lost {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 40px 16px 64px;
}

.lost-card {
  width: 100%;
  max-width: 520px;
  border-radius: 26px;
  padding: 26px 24px 28px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--sh-3);
}

.lost-mascot {
  width: 120px;
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--cobalt-ink);
  font-weight: 700;
}

/* ---------- Scripts without the brand fonts' glyphs (docs/4_BRAND.md §5) ---------- */
:lang(ja) {
  --f-ui: 'Instrument Sans', 'Hiragino Sans', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', sans-serif;
  --f-display: 'Bricolage Grotesque', 'Hiragino Sans', 'Yu Gothic UI', 'Noto Sans JP', sans-serif;
}

:lang(zh) {
  --f-ui: 'Instrument Sans', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --f-display: 'Bricolage Grotesque', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

:lang(ko) {
  --f-ui: 'Instrument Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --f-display: 'Bricolage Grotesque', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
}

:is(.hero-title, .section-title, .pass-title, .step h3, .signin-card h3):is(:lang(ja), :lang(ko), :lang(zh), :lang(ru), :lang(uk)) {
  letter-spacing: 0;
}

/* Japanese, Korean and Chinese: taller system glyphs get room, and the handwritten line uses
   the display face (Caveat has no CJK glyphs). Korean wraps between words, Japanese between
   phrases. */
.hero-title:is(:lang(ja), :lang(ko), :lang(zh)) {
  font-size: 38px;
  line-height: 1.15;
}

.hand:is(:lang(ja), :lang(ko), :lang(zh)) {
  font: 700 30px/1.2 var(--f-display);
  transform: rotate(-2deg);
}

:is(.section-title, .pass-title):is(:lang(ja), :lang(ko), :lang(zh)) {
  line-height: 1.2;
}

/* The wide tracking of the mono labels spaces CJK characters apart; a touch is enough. */
:is(.kicker, .pass-head, .pass-stats dt, .eyebrow, .demo-note):is(:lang(ja), :lang(ko), :lang(zh)) {
  letter-spacing: 0.04em;
}

:lang(ko) :is(h1, h2, h3, p, li, figcaption) {
  word-break: keep-all;
}

:lang(ja) :is(h1, h2, h3, p, li, figcaption) {
  word-break: auto-phrase;
}

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  .wrap,
  .hero-inner {
    padding: 0 28px;
  }

  .shots-scroll {
    padding-right: 28px;
    padding-left: 28px;
    scroll-padding: 0 28px;
  }
}

@media (min-width: 960px) {
  .hero {
    display: flex;
    min-height: min(784px, calc(100vh - 76px));
    align-items: center;
    padding: 48px 0 72px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px);
    align-items: center;
    gap: 64px;
    padding: 0 40px;
  }

  .arcs-phone {
    display: none;
  }

  .arcs-wide {
    display: block;
  }

  /* The size follows the text column (about 100vw - 584 px up to 1240 px), so the longest word
     (Finnish "Montenegrossa.", Russian "Черногории.") fits on one line from 960 px up. */
  .hero-title {
    font-size: clamp(46px, calc((100vw - 590px) / 7.4), 92px);
  }

  .hand {
    font-size: clamp(42px, calc((100vw - 590px) / 8.6), 76px);
  }

  .hero-title:is(:lang(ja), :lang(ko), :lang(zh)) {
    font-size: clamp(46px, 4.8vw, 68px);
  }

  .hand:is(:lang(ja), :lang(ko), :lang(zh)) {
    font-size: clamp(34px, 3.6vw, 50px);
  }

  .hero-lead {
    font-size: 19px;
  }

  .pass-main {
    padding: 28px 28px 20px;
  }

  .pass-title {
    font-size: 34px;
  }

  .pass-stub {
    padding: 20px 28px 24px;
  }

  .pass-mascot {
    width: 132px;
  }

  .wrap {
    padding: 0 40px;
  }

  .about,
  .inside,
  .steps {
    padding: 88px 0;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }

  .section-title {
    font-size: clamp(40px, 4vw, 54px);
  }

  .shots-scroll {
    overflow: visible;
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 40px 8px;
    scroll-snap-type: none;
  }

  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .steps-cta {
    margin-top: 40px;
  }

  .access {
    padding: 88px 0 36px;
  }

  .access-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    align-items: center;
    gap: 64px;
  }

  .follow {
    padding: 36px 0 96px;
  }

  .follow-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding: 40px 48px;
  }

  .follow-mascot {
    width: 196px;
  }
}

@media (max-width: 760px) {
  .foot__in {
    padding: 28px 18px;
  }
}

/* Hover only where there is a pointer that hovers. */
@media (hover: hover) {
  .foot__in a:hover {
    text-decoration: underline;
  }

  .demo-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 var(--ink);
  }

  .signin-button:hover {
    background: var(--cobalt-ink);
  }

  .ig-button:hover {
    background: var(--ink-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .arcs-pulse {
    display: none;
  }

  .demo-button,
  .demo-button:hover,
  .demo-button:active {
    transition: none;
    transform: none;
  }
}
