/* Pub Premier — pubpremier.me design system */

:root {
  --navy-950: #050a24;
  --navy-900: #0a1440;
  --navy-800: #111d57;
  --ink: #0b1530;
  --text: #33415f;
  --muted: #5f6f8f;
  --line: #e4e9f4;
  --soft: #f5f7fc;
  --white: #ffffff;
  --blue: #2f5bff;
  --blue-700: #1d3fae;
  --red: #ef3340;
  --violet: #7c3aed;
  --pink: #e0458f;
  --green: #12b76a;
  --brand: linear-gradient(120deg, #2f5bff 0%, #7c3aed 52%, #e0458f 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 21, 48, 0.04), 0 12px 32px rgba(11, 21, 48, 0.07);
  --shadow-lg: 0 30px 80px rgba(8, 16, 50, 0.18);
  --max: 1200px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}

.skip-link:focus {
  left: 12px;
}

:focus-visible {
  outline: 3px solid rgba(47, 91, 255, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(228, 233, 244, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 54px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a,
.nav-links button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links a[aria-current="page"] {
  background: var(--soft);
  text-decoration: none;
}

.nav-links .caret {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 320px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .caret,
.has-dropdown.open .caret {
  transform: rotate(180deg);
}

.dropdown a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 12px;
  white-space: normal;
}

.dropdown a strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.dropdown a span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.dropdown .icon-chip {
  flex: none;
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-login {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  padding: 9px 12px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 12px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  background-size: 140% 100%;
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.28);
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.36);
}

.btn-dark {
  color: #fff;
  background: var(--ink);
}

.btn-light {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 14.5px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #c9d3f0;
  background: var(--navy-950);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px 420px at 12% 8%, rgba(47, 91, 255, 0.45), transparent 70%),
    radial-gradient(520px 380px at 92% 18%, rgba(124, 58, 237, 0.35), transparent 70%),
    radial-gradient(640px 420px at 78% 110%, rgba(224, 69, 143, 0.32), transparent 70%),
    linear-gradient(180deg, #050a24 0%, #0a1440 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero h1,
.hero h2 {
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 96px;
}

.hero-lead {
  font-size: 1.2rem;
  color: #c3cdec;
  max-width: 590px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: #eef2ff;
  border: 1px solid #dde4ff;
  margin-bottom: 20px;
}

.hero .eyebrow {
  color: #dbe3ff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: #aab6db;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  width: 16px;
  height: 16px;
  color: #34d399;
}

.page-hero {
  padding: 84px 0 76px;
}

.page-hero .container {
  max-width: 900px;
  text-align: center;
}

.page-hero .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.page-hero .hero-ctas {
  justify-content: center;
}

.breadcrumbs {
  font-size: 13.5px;
  margin-bottom: 18px;
  color: #93a1c9;
}

.breadcrumbs a {
  color: #c3cdec;
}

/* Auction console (illustrative) */

.console {
  position: relative;
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #dbe3ff;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 13px;
}

.console-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  color: #fff;
}

.console-tag {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fb0e6;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px 9px;
}

.bid-row {
  display: grid;
  grid-template-columns: 112px 1fr 64px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  transition: background 0.3s;
}

.bid-row + .bid-row {
  margin-top: 6px;
}

.bid-row.win {
  background: rgba(52, 211, 153, 0.12);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}

.bid-name {
  font-weight: 650;
  color: #e7ecff;
}

.bid-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bid-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--brand);
  transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bid-row.win .bid-bar span {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.bid-cpm {
  text-align: right;
  font-family: var(--mono);
  font-weight: 600;
  color: #fff;
}

.console-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.console-stat {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.console-stat b {
  display: block;
  font-size: 18px;
  color: #fff;
  font-family: var(--mono);
}

.console-stat small {
  font-size: 11.5px;
  color: #9fb0e6;
}

.console-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: #8796c4;
  text-align: center;
}

/* ---------- Stats band ---------- */

.stats-band {
  position: relative;
  margin-top: -44px;
  z-index: 2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stat {
  padding: 26px 24px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Sections ---------- */

.section {
  padding: 104px 0;
}

.section.alt {
  background: var(--soft);
}

.section.dark {
  background: var(--navy-950);
  color: #c3cdec;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 340px at 0% 0%, rgba(47, 91, 255, 0.3), transparent 70%),
    radial-gradient(520px 340px at 100% 100%, rgba(224, 69, 143, 0.25), transparent 70%);
}

.section.dark h2,
.section.dark h3 {
  color: #fff;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--muted);
}

.section.dark .section-head p {
  color: #aab6db;
}

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(11, 21, 48, 0.04), 0 22px 50px rgba(11, 21, 48, 0.1);
  border-color: #d6def0;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 750;
  font-size: 15px;
}

.section.dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.section.dark .card p {
  color: #aab6db;
}

.icon-chip {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(47, 91, 255, 0.25);
}

.icon-chip svg {
  width: 24px;
  height: 24px;
}

.icon-chip.sm {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  margin-bottom: 0;
  box-shadow: none;
}

.icon-chip.sm svg {
  width: 19px;
  height: 19px;
}

.audience-card {
  display: flex;
  flex-direction: column;
  padding: 34px;
}

.audience-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.audience-card li,
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 9px;
  font-size: 15.5px;
  color: var(--text);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-card li svg,
.check-list li svg {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  color: var(--green);
}

.audience-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.audience-card .spacer {
  flex: 1;
  min-height: 22px;
}

/* Split feature rows */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split + .split {
  margin-top: 96px;
}

.split.reverse > :first-child {
  order: 2;
}

.panel {
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(160deg, #0a1440, #140a33);
  color: #c9d3f0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(closest-side, rgba(47, 91, 255, 0.35), transparent);
  transform: translate(-30%, -30%);
  pointer-events: none;
}

.panel > * {
  position: relative;
}

/* Flow diagram */

.flow {
  display: grid;
  gap: 12px;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14.5px;
}

.flow-node b {
  display: block;
  color: #fff;
  font-size: 15px;
}

.flow-node small {
  color: #9fb0e6;
}

.flow-arrow {
  text-align: center;
  color: #6f80b8;
  font-size: 13px;
  line-height: 1;
}

.flow-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.flow-split .flow-node {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}

/* Chips row */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
}

.chip svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

/* Formats */

.format {
  padding: 22px;
}

.format-visual {
  height: 120px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px dashed #cfd8ec;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.format-visual i {
  position: absolute;
  border-radius: 6px;
  background: var(--brand);
  opacity: 0.85;
}

.format-visual .ln {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 7px;
  border-radius: 4px;
  background: #dfe5f3;
}

/* Code block */

.code {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  background: #0b1230;
  color: #d7e3ff;
  border-radius: 14px;
  padding: 18px 20px;
  overflow-x: auto;
  white-space: pre;
}

.code .c {
  color: #7d8bb8;
}

/* FAQ */

.faq {
  max-width: 860px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 4px 22px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.faq details[open] {
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--ink);
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 500;
  color: var(--blue);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details > div {
  padding: 0 0 18px;
  color: var(--muted);
}

/* CTA band */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 64px;
  color: #dbe3ff;
  background: linear-gradient(120deg, #0a1440 0%, #241063 55%, #5b1554 100%);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta-band p {
  margin: 0;
  color: #c3cdec;
}

.cta-band .hero-ctas {
  justify-content: flex-end;
}

/* ---------- Forms ---------- */

.form-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.form-aside .check-list li {
  font-size: 16px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-card h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.form-card .form-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field.full {
  grid-column: 1 / -1;
}

.field small {
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  background: #f9fbff;
  border: 1px solid #d8e0f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.12);
}

.field .invalid {
  border-color: #e5484d;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option {
  position: relative;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d8e0f0;
  background: #f9fbff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.option input:checked + span {
  color: #fff;
  border-color: transparent;
  background: var(--brand);
}

.option input:focus-visible + span {
  outline: 3px solid rgba(47, 91, 255, 0.4);
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 4px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  flex: none;
  accent-color: var(--blue);
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile {
  margin-top: 16px;
  min-height: 66px;
}

.form-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f1;
  border: 1px solid #f6c8c8;
  color: #b42318;
  font-size: 14.5px;
  font-weight: 600;
}

.form-card .btn-primary {
  width: 100%;
  margin-top: 18px;
  padding: 15px 22px;
  font-size: 16px;
}

.form-done {
  text-align: center;
  padding: 30px 10px;
}

.form-done .tick {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #12b76a, #0f8a4b);
  box-shadow: 0 14px 30px rgba(18, 183, 106, 0.3);
}

.form-done .tick svg {
  width: 34px;
  height: 34px;
}

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Article / legal ---------- */

.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0 1.6em;
  font-size: 15px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  color: var(--ink);
  background: var(--soft);
}

.prose .meta {
  color: var(--muted);
  font-size: 14.5px;
}

.prose .callout {
  border-left: 4px solid var(--blue);
  background: #f3f6ff;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 1.4em 0;
}

.toc {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 0 0 2em;
  font-size: 15px;
}

.toc ol {
  margin: 8px 0 0;
}

.article-card {
  display: flex;
  flex-direction: column;
}

.article-card .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  background: #f3edff;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 14px;
}

.article-card h3 a {
  color: var(--ink);
}

/* Contact cards */

.contact-card {
  text-align: left;
}

.contact-card h3 {
  margin-top: 4px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: #aab6db;
  padding: 80px 0 28px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
}

.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 320px;
}

.site-footer h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #aab6db;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: #8796c4;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pulse-dot,
  .bid-bar span {
    animation: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav-links,
  .nav-actions .nav-login {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
  }
  .nav {
    gap: 12px;
  }
  .nav-actions {
    margin-left: auto;
  }
  .site-header.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .site-header.menu-open .nav-links a,
  .site-header.menu-open .nav-links button {
    width: 100%;
    justify-content: space-between;
    padding: 13px 12px;
  }
  .site-header.menu-open .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 0 0 6px 10px;
    min-width: 0;
    display: none;
  }
  .site-header.menu-open .has-dropdown.open .dropdown {
    display: block;
  }
  .site-header.menu-open .nav-links .mobile-only {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

.nav-links .mobile-only {
  display: none;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }
  .section {
    padding: 76px 0;
  }
  .grid-3,
  .grid-2,
  .split,
  .form-wrap,
  .cta-band {
    grid-template-columns: 1fr;
  }
  .split {
    gap: 36px;
  }
  .split.reverse > :first-child {
    order: 0;
  }
  .cta-band {
    padding: 40px 28px;
  }
  .cta-band .hero-ctas {
    justify-content: flex-start;
  }
  /* Visitors from ads land on phones: show the form before the explanation. */
  .form-wrap > :last-child {
    order: -1;
  }
  .page-hero {
    padding: 56px 0 52px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .flow-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .nav {
    height: 68px;
  }
  .site-header.menu-open .nav-links {
    top: 68px;
  }
  .brand img {
    height: 46px;
  }
  .nav-actions .btn {
    display: none;
  }
  .hero-grid {
    padding-top: 64px;
    padding-bottom: 80px;
  }
  .nav-actions {
    display: none;
  }
  .menu-toggle {
    margin-left: auto;
  }
  .grid-4,
  .steps,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px 18px;
  }
  .bid-row {
    grid-template-columns: 92px 1fr 56px;
    gap: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card {
    padding: 24px;
  }
}
