/* qtyla — design tokens first, components after. One stylesheet, no framework:
   the whole file is smaller than the CSS reset most frameworks ship with. */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-sunk: #f1f5f9;
  --fg: #0f172a;
  --fg-muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  /* Chart bars are their own token: on light the accent reads well, but on
     dark a saturated indigo bar on a navy panel is low contrast. */
  --chart-bar: #4f46e5;
  --chart-bar-hover: #4338ca;
  --ok: #16a34a;
  --ok-soft: #f0fdf4;
  --err: #dc2626;
  --err-soft: #fef2f2;
  --warn: #d97706;
  --warn-soft: #fffbeb;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .06);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, .10);
  --ring: 0 0 0 3px rgba(79, 70, 229, .18);

  --step--1: clamp(.8rem, .78rem + .1vw, .875rem);
  --step-0: clamp(.95rem, .92rem + .15vw, 1rem);
  --step-1: clamp(1.1rem, 1rem + .4vw, 1.25rem);
  --step-2: clamp(1.4rem, 1.2rem + .9vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.4vw, 3.25rem);
}

/* Respects the OS setting instead of adding a toggle nobody finds. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-soft: #111827;
    --bg-sunk: #0f172a;
    --fg: #e2e8f0;
    --fg-muted: #94a3b8;
    /* Raised from #1e293b/#334155: at those values a 1px border vanishes on a
       glossy display and the cards lose their edges entirely. */
    --line: #2b3a52;
    --line-strong: #475569;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-soft: #1e1b4b;
    /* Broken white rather than pure #fff: on a near-black panel pure white
       glares and the bar edges bloom. This keeps the data the brightest thing
       in the chart without hurting to look at. */
    --chart-bar: #ede9dd;
    --chart-bar-hover: #fdfcf9;
    --ok-soft: #052e16;
    --err-soft: #450a0a;
    --warn-soft: #451a03;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .25);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: var(--step-0)/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(68rem, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5rem; }
h1 { font-size: var(--step-3); letter-spacing: -.035em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

.muted { color: var(--fg-muted); }
.small { font-size: var(--step--1); }
code, .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: .92em;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

/* ---------------------------------------------------------------- header -- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem;
}
.brand {
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em;
  color: var(--fg); text-decoration: none;
}
.brand span { color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 1.25rem; }
.top nav a { color: var(--fg-muted); text-decoration: none; font-size: var(--step--1); font-weight: 500; }
.top nav a:hover { color: var(--fg); }
#account { display: inline-flex; align-items: center; gap: .6rem; }

/* ------------------------------------------------------------------ hero -- */

.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2rem); text-align: center; }
.hero h1 { max-width: 18ch; margin-inline: auto; }
.hero .lead {
  font-size: var(--step-1); color: var(--fg-muted);
  max-width: 46ch; margin: 1rem auto 1.75rem;
}
.hero .badge-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; border-radius: 999px;
  background: var(--bg-sunk); border: 1px solid var(--line);
  font-size: var(--step--1); color: var(--fg-muted);
}
.pill.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }

/* ----------------------------------------------------------------- cards -- */

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
section { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
/* The header is sticky, so anything scrolled to by an anchor or scrollIntoView
   lands underneath it without this. */
section[id] { scroll-margin-top: 5rem; }
#generator { margin-top: 0; }
.hero { margin-bottom: 0; }
section > h2 { margin-bottom: .35rem; }
.section-lead { color: var(--fg-muted); margin-bottom: 1.5rem; max-width: 55ch; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ----------------------------------------------------------------- forms -- */

label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: .35rem; }
input[type=text], input[type=url], input[type=email], textarea, select {
  width: 100%; padding: .7rem .85rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg);
  font: inherit; font-size: var(--step-0);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { border-color: var(--accent); }
input::placeholder { color: var(--fg-muted); opacity: .7; }
@media (prefers-color-scheme: dark) {
  /* At .7 on a dark field an active input reads as disabled — and "disabled"
     is the one signal the PRO block needs to own exclusively. */
  input::placeholder { opacity: .85; }
}
.field { margin-bottom: 1rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

button {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .7rem 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--accent); color: #fff;
  transition: background .15s, transform .05s, opacity .15s;
}
button:hover { background: var(--accent-hover); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.secondary { background: var(--bg); color: var(--fg); border-color: var(--line-strong); }
button.secondary:hover { background: var(--bg-sunk); }
button.big { padding: .85rem 1.6rem; font-size: var(--step-1); border-radius: var(--radius); }
#submit { width: 100%; padding: .85rem 1.2rem; font-size: var(--step-0); }
.linkish {
  background: none; border: 0; padding: 0; color: var(--accent);
  font: inherit; font-size: var(--step--1); text-decoration: underline; cursor: pointer;
}
.linkish:hover { background: none; color: var(--accent-hover); }

fieldset.pro {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  /* Inline padding is zeroed and pushed onto the children instead: padding here
     would inset the left column and make it stagger against the outer grid. */
  padding: 1rem 1.1rem; margin: 1.25rem 0; background: var(--bg-sunk);
}
fieldset.pro[disabled] { opacity: .62; }
/* A disabled field that looks identical to a live one just invites typing. */
fieldset.pro[disabled] input,
fieldset.pro[disabled] label { cursor: not-allowed; }
fieldset.pro[disabled] input {
  background: var(--bg-sunk); border-style: dashed; color: var(--fg-muted);
}
fieldset.pro legend {
  font-weight: 700; font-size: var(--step--1); letter-spacing: .04em;
  padding: 0 .5rem; color: var(--accent);
}
.badge {
  display: inline-block; margin-left: .4rem; padding: .1rem .45rem;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: .7rem; letter-spacing: .06em; vertical-align: middle;
}
.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; margin-top: .75rem; }
.check input { width: auto; }
.row.gap { display: flex; gap: .6rem; align-items: center; }
.row.gap input { flex: 1; }

/* --------------------------------------------------------------- notices -- */

.notice {
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-sunk);
  font-size: var(--step--1); margin-bottom: 1.25rem;
}
.notice.ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.notice.error { border-color: var(--err); background: var(--err-soft); color: var(--err); }
.notice.warn { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.error-text { color: var(--err); font-size: var(--step--1); }

/* ---------------------------------------------------------------- result -- */

#result { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.short-url {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid transparent;
}
.short-url a { font-weight: 700; font-size: var(--step-1); text-decoration: none; word-break: break-all; }

/* --------------------------------------------------------------- feature -- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  padding: 1.4rem; border-radius: var(--radius); background: var(--bg-soft);
  border: 1px solid var(--line);
}
.feature .ico {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border-radius: var(--radius-sm); background: var(--accent-soft);
  color: var(--accent); margin-bottom: .75rem; font-size: 1.1rem;
}
.feature h3 { font-size: var(--step-0); }
.feature p { margin: 0; color: var(--fg-muted); font-size: var(--step--1); }

/* --------------------------------------------------------------- pricing -- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.plan {
  position: relative; padding: 1.75rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.plan.featured {
  border-color: var(--accent); box-shadow: var(--shadow-lg);
  background: var(--bg);
}
.plan .tag {
  position: absolute; top: -.7rem; right: 1.25rem;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; padding: .25rem .7rem; border-radius: 999px;
}
.plan h3 { font-size: var(--step-1); margin-bottom: .25rem; }
.price { display: flex; align-items: baseline; gap: .35rem; margin: .5rem 0 1.25rem; }
.price .amount { font-size: var(--step-2); font-weight: 700; letter-spacing: -.03em; }
.price .per { color: var(--fg-muted); font-size: var(--step--1); }
.plan ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.plan li {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .4rem 0; font-size: var(--step--1);
}
.plan li .mark { flex: none; font-weight: 700; line-height: 1.5; }
.plan li.yes .mark { color: var(--ok); }
.plan li.no { color: var(--fg-muted); }
.plan li.no .mark { color: var(--fg-muted); }
.plan button { width: 100%; }

/* Comparison table — same facts, scannable side by side. */
/* The scroll belongs to the table, not the document: a 3-column table on a
   360px phone would otherwise give the whole page a horizontal scrollbar. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 2rem; }
.compare { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 30rem; }
.compare th, .compare td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: var(--step--1); color: var(--fg-muted); font-weight: 600; }
.compare thead th:not(:first-child) { text-align: center; }
.compare td:not(:first-child) { text-align: center; }
.compare tbody tr:hover { background: var(--bg-sunk); }
.compare .yes { color: var(--ok); font-weight: 700; }
/* Was --line-strong, which is a border colour: the ✕ became nearly invisible
   next to the ✓ and the table read as if free included everything. */
.compare .no { color: var(--fg-muted); font-weight: 700; }
.compare .col-pro { background: var(--accent-soft); }

/* ----------------------------------------------------------------- links -- */

.list { display: flex; flex-direction: column; gap: .6rem; }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-soft);
  transition: border-color .15s, box-shadow .15s;
}
.item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.item .l { min-width: 0; }
.item .c { font-weight: 700; text-decoration: none; }
.item .t {
  display: block; color: var(--fg-muted); font-size: var(--step--1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30rem;
}
.item .acts { display: flex; align-items: center; gap: .75rem; flex: none; }
.item .n { font-size: var(--step--1); color: var(--fg-muted); white-space: nowrap; }
.item .del {
  background: none; border: 1px solid var(--line-strong); color: var(--fg-muted);
  padding: .3rem .7rem; font-size: var(--step--1); border-radius: var(--radius-sm);
}
.item .del:hover { background: var(--err-soft); border-color: var(--err); color: var(--err); }

/* Quota meter: shows the ceiling before the request is refused. */
.quota { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.meter { flex: 1; height: 6px; border-radius: 999px; background: var(--bg-sunk); overflow: hidden; max-width: 14rem; }
.meter > i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.meter.full > i { background: var(--warn); }

/* ----------------------------------------------------------------- stats -- */

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.kpi { padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.kpi .v { font-size: var(--step-2); font-weight: 700; letter-spacing: -.02em; }
.kpi .k { color: var(--fg-muted); font-size: var(--step--1); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.bars { display: flex; flex-direction: column; gap: .45rem; }
.bar-row { display: grid; grid-template-columns: 8rem 1fr 2.5rem; align-items: center; gap: .6rem; font-size: var(--step--1); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg-muted); }
.bar-track { height: 8px; background: var(--bg-sunk); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--chart-bar); border-radius: 999px; transition: width .3s; }
.bar-n { text-align: right; font-variant-numeric: tabular-nums; }

/* KPI markup uses .n/.l; the chart is an inline SVG that should fill its box. */
.kpi .n { display: block; font-size: var(--step-2); font-weight: 700; letter-spacing: -.02em; }
.kpi .l { color: var(--fg-muted); font-size: var(--step--1); }
.chart svg { width: 100%; height: auto; display: block; }

/* The chart is built in JS with .bar / .grid / .axis classes. Those had no CSS
   at all, so SVG fell back to its defaults: fill black, stroke none. On the
   dark theme that painted near-black bars on a near-black panel — the data was
   drawn correctly and simply could not be seen. Every value here is a theme
   variable so it follows light and dark automatically. */
.chart-svg .bar { fill: var(--chart-bar); }
.chart-svg .bar.zero { fill: var(--line-strong); }
.chart-svg .bar:hover { fill: var(--chart-bar-hover); }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-svg .axis { fill: var(--fg-muted); font-size: 11px; }
.stats-head { margin-bottom: 2rem; }
/* Was --step-3, the landing page hero size, which pushed the numbers below the
   fold. --step-1 overcorrected: it landed under the --step-2 section headings
   and inverted the hierarchy. Sits just above h2 so the page title still leads
   without shouting. */
.stats-head h1 { font-size: calc(var(--step-2) * 1.15); margin-bottom: .35rem; }
.stats-desc { color: var(--fg-muted); font-size: var(--step-0); margin: 0 0 .5rem; max-width: 60ch; }
section > .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ranges { display: flex; gap: .4rem; margin-bottom: 1rem; }
.ranges button { padding: .35rem .8rem; font-size: var(--step--1); background: var(--bg); color: var(--fg-muted); border-color: var(--line-strong); }
.ranges button.on { background: var(--accent); color: #fff; border-color: transparent; }
.hits { display: flex; flex-direction: column; gap: .4rem; }
.hit { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--step--1); background: var(--bg-soft); }
.hit .meta { color: var(--fg-muted); }

/* ---------------------------------------------------------------- footer -- */

.foot {
  border-top: 1px solid var(--line); padding: 2rem 0 3rem;
  color: var(--fg-muted); font-size: var(--step--1);
}
.foot .row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot nav { display: flex; gap: 1.25rem; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 820px) {
  .features, .plans, .two { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid2 { grid-template-columns: 1fr; }
  .top nav { gap: .9rem; }
  .top nav a { font-size: .8rem; }
  .item { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .item .t { max-width: 100%; }
  .row.gap { flex-direction: column; align-items: stretch; }
  .bar-row { grid-template-columns: 5.5rem 1fr 2.2rem; }
  .compare th, .compare td { padding: .6rem .5rem; }
}

/* ------------------------------------------------------- publishing UI --- */

/* Any `display` value beats the browser's built-in `[hidden] { display: none }`,
   because both are one declaration and this stylesheet loads later. Without
   this rule the overlay covers the page the moment it loads, with no way to
   dismiss it. Scoped to [hidden] so it cannot be defeated by specificity. */
[hidden] {
  display: none !important;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px);
}

.overlay-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem 2.5rem;
  text-align: center;
  max-width: 22rem;
}

.overlay-card p { margin: .35rem 0 0; }
.overlay-card #loading-text { font-weight: 600; }

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Respect a stated preference for less motion: replace the spin with a pulse
   rather than removing the only signal that work is in progress. */
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: pulse 1.6s ease-in-out infinite; border-top-color: var(--accent); }
  @keyframes pulse { 50% { opacity: .35; } }
}

.success-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--bg);
  color: var(--fg);
  padding: 2rem;
  max-width: 26rem;
  text-align: center;
}

.success-dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.success-dialog h3 { margin: .5rem 0 .25rem; font-size: var(--step-2); }
.success-dialog p { margin: 0 0 1rem; }

.success-mark {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 1.5rem;
  font-weight: 700;
}

.success-url {
  display: block;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: var(--step--1);
  word-break: break-all;
}

.success-actions { display: flex; gap: .6rem; justify-content: center; }
.success-actions button { flex: 1; max-width: 10rem; }

/* Legal pages (privacy, terms). These reuse .top/.wrap/.foot from the landing
   page; .prose is the only thing they add. Without it the pages inherit no
   measure and no vertical rhythm, which is what made them look broken. */
.prose {
  max-width: 46rem;
  padding-block: 2.5rem 4rem;
}
.prose h1 { margin-bottom: .35rem; }
.prose h2 {
  margin-top: 2.25rem;
  margin-bottom: .75rem;
  font-size: var(--step-1);
}
.prose p { margin-bottom: 1rem; line-height: 1.7; }
.prose ul { margin: 0 0 1.25rem 1.25rem; }
.prose li { margin-bottom: .5rem; line-height: 1.7; }
.prose > .muted { margin-bottom: 2rem; }

/* Ad interstitial shown to free users while their link finishes. Reuses
   .overlay/.overlay-card so it matches the publishing spinner it replaces. */
.ad-card { max-width: 26rem; }

.ad-eyebrow {
  margin: 0 0 1rem;
  font-size: var(--step--1);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Fixed height reserved up front. An ad that arrives late must not shove the
   Continue button under the user's cursor mid-click. */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  margin-bottom: 1.25rem;
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-slot ins { display: block; width: 100%; }
/* No uppercase here: the placeholder is a sentence addressed to whoever
   fills the slot, not a label. */
.ad-placeholder { letter-spacing: .02em; }

#ad-gate-continue { width: 100%; }
/* Disabled state has to read as "wait", not as "broken". */
#ad-gate-continue:disabled { opacity: .55; cursor: default; }

/* Site key / analytics embed. Reuses .card, .muted and .small from the page;
   only the two monospace boxes need rules of their own. */
.sitekey-row { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }

.sitekey-value,
.sitekey-snippet {
  background: var(--bg-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  /* A qk_ key is 35 unbroken characters and the snippet is one long line with
     no spaces to break at, so normal wrapping leaves both as a horizontal
     scrollbar — or an overflowing card — on a phone. The monospace family
     comes from the .mono class in the markup: `var(--mono)` is used elsewhere
     in this file but never defined, so it silently resolves to nothing. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sitekey-value { flex: 1; min-width: 0; padding: .7rem .85rem; }

.sitekey-snippet { margin: 0 0 .75rem; padding: .85rem 1rem; }

@media (max-width: 600px) {
  /* Side by side the Copy button squeezes the key down to a few characters
     per line. */
  .sitekey-row { flex-direction: column; align-items: stretch; }
}
