/* packethush demo: the site's look (tokens, kicker, display headline, chips, cards, the hero's instrument). No inline styles. */
@font-face { font-family: "Geist Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/geist-latin-wght-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Geist Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/geist-mono-latin-wght-normal.woff2) format("woff2-variations"); }
:root {
  --panel: #F3F3F1; --card: #FFFFFF; --ink: #121212; --ink-2: #6B6B66; --rule: #DCDCD7; --rule-2: #ECECE8; --well: #FAFAF8;
  --caller: #FF4D1A; --caller-text: #C2380D; --caller-display: #FE4C19; --noise: #A3A39C; --noise-2: #C9C9C2; --bad: #B3261E;
  --sans: "Geist Variable", -apple-system, system-ui, sans-serif; --mono: "Geist Mono Variable", ui-monospace, Menlo, monospace;
  --pad: max(24px, calc(50% - 640px)); --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); color-scheme: light;
  --shadow: 0 1px 0 #fff inset, 0 24px 48px -32px rgba(0, 0, 0, .25);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--panel); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--caller-text); }
:focus-visible { outline: 2px solid var(--caller); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }

/* header: the site's wordmark and sections; the account on the right */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; padding: 18px var(--pad); }
.wm { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -.035em; color: var(--ink); }
.wm:hover { color: var(--ink); }
.mark { flex: none; color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.acct { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.acct .who { font: 400 14px var(--sans); color: var(--ink-2); padding-right: 4px; overflow-wrap: anywhere; }
.acct form { display: contents; }

/* page opening: kicker, the one big line, the lede */
.page { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 5vw, 64px) var(--pad) clamp(56px, 7vw, 112px);
  display: flex; flex-direction: column; gap: clamp(32px, 4vw, 52px); }
.head { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.kicker { display: flex; align-items: center; gap: 10px; font: 600 16px/1.25 var(--sans); letter-spacing: -.01em; }
.kicker::before { content: ""; flex: none; width: 14px; height: 8px; border-radius: 4px; background: var(--caller); }
.kicker a { text-decoration: none; }
.kicker .sub { font-weight: 500; color: var(--ink-2); }
.display { font-size: clamp(52px, 7vw, 100px); line-height: .94; font-weight: 600; letter-spacing: -.055em; }
.display.n { max-width: 13ch; }
.display .hl, .h-section .hl { color: var(--caller-display); }
.duo .display { font-size: clamp(52px, 6.6vw, 96px); }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.42; letter-spacing: -.012em; color: var(--ink-2); max-width: 46ch; }
.duo .lede { max-width: 38ch; }
.h-sub { font-size: 25px; line-height: 1.2; font-weight: 550; letter-spacing: -.02em; }
.h-section { font-size: clamp(38px, 5.2vw, 72px); line-height: .98; font-weight: 600; letter-spacing: -.05em; max-width: 14ch; }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font: 400 13px var(--mono); color: var(--ink-2); }
.chips li { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 6px; background: rgba(255, 255, 255, .5); }
.card .chips li { background: var(--well); }
.chips.on { margin-top: 4px; }
.note { font: 400 14px/1.5 var(--sans); color: var(--ink-2); }
.small { font-size: 14.5px; }
.wmk { position: absolute; z-index: -1; left: 76%; top: 50%; width: min(60vw, 900px); height: auto; transform: translate(-50.8%, -50%); opacity: .085; color: var(--ink-2); pointer-events: none; }
.wmk.high { top: 24px; left: 78%; width: min(46vw, 660px); transform: translateX(-50%); }
/* the watermark's parts are named wm-* (a plain .bar is the upload progress bar, whose height once squashed them).
   The watermark is the site's live mark at 1.5x its tempo, the bars in the spark's grey at one strength (Watermark.astro) */
.wmk { overflow: visible; --pace: 1.5; --mark-bar: var(--ink-2); --mark-hush: 1; }
.wmk .wm-room, .wmk .wm-bar, .wmk .wm-spark, .wmk .wm-line, .wmk .wm-glow { transform-box: fill-box; }
.wmk .wm-room, .wmk .wm-bar, .wmk .wm-spark, .wmk .wm-glow { transform-origin: center; }
.wmk .wm-line { transform-origin: left center; }
.wmk .wm-room { transform: scaleY(.62); opacity: var(--mark-hush, .5); }
.wmk .wm-bar { fill: var(--mark-bar, #A3A39C); }
@keyframes wmk-level { 0%, 100% { transform: scaleY(1); } 18% { transform: scaleY(.42); } 37% { transform: scaleY(1.12); }
                       55% { transform: scaleY(.66); } 74% { transform: scaleY(1.04); } 88% { transform: scaleY(.5); } }
@keyframes wmk-turn { 0%, 68% { transform: rotate(0) scale(1); } 78% { transform: rotate(45deg) scale(1.12); } 88%, 100% { transform: rotate(90deg) scale(1); } }
@keyframes wmk-answer { 0%, 80% { transform: scaleX(1); } 88% { transform: scaleX(1.1); } 98%, 100% { transform: scaleX(1); } }
@keyframes wmk-shine { 0%, 80% { transform: scale(1); } 90% { transform: scale(1.16); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .wmk .wm-bar { animation: wmk-level calc(1.1s * var(--pace)) var(--ease-io) infinite; }
  .wmk .wm-bar:nth-child(2) { animation-duration: calc(.9s * var(--pace)); animation-delay: calc(-.3s * var(--pace)); }
  .wmk .wm-bar:nth-child(3) { animation-duration: calc(1.3s * var(--pace)); animation-delay: calc(-.7s * var(--pace)); }
  .wmk .wm-spark { animation: wmk-turn calc(2.4s * var(--pace)) var(--ease-io) infinite; }
  .wmk .wm-line { animation: wmk-answer calc(2.4s * var(--pace)) var(--ease-out) infinite; }
  .wmk .wm-glow { animation: wmk-shine calc(2.4s * var(--pace)) var(--ease-out) infinite; }
  .wmk.paused * { animation-play-state: paused; }
}

/* layouts */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: center; gap: 40px clamp(40px, 6vw, 88px); }
.pair { display: flex; flex-wrap: wrap; gap: 28px clamp(32px, 5vw, 72px); align-items: flex-start; }
.pair > .main { flex: 7 1 520px; min-width: 0; }
.pair > .side { flex: 5 1 340px; min-width: 0; }
.pair > .side.form { max-width: 480px; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.centre { align-items: center; }

/* cards, buttons, fields */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow); }
.card.pad { padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.card.tool { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; border: 0;
  font: 550 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn.ink { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset; }
.btn.ink:hover { background: #262625; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 12px 24px -14px rgba(18, 18, 18, .7); }
.btn.line { background: var(--card); color: var(--ink); border: 1px solid var(--rule); }
.btn.line:hover { border-color: var(--noise); color: var(--ink); }
.btn.hd { height: 40px; padding: 0 16px; font-size: 15px; }
.btn.small { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn.big { height: 56px; font-size: 17px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn .stop { width: 12px; height: 12px; border-radius: 3px; background: var(--caller); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.sso { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sso .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 0 12px; }   /* "Continue with Microsoft" fits half a card */
.or { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; color: var(--ink-2); font: 400 14px var(--sans); }
.or::before, .or::after { content: ""; height: 1px; background: var(--rule-2); }
form.stack { display: flex; flex-direction: column; gap: 12px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 550; min-width: 0; }
.field .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field .row a { font-size: 13.5px; font-weight: 400; color: var(--ink-2); }
input[type=email], input[type=password], input[type=text], input:not([type]) {
  font: 400 16px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 11px 12px; width: 100%; }
input:focus { outline: none; border-color: var(--caller); box-shadow: 0 0 0 4px rgba(255, 77, 26, .14); }
.field .opt { font-weight: 400; color: var(--ink-2); }
.hint { font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--ink-2); }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; font: 500 14px var(--sans); color: var(--ink-2); cursor: pointer; }
.pw-show:hover, .pw-show:focus-visible { color: var(--ink); background: var(--panel); }
select { font: 400 16px var(--sans); color: var(--ink); width: 100%; padding: 11px 38px 11px 12px; border: 1px solid var(--rule); border-radius: 10px; appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B6B66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
select:focus { outline: none; border-color: var(--caller); box-shadow: 0 0 0 4px rgba(255, 77, 26, .14); }
select:has(option[value=""]:checked) { color: var(--ink-2); }
.choices { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.choices legend { font-size: 14px; font-weight: 550; padding: 0; margin-bottom: 8px; }
.choices legend span { font-weight: 400; color: var(--ink-2); }
.choices .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--rule); background: var(--card); font-size: 14.5px; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--ink); }
.choices input { accent-color: var(--caller); margin: 0; }
.fine { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.err { padding: 10px 12px; border-radius: 10px; background: #FBEAE7; color: var(--bad); font-size: 14.5px; line-height: 1.45; }
.ok { padding: 10px 12px; border-radius: 10px; background: var(--well); border: 1px solid var(--rule-2); font-size: 14.5px; line-height: 1.45; }

/* a card's top line (not the player's readout): the text face */
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font: 500 14px/1.4 var(--sans); color: var(--ink-2); }
.card-head b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* the instrument: the site's hero player */
.ihead { display: flex; justify-content: space-between; gap: 12px; font: 400 13px var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ihead b, .readout b { color: var(--ink); font-weight: 500; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--caller); box-shadow: 0 0 0 4px rgba(255, 77, 26, .18); }
.live-dot .t { color: var(--caller-text); }
.matrix { position: relative; height: clamp(150px, 18vw, 230px); border-radius: 10px; background: var(--well); border: 1px solid var(--rule-2); }
.matrix canvas { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.matrix.short { height: 112px; }
.lanes { display: grid; gap: 6px; }
.lane { display: grid; grid-template-columns: 138px minmax(0, 1fr); align-items: center; gap: 10px; }
.lane span { font: 400 13px var(--mono); color: var(--ink-2); }
.lane canvas { width: 100%; height: 26px; display: block; border-radius: 4px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--rule-2) calc(10% - 1px) 10%); }
.ifoot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule-2); }
.play { width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: var(--caller); color: #fff; display: grid; place-items: center; cursor: pointer; }
.play svg { width: 20px; height: 20px; fill: currentColor; }
.play .i-pause, .play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--rule); background: var(--panel); }
.seg button { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font: 500 15px var(--sans); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.readout { margin-left: auto; display: flex; flex-wrap: wrap; gap: 16px; font: 400 13px var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.scrub { flex: 1 1 160px; min-width: 120px; accent-color: var(--caller); }
.axis { display: flex; justify-content: space-between; gap: 12px; }

/* the sign-up page's sample: the landing page's call, in its two scenes */
.sample { display: flex; flex-direction: column; gap: 12px; }
.scenes { align-self: flex-start; display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--rule-2); box-shadow: inset 0 0 0 1px var(--rule);
  font: 500 15px/1.4 var(--sans); letter-spacing: -.01em; }
.scenes button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: inherit; color: var(--ink-2); cursor: pointer; }
.scenes button:hover { color: var(--ink); }
.scenes button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 18, 18, .12), 0 0 0 1px var(--rule); }
.cap2 { display: grid; gap: 2px; }

/* home: the three ways in */
.way { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.way p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.way .foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.way .foot .note { font-weight: 500; }
.way .foot .note.hot { color: var(--caller-text); }
.flow { height: 112px; border-radius: 10px; background: var(--well); border: 1px solid var(--rule-2); padding: 0 16px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.flow .wire { height: 2px; background: var(--noise); display: flex; align-items: center; justify-content: space-evenly; }
.flow .wire.c { background: rgba(255, 77, 26, .55); }
.flow .pk { width: 10px; height: 10px; border-radius: 3px; background: #C9C9C2 radial-gradient(#8A8A84 .8px, transparent 1px) 0 0 / 4px 4px; }
.flow .wire.c .pk { background: var(--caller); box-shadow: 0 0 10px rgba(255, 77, 26, .35); }
.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.list .name { flex: 1 1 260px; min-width: 0; font-size: 17px; font-weight: 550; overflow-wrap: anywhere; }
.list .empty { color: var(--ink-2); font-size: 16px; }
.row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }

/* upload */
.drop { height: 248px; border-radius: 10px; background: var(--well); border: 1.5px dashed var(--noise-2); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center; cursor: pointer; padding: 16px; }
.drop.over { border-color: var(--caller); background: #FFF6F2; }
.drop .ic { width: 52px; height: 52px; border-radius: 10px; background: var(--card); border: 1px solid var(--rule); display: grid; place-items: center; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.job { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--rule-2); }
.job .row-head .name { font-size: 17px; font-weight: 550; overflow-wrap: anywhere; }
.bar { height: 6px; border-radius: 3px; background: var(--rule-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--caller); transition: width .2s linear; }
.bar.wait i { background: var(--ink); }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.facts.across { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.facts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.facts:not(.across) li:last-child { border-bottom: 1px solid var(--rule); }
.facts li > span:first-child { font: 600 14px/1.75 var(--sans); color: var(--ink-2); }
.facts b { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 550; color: var(--ink); }

/* pairing */
.qrrow { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.qr { position: relative; flex: none; width: 188px; height: 188px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--rule-2); }
.qr svg { display: block; width: 100%; height: 100%; }
.qr .logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 7px; background: #fff; display: grid; place-items: center; }
.qr .logo::after { content: ""; width: 18px; height: 10px; border-radius: 5px; background: var(--caller); }
.code { font: 600 34px/1 var(--mono); letter-spacing: .1em; }

/* the end of a page: the site's request-access band */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: clamp(64px, 8vw, 112px) var(--pad); display: grid; gap: 22px; justify-items: start; }
.band .lede { max-width: 52ch; }

/* limits and errors: one card at a time, in place */
.state { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.state p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* the phone: one column, thumb-sized */
.phone { min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto; padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px; position: relative; isolation: isolate; overflow: hidden; }
.phone > section { flex: 1 1 auto; display: flex; flex-direction: column; gap: 18px; }
.phone .display { font-size: 52px; }
.phone .lede { font-size: 19px; }
.phone .chips { gap: 6px; font-size: 12px; }
.phone .chips li { padding: 4px 8px; }
.phone .topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone .wm { font-size: 19px; gap: 9px; }
.phone .k { margin-top: 20px; }
.phone .end { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.timer { font: 500 76px/1 var(--mono); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.timer b { font-weight: 500; }
.timer span { font-size: 22px; letter-spacing: 0; color: var(--ink-2); }
.digits { font: 600 30px/1 var(--mono); letter-spacing: .2em; text-align: center; padding: 14px 12px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid var(--rule); border-radius: 6px; background: rgba(255, 255, 255, .5); font: 500 13px var(--sans); color: var(--ink-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--noise); }
.status.on::before { background: var(--caller); box-shadow: 0 0 0 3px rgba(255, 77, 26, .18); }

@media (max-width: 720px) {
  .lane { grid-template-columns: 1fr; gap: 2px; }
  .readout { margin-left: 0; width: 100%; justify-content: space-between; }
  .two, .sso { grid-template-columns: 1fr; }
  .wmk { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
