/* NewBrad marketing — no CDN. Fast, responsive, Publytics-matched. */
:root {
  --navy: #0b5580;
  --navy-2: #002236;
  --navy-3: #0a3a58;
  --footer: #121c2d;
  --orange: #f79332;
  --orange-2: #ffd7a8;
  --sky: #85d2f8;
  --ink: #0f172a;
  --muted: #4b5563;
  --line: #e5e7eb;
  --bg: #fff;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  z-index: 100;
  width: 100%;
  color: #fff;
}
.site-header.overlay { position: absolute; top: 0; left: 0; padding: 4px 0; }
.site-header.solid { position: relative; background: linear-gradient(135deg, var(--navy), var(--navy-2)); padding: 4px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.logo { font-weight: 800; letter-spacing: -0.02em; font-size: 1.15rem; color: #fff; white-space: nowrap; }
.nav-desk, .header-auth { display: none; }
.nav-desk ul, .header-auth ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.nav-desk a, .header-auth a { color: #fff; padding: 8px 18px; transition: color .2s; }
.nav-desk a:hover, .header-auth a:hover { color: var(--sky); }
.btn-ghost {
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 8px 16px !important;
}
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }
.nav-toggle {
  background: none; border: 0; color: #fff; padding: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; display: block; }

.drawer { display: none; }
.drawer.open { display: block; position: fixed; inset: 0; z-index: 200; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.drawer-panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(288px, 86vw);
  background: var(--navy); color: #fff; padding: 24px; box-shadow: -8px 0 24px rgba(0,0,0,.25);
  display: flex; flex-direction: column; gap: 16px; font-weight: 600;
}
.drawer-close { background: none; border: 0; color: #fff; font-size: 1.25rem; align-self: flex-end; }

@media (min-width: 1024px) {
  .site-header.overlay { padding: 20px 0; }
  .nav-desk { display: flex; flex: 1; justify-content: center; }
  .header-auth { display: flex; }
  .nav-toggle { display: none; }
}

/* Buttons */
.btn-orange {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 180px; padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--orange); color: #fff; font-weight: 600;
  box-shadow: 0 0 18px rgba(247,147,50,.5);
}
.btn-orange:hover { box-shadow: 0 0 23px rgba(247,147,50,.8); }
.btn-orange svg { width: 20px; height: 20px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  padding: 112px 0 80px; color: #fff; text-align: center;
}
.hero-inner { padding-top: 8px; }
.hero-art {
  position: absolute; pointer-events: none; opacity: .45; max-height: 390px;
}
.hero-art.left { bottom: 0; left: 0; width: min(700px, 90%); }
.hero-art.right { display: none; }
.kicker { color: #bae6fd; font-size: .875rem; font-weight: 600; letter-spacing: .04em; margin: 0 0 16px; }
.hero h1 {
  margin: 0 auto; max-width: 52rem; font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.03em;
}
.hero h1 em, .em-orange {
  font-style: italic; font-weight: 800;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 24px auto 0; max-width: 36rem; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.hero-cta { margin-top: 32px; }
.hero-shot {
  margin: 48px auto 0; max-width: 900px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12);
  background: var(--navy-3);
}
.hero-shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  padding: 88px 0 56px; color: #fff; text-align: center;
}
.band h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.band p { margin: 12px auto 0; max-width: 36rem; color: rgba(255,255,255,.85); }

/* Sections */
.section { padding: 64px 0; }
.section-lg { padding: 80px 0; }
.bg-white { background: #fff; }
.bg-soft { background: #f8fafc; }
.bg-navy { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.section h2, .h2 {
  margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em;
}
.lead { color: var(--muted); max-width: 40rem; }
.grid-3 { display: grid; gap: 28px; }
.grid-2 { display: grid; gap: 32px; align-items: center; }
.card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); border: 1px solid #f1f5f9;
}
.card h3, .benefit h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: #0c4a6e; }
.card p, .benefit p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.shot {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15,23,42,.08);
}
.shot img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.bullets { margin: 16px 0 0; padding: 0; list-style: none; }
.bullets li {
  position: relative; padding: 6px 0 6px 22px; color: var(--muted); font-size: .95rem;
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--orange);
}
.kicker-sm { color: #0369a1; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.bg-navy .kicker-sm { color: #bae6fd; }

.steps { display: grid; gap: 24px; }
.steps li { list-style: none; }
.steps { padding: 0; margin: 32px 0 0; }
.step-label { color: #bae6fd; font-size: .875rem; font-weight: 600; margin: 0 0 8px; }
.step-label span { font-style: italic; color: #7dd3fc; }
.steps p { margin: 0; color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.6; }
.steps-head { text-align: right; }

.metrics { display: grid; gap: 16px; }
.metric {
  background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; padding: 16px 18px;
}
.metric strong { display: block; color: #0c4a6e; font-size: .95rem; }
.metric span { display: block; margin-top: 4px; color: var(--muted); font-size: .85rem; line-height: 1.5; }

.center { text-align: center; }
.mt-8 { margin-top: 32px; }
.mt-6 { margin-top: 24px; }

/* 404 */
.notfound {
  min-height: 58vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 64px 16px 80px;
}
.notfound .code {
  margin: 0; font-size: clamp(6rem, 18vw, 10rem); font-weight: 800; line-height: .9;
  color: var(--orange); letter-spacing: -0.04em;
}
.notfound h1 { margin: 16px 0 0; font-size: 1.75rem; font-weight: 700; color: #1f2937; }
.notfound p { margin: 12px 0 0; color: #6b7280; max-width: 28rem; }
.notfound .btn-orange { margin-top: 28px; }

/* Footer */
.site-footer {
  position: relative; overflow: hidden; background: var(--footer); color: #fff;
}
.site-footer .container { position: relative; padding-top: 40px; padding-bottom: 24px; }
.foot-art { position: absolute; top: 80px; left: 0; width: min(500px, 80%); opacity: .35; pointer-events: none; }
.foot-brand { margin: 24px 0; }
.foot-brand a { color: #fff; font-weight: 800; font-size: 1.1rem; }
.foot-brand p { margin: 4px 0 0; font-size: .75rem; color: rgba(255,255,255,.7); }
.foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; }
.foot-cols ul { list-style: none; margin: 0 0 28px; padding: 0; width: 50%; font-size: .875rem; }
.foot-cols li { margin-bottom: 14px; }
.foot-cols li.head { font-size: 1rem; font-weight: 600; }
.foot-cols a:hover { color: var(--sky); }
.foot-copy { display: block; border-top: 1px solid rgba(217,217,217,.3); color: rgba(255,255,255,.6); font-size: .875rem; padding: 16px 0; }

/* Article / blog / contact */
.prose { max-width: 42rem; margin: 0 auto; padding: 48px 16px 80px; color: #374151; line-height: 1.7; }
.prose h2 { font-size: 1.35rem; margin: 1.6rem 0 .5rem; color: var(--ink); }
.prose h3 { font-size: 1.1rem; margin: 1.2rem 0 .4rem; color: var(--ink); }
.prose p { margin: .8rem 0; }
.prose a { color: #0369a1; text-decoration: underline; }
.prose ul { padding-left: 1.2rem; }
.post-list { max-width: 42rem; margin: 0 auto; padding: 48px 16px 80px; }
.post-card {
  display: block; margin-bottom: 24px; padding: 24px; border-radius: 12px;
  border: 1px solid #f3f4f6; background: #fff;
}
.post-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.post-card .date { font-size: .75rem; font-weight: 600; color: #0369a1; }
.post-card h2 { margin: 4px 0 0; font-size: 1.25rem; }
.post-card p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.contact-mail {
  position: relative; display: flex; align-items: center; width: 100%;
  margin: 16px auto 0; padding: 16px 48px 16px 16px;
  border-radius: 999px; background: rgba(255,255,255,.2);
}
.contact-mail a { color: #fff; font-weight: 600; text-decoration: underline; word-break: break-all; }
.copy-btn {
  position: absolute; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.4); color: #fff;
}
.form { max-width: 36rem; margin: 48px auto 80px; padding: 0 16px; }
.form h2 { margin: 0 0 8px; }
.form .hint { color: var(--muted); margin: 0 0 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: #334155; margin-bottom: 4px; }
.mkt-input, .auth-input {
  border: 1px solid #d1d5db; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.05);
  display: block; width: 100%; margin-top: 4px; padding: 8px 12px; font-size: .95rem; background: #fff;
}
.mkt-input:focus, .auth-input:focus {
  outline: none; border-color: #7dd3fc; box-shadow: 0 0 0 3px rgba(14,165,233,.2);
}
textarea.mkt-input { min-height: 120px; resize: vertical; }
.flash { margin: 12px 0; padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
.flash.ok { background: #ecfdf5; color: #065f46; }
.flash.error { background: #fef2f2; color: #991b1b; }

.auth-btn {
  display: inline-flex; align-items: center; padding: 8px 16px;
  background: #0c4a6e; color: #fff; border-radius: 6px; font-weight: 600;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; border: 0;
}

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .foot-cols ul { width: 25%; }
  .btn-orange { min-width: 243px; padding: 12px 28px; }
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.05fr .95fr; }
  .grid-2.flip { grid-template-columns: .95fr 1.05fr; }
  .hero-art.right { display: block; position: absolute; right: 0; bottom: 80px; width: 500px; opacity: .4; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
  .hero { padding: 96px 0 56px; }
  .section, .section-lg { padding: 48px 0; }
  .steps-head { text-align: left; }
}

/* Auth pages — Publytics login / register / insert-site / verify */
.auth-page { min-height: 100vh; overflow-x: hidden; background: #fff; }
.auth-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, #0b5580, #002236);
  padding: 80px 0 64px;
}
.auth-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 16px;
  max-width: 36rem;
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  letter-spacing: -0.02em;
}
.auth-map {
  position: absolute;
  pointer-events: none;
  max-height: 390px;
  width: min(700px, 92vw);
  bottom: 0;
  left: 0;
  opacity: .85;
}
.auth-map-r { display: none; }
.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}
.auth-card {
  width: 100%;
  max-width: 28rem;
  padding: 24px;
  margin-top: -48px;
  z-index: 10;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.08);
}
.auth-copy {
  margin: 0;
  padding: 96px 0 80px;
  color: #9ca3af;
  font-weight: 500;
  font-size: .95rem;
  text-align: center;
}
.auth-center { text-align: center; }
.auth-form { margin-top: 16px; }
.auth-form-flush { margin-top: 0; }
.auth-field { margin-top: 16px; }
.auth-form > .auth-field:first-child { margin-top: 0; }
.auth-label {
  display: block;
  font-weight: 500;
  font-size: .875rem;
  color: #374151;
}
.auth-input, select.auth-input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 12px;
  font-size: 1rem;
  line-height: 1.5;
  background: #fff;
  color: #111827;
  min-height: 42px;
}
select.auth-input { appearance: auto; cursor: pointer; }
.auth-input:focus, select.auth-input:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(199, 210, 254, .7);
}
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  font-size: .875rem;
  color: #4b5563;
  line-height: 1.45;
  cursor: pointer;
}
.auth-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #4f46e5;
  border-radius: 4px;
}
.auth-check a { color: #0284c7; text-decoration: underline; }
.auth-check a:hover { color: #0c4a6e; }
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 16px;
}
.auth-actions-split { justify-content: space-between; }
.auth-link {
  background: none;
  border: 0;
  padding: 0;
  font-size: .875rem;
  color: #4b5563;
  text-decoration: underline;
  cursor: pointer;
}
.auth-link:hover { color: #111827; }
.auth-link-sky {
  font-size: .875rem;
  color: #0284c7;
  text-decoration: underline;
}
.auth-link-sky:hover { color: #0c4a6e; }
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #0c4a6e;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 0;
  white-space: nowrap;
  min-height: 38px;
}
.auth-btn:hover { background: #0369a1; }
.auth-btn:disabled { opacity: .45; cursor: not-allowed; }
.auth-note {
  margin: 0 0 16px;
  font-size: .875rem;
  color: #4b5563;
  line-height: 1.55;
}
.auth-warn {
  margin: 0 0 16px;
  font-size: .875rem;
  color: #92400e;
  background: #fffbeb;
  border-radius: 6px;
  padding: 10px 12px;
  line-height: 1.5;
}
.auth-snippet {
  margin: 0 0 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  background: #0f172a;
  color: #bae6fd;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.auth-flashes { margin-bottom: 12px; }
.auth-flash {
  font-size: .875rem;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0 0 8px;
}
.auth-flash.is-error { background: #fef2f2; color: #b91c1c; }
.auth-flash.is-ok { background: #ecfdf5; color: #047857; font-weight: 500; }
.auth-verify-box { margin: 8px 0 16px; }

@media (min-width: 640px) {
  .auth-hero { padding: 128px 0 128px; }
  .auth-card { margin-top: -96px; }
}
@media (min-width: 768px) {
  .auth-wrap { padding: 0; }
  .auth-card { width: 50%; max-width: none; }
}
@media (min-width: 1024px) {
  .auth-hero h1 { font-size: 3rem; }
  .auth-card { width: 33.333%; margin-top: -128px; }
  .auth-map-l { width: 500px; }
  .auth-map-r {
    display: block;
    left: auto;
    right: 0;
    bottom: 80px;
    width: 500px;
    opacity: .7;
  }
}
@media (max-width: 420px) {
  .auth-hero { padding: 88px 0 56px; }
  .auth-hero h1 { font-size: 1.85rem; padding: 8px 12px; }
  .auth-card { padding: 20px 16px; margin-top: -36px; }
  .auth-actions { justify-content: space-between; }
  .auth-copy { padding: 56px 0 48px; }
}
