/* ---------- giffgaff-inspired tokens for yousnap.me ---------- */
:root {
  /* core */
  --c-black: #000000;
  --c-graphite: #2F2E31;
  --c-dove: #666666;
  --c-alto: #D0D0D0;
  --c-gallery: #ECECEC;
  --c-wild-sand: #F5F5F5;
  --c-white: #FFFFFF;

  /* primary palette */
  --c-yellow: #FCC31E;     /* primary CTAs only */
  --c-pink: #EB5F8E;
  --c-blue: #35ADCE;
  --c-green: #72B72A;

  /* secondary */
  --c-red: #d60000;
  --c-dark-blue: #00528A;
  --c-olive: #B9CC3F;
  --c-turquoise: #00CEB3;
  --c-light-orange: #F39722;
  --c-lavender: #C380BB;
  --c-bright-orange: #F76908;

  /* pastel */
  --c-pastel-blue: #D7EFF5;
  --c-pastel-green: #E3F1D4;
  --c-pastel-red: #FBE6E6;
  --c-pastel-yellow: #FEF3D2;

  /* semantic */
  --bg: var(--c-white);
  --fg: var(--c-black);
  --surface: var(--c-wild-sand);
  --line: var(--c-alto);
  --muted: var(--c-dove);

  /* type */
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wonky: 1.2deg;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
}

/* dark theme */
[data-theme="dark"] {
  --bg: #0E0D10;
  --fg: var(--c-white);
  --surface: #1A1920;
  --line: #2A2930;
  --muted: #8a8a92;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

/* page transition */
.page-fade-enter { opacity: 0; transform: translateY(8px); }
.page-fade-enter-active { opacity: 1; transform: translateY(0); transition: opacity .25s ease, transform .25s ease; }

/* shared layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.container--narrow { max-width: 880px; }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  backdrop-filter: blur(8px);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__left, .nav__right { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 24px; }
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  opacity: .78;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}
.nav__link:hover { opacity: 1; }
.nav__link--active { opacity: 1; }
.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -18px;
  height: 3px;
  background: var(--c-yellow);
  border-radius: 2px;
}

/* logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.logo__mark {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--c-black);
  display: grid;
  place-items: center;
  position: relative;
}
.logo__mark svg { display: block; }
.logo__wordmark .accent { color: var(--c-pink); }

/* buttons (giffgaff style: yellow primary, pill, bold) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--c-yellow);
  color: var(--c-black);
}
.btn--primary:hover {
  background: #ffd23c;
  box-shadow: 0 6px 0 rgba(0,0,0,.08);
}
.btn--secondary {
  background: var(--c-black);
  color: var(--c-white);
}
[data-theme="dark"] .btn--secondary { background: var(--c-white); color: var(--c-black); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--fg);
  padding: 12px 20px;
}
.btn--danger {
  background: var(--c-red);
  color: var(--c-white);
}
.btn--sm { font-size: 14px; padding: 10px 16px; }
.btn--lg { font-size: 17px; padding: 16px 28px; }

/* wonky box (signature giffgaff component) */
.wonky {
  position: relative;
  display: inline-block;
}
.wonky__inner {
  background: var(--c-yellow);
  padding: 4px 12px;
  display: inline-block;
  transform: rotate(calc(var(--wonky) * -1));
}

/* sparkle / spot decorations */
.spot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.sparkle {
  position: absolute;
  pointer-events: none;
}

/* code blocks */
.code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  background: #0E0D10;
  color: #ECECEC;
  border-radius: var(--r-md);
  padding: 20px 22px;
  overflow: auto;
  position: relative;
}
.code pre { margin: 0; }
.tok-key { color: #FCC31E; }
.tok-str { color: #B9CC3F; }
.tok-num { color: #35ADCE; }
.tok-com { color: #666666; font-style: italic; }
.tok-fn  { color: #EB5F8E; }
.tok-punct { color: #ECECEC; opacity: .55; }

.code__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #1A1920;
  border-radius: var(--r-md) var(--r-md) 0 0;
  border-bottom: 1px solid #2A2930;
}
.code__bar + .code { border-radius: 0 0 var(--r-md) var(--r-md); }
.code__bar + .tl { border-radius: 0 0 var(--r-md) var(--r-md); }
.code__dot { width: 10px; height: 10px; border-radius: 50%; background: #2A2930; }
.code__tabs {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}
.code__tab {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #888;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
}
.code__tab--active { background: #2A2930; color: #ECECEC; }
.code__copy {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.code__copy:hover { background: #2A2930; color: #ECECEC; }

/* hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--c-pastel-yellow);
  color: var(--c-graphite);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 28px;
  transform: rotate(-1.5deg);
}
[data-theme="dark"] .hero__eyebrow { background: #3a2f00; color: var(--c-yellow); }

.hero__title {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.96;
  margin: 0 0 28px;
  max-width: 16ch;
}
.hero__title .hl-yellow {
  background: var(--c-yellow);
  padding: 0 0.18em;
  display: inline-block;
  transform: rotate(-1deg);
  box-decoration-break: clone;
}
.hero__title .hl-pink {
  background: var(--c-pink);
  color: var(--c-white);
  padding: 0 0.18em;
  display: inline-block;
  transform: rotate(0.8deg);
}
.hero__sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 36px;
}
[data-theme="dark"] .hero__sub { color: #b6b6be; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* section */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.section--pink   { background: var(--c-pink); color: var(--c-white); }
.section--yellow { background: var(--c-yellow); color: var(--c-black); }
.section--sand   { background: var(--c-wild-sand); }
[data-theme="dark"] .section--sand { background: var(--c-graphite); }
.section--black  { background: var(--c-black); color: var(--c-white); }
.section--pastel-blue { background: var(--c-pastel-blue); }

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: .7;
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0 0 16px;
  max-width: 22ch;
}
.section__sub {
  font-size: 18px;
  opacity: .8;
  max-width: 60ch;
  margin: 0 0 56px;
  line-height: 1.5;
}

/* dev love bar */
.dev-love-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--c-white);
  color: var(--c-black);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  border: 2px solid var(--c-black);
}
[data-theme="dark"] .step { background: #fff; color: var(--c-black); border-color: transparent; }

.step--rot-1 { transform: rotate(-1deg); }
.step--rot-2 { transform: rotate(1deg); }
.step--rot-3 { transform: rotate(-0.5deg); }

.step__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.step__num::before {
  content: "";
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-yellow);
  display: inline-grid;
  place-items: center;
}
.step__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.step__desc {
  font-size: 15px;
  color: var(--c-dove);
  line-height: 1.5;
  margin: 0 0 18px;
}
.step__visual {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 14px;
  background: var(--c-wild-sand);
  border-radius: var(--r-md);
  min-height: 110px;
}

/* use case cards (tiles) */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .tiles { grid-template-columns: 1fr; } }

.tile {
  background: var(--c-white);
  color: var(--c-black);
  border-radius: var(--r-lg);
  padding: 28px;
  border: 2px solid var(--c-black);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease;
  cursor: pointer;
}
.tile:hover { transform: translateY(-4px) rotate(-0.5deg); }
.tile__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.tile__icon--pink { background: var(--c-pink); }
.tile__icon--blue { background: var(--c-blue); }
.tile__icon--green { background: var(--c-green); }
.tile__icon--yellow { background: var(--c-yellow); }
.tile__title {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.tile__desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--c-dove);
  margin: 0;
}

/* pricing */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 920px;
}
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  background: var(--c-white);
  color: var(--c-black);
  border-radius: var(--r-lg);
  padding: 36px;
  border: 2px solid var(--c-black);
  position: relative;
}
.price-card--pro {
  background: var(--c-black);
  color: var(--c-white);
  border-color: var(--c-yellow);
}
.price-card__badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--c-yellow);
  color: var(--c-black);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  transform: rotate(2deg);
}
.price-card__name {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  opacity: .65;
}
.price-card__price {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 12px 0 6px;
}
.price-card__price small { font-size: 16px; font-weight: 500; opacity: .65; }
.price-card__tagline {
  font-size: 15px;
  opacity: .75;
  margin-bottom: 28px;
}
.price-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
}
.price-card__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-green);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
}
.price-card--pro .price-card__check { background: var(--c-yellow); color: var(--c-black); }

/* form */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 460px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field input, .field select {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid var(--fg);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--fg);
  outline: none;
}
.field input:focus, .field select:focus {
  border-color: var(--c-pink);
  box-shadow: 0 0 0 4px var(--c-pastel-red);
}
[data-theme="dark"] .field input:focus { box-shadow: 0 0 0 4px rgba(235,95,142,.25); }
.field__hint {
  font-size: 13px;
  color: var(--muted);
}
.field__error {
  font-size: 13px;
  color: var(--c-red);
  font-weight: 600;
}

/* dashboard */
.dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}
.dash__side {
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.dash__main {
  padding: 36px 40px;
  background: var(--bg);
}
.dash__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash__nav-item {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--fg);
  opacity: .75;
}
.dash__nav-item:hover { background: rgba(0,0,0,.04); opacity: 1; }
[data-theme="dark"] .dash__nav-item:hover { background: rgba(255,255,255,.06); }
.dash__nav-item--active {
  background: var(--c-yellow);
  color: var(--c-black);
  opacity: 1;
}
.dash__nav-item--active:hover { background: var(--c-yellow); }

.dash__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.dash__sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 28px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr; } }
.stat {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  background: var(--bg);
  position: relative;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.stat__value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
  font-feature-settings: "tnum";
}
.stat__quota {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.stat__bar {
  height: 6px;
  background: var(--c-gallery);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
[data-theme="dark"] .stat__bar { background: #2a2930; }
.stat__fill {
  height: 100%;
  background: var(--c-pink);
  border-radius: 999px;
  transition: width .6s ease;
}
.stat__fill--blue { background: var(--c-blue); }
.stat__fill--green { background: var(--c-green); }
.stat__fill--warn { background: var(--c-light-orange); }

/* table */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 22px;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.panel__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
}
.tbl th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: left;
  padding: 10px 22px;
  font-weight: 600;
}
.tbl tbody tr { border-top: 1px solid var(--line); }
.tbl tbody tr:nth-child(even) { background: var(--surface); }
.tbl td {
  padding: 14px 22px;
  font-size: 14px;
}
.tbl .mono { font-family: var(--font-mono); font-size: 13px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge--ok { background: var(--c-pastel-green); color: #2a5b00; }
.badge--warn { background: var(--c-pastel-yellow); color: #7a5500; }
.badge--err { background: var(--c-pastel-red); color: #7a0000; }
.badge--pro { background: var(--c-yellow); color: var(--c-black); }
.badge--free { background: var(--c-gallery); color: var(--c-graphite); }

/* QR demo */
.qr-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 760px) { .qr-demo { grid-template-columns: 1fr; } }
.qr-box {
  background: var(--c-white);
  border: 2px solid var(--c-black);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}
.qr-box__svg {
  background: white;
  padding: 12px;
  border-radius: 8px;
}
.qr-box__url {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-black);
}

/* webhook timeline */
.tl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: #0E0D10;
  color: #ECECEC;
  padding: 18px 20px;
  border-radius: var(--r-md);
  min-height: 280px;
}
.tl__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-6px);
  animation: tl-in .3s ease forwards;
}
@keyframes tl-in {
  to { opacity: 1; transform: translateX(0); }
}
.tl__time { color: #888; flex: none; }
.tl__tag {
  flex: none;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.tl__tag--post { background: var(--c-green); color: black; }
.tl__tag--200  { background: var(--c-light-orange); color: black; }
.tl__tag--get  { background: var(--c-blue); color: black; }
.tl__tag--wh   { background: var(--c-pink); color: white; }
.tl__tag--ok   { background: var(--c-green); color: black; }
.tl__msg { color: #ECECEC; }

/* demo hint box (appears after live demo completes) */
.demo-hint {
  margin-top: 12px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  animation: demo-hint-in .4s ease both;
}
@keyframes demo-hint-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.demo-hint__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.demo-hint__row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.demo-hint__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-pink);
}
.demo-hint__link:hover { text-decoration: underline; }

/* footer */
.footer {
  background: var(--c-black);
  color: var(--c-white);
  padding: 80px 0 36px;
  position: relative;
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: .55;
  margin: 0 0 18px;
}
.footer__col a {
  display: block;
  font-size: 14px;
  opacity: .85;
  padding: 4px 0;
  cursor: pointer;
}
.footer__col a:hover { opacity: 1; color: var(--c-yellow); }
.footer__tag {
  font-size: 14px;
  opacity: .65;
  max-width: 32ch;
  line-height: 1.5;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #2a2930;
  padding-top: 28px;
  font-size: 13px;
  opacity: .55;
}

/* alert / minor alert */
.alert {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  align-items: flex-start;
}
.alert--info { background: var(--c-pastel-blue); color: var(--c-dark-blue); }
.alert--warn { background: var(--c-pastel-yellow); color: #7a5500; }
.alert--success { background: var(--c-pastel-green); color: #2a5b00; }

/* docs preview */
.docs-preview {
  border: 2px solid var(--c-black);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: white;
  color: black;
}
.docs-preview__head {
  background: var(--c-pink);
  color: white;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.docs-preview__body {
  padding: 28px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
}
.docs-preview__nav {
  font-size: 13px;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--c-dove);
}
.docs-preview__nav .on { color: var(--c-pink); font-weight: 700; }
.docs-preview__content h3 { margin: 0 0 8px; }
.docs-preview__content p { color: var(--c-dove); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }

/* utilities */
.row { display: flex; gap: 12px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.spacer-sm { height: 16px; }
.spacer-md { height: 32px; }
.spacer-lg { height: 64px; }
.center { text-align: center; }

/* page wrapper for app */
#app { min-height: 100vh; }

/* faq */
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq__item {
  border: 2px solid var(--fg);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg);
}
.faq__a {
  padding: 0 22px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* webhook ping for live demo */
@keyframes pulse-pink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(235,95,142,.6); }
  50% { box-shadow: 0 0 0 14px rgba(235,95,142,0); }
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-pink);
  animation: pulse-pink 1.8s infinite;
}

/* drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 80;
  animation: fade-in .2s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: var(--bg);
  border-left: 1px solid var(--line);
  z-index: 90;
  display: flex;
  flex-direction: column;
  animation: slide-in .25s ease;
  overflow-y: auto;
}
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer__tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer__tab {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.drawer__tab--active {
  color: var(--fg);
  border-bottom-color: var(--c-pink);
}
.drawer__body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

/* create-link modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 80;
  display: grid;
  place-items: center;
  animation: fade-in .2s ease;
}
.modal {
  background: var(--bg);
  border: 2px solid var(--fg);
  border-radius: var(--r-lg);
  padding: 32px;
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  animation: modal-in .25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* chart bars */
.chart-bar { transition: opacity .15s ease; }
.chart-bar:hover { opacity: .8; }

/* link table enhancements */
.link-row { cursor: pointer; transition: background .1s ease; }
.link-row:hover { background: var(--c-pastel-yellow) !important; }

/* sidebar tabs */
.sidebar-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  border-left: 3px solid transparent;
}
.sidebar-tab:hover { background: var(--c-pastel-yellow); }
.sidebar-tab--active {
  color: var(--fg);
  border-left-color: var(--c-pink);
  background: var(--c-pastel-yellow);
}

/* privacy page */
.privacy {
  max-width: 720px;
  margin: 0 auto;
}
.privacy h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.privacy h2:first-of-type {
  margin-top: 0;
}
.privacy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
}
.privacy li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 8px;
}
.privacy ul {
  padding-left: 22px;
  margin: 0 0 16px;
}
.privacy a {
  color: var(--c-pink);
  font-weight: 600;
}
.privacy a:hover {
  text-decoration: underline;
}
.privacy code {
  background: rgba(0,0,0,.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.privacy__updated {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ---------- mobile responsive ---------- */
@media (max-width: 768px) {
  /* nav */
  .nav__row { flex-wrap: wrap; gap: 12px; }
  .nav__right { gap: 14px; }
  .nav__links { gap: 14px; }
  .btn--sm { font-size: 13px; padding: 8px 12px; }

  /* hero */
  .hero { padding: 56px 0 48px; }
  .hero__title { font-size: clamp(36px, 9vw, 52px); }
  .hero__sub { font-size: 17px; }
  .hero__cta { gap: 10px; }
  .btn--lg { font-size: 15px; padding: 14px 20px; }

  /* sections */
  .section { padding: 60px 0; }
  .section__title { font-size: clamp(28px, 6vw, 40px); }
  .section__sub { font-size: 16px; margin-bottom: 36px; }

  /* dev love bar */
  .dev-love-grid { grid-template-columns: 1fr; gap: 32px; }

  /* footer */
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .footer { padding: 48px 0 28px; }

  /* pricing */
  .pricing { grid-template-columns: 1fr; }

  /* hide large decorative spots on mobile */
  .spot { display: none; }

  /* code bar — wrap tabs + buttons */
  .code__bar { flex-wrap: wrap; gap: 8px; }
  .code__tabs { margin-left: 0; }

  /* timeline messages */
  .tl { font-size: 11px; padding: 14px 12px; min-height: 200px; }
  .tl__row { flex-wrap: wrap; }

  /* drawer responsive */
  .drawer { width: 100vw; }
}

/* qr scan animation */
@keyframes qrscan {
  0% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(100%); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.7; }
}
.qr-scanline {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8%;
  height: 3px;
  background: var(--c-pink);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--c-pink);
  animation: qrscan 2.2s ease-in-out infinite;
}
