:root {
  --paper: #ecebe6;
  --ink: #17181b;
  --ink-soft: #6f7076;
  --accent: #2f6bff;
  --edge: rgba(23, 24, 27, 0.1);
  --font: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  touch-action: none;
  cursor: grab;
}
.stage:active { cursor: grabbing; }

.water {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* a faint paper grain over everything */
.grain {
  position: absolute;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bar {
  position: absolute;
  z-index: 2;
  top: clamp(12px, 3.4vh, 26px);
  left: clamp(14px, 4vw, 34px);
  right: clamp(14px, 4vw, 34px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(11px, 1.6vmin, 14px);
  pointer-events: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 640;
  letter-spacing: -0.01em;
}
.brand__mark { width: 1.3em; height: 1.3em; fill: var(--accent); }
.brand__shine { fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; opacity: 0.85; }
.bar__link { color: var(--ink-soft); }

.pill {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: var(--pill-y, 22%);
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.32em 0.75em 0.32em 0.32em;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.55);
  font-size: clamp(10px, 1.5vmin, 13px);
  white-space: nowrap;
  pointer-events: none;
}
.pill__tag {
  padding: 0.18em 0.6em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 620;
}
.pill__text { color: var(--ink-soft); }

.actions {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: var(--actions-y, 74%);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.9em;
  white-space: nowrap;
  font-size: clamp(11px, 1.7vmin, 14px);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.72em 1.1em 0.72em 1.25em;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  cursor: pointer;
  transition: font-variation-settings 0.35s cubic-bezier(.3,1.6,.5,1);
}
.cta__arrow { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .cta:hover { font-variation-settings: "wdth" 112; }
}
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hint { color: var(--ink-soft); }

.ghost {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: clamp(16px, 2.6vmin, 22px);
  height: clamp(16px, 2.6vmin, 22px);
  fill: var(--ink);
  stroke: #fff;
  stroke-width: 1.2;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.22));
}

@media (max-width: 520px) {
  .hint { display: none; }
}
