/* Johns Creek Screens: every page is a screen, and a screen plays cards.
   You arrive by walking up to a screen in the store (the home page). The page is that screen, full window: one
   card at a time, swiped sideways on a phone, arrows or the keyboard on a computer. The thin bars along the top
   show how many cards there are and which one is playing. The last card lists the other screens in the store.
   Without JavaScript the cards still scroll sideways by hand.
   Look: a black display. Near-white type, grey for the quiet parts, one vivid gradient for the words that matter. */

:root {
  --ink: #000;
  --paper: #f5f5f7;
  --mute: #a1a1a6;
  --dim: #6e6e73;
  --tile: #1d1d1f;
  --accent: #ff5a2c;
  --blue: #2997ff;
  --glow: linear-gradient(95deg, #2997ff 0%, #a972ff 38%, #ff5f8f 68%, #ff9f0a 100%);
  --line: rgba(255, 255, 255, .14);
  --f: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #000; }
body { margin: 0; background: #000; color: var(--paper); font-family: var(--f); font-size: 17px; line-height: 1.47; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: #000; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
@view-transition { navigation: auto; }
.lit { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

/* ---------- The screen ---------- */
.deck { height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; grid-template-columns: minmax(0, 1fr); }
.js .deck { animation: on .6s var(--ease) both; }
@keyframes on { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .js .deck { animation: none; } }

/* Which card is playing */
/* Its height is fixed before the bars are drawn in, so the cards are dealt to the room they will really have. */
.bars { display: flex; gap: 5px; padding: max(10px, env(safe-area-inset-top)) var(--pad) 0; box-sizing: content-box; height: 3px; }
.bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); transition: background-color .3s; }
.bars i.done, .bars i.on { background: #fff; }

.top { display: flex; align-items: center; gap: 12px; padding: 12px var(--pad) 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px 8px 10px; margin-left: -10px; border-radius: 999px; color: var(--paper); }
.back:hover { background: var(--tile); }
.name { font-size: 15px; font-weight: 600; color: var(--mute); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; background: var(--paper); color: #000; transition: transform .2s var(--ease), background-color .2s; }
.pill:hover { transform: scale(1.03); }
.pill.line { background: var(--tile); color: var(--paper); }
.pill.line:hover { background: #2c2c2e; }
.pill.blue { background: #0071e3; color: #fff; }
.pill.big { min-height: 50px; padding: 0 26px; font-size: 16px; }

/* ---------- The cards ---------- */
.cards { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; min-height: 0; }
.cards::-webkit-scrollbar { display: none; }
.cards > section { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; scrollbar-width: none; padding: clamp(14px, 3vh, 40px) var(--pad) clamp(20px, 4vh, 48px); display: grid; align-content: safe center; }
.cards > section::-webkit-scrollbar { display: none; }
.in { display: grid; gap: clamp(16px, 2.6vh, 28px); width: 100%; max-width: 1120px; margin: 0 auto; }
/* Only once the cards are dealt: a card is measured at its full size, never while it's shrunk. */
.js.dealt .cards > section .in { opacity: .25; transform: scale(.97); transition: opacity .5s, transform .6s var(--ease); }
.js.dealt .cards > section.on .in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .cards > section .in { opacity: 1; transform: none; transition: none; } }

.k { font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; letter-spacing: -.015em; color: var(--mute); }
.cards h1, .cards h2 { font-weight: 700; font-size: clamp(38px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.05em; text-wrap: balance; }
.cards h3 { font-weight: 600; font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -.025em; line-height: 1.15; color: var(--paper); }
.lead { font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; line-height: 1.36; letter-spacing: -.015em; color: var(--mute); max-width: 62ch; text-wrap: pretty; }
.cards p, .cards li, .cards dd, .cards dt { color: var(--mute); }
.fine { font-size: 14px; color: var(--dim) !important; max-width: 80ch; }
.cards a:not(.pill):not(.hopto) { color: var(--blue); text-decoration: none; }
.cards a:not(.pill):not(.hopto):hover { text-decoration: underline; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tile { background: var(--tile); border-radius: 22px; padding: clamp(16px, 1.8vw, 24px); display: grid; gap: 7px; align-content: start; }
.tile .amt { font-weight: 700; font-size: clamp(36px, 3.4vw, 50px); letter-spacing: -.05em; line-height: 1; color: #fff; }
.tile .num { font-weight: 700; font-size: clamp(40px, 4vw, 56px); line-height: .9; letter-spacing: -.05em; justify-self: start; }
.tile .sub { font-weight: 600; color: var(--paper); }
.tile.hot { box-shadow: inset 0 0 0 2px var(--blue); }
.ticks { display: grid; gap: 9px; max-width: 70ch; }
.ticks li { padding-left: 22px; position: relative; font-size: clamp(16px, 1.4vw, 19px); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.rows { border-top: 1px solid var(--line); max-width: 780px; }
.rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rows dd { font-weight: 600; color: #fff; text-align: right; }
.hero-n { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 26px; }
.hero-n .n { font-weight: 700; font-size: clamp(120px, 20vw, 260px); line-height: .78; letter-spacing: -.07em; }
.hero-n .n sup { font-size: .4em; vertical-align: top; position: relative; top: .1em; }
.hero-n h1 { font-size: clamp(26px, 3.6vw, 48px); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qa { display: grid; max-width: 860px; border-top: 1px solid var(--line); }
.qa div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.qa dt { font-weight: 600; font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -.025em; color: var(--paper); }
.mailto { font-weight: 600; font-size: clamp(21px, 3.4vw, 42px); letter-spacing: -.03em; overflow-wrap: anywhere; }

/* Screens inside the screen */
.live { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 30px); align-items: center; }
.live > div:last-child { display: grid; gap: 12px; justify-items: start; }
.scr { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111; box-shadow: 0 0 0 5px var(--tile), 0 0 0 6px rgba(255, 255, 255, .12); }
.scr iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.wall figure { display: grid; gap: 10px; font-size: 14.5px; color: var(--mute); }
.wall b { color: #fff; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--paper); color: #000; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.badge.soft { background: #2c2c2e; color: var(--paper); }
.badge.soft::before { display: none; }

/* The last card: the other screens in the store */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.hopto { text-decoration: none; display: grid; gap: 3px; padding: 20px 22px; border-radius: 22px; background: var(--tile); transition: background-color .2s, transform .25s var(--ease); }
.hopto:hover { background: #2c2c2e; transform: scale(1.02); }
.hopto b { font-size: 19px; font-weight: 600; letter-spacing: -.025em; color: var(--paper); }
.hopto span { font-size: 14.5px; color: var(--mute); }
.hopto[aria-current="page"] { display: none; }

/* ---------- Next and back ---------- */
.hop { display: flex; align-items: center; gap: 12px; padding: 8px var(--pad) max(14px, env(safe-area-inset-bottom)); }
.hop button { width: 48px; height: 48px; border-radius: 50%; background: var(--tile); display: grid; place-items: center; font-size: 20px; transition: background-color .2s, opacity .2s, transform .2s var(--ease); }
.hop button:hover { background: #2c2c2e; }
.hop button:active { transform: scale(.94); }
.hop button[disabled] { opacity: .3; cursor: default; }
.hop .next { background: var(--paper); color: #000; }
.hop .next:hover { background: #fff; }
.hop p { flex: 1; min-width: 0; text-align: center; font-size: 14.5px; font-weight: 500; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hop p b { color: var(--paper); font-weight: 600; }
.cut { position: fixed; inset: 0; z-index: 90; background: #000; opacity: 0; pointer-events: none; transition: opacity .28s; }
.cut.on { opacity: 1; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .cards > section { align-content: safe start; padding-top: 10px; }
  .cols { grid-template-columns: 1fr; }
  .cols.two-up { grid-template-columns: 1fr 1fr; }
  .tile { border-radius: 18px; }
  .live, .wall { grid-template-columns: 1fr; }
  .rows div { flex-direction: column; gap: 2px; }
  .rows dd { text-align: left; }
  .top .pill { min-height: 36px; padding: 0 14px; font-size: 14px; }
  .more { grid-template-columns: 1fr 1fr; }
  .hopto { padding: 16px; border-radius: 18px; }
  .hopto span { display: none; }
}

/* Cards show once they've been dealt to the screen's size (screen.js), so nothing jumps. */
.js .cards { visibility: hidden; }
.js.dealt .cards { visibility: visible; }
@media (max-width: 760px) {
  .cards h1, .cards h2 { font-size: clamp(34px, 10vw, 46px); }
  .lead { font-size: 17px; }
  .in { gap: 14px; }
  .tile { padding: 15px 16px; gap: 5px; }
  .tile .amt { font-size: 34px; }
  .tile .num { font-size: 36px; }
  .hero-n .n { font-size: 120px; }
  .qa div { padding: 12px 0; }
}
/* A card still too tall for a short phone is set tighter (screen.js) before anything is moved off it. */
.cards > section.tight h1, .cards > section.tight h2 { font-size: 29px; }
.cards > section.tight .hero-n h1 { font-size: 24px; }
.cards > section.tight .lead { font-size: 15.5px; line-height: 1.32; }
.cards > section.tight .in { gap: 10px; }
.cards > section.tight .pill.big { min-height: 44px; padding: 0 20px; font-size: 15px; }
.cards > section.tight .hero-n .n { font-size: 96px; }
/* A phone on its side: little height, so headlines come down and a sample screen sits beside its words, no taller than the room. */
@media (max-height: 520px) and (orientation: landscape) {
  .cards h1, .cards h2 { font-size: clamp(26px, 5vw, 38px); }
  .lead { font-size: 16px; }
  .in { gap: 10px; }
  .live { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scr { max-height: calc(100dvh - 196px); max-width: calc((100dvh - 196px) * 16 / 9); }
  .wall .scr { max-height: calc(100dvh - 248px); max-width: calc((100dvh - 248px) * 16 / 9); }
  .hop { padding-top: 4px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .hop button { width: 40px; height: 40px; }
}
/* The narrowest phones: the screen's name gives its room to the buttons. */
@media (max-width: 350px) {
  .top .name { display: none; }
  .top .back { margin-right: auto; }
}

/* ---------- A screen of long text (terms, privacy, page not found) ----------
   One card that scrolls instead of a row of cards. No script: nothing is dealt, nothing swipes. */
.deck.doc { grid-template-rows: auto 1fr; }
.doc .top { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc .cards { overflow: hidden; }
.doc .cards > section { align-content: start; scrollbar-width: thin; scrollbar-color: #3a3a3c transparent; padding-top: clamp(28px, 6vh, 64px); padding-bottom: max(48px, env(safe-area-inset-bottom)); }
.doc .cards > section:focus-visible { outline: none; }
.doc .in { max-width: 760px; gap: 14px; }
.doc .cards h1 { font-size: clamp(36px, 5.6vw, 64px); }
.doc .cards h2 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.15; letter-spacing: -.03em; margin-top: clamp(14px, 2.4vh, 24px); color: var(--paper); scroll-margin-top: 20px; }
.doc .cards p, .doc .cards li { color: #d1d1d6; font-size: 17px; line-height: 1.5; max-width: 68ch; }
.doc .cards .k { color: var(--mute); font-size: 15px; }
.doc .cards .lead { color: var(--mute); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.38; margin-bottom: 6px; }
.doc .cards li b { color: #fff; font-weight: 600; }
.doc .cards .fine { color: var(--dim); font-size: 14px; margin-top: clamp(24px, 5vh, 48px); padding-top: 18px; border-top: 1px solid var(--line); max-width: none; }
.doc.nf .cards > section { align-content: safe center; }
.doc.nf .in { gap: clamp(16px, 2.6vh, 28px); }
.doc.nf .cards h1 { font-size: clamp(38px, 6.4vw, 88px); }
