@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('../fonts/Figtree-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Activoice product palette */
  --yellow: #fed13a;
  --ink: #1e1e1e;
  --white: #fff;
  --grey-1: #5d5c59;
  --grey-3: #dfdedb;
  --grey-4: #f3f2ef;
  /* Actimedia product palette */
  --blue: #2244c2;
  --blue-dark: #1b37a0;
  --blue-mid: #7d97f5;
  --blue-light: #a9b8f5;
  --paper: #fbfaf7;

  --sans: 'Figtree', system-ui, sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.serif {
  font-family: var(--serif);
}

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus {
  left: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn-lg {
  font-size: 1.05rem;
  padding: 0.95rem 1.5rem;
}
.btn-ink {
  background: var(--ink);
  color: var(--white);
}
.btn-ink:hover {
  background: transparent;
  color: var(--ink);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}
.btn-blue {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}
/* Buttons that sit on the dark hero band */
.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.btn-light:hover {
  background: transparent;
  color: var(--white);
}
.btn-yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.btn-yellow:hover {
  background: transparent;
  color: var(--yellow);
}
.btn-paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--blue-dark);
}
.btn-paper:hover {
  background: transparent;
  color: var(--white);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Header and hero: a dark band */
.hero-band {
  background: var(--ink);
  color: var(--white);
}
.hero-band :focus-visible {
  outline-color: var(--yellow);
}
.site-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.site-nav a,
.link-plain {
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
}
.site-nav a:hover,
.link-plain:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--yellow);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 5vw, 4.5rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 9.4vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hero-accent {
  display: block;
  color: var(--yellow);
}
.nowrap {
  white-space: nowrap;
}

/* The two products, introduced right under the headline as two rows */
.products {
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
.product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 3rem;
  padding-block: 2rem;
  border-top: 2px solid var(--yellow);
}
.product-media {
  border-top: 1px solid var(--grey-1);
  padding-bottom: 0;
}
.product-id {
  flex: 1 1 16rem;
  min-width: 0;
}
.product-kind {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--yellow);
}
.product-media .product-kind {
  color: var(--blue-light);
}
.product-name {
  margin-top: 0.35rem;
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.product-name.serif {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.product-name i {
  font-style: normal;
  color: var(--blue-mid);
}
.media-mark i {
  font-style: normal;
  color: var(--blue);
}
.product-what {
  flex: 2 1 21rem;
  min-width: 0;
  max-width: 32.5rem;
  font-size: 1.19rem;
  line-height: 1.45;
  color: var(--grey-3);
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.product-more {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--yellow);
}
.product-media .product-more {
  text-decoration-color: var(--blue-mid);
}

/* Live demo modal: a real Activoice campaign, embedded */
.demo-modal {
  width: min(34rem, calc(100vw - 2rem));
  max-height: none;
  padding: 1.5rem;
  border: 0;
  border-radius: 1.5rem;
  background: var(--white);
  color: var(--ink);
}
.demo-modal::backdrop {
  background: rgb(30 30 30 / 0.6);
}
html:has(.demo-modal[open]) {
  overflow: hidden;
}
.demo-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.demo-modal-head h2 {
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.demo-modal-head p {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--grey-1);
}
.demo-modal-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--grey-4);
  color: var(--ink);
  cursor: pointer;
}
.demo-modal-close:hover {
  background: var(--grey-3);
}
/* The embed fills this frame and scrolls inside it (embed height: '100%'). */
#av-embed-container {
  height: min(40rem, calc(100dvh - 11rem));
}

/* Sections */
.section {
  padding-block: var(--section);
}
.section-grey {
  background: var(--grey-4);
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2,
.contact h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.section-head > p:last-child {
  margin-top: 1.25rem;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--grey-1);
  max-width: 40rem;
}

/* Icons: inline SVG symbols from the sprite at the top of index.html */
.ic {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
.ic-tile {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--yellow);
  color: var(--ink);
  flex: none;
}
.ic-tile .ic {
  width: 1.5rem;
  height: 1.5rem;
}

/* Campaign steps, next to an example of the supporter's screen */
#campaigning .section-head {
  max-width: 52rem;
}
.camp-split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 1rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--grey-3);
}
.steps li:first-child {
  border-top: 2px solid var(--ink);
}
.steps .n {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--yellow);
  font-weight: 700;
}
.steps h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding-top: 0.25rem;
}
.steps p {
  grid-column: 2;
  margin-top: 0.4rem;
  color: var(--grey-1);
}

.camp-screen {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 1.5rem;
  padding: 1.25rem;
}
.camp-screen-head {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--grey-1);
}
.camp-screen-head strong {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}
/* The embed fills this frame and scrolls inside it (embed height: '100%'). */
#av-embed-inline {
  height: 38rem;
}
.camp-fallback {
  padding: 1rem;
  color: var(--grey-1);
}

/* Channels: one dark band with an icon per channel */
.channels {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--ink);
  color: var(--white);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.channels h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.channels h3 + p {
  margin-top: 0.5rem;
  color: #c9c8c4;
}
.channel-strip {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 1.5rem 0.5rem;
}
.channel-strip li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}
/* Campaign features: white tiles with an icon and a title */
.feats-title {
  margin-top: clamp(3rem, 6vw, 5rem);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.feats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.feats li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem 1rem 1rem;
  background: var(--white);
  border-radius: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.feat-ic {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--yellow);
  flex: none;
}

#campaigning .cta-row,
.media .cta-row {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Actimedia keeps its own editorial look: paper, serif headings, blue */
.media {
  background: var(--paper);
  border-top: 1px solid var(--grey-3);
}
.media-mark {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.media .section-head h2 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.media .section-head {
  max-width: 52rem;
}
.media-steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 1rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--grey-3);
}
.media-steps li:first-child {
  border-top: 2px solid var(--ink);
}
.media-steps .n {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}
.media-steps h3 {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
  padding-top: 0.2rem;
}
.media-steps p {
  grid-column: 2;
  margin-top: 0.4rem;
  color: var(--grey-1);
}
.media-shot {
  position: sticky;
  top: 2rem;
}
.media-shot img {
  border: 1px solid var(--grey-3);
  border-radius: 0.5rem;
}
.media-shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--grey-1);
}

/* Press angles: one blue band with an icon per source */
.angles {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--blue);
  color: var(--white);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.angles h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  line-height: 1.1;
}
.angles h3 + p {
  margin-top: 0.5rem;
  color: #dbe2fb;
}
.angle-strip {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}
.angle-strip li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.6rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
}
.angles .ic-tile {
  background: var(--paper);
  color: var(--blue-dark);
}
.angles :focus-visible {
  outline-color: var(--white);
}
.media .feats-title {
  font-weight: 500;
  letter-spacing: -0.01em;
}
.media .feats li {
  border: 1px solid var(--grey-3);
}
.media .feat-ic {
  background: var(--blue);
  color: var(--white);
}

/* Embed and API */
.build {
  background: var(--ink);
  color: var(--white);
}
.build .section-head > p:last-child {
  color: #c9c8c4;
}
.build-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem;
  align-items: start;
}
.code {
  background: #2b2b2a;
  border-radius: 1rem;
  overflow: hidden;
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #444340;
  font-size: 0.92rem;
  font-weight: 600;
}
.copy {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
}
.build :focus-visible {
  outline-color: var(--yellow);
}
.code pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.6;
}
.code-note {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: #c9c8c4;
}
.build-links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}
.build-links a {
  font-weight: 600;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* Contact */
.contact {
  background: var(--yellow);
}
.contact h2 {
  max-width: 14em;
}
.contact p {
  margin-top: 1.25rem;
  font-size: 1.2rem;
  max-width: 34rem;
}
.contact .cta-row {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding-block: 4rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-line {
  margin-top: 1rem;
  color: #c9c8c4;
  max-width: 18rem;
}
.site-footer h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.site-footer nav a {
  display: block;
  padding-block: 0.3rem;
  color: #c9c8c4;
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--white);
  text-decoration: underline;
}
.site-footer :focus-visible {
  outline-color: var(--yellow);
}
.copyright {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #a3a29e;
}

/* Wide screens: both product rows share the same three columns */
@media (min-width: 1200px) {
  .product {
    display: grid;
    grid-template-columns: 19rem minmax(0, 1fr) 25rem;
  }
}

/* Smaller screens */
@media (max-width: 1000px) {
  .media-grid,
  .build-grid,
  .camp-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .media-shot {
    position: static;
  }
  .channel-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 820px) {
  .site-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  .feats {
    grid-template-columns: minmax(0, 1fr);
  }
  .angle-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .channel-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .camp-screen {
    padding: 0.9rem;
    border-radius: 1.1rem;
  }
  .demo-modal {
    padding: 1.1rem;
    border-radius: 1.1rem;
  }
  .link-plain {
    display: none;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
