/* Ki Webinar — style.css (extends shared.css) */

/* Ki-* overrides (differences from shared.css) */
:root {
    --accent-soft: rgba(var(--accent-rgb), 0.8);
}

h1, h2, h3 { line-height: 1.12; }

.reveal { transform: translateY(12px); }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Scroll target offset for sticky nav */
#register { scroll-margin-top: 4rem; }

/* ── Grid separator lines (ki-* variant) ── */

.grid > *:not(:last-child):not(.grid__entrance):not(.nav) {
    border-bottom: 1px solid transparent;
    position: relative;
}

.grid > *:not(:last-child):not(.grid__entrance):not(.nav)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: var(--grid-line);
    width: 0;
    z-index: 1;
    transition: width 0.7s var(--ease-draw);
    transition-delay: var(--line-delay, 0s);
}

.grid--lines > *:not(:last-child):not(.grid__entrance):not(.nav)::after {
    width: 100%;
}

/* Internal element borders: start invisible, fade in with .grid--lines */
.grid:not(.grid--lines) :is(
    .stats__cell, .hero__card-date, .hero__card,
    .roi__results, .roi__metric, .proof__stat,
    .proof__quotes, .countdown__unit, .value__cell, .host,
    .audience__no, .problem__left, .roi__intro, .register__info,
    .faq, .roi__calc, .faq__item
) {
    border-color: transparent !important;
}

/* Transition for internal borders — staggered with parent section's --line-delay */
.stats__cell, .hero__card-date, .hero__card,
.roi__results, .roi__metric, .proof__stat,
.proof__quotes, .countdown__unit, .value__cell, .host,
.audience__no, .problem__left, .roi__intro, .register__info,
.faq, .roi__calc, .faq__item {
    transition: border-color 0.5s ease calc(var(--line-delay, 0s) + 0.25s);
}

/* ── Nav (ki-* variant — different layout from shared) ── */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--pad);
    position: sticky;
    top: 3px;
    background: var(--bg);
    z-index: 100;
}

.nav__wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
}

.nav__wordmark span {
    color: var(--accent);
}

.nav__cta {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    border: 1px solid var(--grid-line);
    padding: 0.5rem 1.25rem;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav__cta:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* ── Hero ── */

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 5rem var(--pad);
    align-items: center;
}

.hero__pill {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero__pill::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

h1 em {
    font-style: italic;
    background: linear-gradient(90deg, var(--accent) 0%, #3A9E8B 40%, #7B8EC0 60%, var(--accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    padding: 0 0.15em;
    margin: 0 -0.15em;
}

.hero__sub {
    margin: 1.25rem 0 2rem;
    font-size: 1.0625rem;
    max-width: 44ch;
}

.hero__questions {
    list-style: none;
    margin: 1.5rem 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    max-width: 62ch;
}

.hero__questions li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.hero__questions li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--accent);
    font-weight: 700;
}

/* Hero Event Card */

.hero__card {
    display: flex;
    border: 1px solid var(--grid-line);
    max-width: 380px;
}

.hero__card-date {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    border-right: 1px solid var(--grid-line);
}

.hero__card-day {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.hero__card-month {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.25rem;
}

.hero__card-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero__card-time {
    font-size: 1rem;
}

.hero__card-speakers {
    display: flex;
    align-items: center;
}

.hero__card-names {
    margin-left: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.hero__card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* ── Shared: Avatar ── */

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.5625rem;
    color: var(--text);
    flex-shrink: 0;
}

.avatar--warm { background: var(--warm); }
.avatar--accent { background: var(--accent); }
.avatar--lg { width: 48px; height: 48px; font-size: 0.875rem; }
.avatar--img { object-fit: cover; }

.avatar + .avatar { margin-left: -8px; position: relative; }
picture + picture { margin-left: -8px; }
picture + picture .avatar { position: relative; }
.avatar--img { border: 2px solid var(--bg); }

/* ── Shared: Tag ── */

.tag {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border: 1px solid var(--grid-line);
    padding: 0.2rem 0.5rem;
}

/* ── Button overrides (ki-* specific variants) ── */

.btn { transition: background 0.25s ease, border-color 0.25s ease, transform 0.5s var(--ease); }
.btn--full { width: 100%; }
.btn--magnetic { transition: background 0.25s ease, border-color 0.25s ease, transform 0.12s ease-out; }

/* ── Stats ── */

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.stats__cell {
    padding: 2rem var(--pad);
    text-align: center;
}

.stats__cell:not(:last-child) {
    border-right: 1px solid var(--grid-line);
}

.stats__number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    display: block;
    -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
    -webkit-mask-size: 220% 100%;
    -webkit-mask-position: 100% 0;
    mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
    mask-size: 220% 100%;
    mask-position: 100% 0;
    animation: maskWipe 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--line-delay, 0s) + 1.25s);
}

/* Aurora glow line on stat cells */
.stats__cell {
    position: relative;
}

.stats__cell::before {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, #1E7A8A 25%, #3A9E8B 50%, #7B8EC0 75%, transparent);
    box-shadow: 0 0 8px 2px rgba(30,122,138,0.5), 0 0 20px 4px rgba(58,158,139,0.25);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    animation: statGlow 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--line-delay, 0s) + 1.25s);
}

.stats__cell:nth-child(2) .stats__number { animation-delay: calc(var(--line-delay, 0s) + 1.4s); }
.stats__cell:nth-child(3) .stats__number { animation-delay: calc(var(--line-delay, 0s) + 1.55s); }
.stats__cell:nth-child(2)::before { animation-delay: calc(var(--line-delay, 0s) + 1.4s); }
.stats__cell:nth-child(3)::before { animation-delay: calc(var(--line-delay, 0s) + 1.55s); }

@keyframes maskWipe {
    from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
    to   { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
}

@keyframes statGlow {
    0%   { left: -2px; opacity: 0; }
    8%   { opacity: 1; }
    75%  { opacity: 0.7; }
    100% { left: calc(100% + 2px); opacity: 0; }
}

.stats__label {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-top: 0.5rem;
    display: block;
}

/* ── Problem — 2-column split ── */

.problem {
    display: grid;
    grid-template-columns: 1fr;
}

.problem__left {
    padding: var(--pad);
}

.problem__left h2 em {
    font-style: italic;
    color: var(--accent);
}

.problem__right {
    padding: var(--pad);
}

.problem__right p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.problem__right p:last-child {
    margin-bottom: 0;
}

.problem__callout {
    color: var(--text);
    font-weight: 500;
    padding-left: 1.25rem;
    border-left: 2px solid var(--accent);
    margin-top: 0.5rem;
}

/* ── Value — 3-column cells ── */

.value {
    display: grid;
    grid-template-columns: 1fr;
}

.value__cell {
    padding: var(--pad);
}

.value__cell:not(:last-child) {
    border-bottom: 1px solid var(--grid-line);
}

.value__num {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 1rem;
    transition: transform 0.3s var(--ease), text-shadow 0.3s ease;
    transform-origin: left center;
}

.value__cell:hover .value__num {
    transform: scale(1.25);
    text-shadow: 0 0 12px rgba(30, 122, 138, 0.6), 0 0 4px rgba(30, 122, 138, 0.3);
}

.value__cell h3 {
    margin-bottom: 0.5rem;
}

.value__cell p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ── Hosts — 2-column split ── */

.hosts {
    display: grid;
    grid-template-columns: 1fr;
}

.host {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: var(--pad);
}

.host:not(:last-child) {
    border-bottom: 1px solid var(--grid-line);
}

.host h3 {
    margin-bottom: 0.125rem;
}

.host__role {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.host__bio {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ── Register — 2-column split ── */

.register {
    display: grid;
    grid-template-columns: 1fr;
}

.register__info {
    padding: var(--pad);
}

.register__info h2 {
    margin-bottom: 1rem;
}

.register__info > p {
    line-height: 1.7;
}

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

.register__list li {
    display: grid;
    grid-template-columns: 0.75rem minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: start;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.register__list li::before {
    content: '\2013';
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.7;
    justify-self: start;
}

.register__form {
    padding: var(--pad);
}

.form__group {
    margin-bottom: 1.25rem;
}

.form__group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.form__group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--grid-line);
    outline: none;
    transition: border-color 0.2s ease;
}

.form__group input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.form__group input:focus {
    border-color: var(--accent);
}

/* ── CTA Bar (ki-* variant — different from shared) ── */

.cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem var(--pad);
}

.cta-bar span {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* ── Agenda ── */

.agenda {
    padding: var(--pad);
}

.agenda__heading {
    margin-bottom: 1.25rem;
}

.agenda__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.agenda__list li {
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.agenda__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

/* ── Audience ── */

.audience {
    display: grid;
    grid-template-columns: 1fr;
}

.audience__yes {
    padding: var(--pad);
}

.audience__no {
    padding: var(--pad);
    border-top: 1px solid var(--grid-line);
}

.audience h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.audience ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.audience li {
    display: grid;
    grid-template-columns: 0.75rem minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: start;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.audience__yes li::before {
    content: '\2013';
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.6;
    justify-self: start;
}

.audience__no li::before {
    content: '\2013';
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.6;
    justify-self: start;
}

.audience__no {
    opacity: 0.65;
}

/* ── ROI Calculator ── */

.roi {
    display: grid;
    grid-template-columns: 1fr;
}

.roi__intro {
    padding: var(--pad);
}

.roi__intro h2 {
    margin-bottom: 0.75rem;
}

.roi__intro p {
    line-height: 1.7;
}

.roi__calc {
    padding: var(--pad);
    border-top: 1px solid var(--grid-line);
}

.roi__inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.roi__inputs .form__group {
    margin-bottom: 0;
}

.roi__inputs input[type="number"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--grid-line);
    outline: none;
    transition: border-color 0.2s ease;
    -moz-appearance: textfield;
}

.roi__inputs input[type="number"]::-webkit-outer-spin-button,
.roi__inputs input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.roi__inputs input[type="number"]:focus {
    border-color: var(--accent);
}

.roi__results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--grid-line);
}

.roi__metric {
    padding: 1.5rem var(--pad);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.roi__metric:nth-child(1),
.roi__metric:nth-child(2) {
    border-bottom: 1px solid var(--grid-line);
}

.roi__metric:nth-child(odd) {
    border-right: 1px solid var(--grid-line);
}

.roi__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    transition: color 0.3s ease;
}

.roi__value--warm {
    color: var(--warm);
}

.roi__unit {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.roi__note {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--text-muted);
    opacity: 0.7;
    max-width: 100%;
}

/* ── Social Proof ── */

.proof {
    display: grid;
    grid-template-columns: 1fr;
}

.proof__stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.proof__stat {
    padding: 2rem var(--pad);
    text-align: center;
}

.proof__stat:not(:last-child) {
    border-right: 1px solid var(--grid-line);
}

.proof__number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    display: block;
    -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
    -webkit-mask-size: 220% 100%;
    -webkit-mask-position: 100% 0;
    mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
    mask-size: 220% 100%;
    mask-position: 100% 0;
    transition: -webkit-mask-position 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                mask-position 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible .proof__number {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
}

/* Aurora glow line on proof stat cells */
.proof__stat {
    position: relative;
}

.proof__stat::before {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    left: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, #1E7A8A 25%, #3A9E8B 50%, #7B8EC0 75%, transparent);
    box-shadow: 0 0 8px 2px rgba(30,122,138,0.5), 0 0 20px 4px rgba(58,158,139,0.25);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.reveal.visible .proof__stat::before {
    animation: statGlow 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal.visible .proof__stat:nth-child(2)::before { animation-delay: 0.15s; }
.reveal.visible .proof__stat:nth-child(3)::before { animation-delay: 0.3s; }

.reveal.visible .proof__stat:nth-child(2) .proof__number { transition-delay: 0.15s; }
.reveal.visible .proof__stat:nth-child(3) .proof__number { transition-delay: 0.3s; }

.proof__label {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

.proof__quotes {
    display: grid;
    border-top: 1px solid var(--grid-line);
    position: relative;
}

.proof__quotes > * {
    grid-area: 1 / 1;
    padding: var(--pad);
}

.proof__quote {
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.6s ease, filter 0.6s ease;
}

.proof__quote--active {
    opacity: 1;
    filter: blur(0);
}

.proof__quote p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    max-width: 100%;
}

.proof__quote cite {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ── FAQ (ki-* variant — uses <details>/<summary>) ── */

.faq {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--grid-line);
}

.faq h3 {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.faq__item {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--grid-line);
    padding-bottom: 1.25rem;
}

.faq__item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.faq__q {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::after {
    content: '+';
    font-size: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq__item[open] .faq__q::after {
    content: '\2212';
}

.faq__a {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* ── Countdown ── */

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.25rem var(--pad);
}

#countdown {
    overflow-anchor: none;
}

.countdown__label {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.countdown__digits {
    display: flex;
    gap: 0.25rem;
}

.countdown__unit {
    text-align: center;
    min-width: 52px;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--grid-line);
}

.countdown__unit > span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    display: block;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    min-height: 1em;
}

.countdown__unit > span .cd-digit {
    display: inline-block;
    width: 0.62em;
    text-align: center;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.countdown__unit > span .cd-digit.flip-out {
    transform: translateY(-100%);
    opacity: 0;
}

.countdown__unit > span .cd-digit.flip-in {
    transform: translateY(100%);
    opacity: 0;
}

.countdown__unit small {
    font-family: var(--font-display);
    font-size: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

/* ── Host Photos ── */

.host__photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--grid-line);
    transition: transform 0.4s var(--ease), filter 0.4s ease, border-color 0.4s ease;
}

.host:hover .host__photo {
    transform: scale(1.08);
    filter: brightness(1.15);
    border-color: var(--accent);
}

/* ── Register: recording hint ── */

.register__recording {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 2px solid var(--accent);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text);
    max-width: 100%;
}

/* ── Sticky Mobile CTA ── */

.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--grid-line);
    z-index: 99;
    transform: translateY(100%);
    filter: blur(8px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.sticky-cta.shown {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
    pointer-events: none;
}

.sticky-cta .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    pointer-events: none;
    touch-action: pan-y;
}

.sticky-cta.shown .btn {
    pointer-events: auto;
}

/* ── Mobile Register Modal ── */

.register-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(13, 17, 23, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.register-modal--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.register-modal__panel {
    width: min(100%, 34rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid var(--grid-line);
    background: var(--bg);
    transform: translateY(22px);
    transition: transform 0.28s var(--ease);
    position: relative;
    padding: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.register-modal--open .register-modal__panel {
    transform: translateY(0);
}

.register-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--grid-line);
    background: transparent;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.register-modal__title {
    font-size: 1.5rem;
    margin-right: 2.5rem;
}

.register-modal__sub {
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.register-modal__mount .register__form {
    border-top: 1px solid var(--grid-line);
    padding-top: 1.25rem;
}

body.register-modal-open {
    overflow: hidden;
}

/* ── Register: after note ── */

.register__after {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ── Thank You State ── */

.thankyou {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 280px;
    padding: 2.5rem var(--pad);
    animation: fadeUp 0.5s var(--ease) forwards;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
}

.thankyou__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg, #0a0a0a);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.3);
}

.thankyou h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.thankyou p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 32ch;
    color: var(--text-muted);
}

.thankyou__details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    background: rgba(var(--accent-rgb), 0.06);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
}

.thankyou__calendar-btn {
    margin-top: 0.5rem;
}

.thankyou__note {
    font-size: 0.8125rem !important;
    color: var(--text-muted);
    margin-top: 1rem;
}

.thankyou__bonus {
    font-size: 0.8125rem !important;
    color: var(--accent);
    margin-top: 0.5rem;
}

/* ── Legal Pages ── */

.legal {
    padding: var(--pad);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.legal h1 {
    margin-bottom: 2.5rem;
}

.legal h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.legal h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.625rem;
    font-size: 1rem;
}

.legal h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal p {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    max-width: 100%;
}

.legal a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.legal ul {
    list-style: none;
    margin: 0.75rem 0 1rem;
}

.legal li {
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.legal li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

.legal__date {
    margin-top: 2.5rem;
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}


/* ── Animations ── */

.hero__pill,
.hero__text h1,
.hero__text > b,
.hero__questions,
.hero__sub,
.hero__text .btn,
.hero__card {
    opacity: 0;
    animation: fadeIn 0.6s var(--ease) forwards;
}

.hero__pill       { animation-delay: 0.55s; }
.hero__text h1    { animation-delay: 0.65s; }
.hero__text > b   { animation-delay: 0.70s; }
.hero__questions  { animation-delay: 0.72s; }
.hero__sub        { animation-delay: 0.75s; }
.hero__text .btn  { animation-delay: 0.85s; }
.hero__card       { animation-delay: 0.95s; }

/* Initial-viewport content: fade in after grid lines draw.
   Keep section containers visible so borders can animate.
   Scoped to .landing-page so ki-* subpages show nav immediately. */
.landing-page .nav {
    opacity: 0;
    animation: fadeIn 0.4s var(--ease) 1.15s forwards;
}

.landing-page .breadcrumb,
.landing-page .cta-bar--dates,
.landing-page .countdown,
.landing-page .section-bar,
.landing-page .countdown__label,
.landing-page .countdown__unit > span,
.landing-page .countdown__unit small,
.landing-page .stats__label {
    opacity: 0;
    animation: fadeIn 0.4s var(--ease) forwards;
    animation-delay: calc(var(--line-delay, 0s) + 1.25s);
}

/* Ki-* subpages: section-bar sits inside content sections, remove --pad padding */
body:not(.landing-page) .section-bar {
    padding-left: 0;
    padding-right: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Reveal overrides + ki-specific variants ── */

.reveal {
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal--left {
    transform: translateX(-24px);
}

.reveal--left.visible {
    transform: translateX(0);
}

.reveal--right {
    transform: translateX(24px);
}

.reveal--right.visible {
    transform: translateX(0);
}

.reveal--scale {
    transform: scale(0.95);
}

.reveal--scale.visible {
    transform: scale(1);
}

.reveal.reveal--stagger {
    opacity: 1;
    transform: none;
}

.reveal--stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal--stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal--stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal--stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }

/* ── Draw Border position helper ── */

.grid > section,
.grid > .countdown {
    position: relative;
}

/* ── Reduced Motion (ki-specific rules only) ── */

@media (prefers-reduced-motion: reduce) {
    .hero__pill, .hero__text h1, .hero__text > b, .hero__questions,
    .hero__sub, .hero__text .btn, .hero__card,
    .nav, .breadcrumb, .cta-bar--dates, .countdown,
    .section-bar, .countdown__label, .countdown__unit > span,
    .countdown__unit small, .stats__number, .stats__label {
        opacity: 1 !important;
        transform: none !important;
    }
    .stats__number,
    .proof__number {
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }
    .stats__cell::before,
    .proof__stat::before {
        display: none !important;
    }
    .proof__quote { filter: none !important; }
}

/* ── Desktop: activate grid splits ── */

@media (min-width: 640px) {
    .hero {
        grid-template-columns: 1fr auto;
    }

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

    .problem__left {
        border-right: 1px solid var(--grid-line);
    }

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

    .value__cell:not(:last-child) {
        border-bottom: none;
        border-right: 1px solid var(--grid-line);
    }

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

    .host:not(:last-child) {
        border-bottom: none;
        border-right: 1px solid var(--grid-line);
    }

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

    .audience__no {
        border-top: none;
        border-left: 1px solid var(--grid-line);
    }

    .roi__calc {
        border-top: none;
    }

    .roi {
        grid-template-columns: 1fr 1.5fr;
    }

    .roi__intro {
        border-right: 1px solid var(--grid-line);
    }

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

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

    .register__info {
        border-right: 1px solid var(--grid-line);
    }
}

/* ── Mobile ── */

@media (max-width: 639px) {
    html {
        scroll-behavior: auto;
    }

    body {
        padding-top: 4rem;
    }

    #register {
        scroll-margin-top: 5rem;
    }

    .nav {
        position: fixed;
        top: 3px;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        padding: 0.875rem var(--pad);
        background: var(--bg);
        border-bottom: 1px solid var(--grid-line);
    }

    .register-modal {
        padding: 0.75rem;
    }

    .register-modal__panel {
        width: 100%;
        max-height: calc(100vh - 1.5rem);
        border-radius: 0;
    }

    .hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero__card {
        max-width: 100%;
    }

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

    .stats__cell:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
    }

    .stats__cell {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 0.75rem;
    }

    .stats__label {
        margin-top: 0;
    }

    .cta-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

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

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

    .roi__metric:nth-child(odd) {
        border-right: none;
    }

    .roi__metric:nth-child(1),
    .roi__metric:nth-child(2),
    .roi__metric:nth-child(3) {
        border-bottom: 1px solid var(--grid-line);
    }

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

    .proof__stat:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
    }

    .proof__stat {
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 0.75rem;
    }

    .proof__label {
        margin-top: 0;
    }

    .countdown {
        flex-direction: column;
        gap: 0.75rem;
    }

    .countdown__unit {
        min-width: 44px;
    }

    .sticky-cta {
        display: none;
    }

    .footer {
        padding-bottom: 1.5rem;
    }

    /* ── Thank You: mobile ── */

    .thankyou {
        padding: 1.75rem 1.25rem;
        min-height: 0;
    }

    .thankyou__check {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .thankyou h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .thankyou p {
        font-size: 0.875rem;
    }

    .thankyou__details {
        flex-direction: column;
        gap: 0.375rem;
        padding: 0.75rem 1rem;
        margin: 1rem 0;
    }

    .thankyou__calendar-btn {
        width: 100%;
        text-align: center;
    }

    .thankyou__note {
        font-size: 0.75rem !important;
    }
}

@media (min-width: 640px) {
    .register-modal {
        display: none;
    }
}

/* ── CTA Bar: Dates variant ── */

.cta-bar--dates {
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem var(--pad);
    background: rgba(var(--accent-rgb, 30, 122, 138), 0.06);
    border: 1px solid rgba(var(--accent-rgb, 30, 122, 138), 0.18);
}

.cta-bar__dates-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cta-bar__dates-label {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

.cta-bar__dates-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.cta-bar__dates-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .cta-bar--dates {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 639px) {
    .cta-bar--dates {
        text-align: center;
        align-items: center;
    }

    .cta-bar__dates-actions {
        justify-content: center;
    }
}

/* ── Register: selected date indicator ── */

.register__selected-date {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent);
    background: rgba(var(--accent-rgb, 30, 122, 138), 0.06);
}

.register__selected-date-label {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.register__selected-date-value {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}

.register__change-date {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: auto;
}

.register__change-date:hover {
    color: var(--text);
}

/* ── Termin cards (termine overview) ── */

.termin-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.termin-card {
    display: grid;
    grid-template-columns: 1fr;
    text-decoration: none;
    color: inherit;
    transition: background 0.25s ease;
}

.termin-card:not(:last-child) {
    border-bottom: 1px solid var(--grid-line);
}

.termin-card:hover {
    background: rgba(var(--accent-rgb, 30, 122, 138), 0.04);
}

.termin-card__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--grid-line);
}

.termin-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.termin-card:hover .termin-card__thumb img {
    transform: scale(1.03);
}

.termin-card__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--accent-rgb, 30, 122, 138), 0.08) 0%, rgba(var(--accent-rgb, 30, 122, 138), 0.02) 100%);
}

.termin-card__thumb-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.termin-card__thumb-day {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.termin-card__thumb-month {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.termin-card__body {
    padding: 1.5rem var(--pad);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.termin-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.termin-card__category {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(var(--accent-rgb, 30, 122, 138), 0.3);
}

.termin-card__date {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.termin-card__title {
    font-size: 1.25rem;
    line-height: 1.3;
}

.termin-card__teaser {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.termin-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.termin-card__speakers {
    display: flex;
    align-items: center;
}

.termin-card__speaker-names {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.termin-card__more {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    transition: color 0.2s ease;
}

.termin-card:hover .termin-card__more {
    color: var(--text);
}

@media (min-width: 640px) {
    .termin-cards {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .termin-card:not(:last-child) {
        border-bottom: none;
        border-right: 1px solid var(--grid-line);
    }

    .termin-card__thumb {
        border-bottom: 1px solid var(--grid-line);
    }
}
