/**
 * MMD Landing — shared structure.
 *
 * This file owns LAYOUT, not LOOK. Everything visual is driven by the custom
 * properties below, which each template's style.css overrides. A second design
 * should be a short list of variable overrides, not a fork of this file.
 *
 * Mobile-first: the supplied comp is mobile, so that is the baseline and
 * desktop is the enhancement.
 */

:root {
    --lp-bg:            #0a0a0a;
    --lp-fg:            #ffffff;
    --lp-muted:         rgba(255, 255, 255, 0.72);
    --lp-accent:        #e4262c;
    --lp-cream:         #efe6d5;
    --lp-ink:           #111111;

    --lp-font-display:  'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    --lp-font-body:     'Roboto', Arial, sans-serif;

    --lp-radius:        22px;   /* cards */
    --lp-radius-sm:     8px;    /* inputs */
    --lp-btn-radius:    6px;    /* buttons — squared off, not pills */
    --lp-maxw:          640px;   /* the reading column */
    --lp-gutter:        20px;

    --lp-hero-tint:     0.7;
}

/* ── Page shell ─────────────────────────────────────────────────────────── */

.lp-body {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-fg);
    font-family: var(--lp-font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.lp-body img { max-width: 100%; height: auto; }
.lp-body a   { color: inherit; }

.lp-main { display: block; }

/* Every top-level block gets the reading column, except full-bleed ones. */
.lp-main > * {
    max-width: var(--lp-maxw);
    margin-inline: auto;
    padding-inline: var(--lp-gutter);
    box-sizing: border-box;
}

.lp-main > .lp-hero {
    max-width: none;
    padding-inline: 0;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}

/* ── Site header (template chrome) ──────────────────────────────────────── */

.lp-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px var(--lp-gutter);
    background: var(--lp-bg);
    position: relative;
    z-index: 3;
}

.lp-header__logo img {
    display: block;
    width: auto;
    max-height: 62px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.lp-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 68vh;
    isolation: isolate;
    background: var(--lp-bg);
}

.lp-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.lp-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/*
 * Video mode embeds the ait/hero-video sequential player (<section.mmd-hero>
 * with its own scoped CSS). Stretch it to fill the hero stage so the tint and
 * fade overlays sit over a full-bleed loop, same as the image.
 */
.lp-hero__media .mmd-hero,
.lp-hero__media .mmd-hero-video__stage {
    width: 100%;
    height: 100%;
}

.lp-hero__media .mmd-hero-video__clip {
    height: 100%;
    object-fit: cover;
}

/* The red duotone wash. */
.lp-hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #8a1f18;
    mix-blend-mode: multiply;
    opacity: var(--lp-hero-tint, 0.7);
}

/* Fade the photo into the page so there is no hard seam. */
.lp-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.55) 0%,
        rgba(10, 10, 10, 0.15) 30%,
        rgba(10, 10, 10, 0.85) 78%,
        var(--lp-bg) 100%
    );
}

.lp-hero__inner {
    width: 100%;
    max-width: var(--lp-maxw);
    margin-inline: auto;
    padding: 0 var(--lp-gutter) 28px;
    box-sizing: border-box;
}

.lp-hero__title {
    margin: 0;
    font-family: var(--lp-font-display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.03;
    letter-spacing: 0.005em;
    color: var(--lp-cream);
    text-wrap: balance;
}

.lp-hero__title em,
.lp-hero__title i {
    font-style: italic;
    color: #ffffff;
}

/* ── "As seen on" badge ─────────────────────────────────────────────────── */

.lp-badge {
    display: flex;
    justify-content: center;
    padding-block: 22px 8px;
}

.lp-badge__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: var(--lp-cream);
    color: var(--lp-ink);
    border-radius: var(--lp-radius-sm);
    padding: 12px 26px;
    text-align: center;
}

.lp-badge__eyebrow {
    font-family: var(--lp-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

/* The "SHARK [fin] TANK" lockup: editable words with the fin image between. */
.lp-badge__logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--lp-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 1.5rem;
    line-height: 1;
}

.lp-badge__word { white-space: nowrap; }

/* Fin scales with the words, so bumping font-size resizes the whole lockup. */
.lp-badge__fin {
    max-height: 0.9em;
    width: auto;
}

/* ── Lead form ──────────────────────────────────────────────────────────── */

.lp-form { padding-block: 20px 8px; }

.lp-form__card {
    background: var(--lp-cream);
    color: var(--lp-ink);
    border-radius: var(--lp-radius);
    padding: 30px 24px 26px;
}

.lp-form__title {
    margin: 0 0 4px;
    font-family: var(--lp-font-body);
    font-weight: 900;
    font-size: clamp(1.7rem, 6.5vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.lp-form__sub {
    margin: 0 0 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #2b2b2b;
}

.lp-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lp-form__field { margin-bottom: 12px; }
.lp-form__row .lp-form__field { margin-bottom: 0; }
.lp-form__row + .lp-form__field,
.lp-form__row { margin-bottom: 12px; }

.lp-form__field input,
.lp-form__field textarea {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid #9c9484;
    border-radius: var(--lp-radius-sm);
    padding: 12px 14px;
    font-family: var(--lp-font-body);
    font-size: 0.95rem;
    color: var(--lp-ink);
}

.lp-form__field textarea { resize: vertical; min-height: 130px; }

.lp-form__field input::placeholder,
.lp-form__field textarea::placeholder { color: #6d6759; }

.lp-form__field input:focus,
.lp-form__field textarea:focus {
    outline: 2px solid var(--lp-accent);
    outline-offset: 1px;
    border-color: transparent;
}

.lp-form__consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    margin-bottom: 12px;
}

.lp-form__consent input { margin-top: 3px; }

.lp-form__consent label {
    font-size: 0.66rem;
    line-height: 1.4;
    color: #4a4638;
}

.lp-form__consent a { color: #4a4638; text-decoration: underline; }

.lp-form__submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    background: var(--lp-ink);
    color: var(--lp-cream);
    border: none;
    border-radius: var(--lp-btn-radius);
    padding: 12px 22px;
    font-family: var(--lp-font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.lp-form__submit:hover { opacity: 0.88; }
.lp-form__submit:active { transform: translateY(1px); }

.lp-form__submit-icon { width: 18px; height: 18px; flex: none; }

/* ── Intro paragraph ────────────────────────────────────────────────────── */

.lp-intro { padding-block: 34px; }

.lp-intro__inner {
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--lp-muted);
    max-width: 34rem;
    margin-inline: auto;
}

.lp-intro__inner strong { color: var(--lp-fg); font-weight: 700; }
.lp-intro__inner a { color: var(--lp-fg); text-decoration: underline; }

/* ── Section heading ────────────────────────────────────────────────────── */

.lp-heading {
    text-align: center;
    padding-block: 20px 8px;
}

.lp-heading__eyebrow {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.lp-heading__title {
    margin: 0 0 12px;
    font-family: var(--lp-font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 7.5vw, 2.4rem);
    line-height: 1.1;
    color: var(--lp-accent);
}

.lp-heading__sub {
    margin: 0 auto;
    max-width: 32rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--lp-muted);
}

/* ── Feature rows ───────────────────────────────────────────────────────── */

/*
 * Image and copy sit SIDE BY SIDE at every width — including mobile, matching
 * the comp — alternating which side the prop image is on. (The old layout only
 * went side-by-side at >=460px and stacked below it, so real phones, which are
 * mostly ~390px, stacked the image full-width above the text.)
 */
.lp-feature {
    display: grid;
    grid-template-columns: 40% 1fr;   /* image | copy */
    gap: 16px;
    align-items: center;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* First row in a run has no rule above it — the section heading is the divider. */
.lp-heading + .lp-feature { border-top: 0; }

/* Alternate rows flip the image to the right. */
.lp-feature--right { grid-template-columns: 1fr 40%; }
.lp-feature--right .lp-feature__media { order: 2; }
.lp-feature--right .lp-feature__body  { order: 1; }

.lp-feature__media {
    display: flex;
    justify-content: center;
}

.lp-feature__img {
    width: 100%;
    max-height: 160px;   /* keep a tall prop image from blowing out the row */
    height: auto;
    object-fit: contain;
}

.lp-feature__title {
    margin: 0 0 6px;
    font-family: var(--lp-font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--lp-accent);
}

.lp-feature__text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--lp-muted);
}

.lp-feature__text a { color: var(--lp-muted); text-decoration: underline; }

/* ── Call CTA ───────────────────────────────────────────────────────────── */

.lp-cta { padding-block: 30px 34px; }

.lp-cta__card {
    border: 1px solid var(--lp-accent);
    border-radius: var(--lp-radius);
    padding: 22px 20px 24px;
    text-align: center;
}

.lp-cta__title {
    margin: 0 0 16px;
    font-family: var(--lp-font-body);
    font-weight: 700;
    font-size: 1.25rem;
    text-align: left;
}

/*
 * Selector is a.lp-cta__btn, not .lp-cta__btn: the global `.lp-body a { color:
 * inherit }` reset outranks a single class and would drag this button's text
 * back to page-white. Matching its specificity (and coming later) wins it back
 * to dark ink on the cream button.
 */
a.lp-cta__btn {
    display: block;
    background: var(--lp-cream);
    color: var(--lp-ink);
    border-radius: var(--lp-btn-radius);
    padding: 13px 20px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.12s ease;
}

a.lp-cta__btn:hover { transform: translateY(-1px); color: var(--lp-ink); }

.lp-cta__note {
    margin: 16px 0 0;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
}

/* ── Footer (template chrome) ───────────────────────────────────────────── */

.lp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--lp-maxw);
    margin-inline: auto;
    padding: 26px var(--lp-gutter) 40px;
}

.lp-footer__logo img { max-height: 42px; width: auto; display: block; }

.lp-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.lp-footer__link:hover { text-decoration: underline; }

/* ── Desktop ────────────────────────────────────────────────────────────── */
/*
 * The comp is mobile-only. On desktop we keep the same vertical story rather
 * than inventing a new one, but widen the column, grow the type, and pull the
 * form card up so it straddles the hero — which keeps the single CTA above the
 * fold on a laptop instead of pushing it a scroll away.
 */
@media (min-width: 900px) {

    :root {
        --lp-maxw:   860px;
        --lp-gutter: 32px;
    }

    .lp-header { padding-block: 26px; }
    .lp-header__logo img { max-height: 86px; }

    .lp-hero { min-height: 78vh; }

    .lp-hero__inner { padding-bottom: 56px; }

    .lp-hero__title {
        font-size: clamp(3rem, 4.6vw, 4.1rem);
        max-width: 15ch;
    }

    .lp-badge { margin-top: -8px; }
    .lp-badge__card { padding: 14px 34px; }
    .lp-badge__logo { font-size: 1.9rem; }

    .lp-form__card { padding: 44px 48px 40px; }
    .lp-form__title { font-size: 2.5rem; }
    .lp-form__sub { font-size: 1rem; margin-bottom: 26px; }
    .lp-form__consent label { font-size: 0.72rem; }

    .lp-intro { padding-block: 52px; }
    .lp-intro__inner { font-size: 1.1rem; max-width: 40rem; }

    .lp-heading { padding-block: 30px 16px; }
    .lp-heading__sub { font-size: 1rem; }

    .lp-feature { padding-block: 42px; gap: 40px; }
    .lp-feature,
    .lp-feature--right { grid-template-columns: 280px 1fr; }
    .lp-feature--right { grid-template-columns: 1fr 280px; }
    .lp-feature__img { max-width: 260px; max-height: 240px; }
    .lp-feature__title { font-size: 1.25rem; }
    .lp-feature__text { font-size: 1rem; }

    .lp-cta__card {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px 32px;
        padding: 32px 36px;
        text-align: left;
    }

    .lp-cta__title { margin: 0; font-size: 1.6rem; }
    .lp-cta__btn { grid-row: 1 / span 2; grid-column: 2; font-size: 1.15rem; padding: 16px 30px; }
    .lp-cta__note { margin: 0; font-size: 1.15rem; }

    .lp-footer { padding-bottom: 56px; }
    .lp-footer__logo img { max-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-cta__btn,
    .lp-form__submit { transition: none; }
}
