/* ==========================================================================
   urlr — design system
   "Shorten. Share. See everything."
   Light mode only. --urlr-ink is the single deliberate dark surface.
   ========================================================================== */

:root {
  /* Color tokens */
  --urlr-primary: #FF4405;
  --urlr-primary-press: #E23C04;
  --urlr-ink: #1A1A2E;
  --urlr-ink-soft: #2A2A44;
  --urlr-violet: #7C5CFF;
  --urlr-mint: #00D9A3;
  --urlr-mint-ink: #00815F;
  --urlr-base: #FFF8F0;
  --urlr-surface: #F1EFEA;
  --urlr-border: #E5E0D8;
  --urlr-danger: #E1442E;
  --white: #FFFFFF;

  /* Text on --urlr-base */
  --text: #1A1A2E;
  --text-muted: #6B6B7B;
  --text-faint: #9A9AA6;
  --on-ink: #FFFFFF;
  --on-ink-muted: #A9A9BE;

  /* Shape */
  --r-card: 10px;
  --r-input: 10px;
  --r-btn: 8px;
  --r-pill: 100px;

  /* Hard shadow (compression motif) */
  --shadow-hard: 3px 3px 0 var(--urlr-ink);
  --shadow-hard-sm: 2px 2px 0 var(--urlr-ink);

  /* Type */
  --font-display: "Clash Display", "General Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1160px;
  --topbar-h: 64px;
  --sidebar-w: 240px;
}

/* ------------------------------- reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Hard safety net: nothing should ever be able to force the page itself to
   scroll horizontally. Elements that legitimately need wide content (tables,
   code blocks, tab strips) scroll within their own container instead — see
   .table-wrap / .code-block pre / .tabs, which each set their own overflow-x. */
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--urlr-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--urlr-violet); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .5rem; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* accessible focus ring */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2.5px solid var(--urlr-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.stack > * + * { margin-top: 1rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------ buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: .72rem 1.15rem; border-radius: var(--r-btn); border: 2px solid var(--urlr-ink);
  background: var(--urlr-surface); color: var(--urlr-ink); cursor: pointer;
  text-decoration: none; transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--urlr-primary); color: var(--white); border-color: var(--urlr-ink); box-shadow: var(--shadow-hard); }
.btn-primary:hover { background: var(--urlr-primary); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: none; }

.btn-ink { background: var(--urlr-ink); color: var(--white); border-color: var(--urlr-ink); box-shadow: var(--shadow-hard); }
.btn-ink:active { transform: translate(2px, 2px); box-shadow: none; }

.btn-secondary { background: transparent; color: var(--urlr-ink); border-color: var(--urlr-ink); }
.btn-secondary:hover { background: var(--urlr-surface); }

.btn-violet { background: var(--urlr-violet); color: var(--white); border-color: var(--urlr-ink); box-shadow: var(--shadow-hard); }
.btn-violet:active { transform: translate(2px, 2px); box-shadow: none; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--urlr-ink); box-shadow: none; padding: .6rem .8rem; }
.btn-ghost:hover { background: var(--urlr-surface); }

.btn-danger { background: var(--urlr-danger); color: var(--white); border-color: var(--urlr-ink); box-shadow: var(--shadow-hard-sm); }
.btn-danger:active { transform: translate(2px, 2px); box-shadow: none; }

.btn-sm { padding: .45rem .75rem; font-size: .82rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* icon-only button */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-btn);
  border: 1px solid var(--urlr-border); background: var(--white); color: var(--urlr-ink);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--urlr-surface); border-color: var(--urlr-ink); }
.icon-btn svg { width: 17px; height: 17px; }

/* --------------------------- forms & inputs ----------------------------- */
.field { margin-bottom: 1rem; }
label { display: block; font-size: .82rem; font-weight: 500; color: var(--text-muted); margin-bottom: .35rem; }
.input, input[type=text], input[type=email], input[type=password], input[type=url],
input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--white); border: 1.5px solid var(--urlr-border); border-radius: var(--r-input);
  padding: .7rem .85rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--urlr-primary); box-shadow: 0 0 0 3px rgba(255,68,5,.12);
}
input.mono, .input.mono { font-family: var(--font-mono); }
.input-group { display: flex; align-items: stretch; }
.input-group .input, .input-group input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
/* Static prefix box (e.g. "urlr.io/") — deliberately NOT .input, so it doesn't
   inherit width:100% and squeeze the real input down to a sliver. */
.input-group-prefix {
  flex: none; display: flex; align-items: center;
  padding: .7rem .85rem; border: 1.5px solid var(--urlr-border); border-right: none;
  border-radius: var(--r-input) 0 0 var(--r-input);
  background: var(--urlr-surface); color: var(--text-muted);
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row > * { flex: 1 1 180px; }
.help { font-size: .78rem; color: var(--text-faint); margin-top: .3rem; }

/* password strength + checklist */
.strength { height: 6px; border-radius: var(--r-pill); background: var(--urlr-border); overflow: hidden; margin: .5rem 0 .35rem; }
.strength > span { display: block; height: 100%; width: 0; border-radius: var(--r-pill); transition: width .25s, background .25s; }
.checklist { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .3rem; }
.checklist li { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--text-faint); }
.checklist li svg { width: 15px; height: 15px; }
.checklist li.ok { color: var(--urlr-mint-ink); }

/* availability indicator */
.avail { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; margin-top: .3rem; min-height: 1.1em; }
.avail.ok { color: var(--urlr-mint-ink); }
.avail.no { color: var(--urlr-danger); }

/* -------------------------------- cards --------------------------------- */
.card { background: var(--white); border: 1px solid var(--urlr-border); border-radius: var(--r-card); padding: 1.5rem; }
.card + .card { margin-top: 1.25rem; }
.card-surface { background: var(--urlr-surface); }
.card-pad-sm { padding: 1rem; }
.card-hd { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-hd h2, .card-hd h3 { margin: 0; }

/* --------------------------- badges & pills ----------------------------- */
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; padding: .22rem .7rem; border-radius: var(--r-pill); line-height: 1.3; }
.pill-active { background: rgba(0,217,163,.16); color: var(--urlr-mint-ink); }
.pill-expired { background: rgba(225,68,46,.14); color: var(--urlr-danger); }
.pill-paused { background: var(--urlr-surface); color: var(--text-muted); }
.pill-ink { background: var(--urlr-ink); color: var(--white); }
.pill-orange { background: rgba(255,68,5,.14); color: var(--urlr-primary-press); }
.pill-violet { background: rgba(124,92,255,.16); color: var(--urlr-violet); }

/* the short-link chip — signature element */
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .9rem; font-weight: 500;
  padding: .4rem .5rem .4rem .85rem; border-radius: var(--r-pill);
  background: var(--white); border: 1.5px solid var(--urlr-ink); color: var(--urlr-ink);
}
.chip .copy { border: none; background: var(--urlr-ink); color: var(--white); width: 28px; height: 28px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chip .copy svg { width: 15px; height: 15px; }
.chip.copied { border-color: var(--urlr-mint-ink); }
.chip.copied .copy { background: var(--urlr-mint-ink); }

/* delta indicators */
.delta { display: inline-flex; align-items: center; gap: .15rem; font-size: .78rem; font-weight: 600; }
.delta svg { width: 13px; height: 13px; }
.delta.up { color: var(--urlr-mint-ink); }
.delta.down { color: var(--urlr-danger); }

/* -------------------------------- alerts -------------------------------- */
.alert { padding: .8rem 1rem; border-radius: var(--r-input); font-size: .9rem; border: 1px solid transparent; margin-bottom: 1rem; }
.alert-error { background: rgba(225,68,46,.1); color: #a52c1c; border-color: rgba(225,68,46,.3); }
.alert-success { background: rgba(0,217,163,.12); color: var(--urlr-mint-ink); border-color: rgba(0,217,163,.3); }
.alert-info { background: rgba(124,92,255,.1); color: #5a3fd6; border-color: rgba(124,92,255,.25); }

/* -------------------------------- tables -------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--urlr-border); border-radius: var(--r-card); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
table.data th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 600; padding: .8rem 1rem; border-bottom: 1px solid var(--urlr-border); background: var(--urlr-surface); }
table.data td { padding: .8rem 1rem; border-bottom: 1px solid var(--urlr-border); vertical-align: middle; }
table.data tbody tr:nth-child(even) { background: rgba(241,239,234,.5); }
table.data tbody tr:hover { background: var(--urlr-surface); }
table.data tr:last-child td { border-bottom: none; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable::after { content: "↕"; margin-left: .3rem; opacity: .4; }

/* row actions menu */
.rowmenu { position: relative; }
.rowmenu-pop { display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 168px; background: var(--white); border: 1px solid var(--urlr-border); border-radius: var(--r-card); box-shadow: 0 12px 30px rgba(26,26,46,.14); padding: .35rem; max-width: calc(100vw - 2rem); }
.rowmenu-pop button, .rowmenu-pop a { display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; background: none; border: none; padding: .5rem .6rem; border-radius: 6px; font-size: .85rem; color: var(--text); cursor: pointer; }
.rowmenu-pop button:hover, .rowmenu-pop a:hover { background: var(--urlr-surface); text-decoration: none; }
.rowmenu-pop .danger { color: var(--urlr-danger); }
.rowmenu-pop svg { width: 15px; height: 15px; }

/* ------------------------------ stat cards ------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--white); border: 1px solid var(--urlr-border); border-radius: var(--r-card); padding: 1.15rem 1.25rem; }
.stat .stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); }
.stat .stat-ic { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--urlr-surface); color: var(--urlr-primary); }
.stat .stat-ic svg { width: 18px; height: 18px; }
.stat .stat-val { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; margin-top: .5rem; }
.stat .stat-label { font-size: .8rem; color: var(--text-muted); }

/* mini breakdown bars */
.barlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.barlist li { display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; align-items: center; font-size: .85rem; }
.barlist .bl-label { display: flex; align-items: center; gap: .45rem; }
.barlist .bl-val { font-family: var(--font-mono); color: var(--text-muted); }
.barlist .bl-track { grid-column: 1 / -1; height: 7px; border-radius: var(--r-pill); background: var(--urlr-surface); overflow: hidden; }
.barlist .bl-fill { height: 100%; border-radius: var(--r-pill); background: var(--urlr-primary); }
.barlist .bl-fill.violet { background: var(--urlr-violet); }
.barlist .bl-fill.mint { background: var(--urlr-mint); }
.barlist .bl-fill.ink { background: var(--urlr-ink); }

/* activity feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--urlr-border); font-size: .88rem; }
.feed li:last-child { border-bottom: none; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--urlr-mint); margin-top: .45rem; flex: none; }
.feed time { color: var(--text-faint); font-size: .78rem; }

/* empty state */
.empty { text-align: center; padding: 3rem 1.5rem; }
.empty .empty-art { width: 96px; height: 96px; margin: 0 auto 1.25rem; color: var(--urlr-primary); }

/* -------------------------------- tabs ---------------------------------- */
.tabs { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--urlr-border); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs button, .tabs a { background: none; border: none; padding: .8rem 0; font-size: .92rem; font-weight: 500; color: var(--text-muted); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.active, .tabs a.active { color: var(--urlr-ink); border-bottom-color: var(--urlr-primary); }
.tabpane { display: none; }
.tabpane.active { display: block; }

/* -------------------------------- modal --------------------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(26,26,46,.5); display: none; align-items: flex-start; justify-content: center; padding: 5vh 1rem; z-index: 100; overflow-y: auto; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--urlr-base); border: 1.5px solid var(--urlr-ink); border-radius: var(--r-card); box-shadow: var(--shadow-hard); width: 100%; max-width: 520px; padding: 1.6rem; }
.modal-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.modal-hd h3 { margin: 0; }

/* ========================================================================
   MARKETING HEADER
   ======================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--urlr-base); transition: box-shadow .2s, border-color .2s; border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--urlr-border); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.site-header.transparent-top { background: transparent; }
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-nav .nav-mid { display: flex; align-items: center; gap: 2rem; }
.site-nav .nav-mid a { color: var(--urlr-ink); font-weight: 500; font-size: .95rem; }
.site-nav .nav-mid a:hover { color: var(--urlr-primary); text-decoration: none; border-bottom: 2px solid var(--urlr-primary); }
.site-nav .nav-end { display: flex; align-items: center; gap: .9rem; }
.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--urlr-ink); }
.hamburger svg { width: 26px; height: 26px; }

.mobile-menu { position: fixed; inset: 0; background: var(--urlr-ink); z-index: 80; display: none; flex-direction: column; padding: 1.5rem; }
.mobile-menu.open { display: flex; }
.mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu .mm-top .close { color: var(--white); background: none; border: none; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; gap: .5rem; margin-top: 2.5rem; }
.mobile-menu nav a { color: var(--white); font-family: var(--font-display); font-size: 2rem; padding: .5rem 0; }
.mobile-menu .mm-cta { margin-top: auto; display: grid; gap: .75rem; }

/* ------------------------------- logo ----------------------------------- */
.logo { display: inline-flex; align-items: center; gap: .5rem; }
.logo .logo-mark { width: 30px; height: 30px; flex: none; }
.logo .logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.03em; color: var(--urlr-ink); }
.logo.on-ink .logo-word { color: var(--white); }
.logo:hover { text-decoration: none; }

/* ========================================================================
   LANDING
   ======================================================================== */
.hero { padding: 4.5rem 0 4rem; text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; color: var(--urlr-primary-press); background: rgba(255,68,5,.1); padding: .35rem .8rem; border-radius: var(--r-pill); margin-bottom: 1.5rem; }
.hero h1 { max-width: 14ch; margin: 0 auto .9rem; }
/* Two-part SEO headline: brand line stays the visual headline, keyword line is
   styled to match the old .sub exactly — same look, keyword-rich + single <h1>. */
.hero h1.hero-h1 { max-width: none; margin-bottom: 2rem; }
.hero h1.hero-h1 .hero-brand { display: block; max-width: 14ch; margin: 0 auto; }
.hero h1.hero-h1 .hero-kw { display: block; max-width: 40rem; margin: .9rem auto 0; font-family: var(--font-body); font-weight: 400; font-size: 1.15rem; line-height: 1.5; letter-spacing: normal; color: var(--text-muted); }
.hero .sub { font-size: 1.15rem; color: var(--text-muted); max-width: 40rem; margin: 0 auto 2rem; }
.hero-demo { max-width: 620px; margin: 0 auto; background: var(--white); border: 1.5px solid var(--urlr-ink); border-radius: var(--r-card); box-shadow: var(--shadow-hard); padding: 1.1rem; }
.hero-demo .demo-form { display: flex; gap: .6rem; }
.hero-demo .demo-form .input { border-color: var(--urlr-border); }
.compress-stage { margin-top: 1rem; text-align: left; display: none; }
.compress-stage.show { display: block; }
.compress-long { font-family: var(--font-mono); font-size: .8rem; color: var(--text-faint); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity .3s, max-width .5s; }
.compress-result { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.compress-result .fake-qr { width: 76px; height: 76px; border-radius: 8px; border: 1px solid var(--urlr-border); }

.ticker { text-align: center; font-size: .95rem; color: var(--text-muted); margin-top: 1.5rem; }
.ticker .num { font-family: var(--font-mono); font-weight: 600; color: var(--urlr-ink); }
.ticker .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--urlr-mint); margin-right: .4rem; vertical-align: middle; animation: pulse 1.8s infinite; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { background: var(--white); border: 1px solid var(--urlr-border); border-radius: var(--r-card); padding: 1.5rem; }
.feature .f-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--urlr-surface); color: var(--urlr-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.feature .f-ic svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.feature p { color: var(--text-muted); font-size: .92rem; margin: 0; }

.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* analytics preview embed */
.preview-frame { background: var(--white); border: 1.5px solid var(--urlr-ink); border-radius: var(--r-card); box-shadow: var(--shadow-hard); overflow: hidden; }
.preview-frame .pf-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--urlr-border); background: var(--urlr-surface); }
.preview-frame .pf-bar .d { width: 11px; height: 11px; border-radius: 50%; background: var(--urlr-border); }
.preview-frame .pf-body { padding: 1.5rem; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step .step-n { font-family: var(--font-mono); font-size: .9rem; font-weight: 700; color: var(--white); background: var(--urlr-primary); width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .8rem; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-muted); font-size: .92rem; }

/* testimonials */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote { background: var(--white); border: 1px solid var(--urlr-border); border-radius: var(--r-card); padding: 1.5rem; }
.quote p { font-size: 1rem; color: var(--text); }
.quote .who { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; color: var(--white); flex: none; }
.quote .who .name { font-weight: 600; font-size: .9rem; }
.quote .who .role { font-size: .8rem; color: var(--text-muted); }

/* CTA band */
.cta-band { background: var(--urlr-ink); color: var(--white); border-radius: 16px; padding: 3.5rem 2rem; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--on-ink-muted); }

/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer { background: var(--urlr-ink); color: var(--on-ink-muted); padding: 3.5rem 0 1.5rem; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-cols h4 { color: var(--white); font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-cols a { color: var(--on-ink-muted); font-size: .9rem; }
.footer-cols a:hover { color: var(--white); }
.footer-brand p { font-size: .9rem; max-width: 24ch; margin: 1rem 0; }
.social-row { display: flex; gap: .6rem; }
.social-row a { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); display: inline-flex; align-items: center; justify-content: center; color: var(--on-ink-muted); }
.social-row a:hover { color: var(--white); border-color: rgba(255,255,255,.4); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

/* ========================================================================
   AUTH SPLIT LAYOUT
   ======================================================================== */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 2rem; }
.auth-panel { background: var(--urlr-ink); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; padding: 3rem; }
.auth-panel .panel-mark { width: 120px; height: 120px; color: var(--urlr-primary); }
.auth-panel .panel-stat { font-family: var(--font-mono); }
.auth-panel .panel-stat .big { font-size: 1.6rem; font-weight: 600; color: var(--white); }
.auth-panel .panel-stat .lbl { color: var(--on-ink-muted); font-size: .88rem; }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--text-faint); font-size: .82rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--urlr-border); }
.auth-narrow { max-width: 420px; margin: 4rem auto; padding: 0 1.5rem; }

/* ========================================================================
   DASHBOARD SHELL (responsive: sidebar → icon rail → drawer)
   ======================================================================== */
:root { --sidebar-w: 260px; --rail-w: 72px; }

.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar {
  background: var(--urlr-surface); border-right: 1px solid var(--urlr-border);
  padding: 1rem .75rem; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; z-index: 70;
  transition: transform .28s ease;
}
.sidebar .side-top { display: flex; align-items: center; justify-content: space-between; padding: .4rem .5rem 1.25rem; }
.side-drawer-close { display: none; background: none; border: none; color: var(--urlr-ink); cursor: pointer; }

.side-nav { display: grid; gap: .1rem; }
.side-nav a {
  display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem;
  border-radius: 8px; color: rgba(26,26,46,.7); font-size: .92rem; font-weight: 500;
  border-left: 3px solid transparent; position: relative;
}
.side-nav a:hover { color: var(--urlr-ink); background: rgba(26,26,46,.04); text-decoration: none; }
.side-nav a.active { color: var(--urlr-primary); background: rgba(255,68,5,.08); border-left-color: var(--urlr-primary); font-weight: 600; }
.side-nav a svg { width: 19px; height: 19px; flex: none; }
.side-nav .side-sep { height: 1px; background: var(--urlr-border); margin: .6rem .5rem; }
.side-nav .side-label { white-space: nowrap; }

/* pinned user block */
.side-user {
  margin-top: auto; display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .6rem; border-radius: 10px; border: 1px solid var(--urlr-border);
  background: var(--white); cursor: pointer; text-align: left;
}
.side-user:hover { border-color: var(--urlr-ink); }
.side-user .su-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.side-user .su-name-row { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.side-user .su-name { font-size: .85rem; font-weight: 600; color: var(--urlr-ink); line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .su-email { font-size: .74rem; color: rgba(26,26,46,.6); line-height: 1.2; display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .su-chev { color: var(--text-faint); flex: none; }
.side-user .su-chev svg { width: 16px; height: 16px; }
.plan-badge { flex: none; font-size: .62rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: .1rem .4rem; border-radius: var(--r-pill); background: var(--urlr-surface); color: var(--urlr-ink); border: 1px solid var(--urlr-border); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: var(--topbar-h); border-bottom: 1px solid var(--urlr-border); background: var(--white); display: flex; align-items: center; gap: .9rem; padding: 0 1.25rem; position: sticky; top: 0; z-index: 40; }
.topbar .hamburger, .topbar .topbar-logo { display: none; }
.topbar .search { flex: 1; max-width: 420px; position: relative; }
.topbar .search svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-faint); }
.topbar .search input { padding-left: 2.3rem; background: var(--urlr-surface); }
.topbar .spacer { flex: 1; }

.topbar .bell { position: relative; }
.bell-dot { position: absolute; top: 4px; right: 5px; width: 8px; height: 8px; background: var(--urlr-danger); border-radius: 50%; border: 2px solid var(--white); }

/* popovers (account, bell) */
.pop-anchor { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--urlr-border); border-radius: var(--r-card); box-shadow: 0 14px 34px rgba(26,26,46,.16); min-width: 210px; padding: .4rem; display: none; z-index: 90; }
.menu-pop.open { display: block; }
.menu-pop.up { top: auto; bottom: calc(100% + 8px); }
.menu-pop.left { right: auto; left: 0; }
.menu-pop .mp-head { padding: .5rem .6rem; border-bottom: 1px solid var(--urlr-border); margin-bottom: .35rem; }
.menu-pop .mp-head .n { font-size: .85rem; font-weight: 600; }
.menu-pop .mp-head .e { font-size: .75rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
.menu-pop a, .menu-pop button { display: flex; gap: .55rem; align-items: center; width: 100%; padding: .55rem .6rem; border-radius: 6px; font-size: .88rem; color: var(--text); background: none; border: none; text-align: left; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--urlr-surface); text-decoration: none; }
.menu-pop a svg, .menu-pop button svg { width: 16px; height: 16px; }
.menu-pop .empty-note { padding: 1rem .6rem; text-align: center; color: var(--text-faint); font-size: .82rem; }

.avatar-btn { display: flex; align-items: center; gap: .5rem; background: none; border: none; cursor: pointer; padding: 0; }

.page-body { padding: 1.75rem 1.5rem 3rem; max-width: 1120px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.7rem; margin: 0; }
.page-head .sub { color: var(--text-muted); }

/* drawer scrim + FAB (mobile only, toggled by breakpoints below) */
.drawer-scrim { display: none; position: fixed; inset: 0; background: rgba(26,26,46,.5); z-index: 65; opacity: 0; transition: opacity .28s; }
.drawer-scrim.open { opacity: 1; }
.fab { display: none; position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: var(--urlr-primary); color: #fff; border: 2px solid var(--urlr-ink); box-shadow: var(--shadow-hard); align-items: center; justify-content: center; cursor: pointer; }
.fab:active { transform: translate(2px,2px); box-shadow: none; }
.fab svg { width: 26px; height: 26px; }

/* stat hover lift */
.stat { transition: transform .12s ease, box-shadow .12s ease; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,26,46,.08); }

/* ---- TABLET: icon-only rail (768–1023px) ---- */
@media (max-width: 1023px) and (min-width: 768px) {
  .app { grid-template-columns: var(--rail-w) 1fr; }
  .sidebar { padding: 1rem .5rem; align-items: stretch; }
  .sidebar .side-top { justify-content: center; }
  .sidebar .logo-word { display: none; }
  .side-nav a { justify-content: center; padding: .7rem 0; gap: 0; border-left: none; border-radius: 10px; }
  .side-nav a.active { border-left: none; }
  .side-nav .side-label { display: none; }
  .side-user .su-meta, .side-user .su-chev { display: none; }
  .side-user { justify-content: center; padding: .5rem; }
}

/* ---- MOBILE: off-canvas drawer (<768px) ---- */
@media (max-width: 767px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; left: 0; width: 270px; transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .sidebar.open { transform: none; }
  .side-drawer-close { display: inline-flex; }
  .topbar .hamburger { display: inline-flex; }
  .topbar .topbar-logo { display: flex; }
  .topbar .search { display: none; }
  .topbar .create-btn, .topbar .bell { display: none; }
  .drawer-scrim { display: block; pointer-events: none; }
  .drawer-scrim.open { pointer-events: auto; }
  .fab { display: inline-flex; }
  .page-body { padding: 1.25rem 1rem 5.5rem; }
  .topbar-logo { flex: 1; justify-content: center; }
  .topbar .spacer { display: none; }
}

/* QR grid */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.qr-card { background: var(--white); border: 1px solid var(--urlr-border); border-radius: var(--r-card); padding: 1.25rem; text-align: center; }
.qr-card .qr-img { width: 160px; height: 160px; margin: 0 auto .9rem; background: var(--white); border-radius: 8px; border: 1px solid var(--urlr-border); }
.qr-card .qr-url { font-family: var(--font-mono); font-size: .82rem; margin-bottom: .9rem; word-break: break-all; }
.qr-actions { display: flex; gap: .5rem; justify-content: center; }

/* chart holder */
.chart-holder { position: relative; height: 300px; }
.chart-holder.sm { height: 220px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.price-card { background: var(--white); border: 1.5px solid var(--urlr-border); border-radius: var(--r-card); padding: 1.75rem; }
.price-card.featured { border-color: var(--urlr-ink); box-shadow: var(--shadow-hard); position: relative; }
.price-card.soon { opacity: .62; }
.price-card .tier { font-family: var(--font-display); font-size: 1.3rem; }
.price-card .price { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; margin: .5rem 0; }
.price-card .price small { font-size: .95rem; color: var(--text-muted); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .6rem; }
.price-card li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.price-card li svg { width: 17px; height: 17px; color: var(--urlr-mint-ink); flex: none; margin-top: .15rem; }
.recommended-tag { position: absolute; top: -12px; left: 1.75rem; background: var(--urlr-primary); color: var(--white); font-size: .72rem; font-weight: 600; padding: .25rem .7rem; border-radius: var(--r-pill); }

/* status/utility pages */
.status-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.5rem; }
.status-page .status-inner { max-width: 460px; }
.status-page .status-mark { width: 90px; height: 90px; color: var(--urlr-primary); margin: 0 auto 1.5rem; }

/* ------------------------------ animations ------------------------------ */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bracket-close { 0% { stroke-dashoffset: 40; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -40; } }
.bracket-loader svg { width: 40px; height: 40px; color: var(--urlr-primary); }
.bracket-loader path { stroke-dasharray: 40; animation: bracket-close 1.4s ease-in-out infinite; }

@keyframes compress-in { from { opacity: 0; transform: scale(.9) translateY(6px); } to { opacity: 1; transform: none; } }
.compress-anim { animation: compress-in .45s ease both; }

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 960px) {
  .feature-grid, .steps, .tgrid, .price-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

@media (max-width: 860px) {
  .site-header .hamburger { display: inline-flex; }
  .site-nav .nav-mid, .site-nav .nav-end { display: none; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
}

@media (max-width: 620px) {
  .feature-grid, .steps, .tgrid, .price-grid, .stat-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .hero-demo .demo-form { flex-direction: column; }
  .section { padding: 3.25rem 0; }
  .cta-band { padding: 2.5rem 1.25rem; }
}

@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .page-body { padding: 1.25rem 1rem 4rem; }
  .footer-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .compress-anim { animation: none; }
}

/* ========================================================================
   COMPLETION-PASS PAGES (features, docs, blog, legal, changelog, etc.)
   ======================================================================== */

/* footer credit */
.footer-bottom .fb-egg { color: rgba(255,255,255,.4); }
.footer-bottom .fb-credit { color: var(--on-ink-muted); }
.footer-bottom .fb-credit a { color: var(--on-ink-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom .fb-credit a:hover { color: #fff; }

/* compact sub-hero for interior pages */
.subhero { padding: 3.5rem 0 2.5rem; text-align: center; }
.subhero h1 { max-width: 18ch; margin: 0 auto .75rem; }
.subhero .sub { font-size: 1.1rem; color: var(--text-muted); max-width: 40rem; margin: 0 auto; }
.page-intro { max-width: 720px; margin: 0 auto; }

/* alternating feature sections */
.alt { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; border-top: 1px solid var(--urlr-border); }
.alt:first-of-type { border-top: none; }
.alt .alt-copy .f-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--urlr-surface); color: var(--urlr-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.alt .alt-copy .f-ic svg { width: 24px; height: 24px; }
.alt .alt-copy h2 { font-size: 1.6rem; }
.alt .alt-copy p { color: var(--text-muted); }
.alt .alt-visual { min-width: 0; }
.alt.reverse .alt-copy { order: 2; }
.alt.reverse .alt-visual { order: 1; }

/* generic "mock" panel (screenshot-style) */
.mock { background: var(--white); border: 1.5px solid var(--urlr-ink); border-radius: var(--r-card); box-shadow: var(--shadow-hard); padding: 1.25rem; }
.mock .mock-row { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid var(--urlr-border); border-radius: 8px; margin-bottom: .5rem; font-size: .85rem; }
.mock .mock-row.mono { font-family: var(--font-mono); }

/* dark code block */
.code-block { position: relative; background: var(--urlr-ink); border-radius: var(--r-card); padding: 1.1rem 1.1rem; overflow: hidden; }
.code-block pre { margin: 0; overflow-x: auto; }
.code-block code, .code-block pre { font-family: var(--font-mono); font-size: .82rem; line-height: 1.6; color: #E8EAF0; white-space: pre; }
.code-block .tok-method { color: var(--urlr-mint); }
.code-block .tok-url { color: #9Fc4ff; }
.code-block .tok-flag { color: var(--on-ink-muted); }
.code-block .tok-str { color: #ffd9a0; }
.code-block .copy-code { position: absolute; top: .6rem; right: .6rem; background: rgba(255,255,255,.08); color: #fff; border: none; border-radius: 6px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.code-block .copy-code:hover { background: rgba(255,255,255,.18); }
.code-block .copy-code svg { width: 15px; height: 15px; }

/* FAQ accordion */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--urlr-border); border-radius: var(--r-card); background: var(--white); margin-bottom: .75rem; overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: left; background: none; border: none; padding: 1.1rem 1.25rem; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--urlr-ink); cursor: pointer; }
.faq-q svg { width: 18px; height: 18px; transition: transform .2s; flex: none; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--text-muted); }

/* changelog */
.changelog { max-width: 760px; margin: 0 auto; }
.cl-entry { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--urlr-border); }
.cl-entry:first-child { border-top: none; }
.cl-date { font-family: var(--font-mono); font-size: .85rem; color: var(--text-muted); }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.cl-list li { display: flex; gap: .6rem; align-items: baseline; font-size: .92rem; }
.cl-tag { flex: none; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .12rem .5rem; border-radius: var(--r-pill); }
.cl-tag.new { background: rgba(0,217,163,.16); color: var(--urlr-mint-ink); }
.cl-tag.improved { background: rgba(124,92,255,.16); color: var(--urlr-violet); }
.cl-tag.fixed { background: var(--urlr-surface); color: var(--text-muted); }

/* docs layout */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; padding: 2rem 0 4rem; }
.docs-nav { position: sticky; top: 90px; display: grid; gap: .15rem; }
.docs-nav a { padding: .45rem .65rem; border-radius: 7px; font-size: .9rem; color: var(--text-muted); }
.docs-nav a:hover { background: var(--urlr-surface); color: var(--urlr-ink); text-decoration: none; }
.docs-nav a.active { background: var(--urlr-surface); color: var(--urlr-ink); font-weight: 600; }
.docs-content { min-width: 0; }
.docs-content section { padding-top: 1rem; margin-bottom: 2.5rem; scroll-margin-top: 90px; }
.docs-content h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.docs-content h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.docs-content p { color: var(--text-muted); }
.method-pill { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 6px; margin-right: .5rem; }
.method-pill.post { background: rgba(0,217,163,.16); color: var(--urlr-mint-ink); }
.method-pill.get { background: rgba(124,92,255,.16); color: var(--urlr-violet); }
.method-pill.delete { background: rgba(225,68,46,.14); color: var(--urlr-danger); }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { background: var(--white); border: 1px solid var(--urlr-border); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(26,26,46,.1); text-decoration: none; }
.blog-illus { height: 150px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-illus svg { width: 100%; height: 100%; }
.blog-card .bc-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 { font-size: 1.05rem; color: var(--urlr-ink); }
.blog-card p { font-size: .88rem; color: var(--text-muted); flex: 1; }
.blog-meta { font-family: var(--font-mono); font-size: .74rem; color: var(--text-faint); margin-top: .75rem; }

/* article (post detail) */
.post { max-width: 720px; margin: 0 auto; }
.post .post-illus { height: 260px; border-radius: var(--r-card); overflow: hidden; margin-bottom: 2rem; }
.post h1 { margin-bottom: .75rem; }
.post .post-meta { font-family: var(--font-mono); font-size: .82rem; color: var(--text-faint); margin-bottom: 2rem; }
.post-body { font-size: 1.05rem; line-height: 1.75; }
.post-body h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.post-body p { margin-bottom: 1.15rem; }
.post-body blockquote { border-left: 3px solid var(--urlr-primary); margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; color: var(--text-muted); font-style: italic; }

/* legal / long-form */
.legal { max-width: 760px; margin: 0 auto; padding: 2.5rem 0 4rem; }
.legal .updated { position: sticky; top: 72px; background: var(--urlr-base); padding: .75rem 0; font-size: .85rem; color: var(--text-muted); border-bottom: 1px solid var(--urlr-border); z-index: 5; }
.legal .toc { background: var(--urlr-surface); border: 1px solid var(--urlr-border); border-radius: var(--r-card); padding: 1.25rem 1.5rem; margin: 1.5rem 0 2.5rem; }
.legal .toc h2 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .75rem; }
.legal .toc ol { margin: 0; padding-left: 1.2rem; columns: 2; gap: 2rem; }
.legal .toc li { margin-bottom: .35rem; font-size: .9rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal section { scroll-margin-top: 130px; margin-bottom: 2rem; }
.legal h2.sec { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { color: #43434f; }
.legal ul { padding-left: 1.2rem; }

/* careers */
.role-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--white); border: 1px solid var(--urlr-border); border-radius: var(--r-card); padding: 1.5rem; margin-bottom: 1rem; }
.role-card .role-meta { display: flex; gap: .5rem; margin: .5rem 0; flex-wrap: wrap; }

/* use-case grid (qr-codes marketing) */
.usecase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.usecase { text-align: center; padding: 1.5rem 1rem; }
.usecase .uc-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--urlr-surface); color: var(--urlr-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.usecase .uc-ic svg { width: 24px; height: 24px; }
.usecase h3 { font-size: 1rem; }
.usecase p { font-size: .88rem; color: var(--text-muted); }

.big-qr { width: 220px; height: 220px; background: #fff; border: 1.5px solid var(--urlr-ink); border-radius: var(--r-card); box-shadow: var(--shadow-hard); padding: 12px; }

@media (max-width: 860px) {
  .alt { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.25rem 0; }
  .alt.reverse .alt-copy { order: 1; }
  .alt.reverse .alt-visual { order: 2; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--urlr-border); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .usecase-grid { grid-template-columns: 1fr 1fr; }
  .cl-entry { grid-template-columns: 1fr; gap: .75rem; }
  .legal .toc ol { columns: 1; }
}

@media (max-width: 560px) {
  .blog-grid, .usecase-grid { grid-template-columns: 1fr; }
  .footer-bottom .fb-credit { margin-top: .25rem; }
  .role-card { flex-direction: column; align-items: flex-start; }
}

/* ========================================================================
   AUTH FORM UX (validation, password toggle, spinner) + TOASTS
   ======================================================================== */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 2.8rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: none; background: none; color: var(--text-faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.pw-toggle:hover { color: var(--urlr-ink); background: var(--urlr-surface); }
.pw-toggle svg { width: 18px; height: 18px; }

.field-error { color: var(--urlr-danger); font-size: .78rem; margin-top: .35rem; }
.input.invalid, input.invalid { border-color: var(--urlr-danger); box-shadow: 0 0 0 3px rgba(225,68,46,.1); }

.remember-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .25rem 0 1rem; }
.remember-row label { display: inline-flex; align-items: center; gap: .45rem; margin: 0; color: var(--text); font-weight: 500; cursor: pointer; }
.remember-row input[type=checkbox] { width: auto; }

.btn-google { background: var(--white); color: var(--urlr-ink); border: 1.5px solid var(--urlr-border); box-shadow: none; }
.btn-google:hover { background: var(--urlr-surface); border-color: var(--urlr-ink); }
.btn-google .g-mark { width: 18px; height: 18px; flex: none; }

/* submit spinner */
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* toasts */
.toast-stack { position: fixed; z-index: 200; bottom: 1.25rem; right: 1.25rem; display: flex; flex-direction: column; gap: .6rem; max-width: 340px; }
.toast { display: flex; align-items: center; gap: .75rem; background: var(--urlr-ink); color: #fff; padding: .8rem 1rem; border-radius: var(--r-card); box-shadow: 0 12px 30px rgba(26,26,46,.28); font-size: .9rem; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; border-left: 4px solid var(--urlr-mint); }
.toast.in { opacity: 1; transform: none; }
.toast-error { border-left-color: var(--urlr-danger); }
.toast .toast-msg { flex: 1; }
.toast .toast-x { background: none; border: none; color: rgba(255,255,255,.6); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 .1rem; }
.toast .toast-x:hover { color: #fff; }
@media (max-width: 560px) { .toast-stack { left: 1rem; right: 1rem; bottom: 5.5rem; max-width: none; align-items: stretch; } }

/* chart skeleton shimmer until Chart.js paints */
.chart-holder:not(.loaded)::before { content: ""; position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(100deg, var(--urlr-surface) 30%, #e9e5dd 50%, var(--urlr-surface) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton { background: linear-gradient(100deg, var(--urlr-surface) 30%, #e9e5dd 50%, var(--urlr-surface) 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 6px; }

/* sticky table header inside scroll containers */
table.data thead th { position: sticky; top: 0; z-index: 1; }

/* ---- mobile: tables become stacked cards (<640px) ---- */
@media (max-width: 640px) {
  .table-cards { min-width: 0; }
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tbody tr { border: 1px solid var(--urlr-border) !important; border-radius: 10px; margin-bottom: .75rem; padding: .35rem .85rem; background: var(--white) !important; }
  .table-cards td { border: none !important; padding: .4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .table-cards td::before { content: attr(data-label); color: var(--text-muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
  .table-cards td[data-label=""]::before { content: ""; }
  .table-cards td[data-label="Destination"] { display: block; }
  .table-cards td[data-label="Destination"]::before { display: block; margin-bottom: .15rem; }
  .table-wrap { border: none; overflow: visible; }

  /* bottom-sheet modals */
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 16px 16px 0 0; border-bottom: none; box-shadow: 0 -8px 30px rgba(0,0,0,.2); animation: sheet-up .28s ease; max-height: 92vh; overflow-y: auto; }
  .modal::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--urlr-border); margin: 0 auto 1rem; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
