/**
 * Component: Landing shared base (tokens, buttons, header bar, ticket card, footer)
 * Documentation: documentation/frontend/landing.md
 */
:root {
  --ground: #050b19;
  --ground-2: #0c1630;
  --tile: #0c1630;
  --tile-2: #14234d;
  --tile-3: #1d3063;
  --paper: #eceff4;
  --paper-2: #dde2eb;
  --ink: #f4f6fb;
  --ink-soft: #aab4c8;
  --ink-2: #4a5671;
  --ink-dark: #0a1226;
  --accent: #fbb03b;
  --margin: 40px;
  --gap: 20px;
  --pad: 28px;
  --r: 28px;
  --r-lg: 32px;
  --font: 'General Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
  --step-display: clamp(3.25rem, 1.5rem + 6.5vw, 6.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.45;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.page { padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--ink-dark); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: var(--accent); color: var(--ink-dark); padding: 12px 16px; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Surfaces: navy tiles for inner pages, paper tickets for the home actions */
.tile { background: var(--tile); padding: var(--pad); min-width: 0; border-radius: 24px; }
.tile--accent { background: var(--accent); color: var(--ink-dark); }
.tile--paper { background: var(--paper); color: var(--ink-dark); }
.tile--mid { background: var(--tile-2); }
.tile--high { background: var(--tile-3); }
.photo { position: relative; overflow: hidden; background: var(--tile-2); padding: 0; border-radius: 24px; }
.photo img, .photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Section frame (inner pages) */
.board-section { margin-top: clamp(80px, 10vw, 160px); }
.section-head { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; }

/* Buttons: pills. Default (dark) reads on amber; --light reads on navy. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer;
  font: 500 var(--step-body)/1 var(--font);
  text-decoration: none;
  background: var(--ink-dark); color: var(--ink);
  transition: transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--accent { background: var(--accent); color: var(--ink-dark); }
.btn--light { background: var(--paper); color: var(--ink-dark); }

/* Header bar: transparent over the hero at home, slim bar on inner pages */
.topbar {
  position: relative; z-index: 20;
  display: flex; align-items: center; gap: 36px;
  padding: 22px var(--margin);
}
body.page .topbar { padding: 18px var(--margin); }
.logo-tile { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-tile img { width: 40px; height: 40px; flex: none; }
.logo-tile img.swoosh { width: auto; height: 220px; }
.nav-tile { display: contents; }
.topbar nav { display: flex; gap: 8px 30px; flex-wrap: wrap; margin-left: auto; }
.topbar nav a { color: var(--ink); opacity: 0.85; text-decoration: none; font-weight: 500; font-size: 1rem; padding: 8px 0; transition: opacity 0.15s; }
.topbar nav a:hover { opacity: 1; }
.nav-toggle { display: none; }
.topbar-acts { display: flex; gap: 10px; }

/* Ticket: paper body, a stub divided from it by two notches */
.ticket {
  --stub: 104px;
  position: relative; display: block; overflow: hidden;
  background: var(--paper); color: var(--ink-dark);
  border-radius: var(--r);
  -webkit-mask:
    radial-gradient(circle 16px at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 16px at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 16px at 0 calc(100% - var(--stub)), #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 16px at 100% calc(100% - var(--stub)), #0000 97%, #000) right / 51% 100% no-repeat;
}
.ticket .t-body { padding: 36px 40px 30px; }
.ticket h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1; letter-spacing: -0.03em; font-weight: 700; }
.ticket p { color: var(--ink-2); margin-top: 14px; max-width: 36ch; }
.ticket .t-stub {
  height: var(--stub); padding: 0 24px 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--paper-2);
}
.ticket .t-stub--accent { background: var(--accent); }
.ticket .t-stub b { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
a.ticket { text-decoration: none; }
.go {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--ink-dark); color: var(--ink);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease);
}
a.ticket:hover .go, .ticket-link:hover .go { transform: translateX(6px); }
.go svg { width: 22px; height: 22px; }

/* Footer: flat, one colour, built for reading */
.foot {
  background: var(--ground-2);
  margin-top: clamp(96px, 12vw, 180px);
  padding: clamp(44px, 5vw, 72px) var(--margin) 28px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px 72px;
}
.foot-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.foot-logo img { width: 32px; height: 32px; }
.foot-logo img.swoosh { width: auto; height: 64px; }
.foot-brand p { margin-top: 16px; color: var(--ink-soft); max-width: 36ch; line-height: 1.5; }
.foot h3 { font-size: var(--step-small); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot-nav a, .foot-lines a, .foot-lines span, .foot-legal, .foot-legal a { color: var(--ink-soft); }
.foot-nav a, .foot-lines a { display: inline-block; text-decoration: none; font-size: var(--step-body); line-height: 1.4; }
.foot-lines { display: grid; gap: 10px; }
.foot-lines a { font-weight: 500; }
.foot-nav a:hover, .foot-lines a:hover, .foot-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-legal {
  grid-column: 1 / -1; margin-top: 12px; padding-top: 24px;
  border-top: 1px solid rgba(170, 180, 200, 0.16);
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between;
  font-size: var(--step-small);
}
.foot-legal div { display: flex; gap: 24px; }
.foot-legal a { text-decoration: none; }

/* Phone */
@media (max-width: 900px) {
  :root { --margin: 20px; --gap: 14px; --pad: 20px; --frame: 8px; }
  body.page { padding: 0; }
  .topbar { gap: 16px; padding: 16px var(--margin); flex-wrap: nowrap; }
  body.page .topbar { padding: 12px var(--margin); }
  .logo-tile { font-size: 1.05rem; gap: 10px; }
  .logo-tile img { width: 34px; height: 34px; }
  .logo-tile img.swoosh { width: auto; height: 136px; }
  .topbar .btn, .topbar-acts { display: none; }
  .nav-tile { display: none; position: absolute; z-index: 30; top: calc(100% - 8px); left: var(--margin); right: var(--margin); background: var(--ground-2); border-radius: 24px; padding: 12px; }
  .topbar nav { display: contents; }
  html:not(.js) .nav-tile, .nav-open .nav-tile { display: block; }
  .nav-tile a { display: block; padding: 14px 16px; border-radius: 14px; font-size: var(--step-body); opacity: 1; }
  .nav-tile a:hover { background: var(--tile-2); }
  .nav-toggle {
    display: inline-flex; align-items: center; margin-left: auto;
    min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
    background: var(--ground-2); color: var(--ink);
    font: 500 var(--step-small) var(--font); cursor: pointer;
  }
  .foot { grid-template-columns: 1fr; gap: 32px; padding: 40px var(--margin) 24px; }
  .foot-legal { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (min-width: 901px) and (max-width: 1120px) {
  .logo-tile { font-size: 1rem; }
}
