/* ============================================================
   LINKO GROUP — design tokens
   Brand yellow/near-black pair inherited from the app (never
   white text on yellow). Vernacular-print "kiosk ticket" system
   for the category board, this site's structural spine.
   ============================================================ */
:root {
  --yellow: #FFC700;
  --yellow-deep: #E6B400;
  --ink: #0D1314;
  --ink-soft: #2A2E30;
  --paper: #FAF8F2;
  --paper-line: #E7E0CC;
  --white: #FFFFFF;
  --text: #0D1314;
  --text-muted: rgba(13, 19, 20, 0.64);
  --text-on-ink-muted: rgba(255, 255, 255, 0.66);
  --success: #2F9E5B;

  --font-display: "Baloo 2", ui-rounded, sans-serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --shadow-card: 0 10px 30px rgba(13, 19, 20, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--yellow-deep);
}
.btn-primary:hover { box-shadow: 0 8px 0 var(--yellow-deep); }
.btn-primary:active { box-shadow: 0 3px 0 var(--yellow-deep); transform: translateY(3px); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-nav { display: none; }
@media (min-width: 860px) { .btn-nav { display: inline-flex; } }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark { border-radius: 9px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-word-sub {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-top: 2px;
}

.site-nav { display: none; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--yellow-deep); }
@media (min-width: 860px) { .site-nav { display: flex; } }

.nav-toggle {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border: none; background: none; cursor: pointer; padding: 0;
  position: relative;
  display: block;
}
.nav-toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
@media (min-width: 860px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--paper-line);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--paper-line);
}
.mobile-nav .btn { margin-top: 12px; justify-content: center; }
@media (min-width: 860px) { .mobile-nav { display: none !important; } }

/* ============ Hero ============ */
.hero { padding-top: 56px; }
.hero-inner { text-align: left; }
@media (min-width: 980px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: center;
  }
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow-deep);
  font-weight: 700;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  max-width: 16ch;
  margin-bottom: 0.35em;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 28px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

/* Hero rotating phrase — both words share one grid cell so the crossfade
   never reflows the rest of the heading. */
.rotator {
  display: inline-grid;
  vertical-align: bottom;
  color: var(--yellow-deep);
}
.rotator-word {
  grid-row: 1;
  grid-column: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.rotator-word.is-active { opacity: 1; transform: translateY(0); }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-10px); }
@media (prefers-reduced-motion: reduce) {
  .rotator-word { transition: none; }
}

/* Hero visual — a small floating cluster of real category tickets filling
   the space beside the headline on wide screens; hidden below 980px where
   the full-width board directly beneath the hero already does that job. */
.hero-visual { display: none; }
@media (min-width: 980px) {
  .hero-visual {
    display: block;
    position: relative;
    height: 420px;
  }
}
.hero-visual-tickets { list-style: none; margin: 0; padding: 0; }
.hero-visual-tickets .ticket {
  position: absolute;
  width: 172px;
  box-shadow: var(--shadow-card);
  animation: hero-ticket-float 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.35s);
}
.hero-visual-tickets .ticket:nth-child(1) { top: 0; left: 18%; }
.hero-visual-tickets .ticket:nth-child(2) { top: 56px; right: 0; }
.hero-visual-tickets .ticket:nth-child(3) { top: 250px; left: 0; }
.hero-visual-tickets .ticket:nth-child(4) { top: 296px; right: 12%; }
@keyframes hero-ticket-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual-tickets .ticket { animation: none; }
}

/* ============ Marquee — continuous category ticker ============ */
.marquee {
  background: var(--ink);
  overflow: hidden;
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 44px;
  animation: marquee-scroll 26s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.marquee-item svg { width: 15px; height: 15px; flex-shrink: 0; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============ Ticket board (the structural spine) ============ */
.board-wrap {
  background: var(--ink);
  padding: 40px 0 56px;
}
.ticket-board {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 620px) { .ticket-board { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ticket-board { grid-template-columns: repeat(5, 1fr); } }

.ticket-board-large { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .ticket-board-large { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .ticket-board-large { grid-template-columns: repeat(3, 1fr); } }

.ticket {
  position: relative;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--radius-s);
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  isolation: isolate;
  opacity: 0;
  transform: translateY(14px) rotate(calc((var(--i, 0) % 3 - 1) * 0.6deg));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, opacity 0.5s ease;
  transition-delay: calc(var(--i, 0) * 40ms);
}
.ticket.is-visible { opacity: 1; transform: translateY(0) rotate(calc((var(--i, 0) % 3 - 1) * 0.6deg)); }

/* perforation: a dashed tear-line under the ref code, print-ticket cue */
.ticket::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; top: 38px;
  border-top: 1.5px dashed rgba(13, 19, 20, 0.28);
}

.ticket-ref {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(13, 19, 20, 0.55);
}
.ticket-icon { width: 26px; height: 26px; margin-top: 4px; }
.ticket-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}
.ticket-desc {
  font-size: 12.5px;
  color: rgba(13, 19, 20, 0.7);
  line-height: 1.4;
}

/* registration-shift micro-interaction: a mis-registered ink layer peeks out */
.ticket:hover, .ticket:focus-within {
  box-shadow: 3px 3px 0 var(--ink), var(--shadow-card);
  transform: translateY(-3px) rotate(0deg);
  z-index: 2;
}

.section-dark .ticket {
  background: var(--paper);
}
.section-dark .ticket:hover, .section-dark .ticket:focus-within {
  box-shadow: 3px 3px 0 var(--yellow), var(--shadow-card);
}

/* ============ Generic sections ============ */
.section { padding: 88px 0; }
.section-dark {
  background: var(--ink);
  color: var(--white);
  padding-bottom: 96px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 10px;
}
.section-title-light { color: var(--white); }
.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 40px;
}
.section-lead-light { color: var(--text-on-ink-muted); }

/* ============ Steps (how it works) ============ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step-ticket {
  background: var(--white);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-m);
  padding: 26px 22px;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.step-ticket.is-visible { opacity: 1; transform: translateY(0); }
.step-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.step-ticket h3 { font-size: 19px; margin-bottom: 8px; }
.step-ticket p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ============ Coverage map ============ */
.coverage-section { overflow: hidden; }
.coverage-inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .coverage-inner { grid-template-columns: 1fr 1fr; gap: 24px; } }

.coverage-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.coverage-list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--white);
  border: 1.5px solid var(--paper-line);
  padding: 7px 14px;
  border-radius: 999px;
}

.map-scene {
  position: relative;
  perspective: 1400px;
  padding: 12px 0 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.map-scene.is-visible { opacity: 1; transform: translateY(0); }

.map-plate {
  --tiltX: 48deg;
  --tiltZ: -6deg;
  position: relative;
  max-width: 280px;
  margin: 0 auto;
  transform: rotateX(var(--tiltX)) rotateZ(var(--tiltZ));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  animation: map-float 6s ease-in-out infinite;
}
@media (min-width: 620px) { .map-plate { max-width: 320px; } }

@keyframes map-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-plate { animation: none; }
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 14px rgba(13, 19, 20, 0.28));
}
.map-shape { fill: var(--yellow); stroke: var(--ink); stroke-width: 7; stroke-linejoin: round; }

.map-shadow {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 65%;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(13, 19, 20, 0.32), transparent 70%);
  transform: translateX(-50%);
  filter: blur(4px);
  z-index: -1;
}

.map-pins { position: absolute; inset: 0; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%) rotateZ(calc(var(--tiltZ) * -1)) rotateX(calc(var(--tiltX) * -1));
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pin-bob 2.6s ease-in-out infinite;
  animation-delay: calc(var(--pi, 0) * 0.15s);
}
@keyframes pin-bob {
  0%, 100% {
    transform: translate(-50%, -100%) rotateZ(calc(var(--tiltZ) * -1)) rotateX(calc(var(--tiltX) * -1)) translateY(0);
  }
  50% {
    transform: translate(-50%, -100%) rotateZ(calc(var(--tiltZ) * -1)) rotateX(calc(var(--tiltX) * -1)) translateY(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin { animation: none; }
}
.map-pin-dot {
  width: 10px;
  height: 10px;
  background: var(--ink);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(13, 19, 20, 0.4);
}
.map-pin-label {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============ Dual path ============ */
.dual-path {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .dual-path { grid-template-columns: 1fr 1fr; } }

.path-card {
  background: var(--white);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.path-card.is-visible { opacity: 1; transform: translateY(0); }
.path-card-alt { background: var(--ink); color: var(--white); border-color: var(--ink); }
.path-card-alt .path-list li::before { color: var(--yellow); }
.path-card-alt .btn-outline { border-color: var(--white); color: var(--white); }
.path-card-alt .btn-outline:hover { background: var(--white); color: var(--ink); }

.path-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.path-card h3 { font-size: 22px; margin-bottom: 16px; }
.path-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.path-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
}
.path-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--yellow-deep);
  font-weight: 700;
}

/* ============ Download ============ */
.download-section { background: var(--paper); }
.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--yellow);
  border-radius: var(--radius-l);
  padding: 48px;
  flex-wrap: wrap;
}
.download-copy { flex: 1 1 420px; }
.download-copy h2 { font-size: clamp(26px, 3.4vw, 36px); }
.download-copy .hero-sub { color: rgba(13, 19, 20, 0.72); }
.download-note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(13, 19, 20, 0.6);
}
.download-mark {
  flex: 0 0 auto;
  background: var(--ink);
  border-radius: var(--radius-m);
  padding: 20px;
}
.btn-icon { font-size: 15px; }
.download-section .btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 6px 0 var(--ink-soft);
}
.download-section .btn-primary:hover { box-shadow: 0 8px 0 var(--ink-soft); }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: var(--white); padding-top: 64px; }
.footer-inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 48px;
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer-brand .brand-word-sub { color: var(--text-on-ink-muted); }
.footer-tag { color: var(--text-on-ink-muted); font-size: 14px; max-width: 34ch; margin-top: 12px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-list a { text-decoration: none; color: var(--text-on-ink-muted); font-size: 14.5px; }
.footer-list a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
  font-size: 13px;
  color: var(--text-on-ink-muted);
}
