:root {
  --paper: #F6F7F9;
  --sheet: #FFFFFF;
  --slip: #E4E7EC;
  --ink: #1C1E23;
  --ink-2: #565B66;
  --rule: #D9DCE2;
  --highlight: #FFE14D;
  --led: #FF4B3A;
  --panel: #2A2D35;
  --screen: #160B0A;
  --link: #076C96;
  --wrap: 112rem;
  --gutter: clamp(1rem, 7vw - 0.5rem, 8rem);
  --section: clamp(3.5rem, 8vw, 6rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-underline-offset: 0.18em; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-stretch: 75%; line-height: 1.02; }
h1 { font-size: clamp(2.75rem, 5vw + 1rem, 6.5rem); font-weight: 850; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.1rem); font-weight: 780; letter-spacing: -0.01em; max-width: 18ch; }
h3 { font-size: 1.3rem; font-weight: 700; font-stretch: 85%; line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.3rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--highlight); }
.btn-primary:hover { background: var(--ink); color: var(--highlight); }
.btn-ghost:hover { background: var(--sheet); }
.btn-small { padding: 0.5rem 0.9rem; font-size: 0.95rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 4rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.97rem; }
.nav-links a:hover { text-decoration: underline; }
.nav-links a[aria-current] { color: #C8291D; }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.hero h1 { max-width: 12ch; }
.lead { margin-top: 1.5rem; font-size: 1.2rem; max-width: 34em; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.note { margin-top: 1.25rem; font-size: 0.95rem; color: var(--ink-2); }

/* Kiosk: the one loud element */
.kiosk { max-width: 25rem; width: 100%; justify-self: center; }
.kiosk-screen {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem 1.5rem 1.2rem;
  background: var(--screen);
  border: 14px solid var(--panel);
  border-radius: 18px 18px 6px 6px;
  font-family: "Doto", ui-monospace, monospace;
  font-weight: 900;
  color: var(--led);
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(255, 75, 58, 0.65);
}
.led-small { font-size: 0.95rem; letter-spacing: 0.08em; opacity: 0.85; }
.led-token { font-size: clamp(5rem, 9vw, 7rem); line-height: 0.9; animation: led-on 1.1s steps(1) both; }
.led-row { display: flex; justify-content: space-between; font-size: 1rem; letter-spacing: 0.05em; }
/* Printer body under the display; the slip feeds out of its bottom slot */
.kiosk-slot {
  position: relative;
  height: 76px;
  margin: 6px -10px 0;
  background: linear-gradient(#454A54, #2A2D35 70%);
  border-radius: 10px 10px 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -10px 0 #15171B;
}
.kiosk-slot::before {
  content: "";
  position: absolute;
  right: 22px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3BD16F;
  box-shadow: 0 0 8px #3BD16F;
}
.kiosk-slot::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  width: 38%;
  height: 5px;
  border-radius: 3px;
  background: #1A1C21;
  box-shadow: 0 10px 0 #1A1C21, 0 20px 0 #1A1C21;
}
.feed { overflow: hidden; padding: 0 1.4rem 1.25rem; }
.slip {
  position: relative;
  background: var(--slip);
  border: 1px solid #C9CED6;
  border-bottom: 0;
  padding: 1.1rem 1.25rem 1.5rem;
  box-shadow: 0 10px 22px rgba(28, 30, 35, 0.16);
  animation: feed-out 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both;
}
.slip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background: linear-gradient(-45deg, transparent 6px, var(--slip) 0) 0 0 / 12px 8px repeat-x,
              linear-gradient(45deg, transparent 6px, var(--slip) 0) 0 0 / 12px 8px repeat-x;
}
.slip-brand { font-weight: 800; font-stretch: 80%; font-size: 0.9rem; }
.slip-token { font-size: 2.2rem; font-weight: 850; font-stretch: 70%; line-height: 1.1; padding-bottom: 0.6rem; border-bottom: 2px dashed #B4BAC4; }
.slip dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0.8rem 0 0; font-size: 0.93rem; }
.slip dt { color: var(--ink-2); }
.slip dd { margin: 0; text-align: right; font-weight: 600; }

@keyframes feed-out { from { transform: translateY(-105%); } to { transform: translateY(0); } }
@keyframes led-on { 0% { opacity: 0.35; } 30% { opacity: 1; } 40% { opacity: 0.35; } 55% { opacity: 1; } }

/* Sections */
.section { padding: var(--section) 0; border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split > h2 + *, .split > div + * { margin-top: 0; }
.section h2 + .muted, .section h2 + .steps, .section h2 + .timeline { margin-top: 1rem; }
.prose { display: grid; gap: 1rem; max-width: 36em; font-size: 1.1rem; }
.prose p:last-child { color: var(--ink-2); }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 0 0;
  margin: 2rem 0 0;
  border-top: 2px dashed var(--ink);
}
.steps li { counter-increment: step; display: grid; gap: 0.6rem; align-content: start; }
.steps li::before {
  content: counter(step);
  font-size: 3.5rem;
  font-weight: 850;
  font-stretch: 65%;
  line-height: 1;
}
.steps p { color: var(--ink-2); }
.step-art { order: -1; width: 100%; max-width: 12rem; height: auto; margin-bottom: 0.75rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; max-width: 36em; }
.checklist li { position: relative; padding-left: 2.25rem; font-size: 1.1rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 4px;
  background: var(--highlight) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%231C1E23' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 90% no-repeat;
}

/* Rate card: looks like a sheet on a stack */
.rate-card {
  max-width: 46rem;
  background: var(--sheet);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 0.5rem 1.5rem;
  box-shadow: 8px 8px 0 -1px var(--sheet), 8px 8px 0 0 var(--ink);
}
.rate-card table { width: 100%; border-collapse: collapse; }
.rate-card th, .rate-card td { padding: 1rem 0; border-bottom: 1px dotted var(--ink-2); vertical-align: baseline; }
.rate-card tr:last-child th, .rate-card tr:last-child td { border-bottom: 0; }
.rate-card th { text-align: left; font-weight: 450; padding-right: 1rem; }
.rate-card td { text-align: right; font-weight: 800; font-stretch: 80%; font-size: 1.3rem; white-space: nowrap; }
.rate-card td.soon { font-size: 1rem; font-weight: 600; color: var(--ink-2); }

/* Dark band for colleges */
.band { background: var(--ink); color: var(--paper); border-top: 0; }
.band .band-lead { margin-top: 1rem; max-width: 34em; font-size: 1.15rem; color: #C4C8D1; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 3rem 0; }
.partner-grid > div { border-top: 2px solid var(--highlight); padding-top: 1.25rem; }
.partner-grid ul { margin: 1rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; color: #D7DAE0; }
.band .btn-primary { border-color: var(--highlight); }
.band .btn-primary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band :focus-visible { outline-color: var(--highlight); }

.offices .btn { margin-top: 1.75rem; }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 40rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--sheet);
  color: var(--ink);
}
.form textarea { min-height: 7rem; resize: vertical; }
.form .optional { font-weight: 400; color: var(--ink-2); }
.form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 650; }
.form-status { min-height: 1.5em; font-weight: 600; }
.btn-dark { background: var(--ink); color: var(--highlight); }
.btn-dark:hover { background: var(--sheet); color: var(--ink); }

.waitlist { background: var(--highlight); border-top: 0; }
.waitlist .muted { color: #3F4048; }

/* Mobile menu button (shown under 960px) */
.menu-btn { display: none; background: none; border: 2px solid var(--ink); border-radius: 6px; padding: 0.35rem; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.plain-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 1rem; max-width: 36em; font-size: 1.1rem; }

/* Roadmap */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; padding: 0; margin: 2rem 0 0; }
.timeline li { position: relative; padding-top: 1.75rem; border-top: 2px solid var(--rule); display: grid; gap: 0.5rem; align-content: start; }
.timeline li::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-2);
}
.timeline li.current { border-top-color: var(--ink); }
.timeline li.current::before { background: var(--highlight); border-color: var(--ink); }
.timeline p { color: var(--ink-2); font-size: 1rem; }
.here { justify-self: start; font-size: 0.85rem; font-weight: 650; background: var(--highlight); padding: 0.15rem 0.5rem; border-radius: 3px; }

/* Careers */
.table-scroll { overflow-x: auto; margin-top: 2rem; }
.jobs { width: 100%; min-width: 40rem; border-collapse: collapse; }
.jobs th, .jobs td { text-align: left; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.jobs th { font-size: 0.95rem; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid var(--ink); }
.jobs td:first-child { font-weight: 700; white-space: nowrap; }
.jobs td:nth-child(2) { color: var(--ink-2); white-space: nowrap; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 650; font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font-size: 1.4rem; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 36em; }

/* Contact */
.contact .muted { margin-top: 1rem; }
.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: clamp(1.8rem, 4vw + 0.5rem, 3.4rem);
  font-weight: 800;
  font-stretch: 75%;
  color: var(--ink);
  text-decoration-color: var(--highlight);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.12em;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .wordmark { color: var(--paper); }
.site-footer .muted, .site-footer .copy { color: #A9AEB8; }
.site-footer :focus-visible { outline-color: var(--highlight); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2.5rem 2rem; padding-top: 3.5rem; }
.footer-brand .muted { margin-top: 0.75rem; max-width: 22em; font-size: 0.95rem; }
.footer-col { display: grid; gap: 0.6rem; align-content: start; font-size: 0.95rem; }
.footer-col h2 { font-size: 1rem; font-weight: 700; font-stretch: 100%; letter-spacing: 0; line-height: 1.3; max-width: none; margin-bottom: 0.3rem; color: var(--paper); }
.footer-col a { color: #D7DAE0; text-decoration: none; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; }
.footer-contact a, .footer-contact p { display: flex; gap: 0.55rem; align-items: flex-start; color: #D7DAE0; overflow-wrap: anywhere; }
.footer-contact svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--highlight); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; margin-top: 3rem; padding: 2rem var(--gutter) 2.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom:first-child { margin-top: 0; border-top: 0; }
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 24px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #5A606B 0%, #33373F 45%, #4A4F59 60%, #25282E 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 18px rgba(255, 225, 77, 0.12);
  color: #F2F3F5;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: transform 0.2s ease-out;
}
.powered-by:hover, .powered-by:focus-visible { transform: scale(1.05); }
.powered-by::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 225, 77, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.powered-by > * { position: relative; z-index: 1; }
.powered-by:hover::after, .powered-by:focus-visible::after { animation: shine 0.8s ease-out; }
@keyframes shine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.powered-by img { width: 36px; height: 36px; border-radius: 50%; }
.copy { font-size: 0.85rem; color: var(--ink-2); }

/* Legal page */
.legal { padding: clamp(3rem, 6vw, 5rem) 0 var(--section); }
.legal-wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem); }
.legal .toc { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.legal section { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.legal h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem); max-width: none; }
.legal h3 { margin-top: 2rem; font-size: 1.15rem; }
.legal p, .legal ul { margin: 0.8rem 0 0; max-width: 40em; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.back-link { margin-left: auto; color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .header-inner { gap: 0.75rem; }
  .menu-btn { display: block; }
  .nav-links { display: none; }
  .nav-links.open {
    display: grid;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .nav-links.open a { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .header-inner > .btn { margin-left: auto; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { border-top: 0; border-left: 2px solid var(--rule); padding: 0 0 1.75rem 1.75rem; }
  .timeline li.current { border-left-color: var(--ink); }
  .timeline li::before { top: 0.15rem; left: -8px; }
  .partner-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .lead { font-size: 1.1rem; }
  .btn { width: 100%; text-align: center; }
  .header-inner > .btn { width: auto; }
  .form-row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .rate-card td { white-space: normal; }
  .powered-by { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slip, .led-token, .powered-by::after { animation: none; }
  .btn, .powered-by, .faq summary::after { transition: none; }
}
