:root {
    --bg: #f3efe7;
    --bg-2: #fffdf8;
    --surface: #ffffff;
    --text: #1c1d1f;
    --muted: #5b5852;
    --gold: #7a5a2e;
    --line: rgb(28 29 31 / 0.12);
    --cta: #1a2744;
    --cta-hover: #121b31;
    --cta-text: #f7f3ea;
    --btn: #1b7de8;
    --btn-text: #ffffff;
    --btn-grad: linear-gradient(180deg, #4cabf7 0%, #1b7de8 52%, #156fd4 100%);
    --btn-grad-hover: linear-gradient(180deg, #3d9eef 0%, #166fce 52%, #125db8 100%);
    --danger: #9b1c1c;
    --ok: #1f6b45;
    --radius: 1.25rem;
    --font: "Manrope", system-ui, sans-serif;
    --ease: cubic-bezier(0.2, 0, 0, 1);
    --pad: max(1.25rem, env(safe-area-inset-left));
    --pad-end: max(1.25rem, env(safe-area-inset-right));
    --measure: 42rem;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
    text-underline-position: from-font;
    text-decoration-thickness: from-font;
}

a:hover:not(.btn) {
    color: var(--text);
}

:focus-visible {
    outline: 2px solid var(--btn);
    outline-offset: 3px;
}

::selection {
    background: #d9c7a4;
    color: var(--text);
}

.skip {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 0.75rem;
    z-index: 20;
    padding: 0.6rem 0.9rem;
    background: var(--btn);
    color: var(--btn-text);
    text-decoration: none;
    border-radius: 0.5rem;
    transform: translateY(-200%);
}

.skip:focus {
    transform: none;
}

.top,
.hero,
.section,
.foot {
    padding-inline: var(--pad) var(--pad-end);
}

.top {
    display: flex;
    align-items: center;
    gap: 0.85rem 1.1rem;
    flex-wrap: wrap;
    padding-block: max(0.7rem, env(safe-area-inset-top)) 0.7rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.top-logo {
    flex: none;
    display: grid;
}

.top-logo img {
    width: auto;
    height: 1.85rem;
}

.top-title {
    margin: 0;
    flex: 1 1 12rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-wrap: balance;
}

.top-phone {
    margin-inline-start: auto;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.hero {
    display: grid;
    gap: 2rem;
    padding-block: 1.5rem;
    background: var(--bg);
}

.eyebrow,
.kicker {
    margin: 0 0 0.65rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

h1 {
    font-size: clamp(2.75rem, 1.7rem + 5.4vw, 5rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: 12ch;
}

h2 {
    font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem);
    max-width: 24ch;
}

h3 {
    font-size: 1.125rem;
    letter-spacing: -0.015em;
}

.lead {
    margin: 0 0 1.15rem;
    font-size: clamp(1.45rem, 1.15rem + 1.6vw, 2.25rem);
    color: var(--text);
    max-width: 22ch;
    text-wrap: balance;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.intro,
.prose {
    margin: 0 0 1.25rem;
    color: var(--muted);
    max-width: var(--measure);
    text-wrap: pretty;
}

.hero-actions,
.facts,
.section-actions {
    display: grid;
    gap: 0.75rem;
}

.section-actions {
    margin-top: 1.35rem;
    justify-items: start;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition-property: scale, background-color, box-shadow, color;
    transition-duration: 150ms;
    transition-timing-function: var(--ease);
}

a.btn {
    text-decoration: none;
}

.btn:active {
    scale: 0.96;
}

.btn-primary {
    background: var(--btn-grad);
    color: var(--btn-text);
    box-shadow: 0 6px 18px rgb(21 111 212 / 0.28);
}

.btn-ghost {
    background: transparent;
    color: var(--btn);
    box-shadow: inset 0 0 0 1.5px rgb(27 125 232 / 0.35);
}

.btn-full {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.facts {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.facts li {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
}

.facts-k {
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.video-card {
    position: relative;
    border-radius: calc(var(--radius) + 0.35rem);
    overflow: hidden;
    background: #000;
    outline: 1px solid oklch(0 0 0 / 0.1);
    outline-offset: -1px;
    max-width: 22rem;
    margin-inline: auto;
}

.video {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    border: 0;
    background: rgb(26 39 68 / 0.22);
    color: var(--cta-text);
    cursor: pointer;
    font: inherit;
}

.play.is-playing {
    inset: auto;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
}

.play-icon {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 999px;
    background: var(--cta);
    position: relative;
}

.play-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.55rem 0 0.55rem 0.95rem;
    border-color: transparent transparent transparent var(--cta-text);
    translate: 0.12rem 0;
}

.play.is-playing .play-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: rgb(26 39 68 / 0.82);
}

.play.is-playing .play-icon::after {
    width: 0.7rem;
    height: 0.7rem;
    border: 0;
    background:
        linear-gradient(var(--cta-text), var(--cta-text)) 0 0 / 0.22rem 100% no-repeat,
        linear-gradient(var(--cta-text), var(--cta-text)) 100% 0 / 0.22rem 100% no-repeat;
    translate: 0;
}

.play-label,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.section {
    padding-block: 2.75rem;
}

.section + .section {
    border-top: 1px solid var(--line);
}

.stats,
.program,
.prices,
.brands {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.stats li,
.program li,
.price {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.15rem 1.2rem;
    outline: 1px solid var(--line);
}

.stats strong {
    display: block;
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.35rem;
    font-variant-numeric: tabular-nums;
}

.stats span,
.program p,
.price-note {
    color: var(--muted);
}

.program-n {
    display: block;
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.program h3 {
    margin-bottom: 0.4rem;
}

.program p {
    margin: 0;
}

.speaker {
    display: grid;
    gap: 1.5rem;
}

.speaker-photo {
    border-radius: calc(var(--radius) + 0.25rem);
    overflow: hidden;
    max-width: 22rem;
    outline: 1px solid oklch(0 0 0 / 0.1);
    outline-offset: -1px;
}

.speaker-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}

.brands li,
.brands-light {
    background: #ffffff;
    border-radius: 1rem;
    min-height: 5.75rem;
    display: grid;
    place-items: center;
    padding: 0.85rem 1rem;
    outline: 1px solid oklch(0 0 0 / 0.1);
}

.brands img {
    width: 100%;
    height: 4.5rem;
    object-fit: contain;
}

.prices {
    margin: 1.25rem 0 1rem;
}

.price.is-featured {
    background: var(--cta);
    color: var(--cta-text);
    outline: 0;
}

.price.is-featured .price-note,
.price.is-featured .price-badge {
    color: rgb(247 243 234 / 0.78);
}

.price-badge {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

.price-value {
    margin: 0 0 0.35rem;
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.price-note,
.friend {
    margin: 0;
}

.friend {
    color: var(--muted);
}

.map-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.howto {
    margin-top: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 0.25rem 1rem;
    outline: 1px solid var(--line);
}

.howto summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
}

.howto p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.form {
    display: grid;
    gap: 0.9rem;
    max-width: 28rem;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field[hidden] {
    display: none;
}

.field label {
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.field select {
    padding-inline-end: 2rem;
}

.phone-row {
    display: grid;
    grid-template-columns: minmax(7.25rem, 8.75rem) minmax(0, 1fr);
    gap: 0.5rem;
}

.field input::placeholder {
    color: rgb(91 88 82 / 0.55);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
    border-color: var(--danger);
}

.field-error {
    margin: 0;
    color: var(--danger);
    font-size: 0.9rem;
}

.choices {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
}

.choices legend {
    padding: 0;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.choice {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: var(--surface);
    outline: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
}

.choice input {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    accent-color: var(--btn);
}

.choice:has(input:focus-visible) {
    outline: 2px solid var(--btn);
    outline-offset: 2px;
}

.choice:has(input:checked) {
    outline-color: var(--btn);
    box-shadow: inset 0 0 0 1px var(--btn);
}

.check {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    color: var(--muted);
}

.check input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
    flex: none;
    accent-color: var(--btn);
}

.form-status {
    margin: 0;
    min-height: 1.4em;
}

.form-status.is-ok {
    color: var(--ok);
}

.form-status.is-err {
    color: var(--danger);
}

.foot {
    padding-block: 2rem 7.5rem;
    color: var(--muted);
    font-size: 0.92rem;
    border-top: 1px solid var(--line);
}

.foot-logo {
    display: inline-grid;
    margin-bottom: 1rem;
}

.foot-logo img {
    width: auto;
    height: 2.15rem;
}

.foot a {
    color: inherit;
}

.dock {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem var(--pad-end) max(0.75rem, env(safe-area-inset-bottom)) var(--pad);
    background: rgb(243 239 231 / 0.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
}

.dock p {
    margin: 0;
    font-weight: 700;
    font-size: 0.92rem;
}

.dock .btn {
    flex: none;
    min-height: 44px;
    padding-inline: 1rem;
}

.dock.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.btn-primary:hover,
a.btn-primary:hover {
    background: var(--btn-grad-hover);
    color: var(--btn-text);
    box-shadow: 0 8px 24px rgb(21 111 212 / 0.34);
}

.btn-ghost:hover,
a.btn-ghost:hover {
    background: var(--btn-grad);
    color: var(--btn-text);
    box-shadow: inset 0 0 0 1.5px transparent;
}

@media (hover: none) {
    .btn-primary:hover,
    a.btn-primary:hover {
        background: var(--btn-grad);
        box-shadow: 0 6px 18px rgb(21 111 212 / 0.28);
    }

    .btn-ghost:hover,
    a.btn-ghost:hover {
        background: transparent;
        color: var(--btn);
        box-shadow: inset 0 0 0 1.5px rgb(27 125 232 / 0.35);
    }
}

@media (min-width: 720px) {
    .top,
    .hero,
    .section,
    .foot {
        padding-inline: max(2rem, calc((100% - 68rem) / 2));
    }

    .top-logo img {
        height: 2.15rem;
    }

    .top-title {
        font-size: 1.05rem;
    }

    .hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.75fr);
        align-items: center;
        padding-block: 3.5rem 2.5rem;
        gap: 2.5rem;
        background:
            linear-gradient(90deg, var(--bg) 46%, rgb(243 239 231 / 0.72) 72%, rgb(243 239 231 / 0.2) 100%),
            url("./assets/hero.jpg") right center / min(46vw, 38rem) auto no-repeat;
    }

    .hero-actions,
    .section-actions {
        grid-template-columns: auto auto;
        justify-content: start;
    }

    .facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .facts li {
        padding-inline-end: 1rem;
    }

    .stats,
    .prices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .prices {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .program {
        grid-template-columns: 1fr 1fr;
    }

    .program-wide {
        grid-column: 1 / -1;
    }

    .speaker {
        grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
        align-items: center;
        gap: 2.5rem;
    }

    .brands {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .section {
        padding-block: 3.5rem;
    }

    .dock {
        display: none;
    }

    .foot {
        padding-bottom: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .dock {
        transition: none;
    }

    .btn:active {
        scale: 1;
    }
}

@media (forced-colors: active) {
    .btn-primary,
    .play-icon,
    .price.is-featured {
        background: ButtonFace;
        color: ButtonText;
        border: 1px solid ButtonText;
    }

    .play-icon::after {
        border-color: transparent transparent transparent ButtonText;
    }
}
