/* AGOS Scores — public marketing pages (landing, team). "Flow" design.
   Colours come from the logo: cyan #0891B2 and the light arc #6BBDD1, on a deep teal. */

:root {
    --ag-deep: #0B4F5E;
    --ag-deeper: #083E4A;
    --ag-deepest: #062F38;
    --ag-cyan: #0891B2;       /* logo colour: decoration and large text on white */
    --ag-cyan-ink: #0E6B82;   /* links and small text on white */
    --ag-arc: #6BBDD1;        /* logo arc */
    --ag-sky: #7FD3E3;        /* accent text on dark */
    --ag-sky-2: #9EE0EC;
    --ag-on-deep: #CFEAF0;
    --ag-on-deep-2: #DFF3F7;
    --ag-on-deep-3: #D6EEF3;
    --ag-ink: #0B2730;
    --ag-text: #3C5A63;
    --ag-muted: #4A6770;
    --ag-tint: #EEF7F9;
    --ag-tint-2: #E1F4F8;
    --ag-line: #D6E6EA;
    --ag-line-2: #E3EEF1;
    --ag-live: #D93036;
    --ag-attn: #8A3B1D;
    --ag-error: #B42318;
    --ag-yellow: #F5C542;
    --ag-red: #E5484D;
    --ag-green: #22A06B;

    --ag-font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
    --ag-font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

    --ag-shadow-chip: 0 18px 40px rgba(0, 0, 0, 0.25);
    --ag-shadow-soft: 0 20px 44px rgba(11, 79, 94, 0.12);

    --ag-max: 1280px;
    --ag-gutter: 80px;
    --ag-section: 120px;
    --ag-header-h: 88px;
}

@media (max-width: 1100px) {
    :root { --ag-gutter: 40px; --ag-section: 96px; }
}

@media (max-width: 640px) {
    :root { --ag-gutter: 20px; --ag-section: 72px; }
}

/* ── Base ─────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.ag {
    margin: 0;
    background: #FFFFFF;
    color: var(--ag-ink);
    font-family: var(--ag-font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

:where(.ag) h1, :where(.ag) h2, :where(.ag) h3, :where(.ag) p,
:where(.ag) ul, :where(.ag) ol, :where(.ag) dl, :where(.ag) dd, :where(.ag) figure { margin: 0; }
:where(.ag) ul, :where(.ag) ol { padding: 0; list-style: none; }
:where(.ag) a { color: var(--ag-cyan-ink); text-underline-offset: 3px; }
:where(.ag) img { max-width: 100%; height: auto; }
:where(.ag) button { font: inherit; }

.ag [hidden] { display: none !important; }
.ag :focus-visible { outline: 3px solid var(--ag-cyan); outline-offset: 3px; }
.ag-on-dark :focus-visible { outline-color: var(--ag-sky); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ag *, .ag *::before, .ag *::after { animation: none !important; transition: none !important; }
}

.ag-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.ag-skip {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    padding: 12px 16px; border-radius: 10px;
    background: #FFFFFF; color: var(--ag-ink); font-weight: 700;
}
.ag-skip:focus { top: 16px; }

.ag-container {
    width: 100%;
    max-width: calc(var(--ag-max) + 2 * var(--ag-gutter));
    margin: 0 auto;
    padding-left: var(--ag-gutter);
    padding-right: var(--ag-gutter);
}

.ag-icon {
    display: inline-block;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

/* ── Buttons ──────────────────────────────────────────── */

.ag-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 0 28px;
    border: 1.5px solid transparent; border-radius: 999px;
    font-family: var(--ag-font-body); font-size: 18px; font-weight: 700; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.ag-btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.ag-btn--block { display: flex; width: 100%; }
.ag-btn--light { background: #FFFFFF; color: var(--ag-deep); }
.ag-btn--light:hover { background: var(--ag-tint-2); color: var(--ag-deep); }
.ag-btn--ghost-light { border-color: rgba(255, 255, 255, 0.5); background: transparent; color: #FFFFFF; font-weight: 600; }
.ag-btn--ghost-light:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.ag-btn--primary { background: var(--ag-deep); color: #FFFFFF; }
.ag-btn--primary:hover { background: var(--ag-deeper); color: #FFFFFF; }
.ag-btn--outline { border-color: var(--ag-line); background: #FFFFFF; color: var(--ag-ink); }
.ag-btn--outline:hover { border-color: var(--ag-arc); color: var(--ag-ink); }
.ag-btn[disabled] { opacity: 0.7; cursor: progress; }

/* ── Header ───────────────────────────────────────────── */

.ag-header { position: relative; z-index: 30; background: #FFFFFF; border-bottom: 1px solid var(--ag-line-2); }
.ag-header--dark { background: var(--ag-deep); border-bottom: 0; color: #FFFFFF; }
.ag-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--ag-header-h); }

.ag-brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 12px; text-decoration: none; }
.ag-brand__mark { width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; }
.ag-brand__word { width: auto; height: 26px; }
.ag-header--dark .ag-brand__word { filter: brightness(0) invert(1); }
.ag-brand__tag {
    padding-left: 12px; border-left: 1px solid var(--ag-line);
    font-family: var(--ag-font-display); font-size: 13px; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--ag-muted);
}
.ag-header--dark .ag-brand__tag { border-left-color: rgba(255, 255, 255, 0.25); color: #BFE6EE; }

.ag-nav ul { display: flex; align-items: center; gap: 34px; }
.ag-nav a, .ag-header__login, .ag-header__cta { white-space: nowrap; }
.ag-header__login, .ag-header__cta { flex-shrink: 0; }
.ag-nav a, .ag-mobile-nav a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    font-weight: 600; text-decoration: none; color: var(--ag-ink);
}
.ag-header--dark .ag-nav a, .ag-header--dark .ag-mobile-nav a { color: var(--ag-on-deep-3); }
.ag-nav a:hover { text-decoration: underline; }
.ag-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ag-live); }
.ag-header--dark .ag-live-dot { background: #FF6B6B; }

/* When the header is tight, the signed-in name is what gives way (it truncates). */
.ag-header__actions { display: flex; align-items: center; gap: 22px; min-width: 0; }
.ag-header__login { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--ag-ink); }
.ag-header--dark .ag-header__login { color: #FFFFFF; }

.ag-user { position: relative; min-width: 0; }
.ag-user__button {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 0 14px;
    border: 1.5px solid var(--ag-line); border-radius: 999px;
    background: transparent; color: var(--ag-ink); font-weight: 600; cursor: pointer;
}
.ag-header--dark .ag-user__button { border-color: rgba(255, 255, 255, 0.4); color: #FFFFFF; }
.ag-user__name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-user__menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 8px;
    border-radius: 16px; background: #FFFFFF;
    box-shadow: var(--ag-shadow-soft), 0 0 0 1px var(--ag-line-2);
}
.ag-user__menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ag-ink); font-weight: 600; text-decoration: none; }
.ag-user__menu a:hover { background: var(--ag-tint); }

.ag-menu-button {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 999px;
    background: var(--ag-tint); color: var(--ag-ink); cursor: pointer;
}
.ag-header--dark .ag-menu-button { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }

.ag-mobile-nav { padding: 4px 0 24px; border-top: 1px solid var(--ag-line-2); }
.ag-header--dark .ag-mobile-nav { border-top-color: rgba(255, 255, 255, 0.12); }
.ag-mobile-nav li a { display: flex; min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--ag-line-2); }
.ag-header--dark .ag-mobile-nav li a { border-bottom-color: rgba(255, 255, 255, 0.1); }
.ag-mobile-nav .ag-btn { margin-top: 20px; color: inherit; }
.ag-header--dark .ag-mobile-nav .ag-btn--light { color: var(--ag-deep); }

@media (max-width: 960px) {
    :root { --ag-header-h: 64px; }
    .ag-nav, .ag-header__login, .ag-user, .ag-header__cta { display: none; }
    .ag-menu-button { display: inline-flex; }
    .ag-brand__mark { width: 34px; height: 34px; }
    .ag-brand__word { height: 20px; }
    .ag-brand__tag { display: none; }
}

@media (min-width: 961px) {
    .ag-mobile-nav { display: none !important; }
}

/* Small laptops: keep the signed-in header (name + Create your event) on one line. */
@media (min-width: 961px) and (max-width: 1279px) {
    .ag-brand__tag { display: none; }
    .ag-nav ul { gap: 22px; }
    .ag-header__actions { gap: 16px; }
    .ag-user__name { max-width: 96px; }
}

/* ── Hero ─────────────────────────────────────────────── */
/* Sizes are variables so the desktop rules below ("Hero fits the screen") can scale them to the screen height. */

.ag-hero {
    --hero-pad: 48px;
    --hero-arc-w: 500px;
    --hero-arc-gap: 20px;
    --hero-title: clamp(40px, 5.6vw, 80px);
    --hero-lead: clamp(17px, 1.5vw, 22px);
    --hero-gap: 28px;
    --hero-actions-gap: 36px;
    --hero-control-h: 56px;
    --chip-h: 118px;
    --node-gap: 20px;
    --ticker-gap: 64px;
    --ticker-h: 60px;
    position: relative; overflow: hidden; background: var(--ag-deep); color: #FFFFFF;
}
.ag-hero__waves, .ag-page-hero .ag-hero__waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ag-hero__waves path { fill: none; stroke: var(--ag-cyan); stroke-width: 26; stroke-linecap: round; }
.ag-hero__waves path:first-child { opacity: 0.35; }
.ag-hero__waves path:last-child { opacity: 0.22; }

.ag-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: var(--hero-pad); text-align: center; }
.ag-hero__arc { width: var(--hero-arc-w, 500px); max-width: 64%; height: auto; margin-bottom: var(--hero-arc-gap, 20px); }
.ag-hero__arc path { fill: none; stroke: var(--ag-arc); stroke-width: 12; stroke-linecap: round; }
.ag-hero__title {
    font-family: var(--ag-font-display); font-weight: 700;
    font-size: var(--hero-title); line-height: 1.06; letter-spacing: -0.035em;
}
.ag-hero__title span { color: var(--ag-sky); }
.ag-hero__lead {
    max-width: 700px; margin-top: var(--hero-gap);
    font-size: var(--hero-lead); line-height: 1.5; color: var(--ag-on-deep);
    text-wrap: pretty;
}

.ag-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.ag-hero .ag-actions { margin-top: var(--hero-actions-gap); }
.ag-hero .ag-btn { min-height: var(--hero-control-h); }

/* "Watching a contest?" sits above the search on phones and beside it on desktop. */
.ag-find { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; margin-top: var(--hero-gap); }
.ag-find__hint { font-size: 15px; font-weight: 600; color: var(--ag-sky-2); white-space: nowrap; }
.ag-search {
    display: flex; align-items: center; gap: 10px;
    width: min(520px, 100%); min-height: var(--hero-control-h, 56px); padding: 6px 6px 6px 20px;
    border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
    background: rgba(255, 255, 255, 0.08); color: var(--ag-on-deep);
}
.ag-search:focus-within { border-color: var(--ag-sky); box-shadow: 0 0 0 3px rgba(127, 211, 227, 0.35); }
.ag-search input {
    flex: 1; min-width: 0; height: calc(var(--hero-control-h, 56px) - 12px); border: 0; outline: none;
    background: transparent; color: #FFFFFF; font: inherit; font-size: 17px;
}
.ag-search input::placeholder { color: #BFE6EE; opacity: 1; }
.ag-search button {
    min-height: calc(var(--hero-control-h, 56px) - 12px); padding: 0 18px; border: 0; border-radius: 999px;
    background: #FFFFFF; color: var(--ag-deep); font-weight: 700; cursor: pointer;
}
.ag-search button:hover { background: var(--ag-tint-2); }

@media (max-width: 640px) {
    .ag-hero__inner { padding-top: 32px; }
    .ag-actions { flex-direction: column; align-self: stretch; }
    .ag-actions .ag-btn { width: 100%; }
}

/* ── How a score travels (hero diagram) ───────────────── */

.ag-flow { position: relative; margin-top: 80px; }
/* The dashed line (60px tall, drawn through its middle) passes through the node centres:
   chip height + gap above the node + half of the 28px node. */
.ag-flow__line { position: absolute; left: 0; top: calc(var(--chip-h) + var(--node-gap) + 14px - 30px); width: 100%; height: 60px; pointer-events: none; }
.ag-flow__line path { fill: none; stroke: var(--ag-arc); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 10; }
.ag-flow__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ag-flow__step { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 10px; text-align: center; }

/* Everything inside a diagram card is sized from the card height (--chip-h, 118px at full size),
   so the cards stay legible as the desktop hero shrinks to fit shorter screens. */
.ag-flow__chip {
    display: flex; flex-direction: column; justify-content: center; gap: calc(var(--chip-h) * 0.017);
    width: 100%; max-width: 230px; height: var(--chip-h);
    padding: calc(var(--chip-h) * 0.12) calc(var(--chip-h) * 0.136);
    border-radius: 16px; background: #FFFFFF; color: var(--ag-ink);
    box-shadow: var(--ag-shadow-chip); line-height: 1.3; text-align: left;
}
.ag-flow__chip--row { flex-direction: row; align-items: center; justify-content: flex-start; gap: calc(var(--chip-h) * 0.1); }
.ag-flow__chip--table { gap: calc(var(--chip-h) * 0.05); padding: calc(var(--chip-h) * 0.1) calc(var(--chip-h) * 0.12); }
.ag-flow__chip--list { gap: calc(var(--chip-h) * 0.085); }
.ag-flow__meta { font-size: max(11px, calc(var(--chip-h) * 0.11)); font-weight: 600; color: var(--ag-muted); }
.ag-flow__score { font-family: var(--ag-font-display); font-size: max(18px, calc(var(--chip-h) * 0.271)); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ag-flow__icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: max(28px, calc(var(--chip-h) * 0.373)); height: max(28px, calc(var(--chip-h) * 0.373));
    border-radius: 12px; background: var(--ag-tint-2); color: var(--ag-cyan-ink);
}
.ag-flow__icon .ag-icon { width: max(16px, calc(var(--chip-h) * 0.186)); height: max(16px, calc(var(--chip-h) * 0.186)); }
.ag-flow__stack { display: flex; flex-direction: column; gap: calc(var(--chip-h) * 0.017); }
.ag-flow__strong { font-size: max(12px, calc(var(--chip-h) * 0.136)); font-weight: 700; }
.ag-flow__needs { font-size: max(11px, calc(var(--chip-h) * 0.11)); font-weight: 600; color: var(--ag-attn); }
.ag-flow__item { display: flex; align-items: center; gap: 10px; font-size: max(12px, calc(var(--chip-h) * 0.127)); font-weight: 600; }
.ag-flow__item .ag-icon { width: max(16px, calc(var(--chip-h) * 0.17)); height: max(16px, calc(var(--chip-h) * 0.17)); color: var(--ag-cyan-ink); }

.ag-flow__node {
    position: relative; width: 28px; height: 28px; margin: var(--node-gap) 0 calc(var(--node-gap) + 2px);
    border: 6px solid var(--ag-cyan); border-radius: 50%; background: #FFFFFF;
}
.ag-flow__label { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ag-sky-2); }
.ag-flow__desc { margin-top: 6px; font-size: 16px; color: var(--ag-on-deep); }

.ag-mini-row { display: flex; align-items: center; gap: 8px; font-size: max(11px, calc(var(--chip-h, 118px) * 0.119)); }
.ag-flow__chip .ag-jersey { height: max(12px, calc(var(--chip-h) * 0.17)); }
.ag-mini-row__name { flex: 1; font-weight: 600; }
.ag-mini-row__total { font-weight: 700; font-variant-numeric: tabular-nums; }

.ag-jersey { display: inline-block; flex-shrink: 0; width: 8px; height: 20px; border-radius: 2px; }
.ag-jersey--yellow { background: var(--ag-yellow); }
.ag-jersey--red { background: var(--ag-red); }
.ag-jersey--white { background: #FFFFFF; box-shadow: inset 0 0 0 1px #C9D6DA; }
.ag-jersey--green { background: var(--ag-green); }

@media (max-width: 900px) {
    .ag-flow { margin-top: 48px; }
    .ag-flow__line { display: none; }
    .ag-flow__list { grid-template-columns: 1fr; gap: 28px; padding-left: 44px; }
    .ag-flow__step { align-items: flex-start; padding: 0; text-align: left; }
    /* Dashed segment from each node down to the next one */
    .ag-flow__step:not(:last-child)::after {
        content: ""; position: absolute; left: -31px; top: 30px; bottom: -26px;
        border-left: 3px dashed var(--ag-arc);
    }
    .ag-flow__node { position: absolute; left: -44px; top: -4px; margin: 0; }
    .ag-flow__label { order: 1; }
    .ag-flow__desc { order: 2; margin-top: 4px; }
    .ag-flow__chip { order: 3; max-width: 320px; height: auto; margin-top: 12px; }
}

/* ── Ticker (real data: live heat, today, next up or latest results) ── */

.ag-ticker {
    display: block; margin-top: var(--ticker-gap, 64px);
    background: var(--ag-deeper); border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ag-on-deep-2); text-decoration: none;
}
.ag-ticker__inner {
    display: flex; align-items: center; gap: 16px; min-height: var(--ticker-h, 60px);
    padding-top: 12px; padding-bottom: 12px;
    font-size: 16px; font-weight: 600; letter-spacing: 0.03em;
}
.ag-ticker__text { flex: 1; min-width: 0; }
/* No ticker (no events to show): keep the diagram off the hero's bottom edge. */
.ag-hero > .ag-container:last-child { padding-bottom: max(40px, var(--ticker-gap, 64px)); }
.ag-ticker__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--ag-sky); white-space: nowrap; }
.ag-ticker:hover .ag-ticker__text { text-decoration: underline; }

.ag-badge {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    height: 26px; padding: 0 10px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.14); color: #FFFFFF;
    font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
}
.ag-badge--live { background: var(--ag-live); }
.ag-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ag-badge--live .ag-badge__dot, .ag-chip--live .ag-badge__dot { animation: ag-pulse 1.6s ease-in-out infinite; }

@keyframes ag-pulse { 50% { opacity: 0.35; } }

@media (max-width: 640px) {
    .ag-ticker { margin-top: 48px; }
    .ag-ticker__inner { flex-wrap: wrap; gap: 8px 12px; font-size: 15px; }
    .ag-ticker__text { flex-basis: 100%; order: 3; }
}

/* ── Hero fits the screen on desktop ──────────────────────
   The hero fills the space under the header. Type, spacing and the diagram scale with the
   screen height, the diagram and ticker stay on the bottom edge, and on short screens the
   decorative extras step aside: step descriptions and the arc first, then the diagram cards. */

@media (min-width: 961px) {
    .ag-hero {
        display: flex; flex-direction: column;
        min-height: calc(100vh - var(--ag-header-h));
        min-height: calc(100svh - var(--ag-header-h));
        /* Budget: these add up to about 0.55 × screen height + 256px, which fits under the
           88px header from roughly 764px of screen height; shorter screens use the tiers below. */
        --hero-pad: clamp(14px, 2.5vh, 48px);
        --hero-arc-w: clamp(160px, 30vh, 500px);
        --hero-arc-gap: clamp(6px, 1.2vh, 20px);
        --hero-title: clamp(40px, min(5.6vw, 7.5vh), 80px);
        --hero-lead: clamp(16px, min(1.5vw, 2.3vh), 22px);
        --hero-gap: clamp(12px, 2.2vh, 28px);
        --hero-actions-gap: clamp(14px, 2.6vh, 36px);
        --chip-h: clamp(72px, 10vh, 118px);
        --node-gap: clamp(8px, 1.4vh, 20px);
        --ticker-gap: clamp(14px, 2.5vh, 56px);
    }
    .ag-hero__inner { flex: 1 0 auto; justify-content: center; padding-bottom: var(--hero-pad); }
    .ag-hero .ag-flow { margin-top: 0; }
    /* One line, so a long event name can't make the ticker taller than planned. */
    .ag-ticker__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .ag-find { flex-direction: row; justify-content: center; gap: 16px; }
    .ag-find .ag-search { width: 460px; max-width: 100%; }
}

@media (min-width: 961px) and (max-height: 780px) {
    .ag-flow__desc { display: none; }
}

@media (min-width: 961px) and (max-height: 760px) {
    :root { --ag-header-h: 72px; }
    .ag-hero { --hero-control-h: 50px; --ticker-h: 52px; }
    .ag-ticker__inner { padding-top: 8px; padding-bottom: 8px; }
}

@media (min-width: 961px) and (max-height: 700px) {
    .ag-hero__arc { display: none; }
}

@media (min-width: 961px) and (max-height: 640px) {
    .ag-hero { --chip-h: 0px; }
    .ag-flow__chip { display: none; }
}

/* ── Sections ─────────────────────────────────────────── */

.ag-section { padding-top: var(--ag-section); }
.ag-band { margin-top: var(--ag-section); padding: 96px 0; background: var(--ag-tint); }
.ag-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

.ag-section__head { margin-bottom: 36px; }
.ag-section__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }

.ag-eyebrow {
    margin-bottom: 12px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ag-cyan-ink);
}
.ag-on-dark .ag-eyebrow { color: var(--ag-sky-2); }

.ag-h2 {
    font-family: var(--ag-font-display); font-weight: 600;
    font-size: clamp(26px, 3.1vw, 44px); line-height: 1.15; letter-spacing: -0.02em;
    text-wrap: balance;
}
.ag-lead { margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--ag-text); text-wrap: pretty; }
.ag-lead--center { max-width: 640px; }
.ag-lead--narrow { max-width: 400px; margin-top: 0; }

.ag-link-arrow {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    font-size: 17px; font-weight: 700; color: var(--ag-cyan-ink); text-decoration: none; white-space: nowrap;
}
a.ag-link-arrow:hover { text-decoration: underline; }

.ag-grid { display: grid; gap: 20px; }
.ag-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-grid--team { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

@media (max-width: 900px) {
    .ag-section__head--split { flex-direction: column; align-items: flex-start; gap: 16px; }
    .ag-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .ag-band { padding: 56px 0; }
    .ag-lead { font-size: 16px; }
}

/* ── Event cards ──────────────────────────────────────── */

.ag-event-list > li { display: flex; }
.ag-event-card {
    display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 28px;
    border: 1px solid var(--ag-line); border-radius: 24px; background: #FFFFFF;
    color: var(--ag-ink); text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.ag-event-card:hover { border-color: var(--ag-arc); box-shadow: var(--ag-shadow-soft); transform: translateY(-2px); }
.ag-event-card--live { border-color: var(--ag-deep); background: var(--ag-deep); color: #FFFFFF; }

.ag-chip {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    padding: 5px 12px; border-radius: 999px;
    background: var(--ag-tint-2); color: var(--ag-deep);
    font-size: 13px; font-weight: 700;
}
.ag-chip--live { background: var(--ag-live); color: #FFFFFF; letter-spacing: 0.08em; text-transform: uppercase; }
.ag-chip--today { background: #FFF1E6; color: var(--ag-attn); }

.ag-event-card__name { font-family: var(--ag-font-display); font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.ag-event-card__detail { font-weight: 600; color: var(--ag-text); }
.ag-event-card--live .ag-event-card__detail { color: var(--ag-sky); }
.ag-event-card__place { display: flex; align-items: center; gap: 6px; color: var(--ag-muted); }
.ag-event-card--live .ag-event-card__place { color: var(--ag-on-deep); }
.ag-event-card__stats {
    display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; padding-top: 16px;
    border-top: 1px solid var(--ag-line-2); color: var(--ag-muted); font-size: 15px;
}
.ag-event-card__stats strong { margin-right: 4px; font-family: var(--ag-font-display); font-size: 20px; font-weight: 600; color: var(--ag-ink); }
.ag-event-card--live .ag-event-card__stats { border-top-color: rgba(255, 255, 255, 0.15); color: var(--ag-on-deep); }
.ag-event-card--live .ag-event-card__stats strong { color: #FFFFFF; }
.ag-event-card .ag-link-arrow { min-height: 0; margin-top: auto; padding-top: 6px; }
.ag-event-card--live .ag-link-arrow { color: var(--ag-sky); }

.ag-empty {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px;
    border: 1px dashed var(--ag-line); border-radius: 24px; color: var(--ag-text);
}

@media (max-width: 640px) {
    /* On phones the three events become a swipeable row instead of a tall stack. */
    .ag-event-list {
        display: flex; gap: 12px;
        margin: 0 calc(-1 * var(--ag-gutter)); padding: 0 var(--ag-gutter) 8px;
        overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--ag-gutter);
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .ag-event-list::-webkit-scrollbar { display: none; }
    .ag-event-list > li { flex: 0 0 86%; scroll-snap-align: start; }
    .ag-event-card { padding: 22px; border-radius: 20px; }
    .ag-event-card__name { font-size: 19px; }
}

/* ── Proof ────────────────────────────────────────────── */

.ag-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; margin-top: 52px; }
.ag-stats__item { display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; }
.ag-stats__item dd {
    font-family: var(--ag-font-display); font-weight: 700;
    font-size: clamp(44px, 6vw, 84px); line-height: 1; color: var(--ag-deep);
    font-variant-numeric: tabular-nums;
}
.ag-stats__item dt { font-size: 18px; color: var(--ag-muted); }

/* Chips rather than "·" separators, so long event names wrap cleanly. */
.ag-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1040px; margin-top: 44px; }
.ag-names li { padding: 8px 16px; border: 1px solid var(--ag-line); border-radius: 999px; font-size: 16px; font-weight: 600; }

@media (max-width: 640px) {
    .ag-stats { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
    .ag-names { margin-top: 32px; gap: 8px; }
    .ag-names li { padding: 6px 12px; font-size: 14px; }
}

/* ── How it works ─────────────────────────────────────── */

.ag-steps { position: relative; margin-top: 56px; }
/* Steps sit in three equal columns with no gap, so their centres land at 1/6, 1/2 and 5/6 of the line. */
.ag-steps__line { position: absolute; left: 0; top: 0; width: 100%; height: 56px; pointer-events: none; }
.ag-steps__line path { fill: none; stroke: var(--ag-cyan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; }
.ag-steps__list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-step { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 20px; text-align: center; }
.ag-step__num {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border: 4px solid var(--ag-cyan); border-radius: 50%;
    background: #FFFFFF; color: var(--ag-deep);
    font-family: var(--ag-font-display); font-size: 22px; font-weight: 600;
}
.ag-step__title { margin-top: 8px; font-family: var(--ag-font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.ag-step p { max-width: 340px; font-size: 17px; line-height: 1.55; color: var(--ag-text); }

@media (max-width: 900px) {
    .ag-steps { margin-top: 36px; }
    .ag-steps__line { display: none; }
    .ag-steps__list { grid-template-columns: 1fr; gap: 28px; }
    .ag-step {
        display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 6px;
        align-items: start; padding: 0; text-align: left;
    }
    .ag-step__num { grid-row: span 2; width: 44px; height: 44px; border-width: 3px; font-size: 18px; }
    .ag-step__title { margin-top: 0; font-size: 18px; line-height: 1.3; }
    .ag-step p { max-width: none; font-size: 16px; }
}

/* ── What you get ─────────────────────────────────────── */

.ag-feature { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ag-line); border-radius: 28px; background: #FFFFFF; }
.ag-feature__art { display: flex; align-items: flex-end; justify-content: center; height: 260px; overflow: hidden; background: var(--ag-deep); }
.ag-feature__art--center { flex-direction: column; align-items: center; justify-content: center; }
.ag-feature__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.ag-feature__title { font-family: var(--ag-font-display); font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }

.ag-checks { display: flex; flex-direction: column; gap: 10px; color: var(--ag-text); }
.ag-checks li { position: relative; padding-left: 30px; line-height: 1.45; }
.ag-checks li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230891B2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Product drawings (decorative) */
.ag-phone {
    display: flex; flex-direction: column; gap: 8px; width: 184px; height: 236px; padding: 14px 14px 0;
    border: 6px solid var(--ag-deepest); border-bottom: 0; border-radius: 26px 26px 0 0;
    background: #FFFFFF; color: var(--ag-ink);
}
.ag-phone__bar { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--ag-muted); }
.ag-phone__athlete { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.ag-phone__athlete .ag-jersey { width: 6px; height: 22px; }
.ag-phone__score { font-family: var(--ag-font-display); font-size: 34px; font-weight: 700; line-height: 1; }
.ag-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; font-size: 12px; font-weight: 700; }
.ag-keypad span { display: flex; align-items: center; justify-content: center; height: 18px; border-radius: 5px; background: var(--ag-tint); }
.ag-phone__submit {
    display: flex; align-items: center; justify-content: center; height: 28px;
    border-radius: 999px; background: var(--ag-deep); color: #FFFFFF; font-size: 12px; font-weight: 700;
}
.ag-phone--page { padding: 14px 12px 0; }
.ag-phone__title { font-family: var(--ag-font-display); font-size: 13px; font-weight: 600; }
.ag-phone__tabs { display: flex; gap: 4px; font-size: 10px; font-weight: 700; }
.ag-phone__tabs span { padding: 3px 7px; border-radius: 999px; background: var(--ag-tint); }
.ag-phone__tabs .is-active { background: var(--ag-deep); color: #FFFFFF; }
.ag-phone__caption { font-size: 11px; font-weight: 700; color: var(--ag-muted); }
.ag-phone__row { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 8px; background: #F6FAFB; font-size: 11px; }
.ag-phone__row.is-first { background: var(--ag-tint); }
.ag-phone__row span:nth-child(2) { flex: 1; font-weight: 600; }
.ag-phone__row .ag-jersey { width: 5px; height: 14px; }

.ag-tv { display: flex; flex-direction: column; align-items: center; }
.ag-tv__screen {
    display: flex; flex-direction: column; width: 300px; overflow: hidden;
    border: 6px solid var(--ag-deepest); border-radius: 12px; background: #FFFFFF; color: var(--ag-ink);
}
.ag-tv__bar {
    display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 12px;
    background: var(--ag-cyan-ink); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
}
.ag-tv__clock { font-family: var(--ag-font-display); font-size: 14px; letter-spacing: 0; }
.ag-tv__row { display: flex; align-items: center; gap: 8px; height: 31px; padding: 0 12px; font-size: 12px; }
.ag-tv__row + .ag-tv__row { border-top: 1px solid #E6F0F2; }
.ag-tv__row .ag-jersey { width: 6px; height: 16px; }
.ag-tv__rank { font-weight: 700; color: var(--ag-muted); }
.ag-tv__name { flex: 1; font-weight: 600; }
.ag-tv__needs { font-size: 11px; font-weight: 600; color: var(--ag-attn); }
.ag-tv__total { font-family: var(--ag-font-display); font-size: 13px; font-weight: 600; }
.ag-tv__stand { width: 90px; height: 14px; border-radius: 0 0 8px 8px; background: var(--ag-deepest); }

.ag-included {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 24px; padding: 22px 28px; border-radius: 24px; background: var(--ag-tint);
}
.ag-included__title { margin-right: 6px; font-family: var(--ag-font-body); font-size: 16px; font-weight: 700; }
.ag-included ul { display: flex; flex-wrap: wrap; gap: 10px; }
.ag-included li { padding: 8px 14px; border: 1px solid var(--ag-line); border-radius: 999px; background: #FFFFFF; font-size: 15px; font-weight: 600; }

@media (max-width: 640px) {
    .ag-feature { border-radius: 24px; }
    .ag-feature__art { height: 200px; }
    .ag-feature__art .ag-phone { transform: scale(0.85); transform-origin: bottom center; }
    .ag-feature__art .ag-tv { transform: scale(0.9); }
    .ag-feature__body { padding: 22px; }
    .ag-feature__title { font-size: 19px; }
    .ag-included { padding: 20px; }
    .ag-included__title { width: 100%; }
    .ag-included li { padding: 7px 12px; font-size: 14px; }
}

/* ── Pricing ──────────────────────────────────────────── */

.ag-pricing {
    display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: center;
    padding: 52px 56px; border-radius: 32px; background: var(--ag-tint);
}
.ag-pricing .ag-lead { max-width: 560px; }
.ag-price-card { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 24px; background: #FFFFFF; box-shadow: var(--ag-shadow-soft); }
.ag-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ag-price__amount { font-family: var(--ag-font-display); font-weight: 700; font-size: clamp(44px, 4.4vw, 60px); line-height: 1; }
.ag-price__unit { font-size: 18px; color: var(--ag-text); }
.ag-price__note { font-size: 16px; color: var(--ag-text); }
.ag-price-card .ag-btn { margin-top: 10px; }
.ag-price__trial { display: inline-flex; align-items: center; align-self: center; min-height: 44px; font-weight: 600; }

@media (max-width: 960px) {
    .ag-pricing { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
}

@media (max-width: 640px) {
    .ag-pricing { padding: 24px; border-radius: 24px; }
    .ag-price-card { padding: 24px; }
}

/* ── Questions ────────────────────────────────────────── */

.ag-faq { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 72px; align-items: start; }
.ag-faq__list { border-top: 1px solid var(--ag-line); }
.ag-faq__item { border-bottom: 1px solid var(--ag-line); }
.ag-faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    min-height: 72px; padding: 14px 0; list-style: none; cursor: pointer;
    font-size: 19px; font-weight: 700;
}
.ag-faq__item summary::-webkit-details-marker { display: none; }
.ag-faq__item summary::after {
    content: ""; flex-shrink: 0; width: 22px; height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E6B82' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ag-faq__item[open] summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E6B82' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}
.ag-faq__item p { padding: 0 60px 24px 0; font-size: 17px; line-height: 1.55; color: var(--ag-text); }

@media (max-width: 960px) {
    .ag-faq { grid-template-columns: 1fr; gap: 24px; }
    .ag-faq__item summary { min-height: 64px; font-size: 17px; }
    .ag-faq__item p { padding-right: 0; font-size: 16px; }
}

/* ── Team ─────────────────────────────────────────────── */

.ag-avatar { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--ag-tint-2); }
.ag-avatar--initials {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ag-font-display); font-size: 30px; font-weight: 600; color: var(--ag-deep);
}

.ag-member-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--ag-line); border-radius: 24px; background: #FFFFFF; }
.ag-member-card .ag-avatar { margin-bottom: 12px; }
.ag-member-card__name { font-family: var(--ag-font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.ag-member-card__role { font-size: 15px; font-weight: 700; color: var(--ag-cyan-ink); }
.ag-member-card__bio { color: var(--ag-text); }

.ag-page-hero { position: relative; overflow: hidden; background: var(--ag-deep); color: #FFFFFF; }
.ag-page-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 48px; padding-bottom: 112px; text-align: center; }
.ag-page-hero .ag-eyebrow { color: var(--ag-sky-2); }
.ag-page-hero__title { font-family: var(--ag-font-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -0.03em; }
.ag-page-hero__lead { max-width: 720px; margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ag-on-deep); text-wrap: pretty; }

/* "How it all started": group photo beside the story, or the story alone until the photo is added. */
.ag-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ag-story--text { grid-template-columns: minmax(0, 760px); }
.ag-story__photo { margin: 0; }
.ag-story__photo img {
    display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
    object-fit: cover; object-position: 50% 35%; border-radius: 28px; background: var(--ag-tint-2);
}
.ag-story__lead {
    margin-top: 20px; font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; line-height: 1.45;
    color: var(--ag-ink); text-wrap: pretty;
}
.ag-story__text { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--ag-text); text-wrap: pretty; }
.ag-story__closing {
    margin-top: 24px; font-family: var(--ag-font-display); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600;
    line-height: 1.35; letter-spacing: -0.01em; color: var(--ag-cyan-ink); text-wrap: balance;
}

.ag-team-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ag-member {
    display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; padding: 32px;
    border: 1px solid var(--ag-line); border-radius: 28px; background: #FFFFFF;
}
.ag-member .ag-avatar { width: 120px; height: 120px; }
.ag-member__body { display: flex; flex-direction: column; gap: 10px; }
.ag-member__name { font-family: var(--ag-font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.ag-member__role { font-weight: 700; color: var(--ag-cyan-ink); }
.ag-member__bio { color: var(--ag-text); }
.ag-member__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 4px; }
.ag-member__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

@media (max-width: 960px) {
    .ag-story { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .ag-team-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .ag-page-hero__inner { padding-top: 32px; padding-bottom: 72px; }
    .ag-member { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
    .ag-member .ag-avatar { width: 96px; height: 96px; }
    .ag-grid--team { gap: 12px; }
    /* Compact rows on phones: photo on the left, text on the right. */
    .ag-member-card {
        display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; row-gap: 4px;
        align-items: start; padding: 20px;
    }
    .ag-member-card .ag-avatar { grid-row: span 3; width: 64px; height: 64px; margin-bottom: 0; }
    .ag-member-card .ag-avatar--initials { font-size: 22px; }
    .ag-member-card__name { font-size: 18px; }
}

/* ── Final call to action ─────────────────────────────── */

.ag-cta {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center;
    padding: 88px 40px; border-radius: 40px; background: var(--ag-deep); color: #FFFFFF; text-align: center;
}
.ag-cta__art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ag-cta__arc { fill: none; stroke: var(--ag-arc); stroke-width: 12; stroke-linecap: round; }
.ag-cta__wave { fill: none; stroke: var(--ag-cyan); stroke-width: 22; stroke-linecap: round; opacity: 0.35; }
.ag-cta__title {
    position: relative; margin-top: 44px;
    font-family: var(--ag-font-display); font-weight: 700;
    font-size: clamp(28px, 4vw, 56px); line-height: 1.15; letter-spacing: -0.03em;
}
.ag-cta__lead { position: relative; max-width: 620px; margin-top: 20px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ag-on-deep); }
.ag-cta .ag-actions { position: relative; }

@media (max-width: 640px) {
    .ag-cta { padding: 48px 24px; border-radius: 28px; }
    .ag-cta__title { margin-top: 36px; }
}

/* ── Footer ───────────────────────────────────────────── */

.ag-footer { margin-top: 96px; padding: 64px 0 48px; border-top: 1px solid var(--ag-line); color: var(--ag-text); }
.ag-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 48px; }
.ag-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.ag-footer__brand p { max-width: 340px; }
.ag-footer__meaning strong { color: var(--ag-ink); }
.ag-footer__social { display: flex; gap: 8px; }
.ag-footer__social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; background: var(--ag-tint); color: var(--ag-deep);
}
.ag-footer__social a:hover { background: var(--ag-tint-2); }
.ag-footer__title {
    margin-bottom: 12px;
    font-family: var(--ag-font-body); font-size: 13px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--ag-cyan-ink);
}
.ag-footer nav ul { display: flex; flex-direction: column; gap: 2px; }
.ag-footer nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ag-ink); text-decoration: none; }
.ag-footer nav a:hover { text-decoration: underline; }
.ag-footer__bottom {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
    padding-top: 28px; border-top: 1px solid var(--ag-line-2);
    font-size: 15px; color: var(--ag-muted);
}
.ag-footer__bottom a { color: inherit; }

@media (max-width: 960px) {
    .ag-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .ag-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .ag-footer { margin-top: 64px; padding-top: 40px; }
    .ag-footer__bottom { flex-direction: column; }
}

/* ── Dialogs: log in / sign up, book a demo ───────────── */

.ag-dialog {
    width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
    padding: 0; border: 0; border-radius: 24px; overflow: auto;
    background: #FFFFFF; color: var(--ag-ink);
    box-shadow: 0 40px 80px rgba(6, 47, 56, 0.35);
}
.ag-dialog::backdrop { background: rgba(6, 47, 56, 0.6); }
.ag-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 0 24px; }
.ag-dialog__head--titled { align-items: flex-start; padding-top: 24px; }
.ag-dialog__title { font-family: var(--ag-font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.ag-dialog__subtitle { margin-top: 6px; color: var(--ag-text); }
.ag-dialog__close {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: var(--ag-tint); color: var(--ag-ink); cursor: pointer;
}
.ag-dialog__close:hover { background: var(--ag-tint-2); }
.ag-dialog__body { padding: 20px 24px 28px; }

.ag-tabs { display: flex; flex: 1; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ag-tint); }
.ag-tabs__tab {
    flex: 1; min-height: 44px; border: 0; border-radius: 999px;
    background: transparent; color: var(--ag-text); font-weight: 700; cursor: pointer;
}
.ag-tabs__tab[aria-selected="true"] { background: #FFFFFF; color: var(--ag-ink); box-shadow: 0 2px 8px rgba(11, 79, 94, 0.12); }

.ag-form { display: flex; flex-direction: column; gap: 16px; }
.ag-form__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.ag-form__aside { margin-top: -6px; font-size: 15px; text-align: right; }
.ag-form__fine { font-size: 14px; color: var(--ag-muted); text-align: center; }

.ag-field { display: flex; flex-direction: column; gap: 6px; }
.ag-field label { font-size: 14px; font-weight: 700; }
.ag-field__optional { font-weight: 500; color: var(--ag-muted); }
.ag-field input {
    width: 100%; min-height: 52px; padding: 0 16px;
    border: 1.5px solid var(--ag-line); border-radius: 12px;
    background: #FFFFFF; color: var(--ag-ink); font: inherit; font-size: 16px;
}
.ag-field input:focus { outline: none; border-color: var(--ag-cyan); box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.25); }
.ag-field input[aria-invalid="true"] { border-color: var(--ag-error); }
.ag-field__error { font-size: 14px; font-weight: 600; color: var(--ag-error); }
.ag-field__error:empty { display: none; }

.ag-alert { padding: 12px 14px; border: 1px solid #FECDCA; border-radius: 12px; background: #FEF3F2; color: #912018; font-size: 15px; }
.ag-alert__action {
    display: inline-flex; min-height: 32px; margin-top: 6px; padding: 0; border: 0;
    background: none; color: var(--ag-cyan-ink); font-weight: 700; text-decoration: underline; cursor: pointer;
}
.ag-alert__status { display: block; margin-top: 2px; font-size: 14px; color: var(--ag-ink); }

.ag-demo-success { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0; text-align: center; }
.ag-demo-success__icon {
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%; background: #D1FAE5; color: #047857;
}
.ag-demo-success h3 { font-family: var(--ag-font-display); font-size: 22px; font-weight: 600; }
.ag-demo-success p { color: var(--ag-text); }
