/* ==========================================================================
   myQR design system — light & bold
   ========================================================================== */
/* Self-hosted fonts (SIL Open Font License) — no third-party requests */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%; src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000; src: url("../fonts/dm-sans.woff2") format("woff2-variations"); }
@font-face { font-family: "DM Sans"; font-style: italic; font-display: swap; font-weight: 100 1000; src: url("../fonts/dm-sans-italic.woff2") format("woff2-variations"); }

:root {
  --paper: #FBF7F0;
  --paper-2: #F4EDE1;
  --card: #FFFFFF;
  --ink: #16130F;
  --ink-2: #3F3931;
  --muted: #7A7166;
  --line: #E7DECF;
  --line-2: #D9CDBA;
  --brand: #FF4F1A;
  --brand-dark: #E23D0B;
  --brand-soft: #FFE4D8;
  --lime: #D6F55A;
  --blue: #3858FF;
  --blue-soft: #E3E8FF;
  --pink: #FFB9D7;
  --success: #17915A;
  --success-soft: #DDF5E8;
  --danger: #DC3036;
  --danger-soft: #FDE3E3;
  --warn: #B87800;
  --warn-soft: #FFF1CC;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --hard: 4px 4px 0 var(--ink);
  --hard-sm: 2px 2px 0 var(--ink);
  --soft: 0 1px 2px rgba(22, 19, 15, .06), 0 8px 24px -12px rgba(22, 19, 15, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.i { flex: none; display: inline-block; vertical-align: middle; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 .4em;
  font-optical-sizing: auto;
}
.display { font-size: clamp(2.7rem, 7.2vw, 5.6rem); letter-spacing: -0.045em; line-height: .95; }
.h1, h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.035em; }
.h2, h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.h3, h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.h4, h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.small, small { font-size: .875rem; }
.xs { font-size: .78rem; }
.mono { font-family: var(--font-mono); font-size: .9em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.hl { background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%); padding: 0 .08em; }
.brand-text { color: var(--brand); }
code { font-family: var(--font-mono); font-size: .88em; background: var(--paper-2); padding: .1em .4em; border-radius: 6px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; color: var(--ink); }
.logo-mark { color: var(--ink); transition: transform .5s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--card); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .95rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  box-shadow: var(--hard-sm);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { --bg: var(--brand); --fg: #fff; }
.btn-primary:hover { --bg: var(--brand-dark); }
.btn-dark { --bg: var(--ink); --fg: var(--paper); }
.btn-lime { --bg: var(--lime); }
.btn-ghost { --bg: transparent; border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--paper-2); box-shadow: none; transform: none; }
.btn-line { box-shadow: none; border-width: 1.5px; border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); box-shadow: none; transform: none; }
.btn-danger { --bg: var(--danger); --fg: #fff; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn-sm { min-height: 36px; padding: 6px 13px; font-size: .86rem; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }
.btn-sm.btn-icon { width: 34px; min-height: 34px; }
.btn-block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards, badges, chips ---------- */
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 24px; }
.card-bold { border: 2px solid var(--ink); box-shadow: var(--hard); }
.card-pad-lg { padding: 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; line-height: 1.4;
  background: var(--paper-2); color: var(--ink-2); white-space: nowrap;
}
.badge-brand { background: var(--brand-soft); color: var(--brand-dark); }
.badge-lime { background: var(--lime); color: var(--ink); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-dark { background: var(--ink); color: var(--paper); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.field small { font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  font-size: 1rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2316130F' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(56, 88, 255, .16); }
input::placeholder, textarea::placeholder { color: #ADA395; }
.input-group { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); overflow: hidden; }
.input-group:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(56, 88, 255, .16); }
.input-group > span { display: flex; align-items: center; padding: 0 12px; background: var(--paper-2); color: var(--muted); font-size: .9rem; white-space: nowrap; border-right: 1.5px solid var(--line); }
.input-group input { border: 0; box-shadow: none !important; border-radius: 0; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); border: 2px solid var(--ink); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Segmented control */
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--paper-2); border-radius: 999px; border: 1.5px solid var(--line); }
.seg button, .seg a { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .86rem; cursor: pointer; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg .on, .seg [aria-pressed=true] { background: var(--ink); color: var(--paper); }

/* Alerts & flash */
.alert { padding: 13px 16px; border-radius: var(--r-sm); font-size: .94rem; font-weight: 500; border: 1.5px solid transparent; }
.alert-error { background: var(--danger-soft); color: #8E1519; border-color: #F6C3C4; }
.alert-success { background: var(--success-soft); color: #0B5A36; border-color: #B7E6CC; }
.alert-warn { background: var(--warn-soft); color: #6B4700; border-color: #F4DC98; }
.alert-info { background: var(--blue-soft); color: #1E2F8F; border-color: #C9D2FF; }

.toast-stack { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); animation: toast-in .35s var(--ease); }
.toast.error { background: var(--danger); color: #fff; }
.toast .i { color: var(--lime); }
.toast.error .i { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- Top navigation (marketing) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 240, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner { height: 72px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--paper-2); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }
.mobile-menu { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-cta .hide-sm { display: none; }
  .topbar-inner { justify-content: space-between; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.open { display: flex; flex-direction: column; gap: 4px; padding: 8px 20px 20px; border-bottom: 1.5px solid var(--line); }
  .mobile-menu a { padding: 12px 4px; font-weight: 700; font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .i { color: var(--success); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(22,19,15,.09) 1px, transparent 0); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Hero live maker */
.maker { position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--ink); padding: 22px; }
.maker-top { display: flex; gap: 8px; margin-bottom: 14px; }
.maker-top i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); }
.maker-top i:nth-child(1) { background: var(--brand); } .maker-top i:nth-child(2) { background: var(--lime); } .maker-top i:nth-child(3) { background: var(--blue); }
.maker-qr { display: grid; place-items: center; aspect-ratio: 1; background: var(--paper); border-radius: var(--r); margin: 14px 0; padding: 14px; transition: background .3s; }
.maker-qr canvas, .maker-qr svg { width: 100% !important; height: auto !important; max-width: 300px; display: block; }
.maker-swatches { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sticker { position: absolute; z-index: 2; font-family: var(--font-display); font-weight: 800; border: 2px solid var(--ink); box-shadow: var(--hard-sm); display: grid; place-items: center; text-align: center; line-height: 1; }
.sticker-price { width: 96px; height: 96px; border-radius: 50%; background: var(--brand); color: #fff; right: -26px; top: -30px; transform: rotate(12deg); font-size: .8rem; }
.sticker-price b { display: block; font-size: 1.9rem; letter-spacing: -.04em; }
.sticker-never { left: -26px; bottom: 56px; background: var(--lime); padding: 10px 14px; border-radius: 12px; transform: rotate(-7deg); font-size: .95rem; }
@media (max-width: 560px) { .sticker-price { right: -8px; top: -38px; width: 82px; height: 82px; } .sticker-never { left: -6px; top: -20px; bottom: auto; font-size: .85rem; } }

/* Swatch */
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer; padding: 0; position: relative; transition: transform .15s var(--ease); }
.swatch:hover { transform: scale(1.12); }
.swatch.on::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ink); }

/* ---------- Marquee ---------- */
.marquee { border-block: 2px solid var(--ink); background: var(--ink); color: var(--paper); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--brand); }
.marquee-track span:nth-child(3n+2)::after { background: var(--lime); }
.marquee-track span:nth-child(3n)::after { background: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Section headers ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head h2 { margin-top: 14px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; overflow: hidden; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 28px; min-height: 260px; display: flex; flex-direction: column; }
.tile h3 { margin-top: auto; }
.tile p { color: var(--ink-2); margin: 0; max-width: 30em; }
.tile .tile-ico { width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--paper); margin-bottom: 20px; }
.t-3 { grid-column: span 3; } .t-2 { grid-column: span 2; } .t-4 { grid-column: span 4; }
.tile-brand { background: var(--brand); color: #fff; }
.tile-brand p { color: rgba(255,255,255,.88); }
.tile-lime { background: var(--lime); }
.tile-ink { background: var(--ink); color: var(--paper); }
.tile-ink p { color: #CFC6B8; }
.tile-blue { background: var(--blue); color: #fff; }
.tile-blue p { color: rgba(255,255,255,.85); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .t-3, .t-2, .t-4 { grid-column: span 2; } }
@media (max-width: 560px) { .tile { min-height: 0; } }

.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin: 4px 0 22px; }
.mini-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--lime); border: 2px solid var(--paper); animation: grow 1.2s var(--ease) both; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(.1); } }
.pattern-row { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.pattern-row span { width: 54px; height: 54px; border-radius: 12px; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; }

/* ---------- Compare ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--hard); }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1.5px solid var(--line); font-size: .98rem; vertical-align: middle; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--paper-2); font-family: var(--font-display); font-size: 1.05rem; }
.compare thead th.us { background: var(--ink); color: var(--paper); }
.compare td.us { background: #FFF8F4; font-weight: 700; }
.compare .yes { color: var(--success); } .compare .no { color: var(--danger); }
.compare td .row { gap: 8px; }
@media (max-width: 640px) { .compare th, .compare td { padding: 12px; font-size: .88rem; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1.5px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; letter-spacing: -.05em; color: var(--brand); line-height: 1; display: block; margin-bottom: 18px; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.billing-toggle { display: flex; justify-content: center; margin-bottom: 36px; }
.save-pill { background: var(--lime); color: var(--ink); font-size: .72rem; padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 30px; }
.plan.featured { background: var(--ink); color: var(--paper); box-shadow: 8px 8px 0 var(--brand); transform: translateY(-8px); }
.plan.featured .muted, .plan.featured .plan-feats li { color: #D8CFC1; }
.plan-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.plan-price b { font-family: var(--font-display); font-size: 3.4rem; letter-spacing: -.05em; line-height: 1; }
.plan-feats { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 11px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.plan-feats .i { color: var(--success); margin-top: 2px; }
.plan.featured .plan-feats .i { color: var(--lime); }
.plan .btn { margin-top: auto; }
.plan-flag { position: absolute; top: -15px; left: 28px; background: var(--brand); color: #fff; border: 2px solid var(--ink); font-weight: 800; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .plan.featured { transform: none; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* ---------- CTA band & footer ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--brand); color: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); box-shadow: 8px 8px 0 var(--ink); }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 12em; }
.cta-band .btn-dark { --bg: var(--ink); }
.cta-band .deco { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: .22; color: #fff; pointer-events: none; }
.cta-band > :not(.deco) { position: relative; z-index: 1; }
@media (max-width: 640px) { .cta-band .deco { width: 150px; right: -30px; bottom: -30px; opacity: .15; } }
.footer { padding: 64px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.footer a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1.5px solid var(--line); color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Auth ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; background: var(--paper); position: relative; }
.auth-body::before { content: ""; position: fixed; inset: 0; z-index: -1; background-image: radial-gradient(circle at 1px 1px, rgba(22,19,15,.08) 1px, transparent 0); background-size: 22px 22px; }
.auth-wrap { width: 100%; max-width: 440px; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.auth-card { width: 100%; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 5vw, 36px); }
.auth-card h1 { font-size: 2rem; }
.auth-foot { text-align: center; color: var(--ink-2); font-size: .94rem; }
.auth-foot a { font-weight: 700; }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: .9rem; font-weight: 600; }
.checklist .ok { color: var(--success); } .checklist .bad { color: var(--danger); }
.pw-meter { height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }

/* ==========================================================================
   Studio
   ========================================================================== */
.studio-body { background: var(--paper); }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 28px; align-items: start; padding: 28px 0 80px; }
.studio-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 28px; }
.studio-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 6px 0 0; }
.panel { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer; user-select: none; }
.panel-head .num { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex: none; }
.panel-head h2 { font-size: 1.2rem; margin: 0; }
.panel-head p { margin: 0; font-size: .88rem; color: var(--muted); }
.panel-head .chev { margin-left: auto; transition: transform .25s var(--ease); transform: rotate(90deg); color: var(--muted); }
.panel.collapsed .chev { transform: rotate(0deg); }
.panel-body { padding: 4px 24px 26px; }
.panel.collapsed .panel-body { display: none; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.type-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; text-align: left; font-weight: 700; font-size: .9rem; transition: border-color .15s, transform .15s var(--ease), background .15s; }
.type-btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.type-btn .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1.5px solid var(--line); }
.type-btn.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.type-btn.on .ico { background: var(--brand); border-color: var(--brand); color: #fff; }
.type-btn .dyn { font-size: .68rem; font-weight: 700; color: var(--brand); font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.type-btn.on .dyn { color: var(--lime); }

.mode-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--paper); border: 1.5px dashed var(--line-2); margin: 20px 0 6px; }
.mode-card.on { background: #FFF6F1; border: 1.5px solid var(--brand); }
.mode-card p { margin: 2px 0 0; font-size: .88rem; color: var(--ink-2); }

.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1.5px solid var(--line); }
.subtabs button { border: 0; background: none; padding: 10px 12px; font-weight: 700; font-size: .92rem; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; display: inline-flex; align-items: center; gap: 7px; }
.subtabs button.on { color: var(--ink); border-bottom-color: var(--brand); }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.opt { aspect-ratio: 1; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; padding: 10px; transition: border-color .15s, transform .15s var(--ease); position: relative; }
.opt:hover { border-color: var(--ink); transform: translateY(-2px); }
.opt.on { border: 2px solid var(--ink); background: var(--card); box-shadow: var(--hard-sm); }
.opt.on::after { content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.opt svg { width: 100%; height: 100%; }
.opt-label { font-size: .7rem; font-weight: 700; color: var(--muted); text-align: center; margin-top: 4px; }

.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.preset { border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: .74rem; font-weight: 700; color: var(--ink-2); transition: transform .15s var(--ease), border-color .15s; }
.preset:hover { transform: translateY(-2px); border-color: var(--ink); }
.preset .pv { width: 100%; aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; }
.preset .pv canvas, .preset .pv svg { width: 78% !important; height: auto !important; }

.color-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.color-field { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); }
.color-field .label { flex: 1; font-size: .85rem; }
.color-field input[type=color] { width: 36px; height: 36px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: 2px solid var(--ink); border-radius: 8px; }
.color-field input[type=color]::-moz-color-swatch { border: 2px solid var(--ink); border-radius: 8px; }
.color-field .hex { width: 84px; min-height: 36px; padding: 6px 8px; font-family: var(--font-mono); font-size: .82rem; border-radius: 8px; }
@media (max-width: 520px) { .color-row { grid-template-columns: 1fr; } }

.drop { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px dashed var(--line-2); border-radius: var(--r); background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.drag { border-color: var(--brand); background: #FFF6F1; }
.drop .thumb { width: 56px; height: 56px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.drop .thumb img { width: 100%; height: 100%; object-fit: contain; }
.range { display: flex; align-items: center; gap: 12px; }
.range input[type=range] { flex: 1; accent-color: var(--brand); }
.range output { font-family: var(--font-mono); font-size: .82rem; min-width: 40px; text-align: right; }

/* Preview column */
.preview-col { position: sticky; top: 92px; }
.preview-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--ink); padding: 22px; }
.preview-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r); padding: 22px; transition: background .3s;
  background-color: #F1EADF; background-image: linear-gradient(45deg, #E9E0D2 25%, transparent 25%), linear-gradient(-45deg, #E9E0D2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #E9E0D2 75%), linear-gradient(-45deg, transparent 75%, #E9E0D2 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.preview-stage .qr-out { width: 100%; display: grid; place-items: center; }
.preview-stage .qr-out svg, .preview-stage .qr-out img { width: 100%; max-width: 340px; height: auto; display: block; filter: drop-shadow(0 10px 22px rgba(22,19,15,.14)); transition: opacity .2s; }
.preview-stage.busy .qr-out svg { opacity: .6; }
.scan-check { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700; background: var(--paper-2); color: var(--ink-2); }
.scan-check.good { background: var(--success-soft); color: var(--success); }
.scan-check.bad { background: var(--danger-soft); color: var(--danger); }
.scan-check.warn { background: var(--warn-soft); color: var(--warn); }
.dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.size-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-top: 14px; }
.save-box { margin-top: 18px; padding-top: 18px; border-top: 1.5px dashed var(--line-2); }
.shortlink { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 8px 8px 8px 12px; font-family: var(--font-mono); font-size: .84rem; }
.shortlink span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1000px) {
  .studio { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  .preview-card { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 1000px) { .preview-stage { max-height: 380px; aspect-ratio: auto; } .preview-stage .qr-out svg { max-width: 300px; } }

.links-editor { display: flex; flex-direction: column; gap: 10px; }
.link-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: center; }
@media (max-width: 560px) { .link-row { grid-template-columns: 1fr auto; } .link-row input:nth-child(2) { grid-column: 1 / 2; grid-row: 2; } }

/* ==========================================================================
   App shell (dashboard)
   ========================================================================== */
.app-body { background: var(--paper); }
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 16px; border-right: 1.5px solid var(--line); background: var(--paper); }
.sidebar .brand { padding: 4px 8px 22px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.side-link:hover { background: var(--paper-2); color: var(--ink); }
.side-link.active { background: var(--ink); color: var(--paper); }
.side-link.active .i { color: var(--lime); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.usage { padding: 16px; border-radius: var(--r); background: var(--card); border: 1.5px solid var(--line); }
.usage-bar { height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; margin: 10px 0 8px; }
.usage-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 11px; background: var(--lime); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex: none; }
.me .grow div { font-weight: 700; font-size: .9rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .grow small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; padding: 30px clamp(18px, 3.5vw, 44px) 80px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 4px 0 0; }
.mobilebar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobilebar { display: flex; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(251,247,240,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1.5px solid var(--line); }
  .tabbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-around; background: var(--ink); border-radius: 20px; padding: 8px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; color: #BDB3A5; text-decoration: none; font-size: .7rem; font-weight: 700; border-radius: 12px; }
  .tabbar a.active { color: var(--lime); }
  .tabbar a.fab { background: var(--brand); color: #fff; }
  .main { padding-bottom: 110px; }
}
@media (min-width: 901px) { .tabbar { display: none; } }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.kpi .label { font-size: .8rem; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.kpi .val { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -.04em; line-height: 1.1; margin-top: 6px; }
.kpi.kpi-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kpi.kpi-ink .label { color: #BDB3A5; }
.kpi.kpi-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.kpi.kpi-brand .label { color: rgba(255,255,255,.85); }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Toolbar */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 40px; min-height: 42px; border-radius: 999px; }

/* Code cards */
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.code-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 18px; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s var(--ease); }
.code-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.code-card .top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.code-thumb { width: 88px; height: 88px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; padding: 6px; flex: none; border: 1.5px solid var(--line); }
.code-thumb svg, .code-thumb img, .code-thumb canvas { width: 100% !important; height: 100% !important; object-fit: contain; }
.code-card h3 { font-size: 1.08rem; margin: 2px 0 6px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.code-card h3 a { text-decoration: none; }
.code-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.code-card .dest { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 8px; }
.code-card .meta { margin-top: auto !important; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.code-card .scans b { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.03em; display: block; line-height: 1; }
.code-card .scans small { color: var(--muted); font-weight: 600; }
.code-card .actions { position: relative; z-index: 2; display: flex; gap: 6px; }
.code-card.paused { opacity: .72; }
.spark { width: 110px; height: 34px; }

/* Empty state */
.empty { text-align: center; padding: clamp(40px, 8vw, 80px) 20px; background: var(--card); border: 2px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .art { width: 120px; margin: 0 auto 22px; }
.empty p { color: var(--ink-2); max-width: 30em; margin: 0 auto 24px; }

/* Code detail */
.detail { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.detail-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.qr-frame { background: var(--paper); border-radius: var(--r); padding: 18px; display: grid; place-items: center; }
.qr-frame svg { width: 100%; max-width: 260px; height: auto; }
.chart-card { padding: 22px; }
.chart { width: 100%; height: 240px; display: block; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.chart .area { fill: url(#areaGrad); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line2 { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-dasharray: 4 4; }
.chart .hover-dot { fill: var(--brand); stroke: #fff; stroke-width: 2.5; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); font-size: .8rem; font-weight: 600; padding: 7px 11px; border-radius: 10px; white-space: nowrap; transform: translate(-50%, -115%); opacity: 0; transition: opacity .1s; }
.chart-wrap { position: relative; }
.legend { display: flex; gap: 16px; font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; background: var(--brand); vertical-align: middle; margin-right: 6px; }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 7px); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .9rem; font-weight: 600; }
.bar-row .track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 999px; background: var(--ink); transition: width .6s var(--ease); }
.bar-row:first-child .track i { background: var(--brand); }
.bar-row .n { color: var(--muted); font-family: var(--font-mono); font-size: .82rem; }
.breakdowns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 70px; }
.hours i { background: var(--ink); border-radius: 3px 3px 1px 1px; min-height: 3px; opacity: .85; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 1100px) { .detail { grid-template-columns: minmax(0, 1fr); } .detail-side { position: static; } }
@media (max-width: 700px) { .page-head > .grow { flex-basis: 100%; } }
@media (max-width: 700px) { .breakdowns { grid-template-columns: 1fr; } }

/* Upsell / locked */
.locked { position: relative; }
.locked-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--blue-soft); color: #1E2F8F; font-size: .9rem; font-weight: 600; }

/* Modal */
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(22,19,15,.45); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: 100%; max-width: 440px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--ink); padding: 26px; animation: pop .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }

/* ==========================================================================
   Public hosted pages (vCard, Links)
   ========================================================================== */
.pub-body { --accent: var(--brand); min-height: 100vh; background: var(--paper); display: flex; justify-content: center; padding: 0 16px; }
.pub { width: 100%; max-width: 460px; padding: 32px 0 40px; display: flex; flex-direction: column; min-height: 100vh; }
.pub-hero { position: relative; border-radius: var(--r-lg); background: var(--accent); border: 2px solid var(--ink); padding: 30px 24px 26px; color: #fff; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.pub-hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 34px; border: 14px solid rgba(255,255,255,.18); transform: rotate(18deg); }
.pub-avatar { width: 76px; height: 76px; border-radius: 22px; background: #fff; color: var(--ink); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; margin-bottom: 16px; position: relative; z-index: 1; }
.pub-hero h1 { font-size: 2rem; margin: 0 0 4px; position: relative; z-index: 1; }
.pub-hero p { margin: 0; opacity: .92; position: relative; z-index: 1; }
.pub-list { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.pub-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 2px solid var(--ink); text-decoration: none; font-weight: 700; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.pub-item:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.pub-item .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; flex: none; }
.pub-item small { display: block; font-weight: 500; color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-item .grow { min-width: 0; }
.pub-save { margin-top: 18px; }
.pub-save .btn { --bg: var(--accent); --fg: #fff; }
.pub-foot { margin-top: auto; padding-top: 36px; text-align: center; font-size: .82rem; color: var(--muted); }
.pub-foot a { font-weight: 700; text-decoration: none; color: var(--ink); }

/* Error */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 20vw, 12rem); line-height: .9; letter-spacing: -.06em; color: var(--brand); -webkit-text-stroke: 3px var(--ink); }

/* Legal */
.prose { max-width: 740px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } * { animation-duration: .01ms !important; } }

/* Mobile studio: floating preview shortcut */
.m-fab { display: none; }
@media (max-width: 1000px) {
  .m-fab { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; background: var(--ink); color: var(--paper); border-radius: 20px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); text-decoration: none; transition: transform .3s var(--ease), opacity .3s; }
  .m-fab.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }
  .m-fab .th { width: 48px; height: 48px; border-radius: 12px; background: #fff; padding: 4px; flex: none; display: grid; place-items: center; }
  .m-fab .th img { width: 100%; height: 100%; object-fit: contain; }
  .m-fab b { display: block; font-size: .95rem; }
  .m-fab small { color: #BDB3A5; font-size: .78rem; }
  .m-fab .go { margin-left: auto; background: var(--brand); color: #fff; border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: .88rem; }
  .studio { padding-bottom: 110px; }
}
@media (max-width: 560px) {
  .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .type-btn { padding: 10px; gap: 8px; font-size: .82rem; }
  .type-btn .ico { width: 30px; height: 30px; }
  .panel-head { padding: 16px 18px; } .panel-body { padding: 4px 18px 22px; }
}

/* ---------- v2: link-only studio & free trial ---------- */
.trial-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--lime); border: 2px solid var(--ink); font-weight: 700; font-size: .9rem; box-shadow: var(--hard-sm); }
.notice { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 2px solid var(--ink); flex-wrap: wrap; }
.notice-brand { background: #FFF3EC; }
.notice-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.notice .small { color: var(--ink-2); }
.url-input { display: flex; align-items: center; gap: 4px; border: 2px solid var(--ink); border-radius: 16px; background: var(--card); padding: 4px 6px 4px 14px; box-shadow: var(--hard-sm); transition: box-shadow .15s; }
.url-input:focus-within { box-shadow: 0 0 0 4px rgba(56, 88, 255, .18), var(--hard-sm); }
.url-input .url-ico { color: var(--brand); display: flex; }
.url-input input { border: 0 !important; box-shadow: none !important; font-size: 1.1rem; font-weight: 500; min-height: 52px; padding: 8px 8px; background: transparent; }
.url-input input[readonly] { color: var(--ink-2); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.how-it-works { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.how-it-works span { display: inline-flex; align-items: center; gap: 6px; }
.how-it-works .i { color: var(--success); }
.trial-terms { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-sm); background: var(--paper); border: 1.5px dashed var(--line-2); }
.tt-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.tt-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--card); border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; color: var(--brand); }
.trial-box { margin-top: 14px; padding: 16px; border-radius: var(--r); background: #FFF6F1; border: 2px solid var(--brand); }
.trial-box p { font-size: .88rem; color: var(--ink-2); margin: 10px 0 12px; }
.trial-box .tb-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.trial-box .tb-left { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--brand-dark); }
.trial-box .tb-bar { height: 8px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; margin-top: 10px; }
.trial-box .tb-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.trial-box.is-expired { background: var(--danger-soft); border-color: var(--danger); }
.trial-box .shortlink { background: var(--card); }
.state-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); margin-bottom: 18px; flex-wrap: wrap; border: 2px solid var(--ink); background: var(--card); }
.state-banner.warn { background: #FFF3EC; }
.state-banner.bad { background: var(--danger-soft); border-color: var(--danger); }
.state-banner .grow small { display: block; color: var(--ink-2); }
.countdown { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; }
.trial-hero { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
@media (max-width: 760px) { .trial-hero { grid-template-columns: 1fr; } }
.key-box { font-family: var(--font-mono); font-size: .85rem; word-break: break-all; }
.plan-feats li.plan-warn { color: var(--ink); }
.plan-feats li.plan-warn .i { color: var(--brand); }

#dl-area + .trial-box, .scan-check + .trial-box { margin-top: 14px; }

.brand-tld { color: var(--brand); }

/* ---------- v3: simpler, bolder home ---------- */
.hero-v3 .display { font-size: clamp(3rem, 8vw, 6.4rem); margin: 0 0 18px; }
.hero-v3 .lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin-bottom: 28px; }
.hero-paste { display: flex; align-items: center; gap: 8px; max-width: 580px; padding: 8px 8px 8px 18px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 6px 6px 0 var(--ink); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.hero-paste:focus-within { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--brand); }
.hero-paste .url-ico { color: var(--brand); display: flex; }
.hero-paste input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent; font-size: 1.15rem; font-weight: 500; min-height: 48px; padding: 6px 4px; }
.hero-paste .btn { box-shadow: none; border-width: 2px; }
.hero-paste .btn:hover { transform: none; box-shadow: none; }
.hero-v3 .hero-proof { margin-top: 26px; }
@media (max-width: 560px) {
  .hero-paste { flex-wrap: wrap; border-radius: 22px; padding: 10px; }
  .hero-paste .url-ico { padding-left: 8px; }
  .hero-paste .btn { width: 100%; }
}
.showcase-wrap { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.showcase { background: var(--card); border: 2.5px solid var(--ink); border-radius: 34px; box-shadow: 10px 10px 0 var(--ink); padding: 26px; transform: rotate(2deg); transition: transform .5s var(--ease); }
.showcase:hover { transform: rotate(0deg) scale(1.01); }
.showcase .maker-qr { margin: 0 0 18px; }
.showcase .maker-swatches { justify-content: center; }
.showcase-wrap .sticker-never { left: -22px; bottom: 70px; top: auto; }
.maker-qr.pop img { animation: qrpop .45s var(--ease); }
@keyframes qrpop { from { transform: scale(.94); opacity: .6; } }
@media (max-width: 900px) { .showcase-wrap { margin-top: 18px; } .showcase { transform: none; } }
@media (max-width: 560px) { .showcase-wrap .sticker-never { left: -4px; top: -18px; bottom: auto; } .showcase { padding: 18px; } }

.steps-v3 { grid-template-columns: repeat(3, 1fr); }
.steps-v3 .step { text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 26px; }
.steps-v3 .step::before { position: absolute; top: 20px; right: 24px; margin: 0; font-size: 2.4rem; color: var(--line-2); }
.steps-v3 .step h3 { font-size: 1.9rem; margin: 14px 0 0; }
.steps-v3 .step p { font-size: 1.02rem; }
.step-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; border: 2px solid var(--ink); box-shadow: var(--hard-sm); }
.steps-v3 .step:nth-child(2) .step-ico { background: var(--lime); color: var(--ink); }
.steps-v3 .step:nth-child(3) .step-ico { background: var(--blue); }
@media (max-width: 820px) { .steps-v3 { grid-template-columns: 1fr; } }
.bento .tile { min-height: 230px; }
.bento .tile p { font-size: 1.02rem; }

/* Guest reminder form in the trial box */
.remind-form { display: flex; gap: 8px; margin-top: 10px; }
.remind-form input { min-height: 42px; flex: 1; min-width: 0; }
.remind-form .btn { min-height: 42px; }
.remind-ok { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--success); margin-top: 10px; }
@media (max-width: 820px) {
  .steps-v3 { gap: 10px; }
  .steps-v3 .step { flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; }
  .steps-v3 .step h3 { margin: 0; font-size: 1.35rem; }
  .steps-v3 .step p { margin: 0; }
  .steps-v3 .step .step-ico { width: 46px; height: 46px; flex: none; }
  .steps-v3 .step::before { top: 50%; transform: translateY(-50%); font-size: 1.6rem; }
}
@media (max-width: 560px) { .notice { gap: 12px; } .notice .grow { flex: 1 1 calc(100% - 60px); } .notice > .btn { width: 100%; } }

@media (max-width: 820px) { .steps-v3 .step::before { display: none; } }
.hero-v3 + .section { padding-top: clamp(24px, 4vw, 56px); }
.hero.hero-v3 { padding-bottom: clamp(28px, 4vw, 48px); }

/* Owner dashboard */
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.admin-grid-2 { grid-template-columns: 1.1fr .9fr; align-items: start; }
.mini-bars { width: 100%; height: 108px; display: block; margin-top: 12px; }
.mini-bars .mb-axis { font: 11px var(--font-body); fill: var(--muted); }
.storage-big b { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: -.04em; }
@media (max-width: 900px) { .admin-grid, .admin-grid-2 { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; max-width: 420px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Admin: subscribers ---------- */
.users-tabs { overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.users-tabs .seg { flex-wrap: nowrap; }
.tab-n { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: rgba(22,19,15,.08); font-size: .74rem; text-align: center; }
.seg .on .tab-n { background: rgba(255,255,255,.18); }
.th-sort { color: inherit; text-decoration: none; }
.th-sort:hover { color: var(--brand); }
.users-table td, .users-table th { padding-left: 20px; }
.row-link { cursor: pointer; }
.row-link:hover td { background: var(--paper-2); }
.back-link { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--brand); }
.day-picks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.day-pick input { position: absolute; opacity: 0; pointer-events: none; }
.day-pick span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .88rem; cursor: pointer; background: var(--card); }
.day-pick input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.day-pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.day-picks .until { width: auto; min-height: 38px; padding: 6px 10px; }
.danger-zone { border-color: #F6C3C4; }
@media (max-width: 700px) { .users-table th:nth-child(5), .users-table td:nth-child(5), .users-table th:nth-child(6), .users-table td:nth-child(6) { display: none; } }
.viewas-bar { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; background: var(--blue); color: #fff; font-size: .9rem; font-weight: 600; }
.viewas-bar .i { vertical-align: -3px; }
.viewas-bar .btn { --bg: #fff; --fg: var(--ink); min-height: 32px; }
.month-bars { width: 100%; height: auto; display: block; }
.month-bars .mb-val { font: 700 11px var(--font-body, 'DM Sans', sans-serif); fill: var(--ink-2); }
.month-bars .mb-axis { font: 600 11px var(--font-body, 'DM Sans', sans-serif); fill: var(--muted, #7A7166); }
.empty-mini { display: flex; gap: 14px; align-items: center; padding: 22px 4px 6px; color: var(--ink-2); }
.empty-mini .i { flex: none; color: var(--brand); }
.days-left { font-weight: 700; }
.days-left.soon { color: var(--warn); }
.days-left.gone { color: var(--danger); }
.form-inline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .form-inline-grid { grid-template-columns: 1fr; } }
.pay-row td { vertical-align: middle; }
details.refund-box summary { cursor: pointer; font-weight: 700; font-size: .84rem; color: var(--danger); list-style: none; }
details.refund-box summary::-webkit-details-marker { display: none; }
details.refund-box[open] { padding: 10px 0 2px; }
.log-list { list-style: none; padding: 0; margin: 0; }
.log-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.log-list li:last-child { border-bottom: 0; }
