/* QR Contact - site, auth and dashboard styles. No external fonts or resources. */

:root {
  --brand-900: #134e4a;
  --brand-800: #115e59;
  --brand-700: #0f766e;
  --brand-600: #0d9488;
  --brand-500: #14b8a6;
  --brand-200: #99f6e4;
  --brand-100: #ccfbf1;
  --brand-50: #f0fdfa;

  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --muted: #64748b;
  --subtle: #94a3b8;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --surface: #ffffff;

  --ok: #047857;  --ok-bg: #ecfdf5;
  --err: #b91c1c; --err-bg: #fef2f2;
  --warn: #92400e; --warn-bg: #fffbeb;
  --gold: #b45309; --gold-bg: #fef3c7;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .05);
  --focus: 0 0 0 3px rgba(13, 148, 136, .35);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink-3);
  background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-800); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-2); padding: .1em .4em; border-radius: 5px; }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 22px; height: 22px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pt-0 { padding-top: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }

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

.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav button.nav-link {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-3); padding: 8px 12px; border-radius: var(--r-sm);
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover, .nav button.nav-link:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--brand-700); background: var(--brand-50); }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 16px; box-shadow: var(--shadow); gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a, .nav button.nav-link { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ----------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink-2); --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  padding: 11px 16px; min-height: 40px; border-radius: 10px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  text-decoration: none; -webkit-user-select: none; user-select: none;
}
.btn:hover { text-decoration: none; color: var(--btn-fg); background: var(--bg-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { --btn-bg: var(--brand-700); --btn-fg: #fff; --btn-bd: var(--brand-700); box-shadow: 0 1px 2px rgba(15, 118, 110, .3); }
.btn-primary:hover { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--ink-3); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-danger { --btn-bg: var(--err); --btn-fg: #fff; --btn-bd: var(--err); }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-danger-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--err); }
.btn-danger-ghost:hover { background: var(--err-bg); color: var(--err); }
.btn-lg { font-size: 15px; padding: 14px 22px; min-height: 48px; border-radius: 12px; }
.btn-sm { font-size: 13px; padding: 7px 11px; min-height: 32px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 36px; min-height: 36px; }
.btn-icon.btn-sm { width: 32px; min-height: 32px; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.spinner { display: inline-block; width: 20px; height: 20px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------- badges */

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); white-space: nowrap; }
.badge .i { width: 13px; height: 13px; }
.badge-brand { background: var(--brand-50); color: var(--brand-800); box-shadow: inset 0 0 0 1px var(--brand-100); }
.badge-premium { background: var(--gold-bg); color: var(--gold); box-shadow: inset 0 0 0 1px #fde68a; }
.badge-dark { background: var(--ink); color: #fff; }

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

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.optional { font-weight: 400; color: var(--subtle); }
.req { color: var(--err); }
.input, .select, .textarea {
  font: inherit; font-size: 15px; color: var(--ink); width: 100%;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 12px; min-height: 42px; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--subtle); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--subtle); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-600); box-shadow: var(--focus); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--err); }
.input[aria-invalid="true"]:focus, .textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, .2); }
.input:disabled { background: var(--bg-2); color: var(--muted); }
.help { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.field-error { font-size: 12.5px; color: var(--err); font-weight: 500; line-height: 1.4; }
.counter { font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.input-group { position: relative; display: flex; }
.input-group .input { padding-right: 46px; }
.input-group .input-addon { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand-700); margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
}

/* ----------------------------------------------------------------- alerts */

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 14px; line-height: 1.5; border: 1px solid transparent; }
.alert .i { margin-top: 2px; }
.alert-error { background: var(--err-bg); color: var(--err); border-color: #fecaca; }
.alert-info { background: var(--brand-50); color: var(--brand-900); border-color: var(--brand-100); }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #a7f3d0; }

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

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 16px; }
.card-body { padding: 24px; }

/* ------------------------------------------------------------------ toast */

.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: toast-in .2s ease-out; }
.toast .i { color: var(--brand-200); }
.toast-error { background: var(--err); }
.toast-error .i { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- dialog */

dialog.modal { border: 0; padding: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); color: var(--ink-3); background: var(--surface); }
dialog.modal::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 0; }
.modal-head h2 { font-size: 19px; flex: 1; }
.modal-body { padding: 16px 24px 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 24px 24px; flex-wrap: wrap; }
.modal-wide { width: min(560px, calc(100vw - 32px)); }

/* ----------------------------------------------------------------- avatar */

.avatar { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 96px; height: 96px; font-size: 30px; }
.avatar-sm { width: 36px; height: 36px; font-size: 13px; }

/* ================================================================ landing */

.hero { position: relative; overflow: hidden; padding: 72px 0 88px;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(20, 184, 166, .16), transparent 60%),
              radial-gradient(800px 400px at -10% 110%, rgba(15, 118, 110, .10), transparent 60%), var(--surface);
  border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-800);
  background: var(--brand-50); border: 1px solid var(--brand-100); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em; margin: 20px 0 18px; line-height: 1.06; }
.hero h1 .accent { background: linear-gradient(90deg, var(--brand-700), var(--brand-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 540px; line-height: 1.65; }
.hero .btn-row { margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .i { color: var(--brand-600); width: 16px; height: 16px; }

.mock { position: relative; justify-self: center; width: 300px; }
.mock-phone { position: relative; width: 300px; border-radius: 40px; background: #0b1220; padding: 12px; box-shadow: 0 40px 80px -20px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .08); }
.mock-screen { border-radius: 30px; overflow: hidden; background: #f1f5f9; height: 560px; }
.mock-cover { height: 110px; background: linear-gradient(135deg, #0f766e, #14b8a6 70%, #5eead4); }
.mock-body { padding: 0 20px 20px; margin-top: -42px; text-align: center; }
.mock-avatar { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; border: 4px solid #fff; background: linear-gradient(135deg, #334155, #0f172a); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 26px; }
.mock-name { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 10px; }
.mock-role { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mock-btn { margin: 14px auto 0; background: var(--brand-700); color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 10px; padding: 10px; display: flex; gap: 6px; align-items: center; justify-content: center; }
.mock-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mock-actions span { background: #fff; border-radius: 10px; padding: 9px 0; display: grid; place-items: center; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.mock-section { text-align: left; background: #fff; border-radius: 14px; padding: 12px 14px; margin-top: 12px; box-shadow: var(--shadow-sm); }
.mock-section b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); margin-bottom: 8px; }
.mock-line { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-3); padding: 4px 0; }
.mock-line .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; flex: none; }
.mock-line .dot .i { width: 14px; height: 14px; }
.mock-bar { height: 7px; border-radius: 4px; background: var(--bg-2); margin: 6px 0; }
.mock-qr { position: absolute; left: -84px; bottom: 56px; width: 148px; background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); text-align: center; }
.mock-qr svg { width: 100%; height: auto; display: block; }
.mock-qr span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 6px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { margin-top: 24px; }
}
@media (max-width: 520px) { .mock-qr { left: -20px; width: 120px; bottom: 30px; } .mock { width: 280px; } .mock-phone { width: 280px; } }

.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { font-size: 13px; font-weight: 700; color: var(--brand-700); text-transform: uppercase; letter-spacing: .1em; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin: 10px 0 14px; }
.section-head p { font-size: 17px; color: var(--muted); }

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.path { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.path-featured { border-color: var(--brand-200); box-shadow: 0 0 0 4px var(--brand-50), var(--shadow); }
.path .path-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); }
.path-featured .path-icon { background: var(--brand-700); color: #fff; }
.path h3 { font-size: 22px; margin: 20px 0 8px; }
.path > p { color: var(--muted); }
.path .tag { position: absolute; top: 24px; right: 24px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--brand-600); margin-top: 3px; width: 16px; height: 16px; }
.ticks li.no .i { color: var(--subtle); }
.ticks li.no { color: var(--muted); }
.path .btn { margin-top: auto; }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 26px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.feature .f-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--brand-100); }
.feature h3 { font-size: 16.5px; margin: 16px 0 6px; }
.feature p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 4px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan-premium { background: linear-gradient(180deg, #0f172a, #132a3a); color: #cbd5e1; border-color: #0f172a; box-shadow: var(--shadow-lg); }
.plan-premium h3, .plan-premium .price { color: #fff; }
.plan-premium .ticks .i { color: var(--brand-200); }
.plan h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.plan .price { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.plan .price-note { font-size: 14px; color: var(--muted); margin-top: 4px; }
.plan-premium .price-note { color: #94a3b8; }
.plan .btn { margin-top: auto; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

.cta-band { border-radius: var(--r-xl); padding: 48px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
.cta-band p { color: var(--brand-100); margin: 12px auto 28px; max-width: 520px; font-size: 16px; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--brand-800); --btn-bd: #fff; }
.cta-band .btn:hover { background: var(--brand-50); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; font-size: 13.5px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--ink); }

/* =========================================================== quick vCard */

.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 15.5px; max-width: 640px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.crumbs { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.crumbs:hover { color: var(--ink); text-decoration: none; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-bottom: 72px; }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } .sticky { position: static; } }

.qr-panel { padding: 24px; }
.qr-frame { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.qr-frame svg { width: 100%; height: 100%; display: block; }
.qr-empty { text-align: center; color: var(--subtle); font-size: 14px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-empty .i { width: 44px; height: 44px; stroke-width: 1.4; }
.qr-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.qr-panel .btn-row .btn { flex: 1; }
.note-box { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.note-box .i { color: var(--brand-600); margin-top: 2px; }

/* ================================================================== auth */

.auth { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-aside { position: relative; overflow: hidden; color: #fff; padding: 64px; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(600px 400px at 100% 0%, rgba(94, 234, 212, .25), transparent 60%), linear-gradient(160deg, var(--brand-900), var(--brand-700)); }
.auth-aside h2 { color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -.03em; max-width: 440px; }
.auth-aside p { color: var(--brand-100); margin-top: 14px; max-width: 420px; font-size: 16px; }
.auth-aside .ticks { color: #e2fdf8; margin-top: 32px; }
.auth-aside .ticks .i { color: var(--brand-200); }
.auth-main { display: grid; place-items: center; padding: 48px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.auth-card .sub { color: var(--muted); margin: 8px 0 28px; }
.auth-card form { display: flex; flex-direction: column; gap: 18px; }
.auth-switch { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter span { height: 4px; border-radius: 2px; background: var(--line); transition: background .2s; }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: #ef4444; }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: #10b981; }
.pw-meter[data-score="4"] span { background: var(--brand-700); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* ============================================================= dashboard */

.app-main { padding-bottom: 72px; }
.usage { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.meter { width: 140px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--brand-600); border-radius: 3px; }
.meter.full > span { background: #f59e0b; }
.plan-strip { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 24px; }
.plan-strip .copy { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.plan-strip strong { color: var(--ink); }

.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
@media (max-width: 420px) { .profiles { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.pcard-top { display: flex; gap: 14px; align-items: center; padding: 20px 20px 0; }
.pcard-id { min-width: 0; flex: 1; }
.pcard-id h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-id p { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-mid { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 18px 20px; align-items: center; }
.pcard-qr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; aspect-ratio: 1; cursor: zoom-in; }
.pcard-qr svg { width: 100%; height: 100%; display: block; }
.pcard-facts { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.pcard-facts .fact { display: flex; align-items: center; gap: 8px; }
.pcard-facts .fact .i { width: 15px; height: 15px; color: var(--subtle); }
.pcard-link { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-foot { display: flex; gap: 6px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; }
.pcard-foot .spacer { flex: 1; }

.empty { text-align: center; padding: 64px 24px; }
.empty .empty-icon { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 20px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1px var(--brand-100); }
.empty .empty-icon .i { width: 32px; height: 32px; stroke-width: 1.6; }
.empty h2 { font-size: 22px; }
.empty p { color: var(--muted); max-width: 440px; margin: 8px auto 24px; }

.qr-dialog-frame { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; width: 240px; margin: 4px auto 16px; }
.qr-dialog-frame svg { width: 100%; height: auto; display: block; }
.link-box { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; }
.link-box code { background: none; padding: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--ink-3); }

/* ================================================================ editor */

.editor-bar { position: sticky; top: var(--header-h); z-index: 30; background: rgba(248, 250, 252, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.editor-bar .container { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.editor-bar h1 { font-size: 18px; font-weight: 700; }
.editor-bar .status { font-size: 13px; color: var(--muted); }
.editor-bar .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.editor { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 96px; align-items: start; }
.editor-nav { position: sticky; top: calc(var(--header-h) + 92px); display: flex; flex-direction: column; gap: 2px; }
.editor-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.editor-nav a:hover { background: var(--bg-2); text-decoration: none; color: var(--ink); }
.editor-nav a.active { background: var(--surface); color: var(--brand-800); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.editor-nav a .i { width: 16px; height: 16px; color: var(--subtle); }
.editor-nav a.active .i { color: var(--brand-600); }
.editor-nav a .lock { margin-left: auto; width: 13px; height: 13px; color: var(--gold); }
.editor-nav .nav-qr { margin-top: 20px; padding: 14px; text-align: center; }
.editor-nav .nav-qr .qr-box { background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 8px; margin-bottom: 10px; }
.editor-nav .nav-qr .qr-box svg { width: 100%; height: auto; display: block; }
.editor-nav .nav-qr .btn-row { flex-wrap: nowrap; }
.editor-sections { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.esec { scroll-margin-top: calc(var(--header-h) + 92px); }
.esec-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.esec-head .esec-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); flex: none; }
.esec-head h2 { font-size: 16px; }
.esec-head p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.esec-head .badge { margin-left: auto; }
.esec-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.esec.locked .esec-body { position: relative; }
.locked-panel { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: linear-gradient(90deg, #fffbeb, #fff); flex-wrap: wrap; }
.locked-panel p { flex: 1; min-width: 220px; font-size: 14px; color: var(--ink-3); }
.locked-panel .i { color: var(--gold); }
.editor-sub { font-size: 13px; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

.photo-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.photo-drop { border-radius: 50%; }
.photo-drop.drag { box-shadow: 0 0 0 4px var(--brand-200); }
.photo-actions { display: flex; flex-direction: column; gap: 8px; }

.items { display: flex; flex-direction: column; gap: 14px; }
.item { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.item-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.item-head .item-title { font-size: 14px; font-weight: 600; color: var(--ink-2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-head .item-title.placeholder { color: var(--subtle); font-weight: 500; }
.item-body { padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item-body .full { grid-column: 1 / -1; }
.item-body .input, .item-body .select, .item-body .textarea { background: #fff; }
@media (max-width: 640px) { .item-body { grid-template-columns: 1fr; } }
.add-btn { border-style: dashed; color: var(--brand-700); background: transparent; justify-content: center; }
.add-btn:hover { background: var(--brand-50); border-color: var(--brand-600); color: var(--brand-800); }
.list-count { font-size: 12.5px; color: var(--subtle); }
.period { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px; min-height: 48px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: text; }
.tags:focus-within { border-color: var(--brand-600); box-shadow: var(--focus); }
.tags input { border: 0; outline: none; font: inherit; font-size: 14.5px; flex: 1; min-width: 140px; padding: 4px; background: transparent; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 11px; border-radius: 999px; background: var(--brand-50); color: var(--brand-900); font-size: 13.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--brand-100); }
.tag button { border: 0; background: none; cursor: pointer; color: var(--brand-700); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; padding: 0; }
.tag button:hover { background: var(--brand-100); }
.tag button .i { width: 13px; height: 13px; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch .chip { width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); display: grid; place-items: center; color: #fff; transition: transform .1s, box-shadow .15s; }
.swatch .chip .i { opacity: 0; width: 18px; height: 18px; }
.swatch input:checked + .chip { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.swatch input:checked + .chip .i { opacity: 1; }
.swatch input:focus-visible + .chip { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-500); }
.chip-teal { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.chip-blue { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.chip-indigo { background: linear-gradient(135deg, #4338ca, #818cf8); }
.chip-violet { background: linear-gradient(135deg, #6d28d9, #c084fc); }
.chip-rose { background: linear-gradient(135deg, #be123c, #fb7185); }
.chip-amber { background: linear-gradient(135deg, #b45309, #fbbf24); }
.chip-emerald { background: linear-gradient(135deg, #047857, #34d399); }
.chip-slate { background: linear-gradient(135deg, #0f172a, #64748b); }

@media (max-width: 960px) {
  .editor { grid-template-columns: 1fr; }
  .editor-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .editor-nav a { white-space: nowrap; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .editor-nav .nav-qr { display: none; }
}

/* =============================================================== account */

.account-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 760px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 12px 20px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }
.danger { border-color: #fecaca; }
.danger .card-head { border-color: #fecaca; }
.danger .card-head h2 { color: var(--err); }

/* ================================================================= error */

.error-page { display: grid; place-items: center; text-align: center; padding: 96px 24px; }
.error-page .code { font-size: 14px; font-weight: 700; color: var(--brand-700); letter-spacing: .1em; }
.error-page h1 { font-size: 32px; margin: 10px 0; }
.error-page p { color: var(--muted); margin-bottom: 28px; }

/* Specificity fixes: header buttons keep their button styling. */
.site-header .nav-toggle { display: none; }
@media (max-width: 820px) { .site-header .nav-toggle { display: inline-flex; } }
.nav a.btn-primary { color: #fff; background: var(--brand-700); padding: 7px 12px; }
.nav a.btn-primary:hover { color: #fff; background: var(--brand-800); }
