:root {
  --ground: #EFF4F8;
  --ink: #06213A;
  --ink-2: #2B4358;
  --muted: #4A6074;
  --line: #D2DDE7;
  --card: #FFFFFF;
  --accent: #0B6FDB;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 12px 16px; z-index: 10; }

/* Header */
.site-header { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 500; font-size: 16px; }
.site-nav a { text-decoration: none; padding-block: 10px; }

/* Hero */
.hero { padding-block: 64px 80px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 9vw, 128px); line-height: 0.95; letter-spacing: -0.03em; }
.accent { display: inline-block; background: var(--accent); color: #fff; padding: 0 0.12em 0.06em; margin-left: -0.04em; border-radius: 0.06em; box-shadow: 0.07em 0.07em 0 var(--ink); transform: rotate(-1.5deg); }
.lede { margin-top: 36px; max-width: 620px; font-size: 21px; line-height: 1.5; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: background-color .15s, color .15s; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Apps */
.apps { display: flex; flex-direction: column; }
.apps::after { content: ""; border-top: 1px solid #B5C4D2; }
.app { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid #B5C4D2; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 56px; align-items: center; }
.app-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.app-id { display: flex; align-items: center; gap: 14px; }
.app-id > div { display: flex; flex-direction: column; gap: 2px; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.app-icon-tile { background: #090C14; display: flex; align-items: center; justify-content: center; }
.app-icon-tile img { width: 46px; height: 46px; object-fit: contain; }
.app-name { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.app-meta { font-size: 14px; color: var(--muted); }
.app h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.app-text > p { color: var(--ink-2); }
.from-to { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; width: 100%; border-top: 1px solid var(--line); padding-top: 16px; }
.from-to dt { color: var(--muted); }
@media (min-width: 900px) { .app-flip .app-text { order: 2; } }

/* The objects */
.object { transition: transform .25s ease; }
.object:hover { transform: rotate(0deg); }
.object-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }

.chart { background: #07192B; border-radius: 6px; padding: 18px; box-shadow: 10px 10px 0 var(--accent); transform: rotate(-1.2deg); color: #E6F3F7; }
.chart .object-head { color: #9FB9CB; }
.chart svg { display: block; width: 100%; margin-top: 10px; }
.chart-key { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: #CFE6F2; }
.chart-key span { display: inline-flex; align-items: center; gap: 6px; }
.chart-key .dot { width: 9px; height: 9px; border-radius: 50%; background: #38BDF8; }
.chart-key .dash { width: 14px; border-top: 2px dashed #F7A04B; }

.ticket { display: flex; background: #11161F; border-radius: 6px; box-shadow: 10px 10px 0 #3B6FE0; transform: rotate(1.4deg); color: #E8EDF7; overflow: hidden; }
.ticket-main { flex: 1 1 auto; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.ticket .object-head { color: #98A2B8; letter-spacing: 0.08em; }
.ticket-title { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.ticket-why { font-size: 15px; color: #98A2B8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; }
.chip { padding: 6px 10px; border-radius: 99px; }
.chip-match { background: #34D399; color: #052E20; }
.chip-line { border: 1px solid #5B8CFF; color: #AFC6FF; }
.ticket-stub { flex: 0 0 76px; border-left: 2px dashed #3A4458; display: flex; align-items: center; justify-content: center; }
.ticket-stub img { width: 52px; height: 52px; object-fit: contain; }

.receipt { justify-self: center; width: min(320px, 100%); background: #FBFBF9; border: 1px solid var(--line); box-shadow: 10px 10px 0 #6D5AE6; transform: rotate(-1.6deg); padding: 24px 22px; font-family: var(--mono); font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.receipt-title { text-align: center; font-weight: 500; letter-spacing: 0.1em; }
.receipt-sub { text-align: center; color: var(--muted); font-size: 12px; }
.receipt hr { width: 100%; margin: 0; border: 0; border-top: 1px dashed #8A949E; }
.receipt-row { display: flex; justify-content: space-between; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin-block: 6px; }
.bars i { flex: 1; background: #6D5AE6; }

/* About */
.about { padding-top: clamp(40px, 6vw, 72px); }
.section-title { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.02em; }
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 56px; }
.about-text { display: flex; flex-direction: column; gap: 16px; color: var(--ink-2); }

/* Footer */
.site-footer { margin-top: 80px; padding-block: 40px 56px; border-top: 1px solid #B5C4D2; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 20px; }
.footer-tag, .footer-legal { color: var(--muted); }

@media (max-width: 600px) {
  .wrap { padding-inline: 20px; }
  .hero { padding-block: 40px 64px; }
  .app { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .object, .btn { transition: none; }
}
