/* voucher-md site. Ink navy, one chartreuse highlight, paper white. Ticket notches and
   perforated rules are the one motif. Keep the focus ring, the skip link and the 3-width check. */
:root {
  --ink: #0e1430;
  --ink-2: #1b2352;
  --paper: #f5f5f1;
  --card: #ffffff;
  --muted: #5b6077;
  --line: #d9d9d2;
  --hi: #d6ff3d;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 3px; border-radius: 3px; box-shadow: 0 0 0 6px var(--ink); }
.on-paper :focus-visible, main :focus-visible { box-shadow: 0 0 0 6px var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--hi); color: var(--ink); padding: 10px 14px; z-index: 10; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

/* perforated rule */
.perf { height: 0; border: 0; border-top: 2px dashed currentColor; opacity: .35; margin: 0; }

/* header and hero */
.hero-shell { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero-shell::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(214,255,61,.16), transparent 62%); pointer-events: none; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; position: relative; }
.wordmark { font: 700 20px/1 var(--display); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.wordmark i { display: block; width: 26px; height: 18px; background: var(--hi); border-radius: 3px; -webkit-mask: radial-gradient(circle 4px at 0 50%, transparent 98%, #000) , radial-gradient(circle 4px at 100% 50%, transparent 98%, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle 4px at 0 50%, #0000 97%, #000) intersect, radial-gradient(circle 4px at 100% 50%, #0000 97%, #000); mask-composite: intersect; }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav a { text-decoration: none; opacity: .86; }
.nav a:hover { opacity: 1; text-decoration: underline; }
.hero { padding: 40px 0 84px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hi); margin-bottom: 22px; }
h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 800; letter-spacing: -.035em; }
h1 em { font-style: normal; background: var(--hi); color: var(--ink); padding: 0 .12em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { margin-top: 24px; font-size: 19px; line-height: 1.55; color: #c9cde6; max-width: 36em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-block; padding: 14px 22px; border-radius: 999px; background: var(--hi); color: var(--ink); font: 700 16px/1 var(--text); text-decoration: none; border: 2px solid var(--hi); }
.btn:hover { background: #fff; border-color: #fff; text-decoration: none; }
.btn-quiet { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-quiet:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.one-liner { margin-top: 26px; }
.one-liner code { display: block; max-width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 12px 14px; color: #fff; overflow-wrap: anywhere; word-break: break-word; }
.fan { position: relative; aspect-ratio: 1.12; }
.fan a { position: absolute; width: 82%; border-radius: 4px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 4px 10px rgba(0, 0, 0, .3); transition: transform .25s ease; display: block; }
.fan img { border-radius: 4px; width: 100%; }
.fan a:nth-child(1) { left: 0; top: 2%; transform: rotate(-7deg); }
.fan a:nth-child(2) { right: 0; top: 30%; transform: rotate(4deg); z-index: 2; }
.fan a:nth-child(3) { left: 6%; bottom: 0; transform: rotate(-2deg); z-index: 3; }
.fan a:hover { transform: rotate(0) scale(1.02); z-index: 5; }

/* sections */
section { padding: 88px 0; }
.sec-head { max-width: 44em; margin-bottom: 44px; }
.sec-head p { margin-top: 16px; font-size: 19px; color: var(--muted); }
.kicker { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }

/* how it works: three ticket cards */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--card); padding: 30px 26px 28px; border-radius: 14px; counter-increment: s; --n: 11px;
  -webkit-mask: radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) , radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000); -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--n) at 0 50%, #0000 97%, #000) intersect, radial-gradient(circle var(--n) at 100% 50%, #0000 97%, #000) intersect; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 54px/1 var(--display); color: var(--ink); background: linear-gradient(transparent 62%, var(--hi) 62%); width: fit-content; margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }
.ask { margin-top: 18px; font: 500 15px/1.5 var(--mono); background: var(--ink); color: #e9ecff; padding: 14px 16px; border-radius: 10px; }

/* the box: real output */
.box { background: var(--ink); color: #fff; }
.box .sec-head p, .box .kicker { color: #aeb3d3; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.tile { background: var(--ink-2); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.tile figure { margin: 0; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.tile img { border-radius: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.4); max-height: 420px; width: auto; max-width: 100%; }
.tile h3 { font-size: 19px; }
.tile p { color: #b9bedd; font-size: 15px; line-height: 1.5; }
.t-sheet, .t-a6, .t-till, .t-ins { grid-column: span 4; }
.t-reg { grid-column: span 8; }
.tile img { max-height: 440px; }
.t-reg img { max-height: 400px; }

/* codes */
.codes-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.code-demo { background: var(--card); border-radius: 16px; padding: 30px 26px; border: 1px solid var(--line); }
.code-line { font: 600 clamp(22px, 3.4vw, 38px)/1.1 var(--mono); letter-spacing: .02em; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.code-line span { border-bottom: 5px solid; padding-bottom: 4px; }
.cp { border-color: #8a93c8; }
.cr { border-color: var(--ink); }
.cc { border-color: #8bb900; background: linear-gradient(transparent 45%, var(--hi) 45%); }
.legend { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; color: var(--muted); }
.legend b { color: var(--ink); }
.honest { background: var(--hi); border-radius: 16px; padding: 26px; }
.honest h3 { margin-bottom: 10px; }
.honest p + p { margin-top: 12px; }

/* themes */
.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: end; }
.themes figure { margin: 0; }
.themes img { border-radius: 4px; box-shadow: 0 16px 30px rgba(14,20,48,.2); width: 100%; }
.themes figcaption { margin-top: 14px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.themes figcaption b { display: block; color: var(--ink); font: 700 18px/1.2 var(--display); margin-bottom: 4px; }
.themes-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.themes-dl img { border-radius: 4px; box-shadow: 0 16px 30px rgba(14,20,48,.2); }
.themes-dl a { display: block; }

/* examples */
.ex { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ex article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ex h3 { font-size: 19px; }
.ex p { color: var(--muted); font-size: 15px; }
.ex .meta { font: 500 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #7a7f99; }
.ex .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; }

/* install */
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.install div { min-width: 0; }
.install h3 { margin-bottom: 10px; font-size: 18px; }
pre { margin: 0; background: var(--ink); color: #eef0ff; padding: 16px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; line-height: 1.5; }
.note { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* footer */
.foot { background: var(--ink); color: #c9cde6; padding: 44px 0 56px; }
.foot-row { display: grid; gap: 14px; font-size: 15px; }
.foot a { color: #fff; }
.foot .wordmark { color: #fff; }

@media (max-width: 960px) {
  .hero-grid, .codes-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .install { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .t-sheet, .t-a6, .t-till, .t-ins { grid-column: span 3; grid-row: auto; }
  .t-reg { grid-column: span 6; }
  section { padding: 64px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes-dl { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .t-sheet, .t-a6, .t-till, .t-ins, .t-reg { grid-column: auto; }
  .tile img { max-height: 380px; }
  .hero { padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
