/* getadflow.app - one stylesheet, no JavaScript. Light and dark follow the visitor's system setting.
   Colours are the admin panel's: navy ink, gold accent, brand blue. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --card: #ffffff;
  --text: #0e182b;
  --text-2: #3a4760;
  --muted: #5e6b82;
  --line: #e2e7f0;
  --link: #2a56b0;
  --gold: #f5c443;
  --gold-ink: #1a1405;
  --blue: #3b74e0;
  --hero: linear-gradient(160deg, #0b1324 0%, #16223a 60%, #1f4390 130%);
  --shadow: 0 1px 2px rgba(14, 24, 43, 0.06), 0 8px 24px rgba(14, 24, 43, 0.06);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1324;
    --bg-soft: #0e182b;
    --card: #16223a;
    --text: #f1f5f9;
    --text-2: rgba(226, 232, 240, 0.82);
    --muted: #97a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --link: #8fb1f2;
    --hero: linear-gradient(160deg, #08101f 0%, #16223a 65%, #1f4390 140%);
    --shadow: none;
    color-scheme: dark;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--link);
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- header & footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a:not(.btn) {
  display: none;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:not(.btn):hover {
  color: var(--text);
  background: var(--bg-soft);
}

@media (min-width: 640px) {
  .nav a:not(.btn) {
    display: inline-block;
  }
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 28px;
}

.footer-row p {
  margin: 0;
}

.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-row a {
  color: var(--text-2);
}

@media (min-width: 720px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 196, 67, 0.35);
}

.btn svg {
  flex: none;
}

.btn-play small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.8;
}

.btn-play span {
  text-align: left;
}

.btn-small {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- landing ---------- */

.hero {
  background: var(--hero);
  color: #f1f5f9;
  padding: 56px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0 0 26px;
  font-size: 1.12rem;
  color: rgba(226, 232, 240, 0.86);
  max-width: 34em;
}

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

.hero-note {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.7);
}

.hero-card {
  justify-self: center;
  width: min(340px, 100%);
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card .logo-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-card .logo-tile img {
  border-radius: 18px;
  background: #fff;
}

.hero-card .logo-tile strong {
  display: block;
  font-size: 1.2rem;
}

.hero-card .logo-tile span {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.9rem;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.hero-card li b {
  color: var(--gold);
  white-space: nowrap;
}

@media (min-width: 880px) {
  .hero {
    padding: 88px 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: -28px auto 0;
  position: relative;
}

.fact {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.fact strong {
  display: block;
  font-size: 1.1rem;
}

.fact span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 880px) {
  .facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

section.block {
  padding-top: 64px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0 0 28px;
  color: var(--text-2);
  max-width: 40em;
}

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

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

.card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--text-2);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-2);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

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

.faq details > div p {
  margin: 0 0 8px;
}

.cta {
  margin-top: 64px;
  padding: 32px 22px;
  border-radius: 24px;
  background: var(--hero);
  color: #f1f5f9;
  text-align: center;
}

.cta h2 {
  color: #f1f5f9;
}

.cta p {
  margin: 0 0 20px;
  color: rgba(226, 232, 240, 0.8);
}

/* ---------- inner pages (support, legal, 404) ---------- */

.page {
  max-width: 780px;
  padding-top: 40px;
}

.page h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page h2 {
  margin: 36px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
}

.page .muted,
.muted {
  color: var(--muted);
}

.page .card {
  margin: 18px 0;
}

.page ul,
.page ol {
  padding-left: 1.3em;
}

.page li {
  margin: 5px 0;
}

.page code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.9em;
}

.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

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

.page th {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 560px) {
  .page table,
  .page thead,
  .page tbody,
  .page tr,
  .page th,
  .page td {
    display: block;
  }

  .page thead {
    display: none;
  }

  .page td {
    border: 0;
    padding: 2px 0;
  }

  .page tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }

  .page td:first-child {
    font-weight: 700;
  }
}

.contact-grid {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-grid .card {
  margin: 0;
}

.contact-grid .card p {
  font-size: 0.95rem;
}

.contact-grid .card a {
  font-weight: 700;
  word-break: break-word;
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.center {
  text-align: center;
}

.cta a:not(.btn),
.hero a:not(.btn) {
  color: #fad97a;
}
