/* ProofPod site styles.
 *
 * Design language: a white canvas, Geist type with large light-weight headlines,
 * die-cut stickers, tactile buttons and keycaps, pastel "bento" cards with soft
 * layered shadows, and blur-and-rise motion. Inspired by the Stick It Up
 * showcase site (github.com/Sam721166/stick-it-up, MIT); the code and artwork
 * here are our own.
 */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --ink-3: #52525b;
  --mute: #71717a;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --wash: #f4f4f5;
  --wash-2: #fafafa;
  --violet: #5548f5;
  --emerald: #10b981;
  --red: #ef4444;
  --amber: #b45309;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --hand: "Shantell Sans", "Patrick Hand", "Comic Sans MS", cursive;

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -2px 6px rgba(0, 0, 0, 0.05),
    0 1px 1px rgba(0, 0, 0, 0.06), 0 6px 14px rgba(0, 0, 0, 0.07), 0 18px 36px rgba(0, 0, 0, 0.06);
  --shadow-soft: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --grain: radial-gradient(rgba(0, 0, 0, 0.18) 0.6px, transparent 0.7px);
  --page: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: #fef3c7; color: #78350f; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
code, kbd, pre, .mono { font-family: var(--mono); font-variant-ligatures: none; }
code { font-size: 0.875em; background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.4em; }
.wrap { width: min(100% - 2rem, var(--page)); margin-inline: auto; }
[hidden] { display: none !important; }
.muted { color: var(--mute); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----------------------------------------------------------------- motion */
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes header-rise { from { opacity: 0; transform: translateY(-10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pop { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes fade-out { to { opacity: 0; transform: scale(0.8); } }

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(8px);
  transition: opacity 650ms var(--ease-out) var(--delay, 0ms), transform 750ms var(--ease-out) var(--delay, 0ms),
    filter 650ms var(--ease-out) var(--delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* No script (or it failed to load): show everything at once, no fade to wait for. */
.no-js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ------------------------------------------------------------------- nav */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 0.5rem 1rem;
  border-bottom: 1px solid transparent;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  animation: header-rise 700ms var(--ease-out) both;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(228, 228, 231, 0.7);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
}
.site-header.is-hidden { transform: translate3d(0, -100%, 0); pointer-events: none; }
.site-header.is-static { position: sticky; top: 0; animation: none; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: rgba(228, 228, 231, 0.7); }
.nav { max-width: var(--page); margin: 0 auto; height: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 2.25rem; height: 2.25rem; transition: transform 200ms var(--spring); }
.brand:hover img { transform: rotate(-6deg) scale(1.1); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 0.5rem 0.875rem; border-radius: 0.5rem; text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--ink-3); transition: background-color 150ms, color 150ms; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--wash); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 0.75rem; border: 1px solid var(--line-2);
  padding: 0.75rem 1.25rem; font: 500 0.875rem/1.25rem var(--sans); text-decoration: none; cursor: pointer; user-select: none;
  color: var(--ink-2); background: linear-gradient(180deg, #fff, var(--wash-2));
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms, background 150ms, color 300ms;
}
.btn:hover { transform: translateY(-1px); border-color: var(--faint); box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0, 0, 0, 0.04); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06); }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }
.btn svg { width: 1rem; height: 1rem; flex: none; transition: transform 150ms; }
.btn-dark, .button { color: #fff; border-color: #27272a; background: linear-gradient(180deg, #27272a, #18181b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 1px 2px rgba(0, 0, 0, 0.08); }
.btn-dark:hover, .button:hover { color: #fff; border-color: #27272a; background: linear-gradient(180deg, #3f3f46, #27272a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 1px 2px rgba(0, 0, 0, 0.08); }
.btn-dark:hover .arrow-ne { transform: translate(2px, -2px); }
.btn-dark:hover .arrow-e { transform: translateX(2px); }
.btn-sm, .button.small { padding: 0.4rem 0.8rem; font-size: 0.8125rem; border-radius: 0.625rem; }
.btn-lg { padding: 0.875rem 1.5rem; }
.button { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 0.75rem; border-style: solid; border-width: 1px; padding: 0.7rem 1.2rem; font: 500 0.875rem/1.25rem var(--sans); text-decoration: none; cursor: pointer; transition: transform 150ms ease-out, background 150ms; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button.ghost { color: var(--ink-2); border-color: var(--line-2); background: linear-gradient(180deg, #fff, var(--wash-2)); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.04); }
.button.ghost:hover { color: var(--ink); border-color: var(--faint); background: linear-gradient(180deg, #fff, var(--wash-2)); }

/* install command that copies itself */
.btn-copy { font-family: var(--mono); font-weight: 400; padding-left: 1rem; gap: 0.75rem; max-width: 100%; min-width: 0; transition-duration: 300ms; }
.btn-copy .swap { display: grid; min-width: 0; }
.btn-copy .swap > span { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: transform 300ms ease-out, opacity 300ms ease-out, filter 300ms ease-out; }
.btn-copy .swap .done { font-weight: 500; opacity: 0; transform: translateY(0.25rem); filter: blur(2px); }
.btn-copy.is-copied { border-color: #6ee7b7; background: linear-gradient(180deg, #ecfdf5, #d1fae5); color: #047857; }
.btn-copy.is-copied .swap .cmd { opacity: 0; transform: translateY(-0.25rem); filter: blur(2px); }
.btn-copy.is-copied .swap .done { opacity: 1; transform: none; filter: none; transition-delay: 75ms; }
.btn-copy .icon { display: grid; width: 1rem; height: 1rem; place-items: center; flex: none; }
.btn-copy .icon svg { grid-area: 1 / 1; overflow: visible; transition: transform 200ms ease-out, opacity 200ms ease-out; }
.btn-copy.is-copied .icon .clip { transform: scale(0.75); opacity: 0; }
.btn-copy .icon .tick circle { fill: var(--emerald); transform-origin: center; transform-box: fill-box; transform: scale(0.4); opacity: 0; transition: transform 350ms var(--spring), opacity 150ms ease-out; }
.btn-copy .icon .tick path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 120ms ease-in; }
.btn-copy.is-copied .icon .tick circle { transform: scale(1); opacity: 1; }
.btn-copy.is-copied .icon .tick path { stroke-dashoffset: 0; transition: stroke-dashoffset 280ms ease-out 140ms; }

/* -------------------------------------------------------------- stickers */
.sticker { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.float-sticker {
  position: absolute; pointer-events: none;
  width: clamp(48px, calc(var(--size) / 14.4 * 1vw), calc(var(--size) * 1px));
  translate: calc(var(--mx, 0) * var(--depth, 12) * 1px) calc(var(--my, 0) * var(--depth, 12) * 1px);
  transition: translate 400ms ease-out;
  animation: pop 650ms var(--spring) calc(400ms + var(--n, 0) * 120ms) both;
}
.float-sticker > .bob { animation: float calc(5s + var(--n, 0) * 1s) ease-in-out calc(var(--n, 0) * 0.6s) infinite; }
.float-sticker .grab {
  pointer-events: auto; touch-action: none; cursor: grab;
  translate: var(--dx, 0px) var(--dy, 0px); rotate: var(--rot, 0deg);
  transition: scale 450ms var(--spring), rotate 450ms var(--spring);
}
.float-sticker .grab:hover { scale: 1.06; rotate: calc(var(--rot, 0deg) + 8deg); }
.float-sticker .grab.is-dragging { cursor: grabbing; scale: 1.14; rotate: calc(var(--rot, 0deg) - 5deg); filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.18)); }
.float-sticker.is-paused > .bob, .is-offscreen .float-sticker > .bob { animation-play-state: paused; }
.pop-sticker { position: absolute; z-index: 10; width: 3.5rem; pointer-events: none; animation: pop 500ms var(--spring) both, fade-out 400ms ease-in 2100ms forwards; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; }
.sticker-layer { position: absolute; inset: 0 0 auto 0; height: 50rem; z-index: 20; pointer-events: none; }
.hero-inner { position: relative; z-index: 10; max-width: 56rem; margin: 0 auto; padding: 8.5rem 1.5rem 6rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 6.6vw, 4.5rem); color: var(--ink); }
.hero h1 .w { display: inline-block; animation: rise 700ms var(--ease-out) calc(80ms + var(--i) * 55ms) both; }
.hero h1 .hs { display: inline-block; vertical-align: middle; animation: rise 700ms var(--ease-out) calc(80ms + var(--i) * 55ms) both; }
.hero h1 .hs button {
  all: unset; display: inline-flex; width: 0.92em; height: 0.92em; margin: 0 0.12em; cursor: pointer; vertical-align: middle;
  rotate: calc(var(--turns, 0) * 360deg); transition: rotate 650ms var(--spring), scale 300ms var(--spring);
}
.hero h1 .hs button:hover { rotate: calc(var(--turns, 0) * 360deg + 14deg); scale: 1.12; }
.hero h1 .hs button:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 30%; }
.hero h1 .hs img { width: 100%; height: 100%; }
.hero .lede { max-width: 36rem; margin-top: 1.75rem; font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--mute); text-wrap: pretty; animation: rise 700ms var(--ease-out) 900ms both; }
.hero .actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 100%; animation: rise 700ms var(--ease-out) 1000ms both; }
.proofline { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--faint); animation: rise 700ms var(--ease-out) 1150ms both; }
.proofline .cluster { display: flex; }
.proofline .cluster img { width: 2.1rem; height: 2.1rem; margin-left: -0.5rem; }
.proofline .cluster img:first-child { margin-left: 0; }

/* -------------------------------------------------------------- sections */
.section { position: relative; z-index: 10; margin: 0 1rem 2.5rem; padding: 5rem 1rem; border-radius: 40px; }
.section-inner { max-width: var(--page); margin: 0 auto; }
.section-head { max-width: 48rem; margin: 0 auto 3.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.section-head h2, .cta h2 { font-size: clamp(2.25rem, 4.2vw, 3rem); }
.section-head p { max-width: 38rem; color: var(--mute); font-size: 1.0625rem; text-wrap: pretty; }
.tinted { background: linear-gradient(180deg, var(--wash-2), var(--wash)); }
.grain::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: var(--grain); background-size: 3px 3px; opacity: 0.06; pointer-events: none; }

/* ---- showcase: a terminal you can put stickers on, and where commands run */
.showcase { display: grid; gap: 2.25rem; }
.terminal { position: relative; width: min(100%, 50rem); margin: 0 auto; border-radius: 28px; padding: 0.6rem; background: linear-gradient(180deg, #f6f6f7 0%, #e4e4e7 100%); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: inset 0 1px 0 #fff, inset 0 -6px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.08), 0 18px 36px rgba(0, 0, 0, 0.10); }
.terminal-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.7rem 0.75rem; font: 500 0.75rem var(--mono); color: var(--mute); }
.terminal-bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 1px 1px rgba(0, 0, 0, 0.2); }
.terminal-bar i:nth-child(1) { background: #ff5f57; } .terminal-bar i:nth-child(2) { background: #febc2e; } .terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: 0.5rem; }
.terminal pre { margin: 0; border-radius: 20px; padding: 1.25rem 1.3rem 1.5rem; background: linear-gradient(180deg, #1c1c1f, #111113); color: #e4e4e7; font-size: clamp(0.72rem, 1vw, 0.82rem); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.6); }
.t-prompt { color: #a5b4fc; } .t-dim { color: #8b8b94; } .t-good { color: #86efac; } .t-warn { color: #fcd34d; }
.terminal .float-sticker { animation-delay: 0ms; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.lane { position: relative; border-radius: 24px; padding: 1.25rem 1.35rem 1.35rem; background: linear-gradient(180deg, #fff, var(--wash-2)); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.lane h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.015em; }
.lane h3 img { width: 1.9rem; height: 1.9rem; }
.lane p { margin-top: 0.45rem; font-size: 0.875rem; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem; padding: 0; list-style: none; }
.chips li { font: 0.75rem/1 var(--mono); padding: 0.42rem 0.6rem; border-radius: 0.6rem; background: #fff; border: 1px solid var(--line); color: var(--ink-2); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03); white-space: nowrap; }
.hint { margin-top: 2rem; text-align: center; font-size: 0.9375rem; color: var(--mute); }

/* ----------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 32px; padding: 2rem; background: linear-gradient(180deg, var(--from) 0%, var(--to) 100%); border: 1px solid rgba(255, 255, 255, 0.65); box-shadow: var(--shadow-card); }
.card::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 3px 3px; opacity: 0.06; pointer-events: none; }
.card > * { position: relative; }
.card h3 { font-size: clamp(1.5rem, 2.2vw, 1.75rem); font-weight: 500; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55); }
.card code { background: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.75); }
.card .lead { margin-top: 0.75rem; max-width: 19rem; font-size: 0.875rem; line-height: 1.625; color: rgba(82, 82, 91, 0.9); }
.tone-yellow { --from: #fff0a0; --to: #ffd93d; }
.tone-red { --from: #ff8a92; --to: #f2535f; }
.tone-green { --from: #e6f9c9; --to: #b9ec8c; }
.tone-blue { --from: #e8f0ff; --to: #cfe0ff; }
.tone-red h3 { color: #fff; text-shadow: 0 1px 1px rgba(120, 0, 10, 0.25); }
.tone-red .lead { color: rgba(255, 255, 255, 0.88); }
.span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; } .row-2 { grid-row: span 2; }
.card-art { margin-top: auto; padding-top: 2.5rem; }

.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.875rem; }
.checks li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); }
.checks li::before { content: ""; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 8.8'/%3E%3C/svg%3E") center / 0.8rem no-repeat; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }

/* a receipt, rising out of the yellow card */
.receipt { position: relative; width: min(100%, 17rem); margin: 0 auto -2rem; padding: 1.1rem 1.1rem 2.6rem; border-radius: 16px 16px 0 0; background: linear-gradient(180deg, #fff, #fbfbfb); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 16px 28px rgba(120, 90, 0, 0.28); font: 0.72rem/1.75 var(--mono); color: var(--ink-3); transition: transform 300ms ease-out; }
.receipt:hover { transform: translateY(-0.6rem); }
.receipt b { font-weight: 600; color: var(--ink); }
.receipt .row { display: flex; justify-content: space-between; gap: 0.75rem; }
.receipt hr { border: 0; border-top: 1.5px dashed var(--line-2); margin: 0.55rem 0; }
.receipt .total { font-size: 0.86rem; color: var(--ink); font-weight: 600; }
.receipt .stamp { position: absolute; right: -1.1rem; top: -1.6rem; width: 4.2rem; rotate: 14deg; }

/* package chips, sliding in under the red card's copy */
.shelf { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 -0.25rem -0.5rem; }
.shelf span { display: inline-flex; align-items: center; gap: 0.4rem; font: 500 0.78rem/1 var(--mono); padding: 0.5rem 0.7rem; border-radius: 0.75rem; color: var(--ink-2); background: linear-gradient(180deg, #fff, #f4f4f5); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.12), 0 6px 12px rgba(120, 0, 15, 0.22); }
.shelf span::before { content: ""; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 8.8'/%3E%3C/svg%3E") center / 0.6rem no-repeat; }
.shelf-note { margin-top: 1rem; font-size: 0.8125rem; font-weight: 500; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 1px rgba(120, 0, 10, 0.25); }
.card .corner-sticker { position: absolute; width: 4.4rem; right: 1.25rem; top: 1.1rem; rotate: 10deg; transition: rotate 400ms var(--spring), scale 300ms var(--spring); }
.card:hover .corner-sticker { rotate: 18deg; scale: 1.08; }

/* tactile keycaps */
.keys { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; padding: 0 0.25rem 0.5rem; }
.keycap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.keycap button { all: unset; position: relative; width: 4.75rem; height: 4.75rem; border-radius: 22px; cursor: pointer; background: linear-gradient(180deg, #fff 0%, #eef6dc 100%); box-shadow: inset 0 1px 0 #fff, 0 6px 0 #a9d77a; transition: translate 160ms var(--spring), box-shadow 160ms ease-out; }
.keycap button:active { translate: 0 4px; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.12), 0 1px 0 #fff; }
.keycap button:focus-visible { outline: 2px solid #3f7d1c; outline-offset: 4px; }
.keycap img { position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; translate: -50% -50%; rotate: var(--rot, 0deg); transition: rotate 400ms var(--spring), scale 300ms var(--spring); pointer-events: none; }
.keycap button:hover img { rotate: calc(var(--rot, 0deg) + 8deg); scale: 1.08; }
.keycap button:active img { rotate: calc(var(--rot, 0deg) - 4deg); scale: 0.94; }
.keycap span { font: 500 0.75rem var(--mono); color: rgba(20, 83, 45, 0.7); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }

/* the memory meter in the blue card */
.split { display: flex; flex: 1; gap: 2.5rem; align-items: center; justify-content: space-between; }
.split > div:first-child { max-width: 24rem; }
.meter { flex: 1; max-width: 26rem; border-radius: 22px; padding: 1.25rem 1.3rem 1.35rem; background: linear-gradient(180deg, #fff, #f8faff); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 24px rgba(40, 70, 160, 0.16); }
.meter .label { font: 0.72rem var(--mono); color: var(--mute); }
.meter .big { margin-top: 0.2rem; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.03em; }
.meter .big small { font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--mute); }
.meter .track { position: relative; height: 1.4rem; margin: 0.9rem 0 1rem; border-radius: 999px; overflow: hidden; background: repeating-linear-gradient(-45deg, #dbe6ff 0 6px, #eef3ff 6px 12px); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); }
.meter .track i { position: absolute; inset: 0 auto 0 0; width: 4.45%; min-width: 0.9rem; border-radius: 999px; background: linear-gradient(180deg, #3f3f46, #18181b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); transform-origin: left; }
.meter dl { margin: 0; display: grid; gap: 0.45rem; font-size: 0.8125rem; }
.meter dl div { display: flex; align-items: center; gap: 0.55rem; }
.meter dt { flex: none; width: 0.8rem; height: 0.8rem; border-radius: 4px; }
.meter dt.billed { background: var(--ink); } .meter dt.free { background: repeating-linear-gradient(-45deg, #c7d6ff 0 3px, #eef3ff 3px 6px); border: 1px solid #c7d6ff; }
.meter dd { margin: 0; color: var(--ink-3); } .meter dd b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- pricing */
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; }
.price { position: relative; border-radius: 28px; padding: 1.5rem 1.5rem 1.6rem; background: linear-gradient(180deg, #fff, var(--wash-2)); border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: transform 300ms var(--ease-out), box-shadow 300ms; }
/* .price has its own transition for the hover lift; keep the reveal fade alongside it */
.price[data-reveal].is-in { transition: transform 300ms var(--ease-out), box-shadow 300ms, opacity 650ms var(--ease-out) var(--delay, 0ms), filter 650ms var(--ease-out) var(--delay, 0ms); }
.price:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0, 0, 0, 0.05), 0 14px 28px rgba(0, 0, 0, 0.07); }
.price dt { font: 500 0.72rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.price dd { margin: 0.9rem 0 0; }
.price .figure { display: block; font-size: clamp(2rem, 3.2vw, 2.6rem); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .unit { display: block; margin-top: 0.5rem; font-size: 0.9375rem; color: var(--ink-3); }
.price .fine { display: block; margin-top: 0.8rem; font: 0.75rem var(--mono); color: var(--faint); }
.price .pin { position: absolute; right: 1rem; top: -1.25rem; width: 3.5rem; rotate: var(--rot, 10deg); transition: rotate 400ms var(--spring), scale 300ms var(--spring); }
.price:hover .pin { rotate: calc(var(--rot, 10deg) + 10deg); scale: 1.1; }
.fineprint { margin: 1.75rem auto 0; max-width: 40rem; text-align: center; font-size: 0.9375rem; color: var(--mute); }

/* ------------------------------------------------------------------- CTA */
.cta { text-align: center; overflow: hidden; padding: 6rem 1.5rem; background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%); }
.cta h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 46rem; margin: 0 auto; }
.cta .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.875rem; }
.steps { list-style: none; margin: 2.75rem auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 0.75rem; counter-reset: step; }
.steps li { counter-increment: step; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0.85rem 0.5rem 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 1px 2px rgba(60, 40, 160, 0.10); font: 0.8125rem var(--mono); color: var(--ink-2); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ink); color: #fff; font: 600 0.7rem var(--sans); }
.cta .float-sticker { animation-delay: 0ms; }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; overflow: hidden; padding: 4rem 1.5rem 0; background: linear-gradient(180deg, #ffffff 0%, #eef0ff 26%, #aab6ff 62%, #6f7dff 100%); }
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 3px 3px; opacity: 0.06; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 10%, #000); mask-image: linear-gradient(180deg, transparent 10%, #000); }
.footer-top { position: relative; z-index: 2; max-width: 64rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 3.5rem; }
.footer-tag { font-size: clamp(1.875rem, 3vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.1; }
.footer-tag img { display: inline-block; width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin-left: 0.15em; }
.footer-copy { margin-top: 1.25rem; font-size: 0.6875rem; line-height: 1.6; color: var(--mute); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.footer-cols h3 { font: 600 0.6875rem var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.footer-cols ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.625rem; }
.footer-cols a { text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--mute); transition: color 200ms; }
.footer-cols a:hover { color: var(--ink); }
.wordmark { position: relative; z-index: 1; margin: 3.5rem auto 0; max-width: 78rem; text-align: center; font: 800 clamp(3.5rem, 18.2vw, 16.5rem) / 0.78 var(--hand); letter-spacing: -0.05em; color: #fff; white-space: nowrap; user-select: none; text-shadow: 0 2px 0 rgba(60, 60, 200, 0.12); transform: translateY(16%); }
.wordmark .shape { position: absolute; border: 0.022em solid #18181b; }
.wordmark .s1 { width: 0.2em; height: 0.2em; border-radius: 50%; background: #ffc9d4; left: 11%; top: 4%; }
.wordmark .s2 { width: 0.19em; height: 0.19em; border-radius: 22%; background: #ffe98f; left: 44%; top: 26%; rotate: -8deg; }
.wordmark .s3 { width: 0.15em; height: 0.15em; border-radius: 22%; background: #b6efc6; left: 66%; top: 52%; rotate: 22deg; }
.wordmark .s4 { width: 0.15em; height: 0.15em; border-radius: 22%; background: #ffc4dd; left: 84%; top: 8%; rotate: 14deg; }
.footer-min { padding: 2.5rem 1.5rem 3rem; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.875rem; }
.footer-min .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }
.footer-min nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-min a { text-decoration: none; font-weight: 500; }
.footer-min a:hover { color: var(--ink); }

/* ------------------------------------------------- inner pages: pricing */
.page-title { position: relative; padding: 8.5rem 0 3rem; text-align: center; }
.page-title .eyebrow { justify-content: center; }
.page-title h1 { font-size: clamp(2.25rem, 5.4vw, 3.75rem); max-width: 46rem; margin: 0 auto; }
.page-title p.sub { max-width: 38rem; margin: 1.4rem auto 0; color: var(--mute); font-size: 1.0625rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0.3rem 0.75rem 0.3rem 0.4rem; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); font: 500 0.75rem var(--mono); color: var(--ink-3); }
.eyebrow img { width: 1.25rem; height: 1.25rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font: 500 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; background: var(--wash-2); }
td { color: var(--ink-3); } td strong { color: var(--ink); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .mono, td code { font-size: 0.8125rem; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.faq article { border-radius: 24px; padding: 1.5rem 1.6rem; background: linear-gradient(180deg, #fff, var(--wash-2)); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.faq h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.015em; }
.faq p { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--ink-3); }

/* ----------------------------------------------- inner pages: dashboard */
.app-main { padding: 2.5rem 0 4rem; min-height: 72vh; }
.center-card { max-width: 30rem; margin: clamp(1rem, 6vw, 4rem) auto; text-align: center; padding: 2.5rem 2rem; border-radius: 32px; background: linear-gradient(180deg, #fff, var(--wash-2)); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.center-card h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.center-card p { margin-top: 0.9rem; color: var(--mute); }
.center-card .eyebrow { margin: 0 0 1rem; padding: 0.3rem 0.75rem; color: var(--ink-3); }
.center-card form { margin-top: 1.25rem; }
.center-card .hero-sticker { width: 5rem; margin: 0 auto 1.25rem; display: block; rotate: -8deg; }
.code-big { font: 500 1.75rem var(--mono); letter-spacing: 0.14em; margin: 1.25rem 0; padding: 0.7rem; border: 1.5px dashed var(--line-2); border-radius: 16px; background: #fff; color: var(--ink); }
.userline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.userline h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.tabs { display: flex; gap: 0.3rem; margin: 0 0 1.75rem; padding: 0.3rem; border-radius: 0.9rem; background: var(--wash); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs a { text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 0.65rem; font-size: 0.875rem; font-weight: 500; color: var(--mute); white-space: nowrap; transition: color 150ms, background 150ms; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 #fff; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.stat { border-radius: 24px; padding: 1.15rem 1.25rem; background: linear-gradient(180deg, #fff, var(--wash-2)); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.stat dt { font: 500 0.68rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.stat dd { margin: 0.5rem 0 0; font-size: 1.8rem; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 0.35rem; font-size: 0.8125rem; letter-spacing: 0; color: var(--mute); }
.panel { border-radius: 24px; padding: 1.5rem; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.panel + .panel { margin-top: 1.25rem; }
.panel h2 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 1rem; }
.panel.center-card { border-radius: 32px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 7rem; padding-top: 0.5rem; }
.bars i { flex: 1; min-width: 3px; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #7a6ef8, var(--violet)); opacity: 0.9; }
.bars i:hover { opacity: 1; }
.bars-axis { display: flex; justify-content: space-between; margin-top: 0.4rem; font: 0.7rem var(--mono); color: var(--faint); }
.tag { display: inline-block; font: 500 0.72rem var(--mono); padding: 0.12rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; background: var(--wash-2); }
.tag.good { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.tag.bad { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.tag.busy { color: var(--amber); background: #fffbeb; border-color: #fde68a; }
.notice { border-radius: 16px; padding: 0.9rem 1rem; margin: 0 0 1.25rem; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; overflow-wrap: anywhere; font-size: 0.9375rem; }
.row { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
input[type="text"] { font: 1rem var(--sans); padding: 0.6rem 0.8rem; border: 1px solid var(--line-2); border-radius: 0.75rem; background: #fff; color: var(--ink); min-width: 0; flex: 1 1 12rem; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04); }
input[type="text"]:focus { outline: 2px solid var(--violet); outline-offset: 1px; border-color: transparent; }
input.code-big { font: 500 1.75rem var(--mono); text-align: center; width: 100%; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1023px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .span-4, .span-8, .row-2 { grid-column: auto; grid-row: auto; }
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .prices, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { flex-direction: column; align-items: stretch; }
  .split > div:first-child, .meter { max-width: none; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; text-align: center; }
  .footer-cols { text-align: center; }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .nav-links { display: none; }
  .hide-sm { display: none !important; }
  .section { margin-inline: 0.5rem; padding: 3.5rem 0.75rem; border-radius: 28px; }
  .section-head { margin-bottom: 2.5rem; }
  .card { padding: 1.5rem; border-radius: 28px; }
  .hero-inner { padding: 9.25rem 1.25rem 4.5rem; }
  /* at phone width the corner stickers sit above the headline instead of beside it */
  .hero .sticker-layer .float-sticker { top: 5rem !important; }
  .cta { padding: 6rem 1.25rem 4.5rem; }
  .cta .float-sticker { top: 1.25rem !important; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-title { padding-top: 7rem; }
}
@media (max-width: 479px) {
  .prices, .stats { grid-template-columns: minmax(0, 1fr); }
  .btn-copy { font-size: 0.78rem; }
  .keycap button { width: 4.25rem; height: 4.25rem; }
  .keycap img { width: 3.5rem; height: 3.5rem; }
}
