@charset "UTF-8";
/* =============================================================================
   landing_hero.css -- hero, free-SWMS signup card and partner marquee for
   templates/swms_landing.html (+ templates/_partners_banner.html).
   Every rule is prefixed hero- or pm- (plus the #free-swms anchor), so nothing
   collides with the page's inline styles. Bump the ?v= on the link when this
   changes.
   ============================================================================= */

/* ---- hero band: exact #0000FF, full-bleed -------------------------------- */
.hero-band {
    width: 100%;
    background: #0000ff;
    color: #fff;
    font-family: Arial, sans-serif;
}

.hero-band *, .hero-signup *, .pm-banner * { box-sizing: border-box; }

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hero-copy { text-align: left; min-width: 0; }

.hero-eyebrow {
    margin: 0 0 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.hero-h1 {
    margin: 0 0 20px;
    font-size: clamp(22px, 2.5vw, 32px);   /* sized so each of the three lines fits on one line from 901px up */
    line-height: 1.18;
    font-weight: 800;
    color: #fff;
    text-align: left;
}

.hero-line { display: block; }

/* Same white and same weight as the rest of the headline; no underline or other
   decoration. It only keeps the phrase together on one line. */
.hero-accent {
    color: #fff;
    white-space: nowrap;
}

.hero-sub {
    max-width: 34em;
    margin: 0 0 28px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-btn {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.hero-btn-primary { background: #f59e0b; color: #1a1a2e; border-color: #f59e0b; }
.hero-btn-primary:hover { background: #d97706; color: #1a1a2e; border-color: #d97706; }

.hero-btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.hero-btn-secondary:hover { background: #fff; color: #0000ff; }

.hero-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.hero-micro {
    margin: 16px 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-visual { min-width: 0; }
.hero-visual img { display: block; width: 100%; height: auto; }

.hero-caption {
    margin: 10px 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

/* ---- free-SWMS signup card ------------------------------------------------ */
.hero-signup {
    background: #f4f6f9;
    padding: 48px 16px;
    font-family: Arial, sans-serif;
}

#free-swms { scroll-margin-top: 110px; }

.hero-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    color: #1a1a2e;
    text-align: left;
}

.hero-card-title { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; color: #1a1a2e; }
.hero-card-lead { margin: 0 0 20px; font-size: 0.98rem; line-height: 1.5; color: #374151; }

.hero-label { display: block; margin: 0 0 6px; font-size: 0.9rem; font-weight: 700; color: #1a1a2e; }

.hero-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: #1a1a2e;
    background: #fff;
}
.hero-input:focus { outline: 3px solid rgba(37, 99, 235, 0.35); border-color: #2563eb; }

.hero-turnstile { display: flex; justify-content: center; min-height: 65px; margin: 14px 0; }

.hero-card-submit { display: block; width: 100%; margin-top: 4px; }
.hero-card-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.hero-card-submit:disabled:hover { background: #f59e0b; border-color: #f59e0b; }

.hero-notice {
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    background: #fff7e6;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #1a1a2e;
}
.hero-notice[hidden] { display: none; }

.hero-hp { display: none; }

.hero-card-fine { margin: 14px 0 0; font-size: 0.8rem; text-align: center; color: #6b7280; }
.hero-card-fine a { color: #2563eb; }

.hero-nojs { margin: 12px 0 0; font-size: 0.9rem; text-align: center; }
.hero-nojs a { color: #2563eb; font-weight: 700; }

/* ---- partner marquee ------------------------------------------------------ */
/* Loop: the tile list appears 4 times (copies after the first aria-hidden). The
   track's padding-right equals its gap, so the track is exactly 4 x (set + gap)
   and sliding by calc(-100% / 4) is exactly one set pitch: the loop point is
   invisible. 4 sets always out-span the widest viewport with 2+ on screen.
   Duration comes from --pm-duration, set in the include: 5s a tile. */
.pm-banner { background: #fff; padding: 40px 0 48px; border-bottom: 1px solid #e5e7eb; font-family: Arial, sans-serif; }

.pm-inner { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.pm-caption {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: #6b7280;
}

.pm-marquee {
    overflow: hidden;
    margin-top: 28px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.pm-track {
    display: flex;
    gap: 28px;
    width: max-content;
    padding-right: 28px;
    will-change: transform;
    animation: pm-scroll var(--pm-duration, 25s) linear infinite;
}
.pm-marquee:hover .pm-track { animation-play-state: paused; }
@keyframes pm-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-100% / 4)); } }

.pm-tile {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 84px;
    padding: 18px 26px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

/* Logos are always shown in full colour. */
.pm-tile img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.pm-tile:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

/* Logos with a solid block in the artwork are capped in height so they do not
   out-weigh the wordmarks beside them. */
.pm-tile-rams-generator img, .pm-tile-aha-generator img { max-height: 44px; }

/* ---- breakpoints ---------------------------------------------------------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px; }
    .hero-visual { max-width: 640px; margin: 0 auto; }
}

@media (max-width: 768px) {
    #free-swms { scroll-margin-top: 72px; }
    .hero-signup { padding: 32px 16px; }
    .hero-card { padding: 24px 20px; }
    .pm-track { gap: 20px; padding-right: 20px; animation-duration: calc(var(--pm-duration, 25s) * 0.75); }
    .pm-tile { width: 150px; height: 64px; padding: 12px 18px; }
    .pm-tile-rams-generator img, .pm-tile-aha-generator img { max-height: 34px; }
}

@media (max-width: 600px) {
    .hero-cta .hero-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .pm-marquee { -webkit-mask-image: none; mask-image: none; }
    .pm-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding-right: 0; }
    .pm-track [aria-hidden="true"] { display: none; }
    .hero-btn { transition: none; }
}
