/* Adovate — site styles */

@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* brand — sampled from the Adovate logo */
  --blue: #3878B8;
  --blue-bright: #4A8FD6;
  --blue-deep: #24568A;
  --night: #0E2440;
  --ink: #0E2440;
  --ink-soft: #4A5870;
  --page: #F5F7FA;
  --paper: #FFFFFF;
  --line: #D7E0EA;
  --sky: #5AB9E1;
  --sun: #E9C841;
  --berry: #C9386A;
  --leaf: #5AB843;
  --plum: #5A3A6A;
  --red: #C93844;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --inset: clamp(8px, 1.3vw, 22px);
  --section: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -0.025em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.65rem); margin-bottom: .5em; }
h3 { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.big { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.5; }
.center { text-align: center; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.eyebrow { color: var(--blue); font-weight: 700; font-size: 1.05rem; margin-bottom: .6em; letter-spacing: 0; }
.eyebrow-berry { color: var(--berry); }
.eyebrow-light { color: var(--sky); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  font: 600 1rem/1 var(--font);
  color: #fff; background: var(--blue); border: 1.5px solid transparent;
  border-radius: 12px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { color: #fff; }
.btn-accent { background: var(--blue); }
.btn-accent:hover { background: var(--blue-bright); }
.btn-dark { background: var(--night); }
.btn-dark:hover { background: var(--blue-deep); }
.btn-glass { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.24); }
.btn-glass:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 1px; text-decoration: none; color: var(--blue); font: 800 1.45rem/1 var(--font); letter-spacing: .07em; flex: none; }
.logo:hover { color: var(--blue); }
.logo-o { width: 1em; height: 1em; margin: 0 .05em; }
.logo-small { font-size: 1.15rem; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--sky), var(--sun) 45%, var(--berry) 75%, var(--leaf)); }

/* ---------- floating pill menu: narrows as you scroll ---------- */
.navbar { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 16px;
  max-width: 1180px; margin: 0 auto;
  padding: 10px 10px 10px 22px; min-height: 64px;
  background: rgba(246, 248, 251, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid #CFD9E4; border-radius: 22px;
  box-shadow: 0 4px 24px rgba(14, 36, 64, .08);
  transition: max-width .7s cubic-bezier(.22, .8, .24, 1), box-shadow .4s ease, background-color .4s ease;
}
.navbar.scrolled .pill { max-width: 860px; background: rgba(255,255,255,.92); box-shadow: 0 10px 32px rgba(14, 36, 64, .14); }
.nav { display: flex; align-items: center; gap: 26px; margin: 0 auto; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; white-space: nowrap; }
.nav a:not(.btn):hover, .nav a.active { color: var(--blue); }
.nav-cta { flex: none; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .pill { flex-wrap: wrap; padding: 8px 8px 8px 18px; min-height: 58px; }
  .navbar.scrolled .pill { max-width: 1180px; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 42px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-toggle { order: 2; }
  .nav { order: 3; display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 6px 0 4px; }
  .pill:has(.nav.open) { background: #fff; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 4px; border-top: 1px solid var(--line); }
  .nav-cta-mobile { display: inline-flex; margin-top: 10px; }
}

/* ---------- hero ---------- */
.hero { padding: var(--inset) var(--inset) 0; }
.hero-panel {
  border-radius: 20px;
  padding: clamp(130px, 13vw, 170px) var(--gutter) clamp(220px, 22vw, 300px);
  color: #fff; text-align: center;
  background:
    radial-gradient(circle at 0% 0%, rgba(90, 185, 225, .28), rgba(90, 185, 225, 0) 48%),
    radial-gradient(circle at 100% 100%, rgba(201, 56, 106, .2), rgba(201, 56, 106, 0) 45%),
    var(--night);
}
.hero-copy { max-width: 900px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.06; letter-spacing: -0.035em; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: #C3D0E1; max-width: 40em; margin: 1.2em auto 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* hero demo: an article page with a live product ad, overlapping the panel */
.demo { margin: clamp(-260px, -19vw, -170px) auto 0; padding: 0 var(--gutter); max-width: 940px; position: relative; text-align: center; }
.article { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px 26px; box-shadow: 0 40px 80px -36px rgba(14, 36, 64, .45), 0 10px 0 -4px #E3E9F0; }
.art-chrome { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.art-chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.art-chrome i { margin-left: 14px; height: 18px; flex: 0 1 280px; border-radius: 9px; background: #EEF2F6; }
.art-body { display: grid; grid-template-columns: 1fr 230px; gap: 26px; align-items: start; }
.art-kicker { width: 90px; height: 10px; border-radius: 3px; background: var(--berry); opacity: .7; margin-bottom: 14px; }
.art-head { height: 18px; width: 92%; background: var(--night); border-radius: 4px; margin-bottom: 10px; }
.art-head.short { width: 60%; margin-bottom: 18px; }
.art-img { height: 150px; border-radius: 10px; margin-bottom: 18px; background: linear-gradient(135deg, #DDE7F1, #EEF2F6); }
.art-text i { display: block; height: 8px; background: var(--line); border-radius: 3px; margin-bottom: 11px; }
.art-text i.s { width: 80%; } .art-text i.xs { width: 45%; }

.ad { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.ad-label { position: absolute; top: 6px; right: 8px; font-size: .68rem; color: var(--ink-soft); background: rgba(255,255,255,.85); padding: 0 5px; border-radius: 3px; }
.ad-stage { background: #EEF3F8; }
.ad-art { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.ad-art .p { opacity: 0; transition: opacity .45s ease; }
.ad-art .p.on { opacity: 1; }
.ad-info { padding: 12px 14px 14px; }
.ad-name { font-weight: 600; font-size: .95rem; line-height: 1.3; margin: 0 0 4px; min-height: 2.6em; }
.ad-price { margin: 0; font-size: .92rem; }
.ad-price s { color: var(--ink-soft); }
.ad-price b { font-weight: 800; font-size: 1.2rem; color: var(--berry); margin-left: 4px; transition: color .3s; }
.ad-price b.flash { color: var(--leaf); }
.ad-stock { font-size: .78rem; color: #3E8F2C; font-weight: 600; margin: 2px 0 10px; }
.ad-stock.low { color: var(--red); }
.ad-cta { display: block; text-align: center; padding: 8px 0; background: var(--blue); color: #fff; font-weight: 600; font-size: .88rem; border-radius: 8px; }

.feed-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .92rem; color: var(--ink-soft); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); animation: pulse 2.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(90,184,67,.55); } 70% { box-shadow: 0 0 0 9px rgba(90,184,67,0); } 100% { box-shadow: 0 0 0 0 rgba(90,184,67,0); } }

@media (max-width: 640px) {
  .art-body { grid-template-columns: 1fr; }
  .art-img, .art-text { display: none; }
  .ad-col { width: 100%; max-width: 260px; margin: 0 auto; }
}

/* ---------- alternating feature rows ---------- */
section { scroll-margin-top: 100px; }
.row { padding: var(--section) 0 0; }
#what { padding-top: clamp(96px, 10vw, 140px); }
.row-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.rev .row-copy { order: 2; }
.row-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
@media (max-width: 900px) {
  .row-inner { grid-template-columns: 1fr; }
  .rev .row-copy { order: 0; }
}

.checks { list-style: none; margin: 1.4em 0 1.8em; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--ink-soft); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks svg { width: 18px; height: 18px; margin-top: 4px; color: var(--blue); }
.checks-berry svg { color: var(--berry); }

/* product-UI style cards */
.ui {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; font-size: .92rem; min-width: 0;
  box-shadow: 0 30px 60px -32px rgba(14, 36, 64, .35), 0 10px 0 -4px #E3E9F0;
}
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ui-head b { font-size: 1rem; }
.ui-foot { margin: 14px 0 0; font-size: .82rem; color: var(--ink-soft); }
.sync { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-soft); }
.sync .dot { width: 7px; height: 7px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; flex: none; }
.sw-blue { background: var(--blue); } .sw-sun { background: var(--sun); } .sw-berry { background: var(--berry); } .sw-leaf { background: var(--leaf); } .sw-grey { background: #B9C5D2; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: #EEF2F6; color: var(--ink-soft); white-space: nowrap; }
.tag-ok { background: #E6F4E2; color: #2F7A22; }
.tag-low { background: #FDF3D6; color: #8A6A0B; }
.tag-out { background: #F8E2E7; color: #A12A47; }
.chip { font-size: .78rem; font-weight: 600; color: var(--blue-deep); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; white-space: nowrap; }

.feed table { width: 100%; border-collapse: collapse; }
.feed th { text-align: left; font-size: .76rem; font-weight: 600; color: var(--ink-soft); padding: 0 0 8px; }
.feed td { padding: 11px 6px 11px 0; border-top: 1px solid #EDF1F5; vertical-align: middle; }
.feed td:first-child .sw { vertical-align: -1px; }
.feed td s { color: var(--ink-soft); margin-right: 4px; }
.feed tr.hl td { background: #FFFAE8; }
.feed tr.out td { color: #9AA6B6; }

.lines { list-style: none; margin: 0 0 18px; padding: 0; }
.lines li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid #EDF1F5; }
.lines li:first-child { border-top: 0; }
.lines li.muted { color: #9AA6B6; }
.li-name { display: inline-flex; align-items: center; font-weight: 500; }
.li-ring { width: 16px; height: 16px; margin-right: 10px; flex: none; }
.ui-sub { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); margin-bottom: 12px; }
.ui-sub span { font-size: .8rem; color: var(--ink-soft); }
.segs { display: flex; flex-wrap: wrap; gap: 8px; }
.segs span { font-size: .82rem; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: #EAF2FA; color: var(--blue-deep); }

.need { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.need li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.need svg { width: 16px; height: 16px; margin-top: 3px; color: var(--berry); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stages li { font-size: .74rem; color: var(--ink-soft); line-height: 1.3; padding-top: 10px; position: relative; }
.stages li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: #E3E9F0; }
.stages li.done::before { background: var(--berry); }
.stages li.done { color: var(--ink); font-weight: 600; }

.flow { display: grid; grid-template-columns: minmax(150px, 1fr) 22px minmax(104px, auto) 22px minmax(118px, auto); align-items: center; gap: 8px; }
.flow-col { display: grid; gap: 8px; }
.src { font-size: .84rem; font-weight: 500; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #FAFBFD; }
.src-best { border-color: var(--blue); background: #EAF2FA; color: var(--blue-deep); font-weight: 600; }
.flow-arrow { height: 2px; background: #B9C5D2; position: relative; }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 7px solid #B9C5D2; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.flow-engine { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px 14px; border-radius: 14px; background: var(--night); color: #fff; max-width: 130px; }
.flow-engine svg { width: 40px; height: 40px; }
.flow-engine b { font-size: .86rem; line-height: 1.25; }
.flow-engine span { font-size: .72rem; color: #AFC0D4; }
.flow-out { display: grid; gap: 8px; }
.flow-out span { font-size: .8rem; font-weight: 600; padding: 9px 10px; border-radius: 10px; background: #E6F4E2; color: #2F7A22; text-align: center; }
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; justify-items: stretch; }
  .flow-arrow { width: 2px; height: 22px; justify-self: center; }
  .flow-arrow::after { right: -4px; top: auto; bottom: -1px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #B9C5D2; border-bottom: 0; }
  .flow-engine { max-width: none; }
}

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; align-items: center; gap: 12px; font-size: .86rem; }
.bars i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.bars .w92 { width: 92%; } .bars .w74 { width: 74%; } .bars .w61 { width: 61%; } .bars .w38 { width: 38%; }

/* ---------- how it works ---------- */
.how { margin-top: var(--section); padding: var(--section) 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how h2 { max-width: 15em; }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }
.n1 { background: #E3F3FA; color: #2B88AE; } .n2 { background: #FBF4D9; color: #9A7A0C; } .n3 { background: #F8E2EA; color: var(--berry); } .n4 { background: #E6F4E2; color: #3E8F2C; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- dark inset panels (brand safety, contact) ---------- */
.panel-section { padding: var(--section) var(--inset) 0; }
.panel {
  max-width: 1880px; margin: 0 auto;
  border-radius: 20px; color: #fff;
  padding: clamp(64px, 8vw, 104px) var(--gutter);
  background:
    radial-gradient(circle at 0% 0%, rgba(90, 185, 225, .24), rgba(90, 185, 225, 0) 50%),
    var(--night);
}
.panel h2 { color: #fff; }
.safety { text-align: center; }
.safety p:not(.eyebrow) { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.55; color: #C3D0E1; max-width: 40em; margin: 0 auto; }
.safety-ring { width: 64px; height: 64px; margin: 0 auto 22px; }

/* ---------- about, faq ---------- */
.about { padding: var(--section) 0 0; }
.about p:not(.big):not(.eyebrow) { color: var(--ink-soft); }

.faq { padding: var(--section) 0 0; }
.faq h2 { margin-bottom: 1em; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-soft); padding: 0 56px 6px 22px; }

/* ---------- contact ---------- */
#contact { padding-bottom: var(--inset); }
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact > * { max-width: 560px; }
.contact-copy { justify-self: end; width: 100%; }
.contact .big { color: #C3D0E1; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact-copy { justify-self: start; } }
.direct { margin: 28px 0 0; display: grid; gap: 16px; }
.direct dt { font-size: .9rem; color: #9FB2C8; }
.direct dd { margin: 0; font-weight: 600; font-size: 1.15rem; }
.direct a { color: #fff; }
.direct a:hover { color: var(--sky); }

.form { display: grid; gap: 16px; background: #fff; color: var(--ink); border-radius: 16px; padding: clamp(20px, 3vw, 30px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > label, .roles legend { font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(56,120,184,.2); }
.field [aria-invalid="true"] { border-color: var(--red); }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles legend { margin-bottom: 8px; padding: 0; }
.roles label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .92rem; }
.roles label:has(input:checked) { border-color: var(--blue); background: #EAF2FA; }
.roles input { accent-color: var(--blue); margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 500; font-size: .95rem; }
.form-status.ok { color: #2F7A22; }
.form-status.err { color: var(--red); }

/* ---------- footer ---------- */
.site-footer { padding: 30px 0 36px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-inner p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner nav a { color: var(--ink-soft); font-size: .95rem; }

/* ---------- plain pages (privacy, 404) ---------- */
.page { padding: 150px 0 var(--section); }
.page h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .4em; }
.page h2 { font-size: 1.45rem; margin: 1.8em 0 .5em; }
.page p, .page li { color: var(--ink-soft); max-width: 46em; }
.page .updated { font-size: .95rem; }
.navbar-simple .pill { max-width: 860px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .ad-art .p, .adv-card.stack { transition: none; }
  .dot { animation: none; }
}

/* ---------- retail ad units (rebuilt from the Adovate mockups; invented retailer) ---------- */
.adv {
  --rt: #11505A; --rt2: #F2B33D; --price: #D1342F;
  position: relative; text-align: left;
  background: var(--rt); border-radius: 8px; padding: 6px;
  font-family: var(--font); color: var(--ink);
}
.adv .ad-label { top: auto; bottom: 8px; right: 10px; z-index: 1; }
.adv-bar { display: flex; align-items: center; gap: 8px; padding: 2px 4px 7px; color: #fff; min-width: 0; }
.rt-logo { flex: none; font-weight: 800; font-size: .74rem; letter-spacing: -.01em; background: #fff; color: var(--rt); padding: 2px 7px; border-radius: 4px; white-space: nowrap; line-height: 1.4; }
.adv-camp { font-weight: 800; font-size: .82rem; color: var(--rt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-pager { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 600; white-space: nowrap; }
.adv-pager i { width: 17px; height: 17px; border-radius: 50%; background: #fff; color: var(--rt); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .8rem; line-height: 1; }
.adv-card { background: #fff; border-radius: 5px; padding: 10px; min-width: 0; }
.adv-badge { display: block; font-size: .62rem; font-weight: 800; color: var(--price); margin-bottom: 2px; }
.adv-imgbox { background: #F1F4F7; border-radius: 6px; display: grid; place-items: center; aspect-ratio: 1; }
.adv-img { width: 82%; height: auto; aspect-ratio: 1; }
.adv-name { font-weight: 600; font-size: .8rem; line-height: 1.25; margin: 0; }
.adv-price { margin: 4px 0 0; display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; line-height: 1.1; }
.adv-price b { color: var(--price); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.adv-price s { color: var(--ink-soft); font-size: .72rem; }
.adv-unit { font-size: .68rem; color: var(--ink-soft); margin: 2px 0 0; }
.adv-cta { display: block; text-align: center; margin-top: 6px; padding: 7px 0; background: var(--rt2); color: var(--rt); font-weight: 700; font-size: .82rem; border-radius: 5px; }
.adv-hero { background: var(--rt2); color: var(--rt); border-radius: 5px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.adv-hero strong { font-weight: 800; font-size: 1.7rem; line-height: .98; letter-spacing: -.03em; }
.adv-hero span { font-size: .78rem; font-weight: 700; line-height: 1.25; }
.adv-hero small { font-size: .62rem; opacity: .8; }

/* row cards: image left, details right */
.adv-card.row { display: grid; grid-template-columns: 42% 1fr; gap: 10px; align-items: center; }

/* hero demo MREC: stacked card that cycles */
.adv-card.stack { display: grid; justify-items: start; transition: opacity .35s ease; }
.adv-card.stack.fade { opacity: 0; }
.adv-card.stack .adv-img { width: 62%; justify-self: center; margin: 2px 0 8px; background: #F1F4F7; border-radius: 8px; padding: 6px; aspect-ratio: auto; }
.adv-card.stack .adv-name { min-height: 2.5em; }
.adv-card.stack .adv-cta { justify-self: stretch; background: var(--rt); color: #fff; }
.adv-price b.flash { color: #3E8F2C; }

/* formats showcase */
.formats { padding: var(--section) 0 0; }
.formats-intro { color: var(--ink-soft); font-size: 1.08rem; max-width: 40em; margin-bottom: 2.2em; }
.fmt { margin: 0; }
.fmt figcaption { margin-top: 12px; font-size: .9rem; color: var(--ink-soft); }
.fmt figcaption b { color: var(--ink); margin-right: 6px; }
.fmt-bb .billboard { max-width: 970px; }
.bb-body { display: grid; grid-template-columns: 1.05fr 1.25fr 1fr 1fr; gap: 6px; }
.bb-body .adv-hero { min-height: 170px; }
.fmt-row { display: grid; grid-template-columns: 300px 300px 1fr; gap: 40px; align-items: start; margin-top: 48px; }
.fmt-points { margin: 0; align-self: center; }
.halfpage { width: 300px; }
.halfpage .adv-hero { min-height: 128px; margin-bottom: 6px; }
.halfpage .adv-hero strong { font-size: 1.5rem; }
.hp-list { display: grid; gap: 6px; }
.hp-list .adv-card.row { grid-template-columns: 76px 1fr; padding: 8px; }
.mrec { width: 300px; }
.mrec-card { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.mrec .adv-cta { margin-top: 6px; }
.fmt-note { margin-top: 28px; font-size: .85rem; color: var(--ink-soft); }

@media (max-width: 1100px) {
  .fmt-row { grid-template-columns: 300px 300px; }
  .fmt-points { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .bb-body { grid-template-columns: 1.1fr 1fr 1fr; }
  .bb-body > .adv-card:nth-child(3) { display: none; }
}
@media (max-width: 700px) {
  .fmt-row { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
  .fmt-points { justify-self: stretch; }
  .bb-body { grid-template-columns: 1fr 1fr; }
  .bb-body .adv-hero { grid-column: 1 / -1; min-height: 110px; }
  .bb-body .adv-card.row { grid-template-columns: 1fr; }
  .adv-bar .adv-pager span { display: none; }
}
@media (max-width: 360px) { .halfpage, .mrec { width: 100%; } }
.adv-hero-mrec .adv-pager i { display: none; }
.adv .ad-label { top: -20px; bottom: auto; right: 2px; background: transparent; padding: 0; }
@media (max-width: 700px) {
  .bb-body .adv-imgbox { aspect-ratio: 16 / 10; }
  .bb-body .adv-img { width: 46%; }
}
.adv-hero-mrec .rt-logo { font-size: .66rem; padding: 2px 5px; } .adv-hero-mrec .adv-camp { font-size: .74rem; } .adv-hero-mrec .adv-bar { gap: 6px; }

/* ---------- feed-field pins ---------- */
.pin {
  display: inline-grid; place-items: center; flex: none;
  width: 17px; height: 17px; margin-left: 5px; vertical-align: 1px;
  border-radius: 50%; background: var(--blue); color: #fff;
  font: 800 .62rem/1 var(--font); letter-spacing: 0;
  box-shadow: 0 0 0 2px #fff;
}
.adv-imgbox { position: relative; }
.adv-imgbox > .pin { position: absolute; top: 5px; left: 5px; margin: 0; }
.adv-price .pin { align-self: center; margin-left: 0; }
.adv-stock { display: inline-flex; align-items: center; margin-top: 4px; font-size: .64rem; font-weight: 700; color: #8A6A0B; background: #FDF3D6; border-radius: 999px; padding: 1px 7px; }
.adv-stock .pin { width: 15px; height: 15px; margin-left: 4px; }
.adv-offer { margin: -2px 4px 7px; color: var(--rt2); font-weight: 800; font-size: .88rem; }

/* feed record legend */
.fmt-row { grid-template-columns: 1fr 300px 300px; }
.record { align-self: start; }
.fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.fields li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; row-gap: 1px; padding: 9px 0; border-top: 1px solid #EDF1F5; }
.fields li:first-child { border-top: 0; }
.fields .pin { margin: 1px 0 0; grid-row: span 2; }
.fields code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8rem; color: var(--blue-deep); overflow-wrap: anywhere; }
.fields span:not(.pin) { font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 1100px) {
  .fmt-row { grid-template-columns: 300px 300px; }
  .record { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .fmt-row { grid-template-columns: 1fr; }
  .record { justify-self: stretch; }
}

/* ---------- invented advertiser frames: real estate and motors ---------- */
.adv-re { --rt: #24453B; --rt2: #E9D8A6; --price: #24453B; }
.adv-mo { --rt: #1F2328; --rt2: #F58A3C; --price: #D1342F; }
.adv-re .adv-price b { font-size: 1.02rem; letter-spacing: -.01em; }
.adv-open { display: inline-flex; align-items: center; font-size: .62rem; font-weight: 800; color: #B5543C; margin-bottom: 2px; }
.adv-open-quiet { color: var(--ink-soft); }
.adv-specs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 3px; font-size: .7rem; font-weight: 600; color: var(--ink); }
.adv-specs > span:not(.pin) { display: inline-flex; align-items: center; gap: 3px; }
.adv-specs svg { width: 13px; height: 13px; color: var(--ink-soft); }
.adv-specs .pin { margin-left: 0; }
.halfpage .adv-cta { margin-top: 6px; }
.adv-hero-mrec.adv-re .adv-price b { font-size: 1.15rem; }

/* pins per category */
.pin-re { background: #2E7D5B; }
.pin-mo { background: #E2702A; }

/* line item status */
.tag-sched { background: #EAF2FA; color: var(--blue-deep); }

/* feed record tabs */
.tabs { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
.tabs button {
  font: 600 .84rem/1 var(--font); color: var(--ink-soft);
  padding: 8px 12px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: #fff; border-color: var(--blue); background: var(--blue); }
.tabs button[data-cat="re"][aria-selected="true"] { background: #2E7D5B; border-color: #2E7D5B; }
.tabs button[data-cat="mo"][aria-selected="true"] { background: #E2702A; border-color: #E2702A; }
.fields .keys { color: var(--blue-deep); font-size: .8rem; line-height: 1.4; }
.fields .keys code { font-size: .8rem; }
.record-note { border-top: 1px solid var(--line); padding-top: 10px; }

/* highlight the ad that matches the open tab */
.fmt .adv { transition: box-shadow .25s ease, opacity .25s ease; }
#formats[data-active="retail"] .fmt-bb .adv { box-shadow: 0 0 0 3px var(--page), 0 0 0 6px var(--blue); }
#formats[data-active="re"] .fmt-hp .adv { box-shadow: 0 0 0 3px var(--page), 0 0 0 6px #2E7D5B; }
#formats[data-active="mo"] .fmt-mr .adv { box-shadow: 0 0 0 3px var(--page), 0 0 0 6px #E2702A; }

/* IAB sizes */
.sizes { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 0 0 40px; display: grid; gap: 12px; }
.sizes p { margin: 0; color: var(--ink-soft); }
.sizes p b { color: var(--ink); }
.size-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.size-list li { font-size: .86rem; font-weight: 600; padding: 6px 11px; border-radius: 9px; background: var(--page); border: 1px solid var(--line); }
.size-list li span { font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.size-list li.rm { background: var(--night); border-color: var(--night); color: #fff; }

@media (prefers-reduced-motion: reduce) { .fmt .adv { transition: none; } }
.halfpage .rt-logo, .mrec .rt-logo { font-size: .66rem; padding: 2px 5px; }
.halfpage .adv-camp, .mrec .adv-camp { font-size: .74rem; }
.halfpage .adv-bar, .mrec .adv-bar { gap: 6px; }
.mrec-card { grid-template-columns: 92px 1fr; gap: 10px; }
.mrec .adv-price b { font-size: 1.12rem; }

/* about: name equation */
.name-eq { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 4px 0 26px; padding: 12px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -.01em; color: var(--ink-soft); }
.name-eq i { font-style: normal; font-weight: 500; color: #9AA6B6; }
.name-eq b { display: inline-flex; align-items: center; color: var(--blue); font-weight: 800; letter-spacing: .02em; }
.name-eq .logo-o { width: .95em; height: .95em; margin: 0 .04em; }
