/* Announcement pages (page-templates/announcement-*.php). Loaded on those templates only, by inc/announcements.php.
 *
 * One visual system: every drawing, animation, clip and screenshot sits on the same stage color in the
 * same frame (border, radius, caption bar), and every clip and screenshot fills the same 16:10 box.
 * The drawings (announcement.js, <slug>/anims.js, <slug>/media/card-*.svg) use the same palette as --ann-stage. */

.ann {
  --ann-stage: #0c0e11;
  --ann-block: 48px;
  --ann-gap: 24px;
}

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

/* line icons; the animations draw their own fills and strokes */
.ann svg:not(.ann__anim-svg) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Type ── */
.ann__eyebrow {
  display: block;
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 20px;
}

.ann__title {
  margin-top: 20px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.ann__subtitle {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.ann__lead {
  margin-top: 14px;
  font-size: 22px;
  line-height: 1.45;
  color: var(--text-primary);
}

.ann__text {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ── Buttons ── */
.ann__action,
.ann__link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ann__action {
  gap: 10px;
  padding: 11px 22px 11px 18px;
  color: var(--text-primary);
}

.ann__link {
  margin-top: 8px;
  padding: 10px 24px;
  color: var(--accent);
}

.ann__action svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: color 0.2s ease;
}

.ann__action:hover,
.ann__link:hover {
  background: var(--accent);
  color: var(--text-primary);
}

.ann__action:hover svg {
  color: var(--text-primary);
}

/* ── Hero ── */
/* No breadcrumb and a short top: title, actions, highlight cards and the "Also new" links fit in one screen */
.ann__hero {
  padding: 32px 24px var(--section-padding);
}

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

.ann__hero-title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.ann__hero-lead {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.ann__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* Highlight cards: a drawing on the stage color, then the title */
.ann__highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.ann__highlight {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.ann__highlight:hover {
  border-color: var(--accent-subtle-border);
}

.ann__highlight-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ann-stage);
  border-bottom: 1px solid var(--border-subtle);
}

.ann__highlight-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ann__highlight-title {
  padding: 18px 20px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.ann__highlight-text {
  padding: 6px 20px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.ann__also-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline; /* the label is Avenir, the links Inter: line them up on the text, not the box */
  gap: 8px 24px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.ann__also-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.ann__also-links a:hover {
  color: var(--text-primary);
}

/* ── Sections ── */
.ann__section {
  padding: var(--section-padding) 24px;
  scroll-margin-top: 80px;
}

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

.ann__intro {
  max-width: 760px;
  margin-bottom: 40px;
}

.ann__intro--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ann__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.ann__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle-bg);
  border: 1px solid var(--accent-subtle-border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.ann__tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.ann__apps {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.ann__app {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.ann__app svg {
  width: 16px;
  height: 16px;
}

/* ── The frame: shared by animations, clips and screenshots ── */
.ann__frame {
  margin: 0;
  background: var(--ann-stage);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ann__caption {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Clips and screenshots: the same 16:10 box, fitted whole on the stage color */
.ann__media {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ann__media video,
.ann__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ann__media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ann-gap);
}

/* Animated overviews */
.ann__anim-block {
  margin-bottom: var(--ann-block);
}

.ann__anim-block > .ann__subtitle {
  margin-top: 0;
}

.ann__anim-line {
  max-width: 760px;
  margin: 8px 0 24px;
}

.ann__anim-stage {
  position: relative;
  container-type: inline-size;
}

.ann__anim-svg {
  display: block;
  width: 100%;
  height: auto;
}

.ann__anim-svg text {
  font-family: var(--font-family);
}

/* names laid over a drawing; sized in container units so they scale with it */
.ann__anim-label {
  position: absolute;
  transform: translateY(-50%);
  width: 16cqw;
  display: flex;
  flex-direction: column;
  gap: 0.35cqw;
  line-height: 1.2;
  pointer-events: none;
}

.ann__anim-label strong {
  font-size: 1.6cqw;
  font-weight: 700;
  color: var(--text-tertiary);
  transition: color 0.4s ease;
}

.ann__anim-label span {
  font-size: 1.05cqw;
  color: var(--text-tertiary);
  transition: color 0.4s ease;
}

.ann__anim-label.is-lit strong {
  color: var(--text-primary);
}

.ann__anim-label.is-lit span {
  color: var(--text-secondary);
}

/* the step list is the animation's caption bar */
.ann__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid var(--border-subtle);
}

.ann__steps li {
  padding: 16px 18px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-tertiary);
  border-top: 2px solid transparent;
  margin-top: -1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.ann__steps li + li {
  border-left: 1px solid var(--border-subtle);
}

.ann__steps strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.ann__step-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-input);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ann__steps li.is-active {
  color: var(--text-secondary);
  border-top-color: var(--accent);
}

.ann__steps li.is-active strong {
  color: var(--text-primary);
}

.ann__steps li.is-active .ann__step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-primary);
}

/* reduced motion: nothing is highlighted, so show every step at full strength */
@media (prefers-reduced-motion: reduce) {
  .ann__steps li { color: var(--text-secondary); }
  .ann__steps strong { color: var(--text-primary); }
}

/* ── SuPAR Insight: what it does for a team that has never seen it ── */
.ann__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ann__benefit {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.ann__benefit svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.ann__benefit-title {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.ann__benefit-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.ann__section-cta {
  margin: 28px 0 var(--ann-block);
}

/* ── Also new: text beside one clip, alternating sides ── */
.ann__split {
  scroll-margin-top: 110px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--gap-columns);
  align-items: center;
}

.ann__split + .ann__split {
  margin-top: 72px;
}

.ann__split--reversed {
  grid-template-columns: 7fr 5fr;
}

.ann__split--reversed .ann__split-text {
  order: 2;
}

/* ── More in each app ── */
.ann__more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ann__more-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.ann__more-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.ann__more-title svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.ann__more-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ann__more-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.ann__more-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Get it ── */
.ann__note {
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 16px 22px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
}

.ann__note strong {
  color: var(--text-primary);
  font-weight: 600;
}

.ann__get {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ann__get-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.ann__get-card > svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.ann__get-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.ann__get-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ann__highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .ann__more,
  .ann__get {
    grid-template-columns: 1fr;
  }

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

  .ann__split,
  .ann__split--reversed {
    grid-template-columns: 1fr;
    gap: var(--ann-gap);
  }

  .ann__split--reversed .ann__split-text {
    order: 0;
  }
}

@media (max-width: 768px) {
  .ann {
    --ann-block: 36px;
  }

  .ann__hero {
    padding: 24px 20px var(--section-padding-mobile);
  }

  .ann__hero-title {
    font-size: 48px;
  }

  .ann__hero-lead {
    font-size: 17px;
  }

  .ann__highlights {
    margin-top: 44px;
    gap: 14px;
  }

  .ann__section {
    padding: var(--section-padding-mobile) 20px;
  }

  .ann__title {
    font-size: 30px;
  }

  .ann__subtitle {
    font-size: 22px;
  }

  .ann__media-row {
    grid-template-columns: 1fr;
  }

  .ann__steps {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }

  .ann__steps li,
  .ann__steps li + li {
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
    padding: 14px 16px 16px;
  }

  .ann__steps li.is-active {
    border-top-color: var(--accent);
  }
}

/* phones: highlights as compact rows, drawing left */
@media (max-width: 560px) {
  .ann__benefits {
    grid-template-columns: 1fr;
  }

  .ann__lead {
    font-size: 19px;
  }

  .ann__action {
    width: 100%;
    justify-content: center;
  }

  .ann__highlights {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ann__highlight {
    display: grid;
    grid-template-columns: 112px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 14px;
    text-align: left;
  }

  .ann__highlight-media {
    grid-row: 1 / 3;
    aspect-ratio: auto;
    height: 100%;
    min-height: 84px;
    border-bottom: 0;
    border-right: 1px solid var(--border-subtle);
  }

  .ann__highlight-title {
    padding: 14px 14px 0 0;
    font-size: 16px;
  }

  .ann__highlight-text {
    padding: 4px 14px 14px 0;
    font-size: 13px;
  }
}
