/* jetr.co company website. Colors are the app's palette (docs/specification.md, section 2.1). */

@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff") format("woff"); font-weight: 500 800; font-stretch: 75% 100%; font-display: swap; }

:root {
  --cream: #FBF7EC;
  --white: #FFFFFF;
  --charcoal: #1F2328;
  --blue: #1D4ED8;
  --gray: #5F6368;
  --green: #15803D;
  --gold: #C9972B;
  --teal: #0F766E;
  --purple: #6D28D9;
  --rule: #DDD6C3;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 38rem;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border: 2px solid var(--charcoal); border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head { border-bottom: 1.5px solid var(--charcoal); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.75rem; font-stretch: 85%; letter-spacing: -0.02em; color: var(--charcoal); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.wordmark .mark { width: 30px; height: 30px; }
.site-nav { display: flex; gap: clamp(14px, 3vw, 28px); font-weight: 700; font-size: 1rem; }
.site-nav a { color: var(--charcoal); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--charcoal); }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; font-stretch: 78%; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 750; font-stretch: 85%; }
h3 { font-size: 1.35rem; font-weight: 700; font-stretch: 92%; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; }
.muted { color: var(--gray); }

section { padding: clamp(56px, 9vw, 104px) 0; }
section + section { border-top: 1.5px solid var(--rule); }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 16px; background: var(--white); border: 1.5px solid var(--charcoal); border-radius: 10px; font-weight: 700; font-size: 1rem; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }

/* The ticket illustration */
.scene { position: relative; padding: 8px 0 72px; max-width: 400px; justify-self: center; width: 100%; }
.ticket {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--charcoal);
  border-radius: 6px;
  padding: 22px 24px 20px;
  transform: rotate(-3deg);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--charcoal);
  /* perforated top and bottom edges */
  -webkit-mask: radial-gradient(circle 5px at 50% 0, transparent 98%, #000) 0 0 / 16px 51% repeat-x, radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 100% / 16px 51% repeat-x;
          mask: radial-gradient(circle 5px at 50% 0, transparent 98%, #000) 0 0 / 16px 51% repeat-x, radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 100% / 16px 51% repeat-x;
}
.ticket .t-head { display: flex; justify-content: space-between; font-weight: 700; border-bottom: 1px dashed var(--gray); padding-bottom: 8px; margin-bottom: 10px; }
.ticket .plays { list-style: none; margin: 0; padding: 0; }
.ticket .plays li { display: flex; gap: 10px; white-space: nowrap; }
.ticket .plays b { width: 1.4em; }
.ticket .t-foot { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--gray); display: flex; justify-content: space-between; color: var(--gray); font-size: 0.8rem; }
.barcode { height: 46px; margin-top: 12px; background: repeating-linear-gradient(90deg, var(--charcoal) 0 2px, transparent 2px 4px, var(--charcoal) 4px 7px, transparent 7px 9px, var(--charcoal) 9px 10px, transparent 10px 13px, var(--charcoal) 13px 16px, transparent 16px 17px); }
.notice {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: min(300px, 86%);
  background: var(--white);
  border: 1.5px solid var(--charcoal);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 6px 6px 0 var(--charcoal);
}
.notice .n-top { display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: 0.8rem; margin-bottom: 4px; }
.notice .n-top .mark { width: 18px; height: 18px; }
.notice strong { display: block; font-size: 1.05rem; }
.notice .ok { color: var(--green); font-weight: 700; }

/* How it works */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--charcoal); border-radius: 12px; background: var(--white); overflow: hidden; }
.steps li { padding: 28px 26px 30px; }
.steps li + li { border-left: 1.5px solid var(--charcoal); }
.steps .num { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 3rem; line-height: 1; color: var(--blue); display: block; margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; font-size: 1.05rem; }

/* Two-column text blocks */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.features { display: grid; gap: 28px; }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.feature .ic { width: 40px; height: 40px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { margin: 4px 0 6px; }
.feature p { margin: 0; }
.feature p + p { margin-top: 8px; }
#promises .features + .muted { margin: 28px 0 0; }
.ic.blue { color: var(--blue); } .ic.teal { color: var(--teal); } .ic.purple { color: var(--purple); }

.promise { background: var(--white); border: 1.5px solid var(--charcoal); border-left: 8px solid var(--gold); border-radius: 10px; padding: 26px 28px; }
.promise p:last-child { margin-bottom: 0; }

/* Company and contact */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--charcoal); }
.contact-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-list .k { font-weight: 700; }
.contact-list a { font-weight: 700; word-break: break-word; }

/* Long-form pages */
.doc { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 9vw, 104px); }
.doc h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 0.3em; }
.doc h2 { font-size: 1.6rem; margin: 2.2em 0 0.6em; }
.doc ul { padding-left: 1.2em; max-width: var(--measure); margin: 0 0 1em; }
.doc li { margin: 0.35em 0; }
.doc .callout { background: var(--white); border: 1.5px solid var(--charcoal); border-radius: 10px; padding: 18px 22px; max-width: var(--measure); margin: 1.6em 0; }
.doc .callout p:last-child { margin: 0; }

/* Footer */
.site-foot { border-top: 1.5px solid var(--charcoal); padding: 40px 0 48px; font-size: 0.95rem; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
.site-foot p { margin: 0 0 0.7em; }
.help { background: var(--white); border: 1.5px solid var(--charcoal); border-radius: 10px; padding: 16px 18px; }
.help strong { display: block; margin-bottom: 4px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; margin-bottom: 0.9em; }

/* Small screens */
@media (max-width: 860px) {
  .hero .wrap, .split, .site-foot .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; border-top: 1.5px solid var(--charcoal); }
  .scene { max-width: 360px; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .ticket { font-size: 0.82rem; padding: 18px 18px 16px; }
  .notice { right: 0; }
}

/* One arrival moment: the result notice slides in once the page loads. */
@media (prefers-reduced-motion: no-preference) {
  .notice { animation: arrive 0.6s cubic-bezier(.2,.8,.2,1) 0.5s both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
