/* Announce Again marketing brand — GOV.UK Frontend structure, own identity.
   Do not use crown, GOV.UK logotype, or GDS Transport. */

/* Self-hosted Source Sans 3 (SIL Open Font License), so the site never depends
   on a third-party font CDN and never falls back to GOV.UK's GDS Transport. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-400-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-italic-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext-italic-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --aa-ink: #0b1f2a;
  --aa-ink-muted: #3d4f5a;
  --aa-paper: #f6f8f7;
  --aa-surface: #ffffff;
  --aa-teal: #0b6e6b;
  --aa-teal-dark: #085552;
  --aa-teal-soft: #e6f3f2;
  --aa-accent: #c45c26;
  --aa-border: #b7c4c3;
  --aa-focus: #ffdd00;
  --aa-error: #d4351c;
  --aa-max: 960px;
  --aa-header: #0b4f56;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--aa-ink);
  background: var(--aa-paper);
  line-height: 1.5;
}

/* GOV.UK Frontend components set their own font-family (GDS Transport, which
   this site does not vendor). Force Source Sans 3 everywhere inside the page
   so no current or future GOV.UK class can silently fall back to the browser
   default instead of the brand typeface. */
body,
body * {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif !important;
}

.govuk-width-container {
  max-width: var(--aa-max);
}

a.govuk-link,
.aa-footer a {
  color: var(--aa-teal-dark);
}

a.govuk-link:hover,
.aa-footer a:hover {
  color: var(--aa-accent);
}

a:focus,
button:focus,
.aa-nav a:focus,
.aa-button:focus,
.govuk-button:focus,
.govuk-skip-link:focus {
  outline: 3px solid transparent;
  box-shadow: 0 0 0 3px var(--aa-ink), 0 0 0 6px var(--aa-focus);
}

.govuk-skip-link {
  font-family: inherit;
}

/* —— Header / service nav (custom, not GOV.UK branded) —— */
.aa-header {
  background: var(--aa-header);
  color: #fff;
}

.aa-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 0;
}

.aa-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.aa-brand:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.aa-brand__mark {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #7fd3cf;
  margin-right: 0.15rem;
  vertical-align: middle;
}

.aa-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aa-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.35rem 0.15rem;
  border-bottom: 3px solid transparent;
}

.aa-nav a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.aa-nav a[aria-current="page"] {
  border-bottom-color: #7fd3cf;
}

.aa-nav__cta a {
  display: inline-block;
  background: #fff;
  color: var(--aa-header);
  padding: 0.45rem 0.9rem;
  border-radius: 0;
  border-bottom: none;
  font-weight: 700;
}

.aa-nav__cta a:hover {
  background: #e6f3f2;
  border-bottom: none;
}

.aa-public-banner {
  background: var(--aa-teal-soft);
  border-bottom: 1px solid var(--aa-border);
  padding: 0.75rem 0;
}

.aa-public-banner p {
  margin: 0;
  font-size: 1.05rem;
}

.aa-phase {
  margin-top: 1rem;
}

.govuk-phase-banner {
  border-bottom-color: var(--aa-border);
}

.govuk-tag {
  background: var(--aa-teal);
}

/* —— Buttons —— */
.govuk-button,
.aa-button {
  background: var(--aa-teal);
  box-shadow: 0 2px 0 var(--aa-teal-dark);
  font-weight: 700;
}

.govuk-button:hover,
.aa-button:hover {
  background: var(--aa-teal-dark);
}

.govuk-button--secondary {
  background: #fff;
  color: var(--aa-ink);
  box-shadow: 0 2px 0 var(--aa-border);
  border: 2px solid var(--aa-ink);
}

.govuk-button--secondary:hover {
  background: #f0f4f3;
  color: var(--aa-ink);
}

.govuk-button-group {
  flex-wrap: wrap;
}

/* —— Sections —— */
.aa-hero {
  background:
    linear-gradient(165deg, rgba(11, 110, 107, 0.08), transparent 55%),
    linear-gradient(0deg, var(--aa-paper), #eef5f4);
  border-bottom: 1px solid var(--aa-border);
  padding: 2.5rem 0 3rem;
}

.aa-hero h1 {
  max-width: 16ch;
  margin-top: 0;
}

.aa-lede {
  font-size: 1.25rem;
  max-width: 40rem;
  color: var(--aa-ink-muted);
}

.aa-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--aa-border);
}

.aa-section--tint {
  background: var(--aa-surface);
}

/* Lighter-weight "quick link" sections (Resources, Pricing, FAQ teasers on the
   homepage) — same GOV.UK section pattern, less padding for less content. */
.aa-section--tight {
  padding: 1.25rem 0;
}

.aa-section:last-of-type {
  border-bottom: none;
}

.aa-checklist {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
}

.aa-checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.aa-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 0.6rem;
  border-left: 3px solid var(--aa-teal);
  border-bottom: 3px solid var(--aa-teal);
  transform: rotate(-45deg);
}

.aa-steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 40rem) {
  .aa-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.aa-step {
  background: var(--aa-surface);
  border-top: 4px solid var(--aa-teal);
  padding: 1.25rem 1rem 1rem;
}

.aa-step__num {
  display: inline-block;
  font-weight: 700;
  color: var(--aa-teal);
  margin-bottom: 0.35rem;
}

.aa-step h3 {
  margin-top: 0;
}

.aa-placeholder {
  background: #fff8e6;
  border-left: 5px solid #ffdd00;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.aa-placeholder strong {
  display: block;
  margin-bottom: 0.25rem;
}

.aa-diagram {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
  max-width: 36rem;
}

.aa-diagram__box {
  background: var(--aa-surface);
  border: 2px solid var(--aa-teal);
  padding: 0.9rem 1rem;
  font-weight: 600;
  text-align: center;
}

.aa-diagram__arrow {
  text-align: center;
  color: var(--aa-teal);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}

/* —— Live demo phone frame —— */
.aa-demo {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .aa-demo {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

.aa-phone {
  width: min(100%, 280px);
  margin-inline: auto;
  border: 10px solid var(--aa-ink);
  border-radius: 1.5rem;
  background: #111;
  box-shadow: 0 12px 30px rgba(11, 31, 42, 0.18);
  overflow: hidden;
  aspect-ratio: 9 / 19;
}

.aa-phone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.aa-demo-mobile-only {
  display: none;
}

@media (max-width: 47.99rem) {
  .aa-phone-desktop {
    display: none;
  }

  .aa-demo-mobile-only {
    display: block;
  }
}

/* —— Pricing card —— */
.aa-price-panel {
  background: var(--aa-surface);
  border: 1px solid var(--aa-border);
  border-top: 5px solid var(--aa-teal);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.aa-price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

/* Additional usage — a smaller companion box next to the price panel, same
   GOV.UK card treatment. */
.aa-usage-panel {
  background: var(--aa-surface);
  border: 1px solid var(--aa-border);
  border-top: 5px solid var(--aa-teal);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.aa-usage-panel :last-child {
  margin-bottom: 0;
}

/* —— Footer —— */
.aa-footer {
  background: #24353b;
  color: #fff;
  padding: 2.5rem 0 2rem;
  margin-top: 0;
}

.aa-footer a {
  color: #fff;
}

.aa-footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 40rem) {
  .aa-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.aa-footer h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: #7fd3cf;
}

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

.aa-footer li {
  margin-bottom: 0.5rem;
}

.aa-footer__note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  color: #d5e0e2;
}

.aa-footer__note p {
  margin: 0.35rem 0;
}

.govuk-main-wrapper {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.aa-page-title {
  margin-top: 0;
}
