/* Rick Roll Link. Loud orange, sunny yellow, chunky condensed caps, sticker shapes.
   The brand is the color, so it stays the same in light and dark mode. */
:root {
  --orange: #f26b1d;
  --orange-2: #e05a10;
  --orange-deep: #c94a06;
  --yellow: #ffd23f;
  --cream: #fff4e0;
  --pink: #ffb3c7;
  --ink: #2a1405;
  --ink-2: #5a3518;
  --white: #fffdf8;
  --radius: 28px;
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
/* `hidden` must win over any display rule (e.g. .flyer-actions is display: flex). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--orange); color: var(--ink); font: 17px/1.55 var(--sans);
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 9; background: var(--yellow); padding: 8px 12px; border-radius: 99px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Paper grain on the orange, like a printed poster. */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(120, 40, 0, .14) 1px, transparent 1.4px), radial-gradient(rgba(255, 220, 160, .18) 1px, transparent 1.4px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; }

/* Header */
.site-header { padding: 18px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 26px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.logo-sticker { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--yellow);
  font-size: 20px; transform: rotate(-8deg); box-shadow: 3px 3px 0 var(--ink); }
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 99px; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--ink); color: var(--yellow); }

/* Type */
h1, .big-h { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; letter-spacing: .005em; margin: 0; }
h1 { font-size: clamp(56px, 7.4vw, 104px); margin: 14px 0 18px; text-wrap: balance; }
.big-h { font-size: clamp(42px, 6vw, 76px); margin-bottom: 26px; }
h2, h3 { line-height: 1.2; }
.lede { font-size: clamp(18px, 2vw, 21px); max-width: 34em; font-weight: 500; }
.eyebrow { font: 18px var(--display); text-transform: uppercase; letter-spacing: .06em; color: #a83f05; margin: 0 0 8px; }
.hint { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }

/* Stickers */
.sticker { display: inline-block; background: var(--white); color: var(--ink); border-radius: 99px; padding: 8px 18px;
  font: 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; box-shadow: 3px 3px 0 var(--ink); }
.sticker.yellow { background: var(--yellow); } .sticker.cream { background: var(--cream); } .sticker.pink { background: var(--pink); }
.tilt-l { transform: rotate(-3deg); } .tilt-r { transform: rotate(2.5deg); }
.sticker-row { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; padding: 24px 0 110px; }
.hero.short { padding-bottom: 100px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: start; }
.hero-copy { padding-top: 30px; }

/* Waves between sections */
.wave { position: absolute; left: 0; width: 100%; height: 70px; display: block; }
.wave.to-cream { bottom: -1px; fill: var(--cream); }
.wave.from-cream { top: -1px; fill: var(--cream); transform: scaleY(-1); }
.band { position: relative; padding: 60px 0 80px; }
.band.cream { background: var(--cream); }
.band.orange { background: transparent; padding: 130px 0 150px; }
.page { padding-top: 40px; }
.page h2 { font: 30px var(--display); text-transform: uppercase; margin: 2em 0 .4em; }

/* Cards and forms */
.card { background: var(--cream); border-radius: var(--radius); padding: 26px; box-shadow: 6px 6px 0 var(--ink); }
/* On a cream section the cream card needs an edge. */
.band.cream .card { background: var(--white); border: 2.5px solid var(--ink); }
.card-title { font: 34px/1 var(--display); text-transform: uppercase; margin: 0 0 18px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--ink-2); }
.small-label { font-size: 14px; margin: 14px 0 4px; }
input, select { width: 100%; font: 500 17px var(--sans); color: var(--ink); background: var(--white); border: 2.5px solid var(--ink);
  border-radius: 16px; padding: 12px 14px; min-height: 50px; }
/* A real outline as well as the glow: yellow alone is too faint on cream, and forced-colors mode drops box-shadow. */
input:focus-visible, select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); }
.with-btn { display: flex; gap: 8px; }
.with-btn input { flex: 1; min-width: 0; }
.with-btn .btn { flex: 0 0 auto; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick { position: relative; margin: 0; cursor: pointer; font-weight: 500; }

.pick img { width: 100%; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; background: #e8c9a0; border: 3px solid transparent; }
.pick span { display: block; font-size: 12px; text-align: center; margin-top: 2px; }
.pick input:checked + img { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
.pick input:focus-visible + img { outline: 3px solid var(--ink); outline-offset: 2px; }
.error { background: #ffe1e1; border: 2px solid #b3261e; color: #7a1610; border-radius: 14px; padding: 10px 14px; font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px var(--sans); color: var(--yellow);
  background: var(--ink); border: 2.5px solid var(--ink); border-radius: 99px; padding: 11px 20px; min-height: 50px; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: transform .12s; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--yellow); }
.btn.big { width: 100%; font: 26px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; padding: 18px; background: var(--orange); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn.big:hover { background: var(--yellow); }
.btn.big[disabled] { opacity: .6; cursor: wait; }
.btn.yellow-btn { width: auto; background: var(--yellow); padding: 18px 34px; margin-top: 14px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--ink); }

/* Result */
/* Chat previews: tabs, then one look-alike per app (system fonts, generic colors). */
.previews { margin-bottom: 6px; }
.ptabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ptabs button { font: 700 14px var(--sans); color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 99px; padding: 6px 13px; cursor: pointer; }
.ptabs button[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.pv { font: 14px/1.4 -apple-system, "Segoe UI", system-ui, Helvetica, Arial, sans-serif; color: #1d1c1d; }
.pv[hidden] { display: none; }
.pv b, .pv span { display: block; word-break: break-word; overflow-wrap: anywhere; }
.pv .p-dek:empty { display: none; }
.pv-slack { background: #fff; border-radius: 10px; padding: 12px 14px; border-left: 4px solid #dddddd; display: grid; gap: 2px; }
.pv-slack .p-site { color: #616061; font-weight: 700; font-size: 13px; }
.pv-slack .p-title { color: #1264a3; font-size: 15px; }
.pv-slack .p-img { border-radius: 8px; margin-top: 8px; max-width: 360px; width: 100%; }
.pv-teams { background: #fff; border: 1px solid #e1dfdd; border-radius: 6px; display: flex; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pv-teams-img { flex: 0 0 34%; max-width: 150px; }
.pv-teams-img .p-img { width: 100%; height: 100%; object-fit: cover; }
.pv-teams-txt { padding: 10px 12px; display: grid; gap: 3px; align-content: start; min-width: 0; }
.pv-teams .p-title { font-size: 14px; color: #242424; }
.pv-teams .p-dek { color: #616161; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-teams .p-host { color: #616161; font-size: 12px; }
.pv-imsg { max-width: 300px; border-radius: 18px; overflow: hidden; background: #e9e9eb; }
.pv-imsg .p-img { width: 100%; }
.pv-imsg-txt { padding: 9px 13px 11px; display: grid; gap: 1px; }
.pv-imsg .p-title { font-size: 14px; color: #000; }
.pv-imsg .p-host { font-size: 12px; color: #636368; }
.pv-discord { background: #2b2d31; color: #dbdee1; border-left: 4px solid #0b3a6e; border-radius: 4px; padding: 10px 14px 14px; display: grid; gap: 4px; max-width: 432px; }
.pv-discord .p-site { font-size: 12px; color: #b5bac1; }
.pv-discord .p-title { color: #00a8fc; font-size: 15px; }
.pv-discord .p-dek { font-size: 13px; }
.pv-discord .p-img { border-radius: 4px; margin-top: 8px; width: 100%; }
.qr-row { display: flex; gap: 16px; align-items: center; margin: 18px 0 8px; flex-wrap: wrap; }
.qr-row canvas { background: #fff; border-radius: 12px; width: 140px; height: 140px; image-rendering: pixelated; border: 2.5px solid var(--ink); }
.qr-row div { display: flex; flex-direction: column; gap: 8px; }
.result .link-btn { margin-top: 14px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { border-radius: var(--radius); padding: 26px; box-shadow: 5px 5px 0 var(--ink); }
.step:nth-child(1) { transform: rotate(-1.2deg); } .step:nth-child(2) { transform: rotate(1deg); } .step:nth-child(3) { transform: rotate(-.6deg); }
.step.yellow { background: var(--yellow); } .step.orange { background: var(--orange); } .step.pink { background: var(--pink); }
.step .num { font: 54px/1 var(--display); }
.step h3 { font: 28px/1.05 var(--display); text-transform: uppercase; margin: 10px 0 8px; font-weight: 400; }
.step p { margin: 0; }
.pin { display: flex; align-items: center; gap: 32px; margin-top: 44px; }
.pin img { width: 220px; height: auto; flex: none; border-radius: 8px; box-shadow: 5px 5px 0 var(--ink); }
.pin h3 { font: 28px/1.05 var(--display); text-transform: uppercase; margin: 0 0 8px; font-weight: 400; }
.pin p { margin: 0 0 16px; }

/* Why */
.why .big-h { color: var(--ink); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; font-size: 19px; font-weight: 500; }
.why-grid p { margin: 0; }

/* FAQ */
.faq-item { background: var(--white); border-radius: 20px; margin: 0 0 12px; box-shadow: 3px 3px 0 var(--ink); }
.faq-item summary { cursor: pointer; padding: 18px 50px 18px 20px; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 30px var(--display); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 20px 20px; }

/* QR flyer page */
.qr-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; align-items: start; }
.tpls { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl { position: relative; margin: 0; cursor: pointer; }
.tpl input, .pick input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }
.tpl span { display: inline-block; padding: 9px 15px; border: 2.5px solid var(--ink); border-radius: 99px; font-weight: 700; background: var(--white); }
.tpl input:checked + span { background: var(--ink); color: var(--yellow); }
.tpl input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.flyer-side { position: sticky; top: 16px; }
.flyer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* The flyer itself: plain and photocopied-looking on purpose. Letter ratio. */
.paper { background: #fff; aspect-ratio: 8.5 / 11; width: 100%; max-width: 560px; box-shadow: 6px 6px 0 var(--ink); border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7% 8%; font-family: Arial, Helvetica, sans-serif; color: #111; container-type: inline-size; overflow: hidden; }
.paper .f-title { font-weight: 900; font-size: 15cqw; line-height: .95; margin: 0 0 3cqw; letter-spacing: -.01em; }
.paper .f-sub { font-size: 4.4cqw; margin: 0 0 6cqw; }
.paper .f-cta { font-size: 4cqw; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 2cqw; }
.paper .f-qr { width: 55%; }
.paper .f-qr svg, .paper .f-qr img { width: 100%; height: auto; display: block; }
.paper .f-empty { color: #666; font-size: 4cqw; }
/* 12 stickers, 3 across and 4 down, sized to the page rather than to their text. */
.paper.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 3cqw; padding: 5%; }
.paper.sheet .stk { border: 1px dashed #bbb; border-radius: 14%; min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw; padding: 6%; }
.paper.sheet .stk b { font-size: 3.4cqw; line-height: 1.1; max-height: 2.2em; overflow: hidden; overflow-wrap: anywhere; }
/* Browsers without container units (Safari < 16, Chrome < 105) drop every cqw value above, and the
   big words shrink to body text. Sizes match the 560px preview, scaled down on narrow screens. */
@supports not (font-size: 1cqw) {
  .paper .f-title { font-size: min(69px, 11vw); margin-bottom: min(14px, 2.2vw); }
  .paper .f-sub { font-size: min(20px, 3.3vw); margin-bottom: min(28px, 4.4vw); }
  .paper .f-cta, .paper .f-empty { font-size: min(18px, 3vw); }
  .paper .f-cta { margin-bottom: min(9px, 1.5vw); }
  .paper.sheet { gap: min(14px, 2.2vw); }
  .paper.sheet .stk { gap: 5px; }
  .paper.sheet .stk b { font-size: min(16px, 2.5vw); }
}
.paper.sheet .stk div { width: 72%; min-height: 0; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding: 50px 0 30px; }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-title { font: 22px var(--display); text-transform: uppercase; color: var(--yellow); margin: 0 0 10px; }
.site-footer a { display: block; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: var(--yellow); }
.footer-fine { font-size: 13px; opacity: .7; margin-top: 30px; }

@media (max-width: 900px) {
  .hero-grid, .qr-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .steps, .why-grid, .footer-grid { grid-template-columns: 1fr; }
  .flyer-side { position: static; }
}
/* Phones: get the link maker on screen sooner. */
@media (max-width: 600px) {
  .pin { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pin img { width: 180px; }
  .site-header { padding: 12px 0 4px; }
  .hero { padding-top: 6px; }
  .hero-copy .sticker-row { display: none; }
  h1 { font-size: clamp(46px, 14vw, 64px); margin: 10px 0 12px; }
  .lede { font-size: 17px; }
  .hero-grid { gap: 22px; }
}
@media (max-width: 480px) {
  .card { padding: 20px 16px; border-radius: 22px; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav a { padding: 6px 10px; font-size: 14px; }
  .with-btn .btn { padding: 11px 15px; }
  /* Four nav links don't fit on one line; "How it works" is just an anchor further down. */
  .main-nav a[href="/#how"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Print: only the flyer. */
@media print {
  /* No page size: Letter printers get Letter, A4 printers get A4. The flyer fills whichever it is. */
  @page { margin: 0; }
  body { background: #fff; display: block; min-height: 0; }
  body::before, .skip, .site-header, .site-footer, .hero, .card, .flyer-actions, .flyer-side > .hint, .no-print { display: none !important; }
  .band { padding: 0; background: #fff !important; }
  .qr-grid, .flyer-side { display: block; padding: 0; margin: 0; max-width: none; position: static; }
  .paper { box-shadow: none; max-width: none; width: 100%; height: 100vh; aspect-ratio: auto; border-radius: 0; break-inside: avoid; }
}
