/* Shared styles for the Meta ads landing pages (Components/Landing, lp-* classes).
   Mobile-first: base rules target phones; wider layouts are added in media queries. */

.lp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Buttons ── */
.lp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    border-radius: 9999px;
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.lp-button:disabled {
    opacity: 0.6;
    cursor: progress;
}

.lp-button--primary,
.lp-button--primary:visited {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 14px 26px rgba(19, 42, 36, 0.22);
}

.lp-button--primary:hover,
.lp-button--primary:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(19, 42, 36, 0.26);
}

.lp-button--outline,
.lp-button--outline:visited {
    background: var(--surface-1);
    color: var(--ink);
    border-color: var(--stroke);
}

.lp-button--outline:hover,
.lp-button--outline:focus-visible {
    background: var(--surface-2);
    color: var(--ink);
}

.lp-button--ghost {
    background: transparent;
    color: var(--muted);
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

.lp-button--ghost:hover {
    color: var(--ink);
}

/* ── Hero ── */
.lp-hero {
    margin: 0.75rem auto 1.25rem;
    padding: 1.6rem 1.25rem;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--surface-0), var(--surface-2));
    box-shadow: var(--card-shadow);
}

.lp-hero-grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.lp-eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.lp-hero h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.7rem, 6.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
}

.lp-hero-subhead {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ink-2);
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.lp-hero-actions .lp-button {
    flex: 1 1 100%;
}

.lp-hero-notice {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(241, 194, 122, 0.9);
    background: rgba(241, 194, 122, 0.22);
    color: var(--ink);
    font-weight: 700;
}

.lp-hero-aside {
    background: var(--surface-1);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 16px 28px rgba(19, 42, 36, 0.12);
}

/* ── Sections and cards ── */
.lp-section {
    margin: 1.75rem auto;
    max-width: 920px;
}

.lp-section > h2,
.lp-card h2 {
    margin: 0 0 0.6rem;
    font-size: clamp(1.35rem, 4.8vw, 1.8rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
}

.lp-section > p,
.lp-help {
    color: var(--ink-2);
    line-height: 1.65;
}

.lp-card {
    padding: 1.25rem;
    border-radius: 20px;
    background: var(--surface-1);
    border: 1px solid var(--stroke);
    box-shadow: var(--card-shadow);
}

.lp-card h3 {
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 800;
}

.lp-list {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    line-height: 1.65;
}

.lp-cta-panel .lp-list--light {
    margin: 0 0 1.1rem;
    color: #e6efe9;
}

.lp-list li {
    display: list-item;
    margin: 0.3rem 0;
}

.lp-steps {
    display: grid;
    gap: 0.9rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: lp-step;
}

.lp-steps > li {
    position: relative;
    padding: 1rem 1rem 1rem 3.4rem;
    border-radius: 16px;
    background: var(--surface-1);
    border: 1px solid var(--stroke);
    counter-increment: lp-step;
}

.lp-steps > li::before {
    content: counter(lp-step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 800;
}

.lp-steps h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    color: var(--ink);
}

.lp-steps p {
    margin: 0;
    line-height: 1.6;
}

.lp-placeholder {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 1rem;
    border-radius: 16px;
    border: 2px dashed var(--stroke);
    background: var(--surface-2);
    color: var(--muted);
    text-align: center;
    font-weight: 600;
}

/* ── Checker ── */
.lp-checker {
    scroll-margin-top: 90px;
}

.lp-progress {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
}

.lp-progress li {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--stroke);
}

.lp-progress li span {
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-2);
}

.lp-progress li.is-current {
    color: var(--ink);
    border-color: var(--accent);
}

.lp-progress li.is-current span,
.lp-progress li.is-done span {
    background: var(--accent);
    color: #fff;
}

.lp-progress li.is-done {
    border-color: var(--accent-2);
}

.lp-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.lp-result-note {
    margin: 0.6rem 0 0;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1.5;
}

.lp-chip,
.lp-segment {
    min-height: 46px;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1.5px solid var(--stroke);
    background: var(--surface-1);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lp-chip.is-selected,
.lp-segment.is-selected {
    background: rgba(14, 138, 120, 0.12);
    border-color: var(--accent);
    color: var(--ink);
}

.lp-chip.is-selected::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 800;
}

.lp-step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.lp-step-count {
    color: var(--muted);
    font-weight: 600;
}

.lp-fields {
    display: grid;
    gap: 1.1rem;
    margin-top: 1rem;
}

.lp-field {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.lp-label {
    display: block;
    margin: 0 0 0.4rem;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.98rem;
}

.lp-input {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1.5px solid var(--stroke);
    background: var(--surface-1);
    color: var(--ink);
    font: inherit;
    font-size: 16px; /* prevents iOS zoom on focus */
}

.lp-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 138, 120, 0.18);
}

textarea.lp-input {
    min-height: 96px;
    resize: vertical;
}

.lp-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.lp-segment {
    text-align: center;
}

.lp-error {
    min-height: 1.2em;
    margin: 0.5rem 0 0;
    color: #b42318;
    font-weight: 600;
    font-size: 0.92rem;
}

.lp-error:empty {
    min-height: 0;
    margin: 0;
}

.lp-fineprint {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--muted);
}

.lp-teaser {
    margin: 0 0 1.5rem;
    padding: 1.1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 138, 120, 0.08), rgba(241, 194, 122, 0.16));
}

.lp-teaser-count {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
}

.lp-teaser-number {
    display: inline-block;
    min-width: 2.2rem;
    padding: 0 0.4rem;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
}

.lp-teaser-note {
    margin: 0.5rem 0 0;
    font-weight: 600;
}

.lp-results {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.lp-result {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: var(--surface-0);
}

.lp-result h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.6rem;
}

.lp-result dl {
    margin: 0;
}

.lp-result dt {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.lp-result dd {
    margin: 0.15rem 0 0;
    line-height: 1.55;
}

.lp-tag {
    padding: 0.1rem 0.55rem;
    border-radius: 9999px;
    background: var(--accent-soft);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
}

.lp-cta-panel {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 18px;
    background: var(--ink);
    color: #e6efe9;
}

.lp-cta-panel h3 {
    margin: 0 0 0.4rem;
    color: #fff;
}

.lp-cta-panel p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

.lp-cta-panel .lp-button {
    width: 100%;
}

.lp-cta-panel--soft {
    background: var(--surface-2);
    color: var(--ink-2);
    border: 1px solid var(--stroke);
}

.lp-cta-panel--soft h3 {
    color: var(--ink);
}

/* ── Email gate ── */
.lp-gate {
    margin-top: 0.75rem;
}

.lp-gate-row {
    display: grid;
    gap: 0.6rem;
}

/* ── FAQ (same look as the FAQ page) ── */
.lp-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.lp-faq .faq-item {
    background: var(--surface-1);
    border-radius: 16px;
    padding: 0 1rem;
    box-shadow: 0 10px 18px rgba(19, 42, 36, 0.08);
    border: 1px solid rgba(19, 42, 36, 0.08);
}

.lp-faq .faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.lp-faq .faq-item summary::-webkit-details-marker {
    display: none;
}

.lp-faq .faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--accent);
}

.lp-faq .faq-item[open] summary::after {
    content: "–";
}

.lp-faq .faq-answer {
    padding: 0 0 1rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.lp-faq .faq-answer p {
    margin: 0;
}

/* ── Comparison table (cards on mobile, table from 760px) ── */
.lp-compare table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.lp-compare caption {
    caption-side: top;
    text-align: left;
    padding: 0 0 0.75rem;
    color: var(--muted);
}

.lp-compare thead {
    display: none;
}

.lp-compare tbody tr {
    display: block;
    margin: 0 0 0.9rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: var(--surface-1);
}

.lp-compare tbody th {
    display: block;
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--ink);
    text-align: left;
}

.lp-compare tbody td {
    overflow-wrap: break-word;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--stroke);
}

.lp-compare tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
}

.lp-compare td.lp-compare-highlight::before {
    color: var(--accent);
}

/* ── Content pages ── */
/* Tailwind's preflight (loaded globally) zeroes paragraph margins; restore spacing for running text. */
.lp-section > p,
.lp-article > p,
.lp-split p {
    margin: 0 0 1rem;
}

.lp-section > h2 + p {
    margin-top: 0.25rem;
}

.lp-section--wide {
    max-width: 1100px;
}

.lp-anchor {
    scroll-margin-top: 90px;
}

.lp-subtitle {
    margin: 1.4rem 0 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
}

.lp-steps h4 {
    margin: 0 0 0.25rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ink);
}

.lp-callout {
    margin: 1.1rem 0 0;
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--accent-soft);
    border-radius: 0 12px 12px 0;
    background: rgba(241, 194, 122, 0.16);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.55;
}

.lp-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.lp-img--framed {
    border: 1px solid var(--stroke);
    box-shadow: var(--card-shadow);
}

.lp-link {
    font-weight: 700;
}

.lp-muted {
    color: var(--muted);
    font-style: italic;
}

.lp-output {
    display: grid;
    gap: 1rem;
    margin-top: 0.75rem;
}

.lp-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--stroke);
    background: var(--surface-1);
}

.lp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.lp-table caption {
    caption-side: bottom;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: left;
}

.lp-table th,
.lp-table td {
    padding: 0.6rem 0.7rem;
    overflow-wrap: break-word;
    border-bottom: 1px solid var(--stroke);
    text-align: left;
}

.lp-table thead th {
    background: var(--surface-2);
    color: var(--ink);
    font-weight: 800;
}

.lp-split {
    display: grid;
    gap: 1.25rem;
    align-items: center;
}

.lp-cards {
    display: grid;
    gap: 0.9rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.lp-cards .lp-card {
    padding: 1.1rem;
    box-shadow: none;
}

.lp-cards .lp-card h3 {
    margin: 0 0 0.35rem;
}

.lp-cards .lp-card p {
    margin: 0;
    line-height: 1.6;
}

.lp-card--accent {
    border-color: var(--accent);
    background: rgba(14, 138, 120, 0.06);
}

.lp-cta-panel h2 {
    margin: 0 0 0.4rem;
    color: #fff;
    font-size: clamp(1.3rem, 4.6vw, 1.7rem);
    font-weight: 800;
}

.lp-cta-panel a:not(.lp-button) {
    color: var(--accent-soft);
    font-weight: 700;
}

.lp-cta-secondary {
    margin: 1rem 0 0 !important;
}

.lp-fields--spaced,
.lp-field--spaced {
    margin: 1.1rem 0;
}

/* ── Article ── */
.lp-article {
    max-width: 760px;
    margin: 1.5rem auto 3rem;
    color: var(--ink-2);
    font-size: 1.05rem;
    line-height: 1.75;
}

.lp-article h2 {
    margin: 2.2rem 0 0.6rem;
    font-size: clamp(1.35rem, 4.8vw, 1.7rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--ink);
}

.lp-article h3 {
    margin: 1.4rem 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
}

.lp-article a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lp-article .lp-steps h3 {
    margin-top: 0;
}

.lp-article .lp-cta-panel {
    margin-top: 2.5rem;
}

.lp-article .lp-cta-panel a {
    text-decoration: none;
}

.lp-article-lead {
    font-size: 1.15rem;
    color: var(--ink);
}

.lp-sources {
    font-size: 0.92rem;
    color: var(--muted);
}

.lp-booking-frame {
    display: block;
    width: 100%;
    height: 760px;
    margin-top: 1rem;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: var(--surface-1);
}

/* ── Article visual: who asks for your registration number ── */
.lp-askers {
    margin: 0;
}

.lp-askers-title {
    margin: 0 0 0.75rem;
    font-weight: 800;
    color: var(--ink);
    font-size: 1.05rem;
}

.lp-askers ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-asker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1.5px solid var(--accent);
    background: rgba(14, 138, 120, 0.08);
}

.lp-asker-name {
    font-weight: 800;
    color: var(--ink);
}

.lp-asker-when {
    flex: 0 1 auto;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: right;
}

.lp-asker--muted {
    border-style: dashed;
    border-color: var(--stroke);
    background: var(--surface-0);
}

.lp-asker--muted .lp-asker-name {
    color: var(--muted);
}

.lp-asker--muted .lp-asker-when {
    background: var(--surface-2);
    color: var(--muted);
}

/* ── Founder card ── */
.lp-founder {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.lp-founder-photo {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface-1);
    box-shadow: 0 8px 18px rgba(19, 42, 36, 0.15);
}

.lp-founder figcaption {
    display: grid;
    gap: 0.15rem;
    color: var(--muted);
}

.lp-founder figcaption strong {
    color: var(--ink);
    font-size: 1.1rem;
}

@media (min-width: 760px) {
    .lp-steps--grid {
        grid-template-columns: 1fr 1fr;
    }

    .lp-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lp-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2rem;
    }

    .lp-output {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        align-items: start;
    }
}

/* ── Wider screens ── */
@media (min-width: 560px) {
    .lp-chips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lp-hero-actions .lp-button {
        flex: 0 0 auto;
    }

    .lp-gate-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .lp-cta-panel .lp-button {
        width: auto;
    }
}

@media (min-width: 760px) {
    .lp-hero {
        margin-top: 1.5rem;
        padding: 2.5rem;
        border-radius: 26px;
    }

    .lp-card {
        padding: 2rem;
    }

    .lp-fields {
        grid-template-columns: 1fr 1fr;
    }

    .lp-chips {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lp-compare {
        overflow-x: auto;
        border-radius: 18px;
        border: 1px solid var(--stroke);
        background: var(--surface-1);
        box-shadow: var(--card-shadow);
    }

    .lp-compare caption {
        padding: 1rem 1.25rem 0.5rem;
    }

    .lp-compare thead {
        display: table-header-group;
    }

    .lp-compare tbody tr {
        display: table-row;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .lp-compare th,
    .lp-compare tbody td {
        display: table-cell;
        padding: 0.9rem 1.1rem;
        border-top: 1px solid var(--stroke);
        vertical-align: top;
        text-align: left;
    }

    .lp-compare thead th {
        border-top: 0;
        color: var(--ink);
        font-weight: 800;
    }

    .lp-compare tbody th {
        margin: 0;
        font-size: 1rem;
    }

    .lp-compare tbody td::before {
        content: none;
    }

    .lp-compare .lp-compare-highlight {
        background: rgba(14, 138, 120, 0.07);
    }
}

@media (min-width: 1024px) {
    .lp-hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 2.5rem;
    }

    .lp-hero--single .lp-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 820px;
    }
}
