/* =============================================================================
   Carpet Smile - public website
   Builds on the tokens in app.css so light/dark theming carries over.
   ============================================================================= */

.lp {
    --lp-ink: #0b1227;
    --lp-ink-2: #131d3b;
    --lp-on-ink: #e6e9f2;
    --lp-on-ink-muted: #9aa4bf;
    --lp-header-h: 72px;
    background: var(--surface);
    color: var(--text-2);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: clip;
}
html:has(.lp) { scroll-behavior: smooth; scroll-padding-top: calc(72px + 12px); }
@media (prefers-reduced-motion: reduce) { html:has(.lp) { scroll-behavior: auto; } }

.lp h1, .lp h2, .lp h3, .lp .lp-h1 { color: var(--text); letter-spacing: -.025em; font-weight: 750; }
.lp a { text-decoration: none; }
.lp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* ---- Buttons ---------------------------------------------------------------- */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-weight: 650; font-size: .95rem; line-height: 1;
    padding: .85rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
    transition: transform .15s var(--ease), background-color .15s, box-shadow .15s, border-color .15s;
    cursor: pointer; white-space: nowrap;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lp-btn-sm { padding: .6rem 1rem; font-size: .875rem; }
.lp-btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.lp-btn-block { width: 100%; }
.lp-btn-brand { background: var(--brand); color: #1a1500 !important; box-shadow: 0 8px 24px -10px rgba(234, 179, 8, .7); }
.lp-btn-brand:hover { background: #ffdf3d; }
.lp-btn-ink { background: var(--primary); color: var(--primary-contrast) !important; }
.lp-btn-ink:hover { background: var(--primary-hover); }
.lp-btn-outline { background: transparent; color: var(--text) !important; border-color: var(--border-strong); }
.lp-btn-outline:hover { border-color: var(--text-3); }
.lp-btn-glass { background: rgba(255, 255, 255, .1); color: #fff !important; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.lp-btn-glass:hover { background: rgba(255, 255, 255, .18); }
.lp-btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.lp-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-3); margin-bottom: .75rem;
}
.lp-eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--brand); }
.lp-eyebrow.on-dark { color: var(--brand); }

/* ---- Header ----------------------------------------------------------------- */
.lp-header {
    position: sticky; top: 0; z-index: 50; height: var(--lp-header-h);
    background: rgba(11, 18, 39, .92); backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: box-shadow .2s;
}
.lp-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .45); }
.lp-header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.lp-logo img { height: 44px; width: auto; display: block; }
.lp-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.lp-nav a { color: var(--lp-on-ink); font-weight: 550; font-size: .9rem; padding: .5rem .75rem; border-radius: 999px; transition: background-color .15s, color .15s; }
.lp-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lp-nav .lp-nav-cta-mobile { display: none; }
.lp-header-actions { display: flex; align-items: center; gap: .75rem; }
.lp-phone { color: var(--lp-on-ink); font-weight: 600; font-size: .875rem; display: inline-flex; align-items: center; gap: .45rem; }
.lp-phone i { color: var(--brand); }
.lp-phone:hover { color: #fff; }
.lp-menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #fff; font-size: 1.05rem; }

@media (max-width: 1100px) { .lp-phone span { display: none; } }
@media (max-width: 960px) {
    .lp-menu-btn { display: inline-grid; place-items: center; }
    .lp-nav {
        position: fixed; inset: var(--lp-header-h) 0 auto 0; margin: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--lp-ink); padding: .5rem clamp(16px, 4vw, 32px) 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s var(--ease);
    }
    .lp-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .lp-nav a { padding: .9rem .25rem; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 1rem; }
    .lp-nav a:hover { background: none; }
    .lp-nav .lp-nav-cta-mobile { display: block; color: var(--brand); border-bottom: 0; }
    .lp-header-actions .lp-btn { display: none; }
    .lp-header-actions { margin-left: auto; }
}
@media (max-width: 960px) { .lp-header-actions .lp-phone { width: 42px; height: 42px; justify-content: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; } }

/* ---- Hero ------------------------------------------------------------------- */
.lp-hero { position: relative; min-height: min(720px, calc(100svh - var(--lp-header-h))); display: flex; align-items: center; background: var(--lp-ink); color: #fff; isolation: isolate; overflow: hidden; }
.lp-hero-media { position: absolute; inset: 0; z-index: -1; }
.lp-hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 7s ease-out; }
.lp-hero-img.is-active { opacity: 1; transform: scale(1); }
.lp-hero-fallback { background: radial-gradient(1200px 600px at 80% 20%, #22346e, transparent), var(--lp-ink); }
.lp-hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 13, 30, .92) 0%, rgba(8, 13, 30, .78) 40%, rgba(8, 13, 30, .25) 75%, rgba(8, 13, 30, .15) 100%),
        linear-gradient(0deg, rgba(8, 13, 30, .6) 0%, transparent 35%);
}
.lp-hero-inner { position: relative; padding-top: 4.5rem; padding-bottom: 7.5rem; display: grid; }
.lp-hero-copy { grid-area: 1 / 1; max-width: 640px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .6s ease, transform .6s var(--ease), visibility 0s .6s; }
.lp-hero-copy.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .15s, .15s, 0s; }
.lp-hero h1, .lp-hero .lp-h1 { color: #fff; font-size: clamp(2.25rem, 5.2vw, 3.75rem); line-height: 1.05; margin: 0 0 1.1rem; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.lp-hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #d3d8e6; max-width: 540px; margin: 0 0 2rem; text-wrap: pretty; }
.lp-hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.lp-hero-dots { position: absolute; left: clamp(16px, 4vw, 32px); bottom: 5.5rem; display: flex; gap: .4rem; }
.lp-hero-dots button { width: 36px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.lp-hero-dots span { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.lp-hero-dots .is-active span::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform-origin: left; animation: lp-progress var(--lp-slide-ms, 6000ms) linear forwards; }
.lp-hero.is-paused .lp-hero-dots .is-active span::after { animation-play-state: paused; }
@keyframes lp-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .lp-hero-img, .lp-hero-copy { transition: none; transform: none; }
    .lp-hero-dots .is-active span::after { animation: none; transform: none; }
}

/* ---- Stats ------------------------------------------------------------------ */
.lp-stats {
    position: relative; z-index: 2; margin-top: -3.5rem;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.lp-stat { padding: 1.5rem 1.25rem; text-align: center; }
.lp-stat + .lp-stat { border-left: 1px solid var(--border); }
.lp-stat-value { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; color: var(--text); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-stat-value span { color: var(--brand-strong); margin-left: .1rem; }
.lp-stat-label { font-size: .85rem; color: var(--text-3); font-weight: 550; margin-top: .25rem; }
@media (max-width: 720px) {
    .lp-stats { grid-template-columns: repeat(2, 1fr); }
    .lp-stat:nth-child(3) { border-left: 0; }
    .lp-stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---- Sections --------------------------------------------------------------- */
.lp-section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.lp-section-alt { background: var(--bg); }
.lp-section-ink { background: var(--lp-ink); color: var(--lp-on-ink-muted); }
.lp-section-ink h2, .lp-section-ink h3 { color: #fff; }
.lp-section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.lp-section-head.left { text-align: left; margin: 0; }
.lp-section-head h2, .lp-about h2, .lp-contact-info h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); line-height: 1.12; margin: 0 0 .9rem; text-wrap: balance; }
.lp-section-head p { color: var(--text-3); font-size: 1.05rem; margin: 0; text-wrap: pretty; }
.lp-section-ink .lp-section-head p { color: var(--lp-on-ink-muted); }

/* Services */
.lp-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lp-service {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 1.75rem; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.lp-service:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.lp-service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: #8a6100; font-size: 1.3rem; margin-bottom: 1.25rem; }
:root[data-theme="dark"] .lp-service-icon { background: rgba(255, 214, 10, .12); color: var(--brand); }
.lp-service h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.lp-service p { color: var(--text-3); margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .lp-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lp-services { grid-template-columns: 1fr; } }

/* How it works */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: lp-step; }
.lp-steps li { counter-increment: lp-step; position: relative; padding: 2rem 1.75rem; border-radius: var(--radius-xl); background: var(--lp-ink-2); border: 1px solid rgba(255, 255, 255, .07); }
.lp-steps li::after { content: "0" counter(lp-step); position: absolute; top: 1.5rem; right: 1.75rem; font-size: 2.5rem; font-weight: 800; color: rgba(255, 255, 255, .07); letter-spacing: -.04em; line-height: 1; }
.lp-step-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #1a1500; font-size: 1.15rem; margin-bottom: 1.25rem; }
.lp-steps h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.lp-steps p { margin: 0; font-size: .95rem; }
@media (max-width: 860px) { .lp-steps { grid-template-columns: 1fr; } }

/* Pricing */
.lp-pricing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.25rem; align-items: start; }
.lp-price-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); overflow: hidden; }
.lp-price-panel-head { padding: 1.5rem 1.75rem 1.1rem; }
.lp-price-panel-head h3 { font-size: 1.2rem; margin: 0 0 .25rem; display: flex; align-items: center; gap: .6rem; }
.lp-price-panel-head h3 i { color: var(--brand-strong); }
.lp-price-panel-head p { margin: 0; color: var(--text-3); font-size: .9rem; }
.lp-sizes { list-style: none; margin: 0; padding: 0 1.75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.lp-sizes li { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; background: var(--surface-2); }
.lp-size-name { font-size: .85rem; font-weight: 600; color: var(--text-3); }
.lp-size-price { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lp-size-price small, .lp-price-list small, .lp-calc-out small { font-size: .7rem; font-weight: 700; color: var(--text-4); margin-right: .3rem; letter-spacing: .02em; }
.lp-calc { margin: 1.25rem 1.75rem 1.75rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-lg); background: var(--brand-soft); border: 1px dashed color-mix(in srgb, var(--brand-strong) 55%, transparent); }
:root[data-theme="dark"] .lp-calc { background: rgba(255, 214, 10, .06); }
.lp-calc-title { font-weight: 700; color: var(--text); font-size: .9rem; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.lp-calc-row { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.lp-calc label { display: flex; flex-direction: column; gap: .3rem; font-size: .75rem; font-weight: 600; color: var(--text-3); }
.lp-calc input { width: 96px; height: 44px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); padding: 0 .75rem; font-size: 1rem; font-weight: 600; }
.lp-calc input:focus { outline: 3px solid var(--focus); border-color: var(--link); }
.lp-calc-x { height: 44px; display: grid; place-items: center; color: var(--text-4); font-weight: 700; }
.lp-calc-out { margin-left: auto; font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; line-height: 44px; font-variant-numeric: tabular-nums; }
.lp-price-list { list-style: none; margin: 0; padding: 0 1.75rem 1.25rem; }
.lp-price-list li { display: flex; align-items: baseline; gap: .6rem; padding: .7rem 0; border-top: 1px solid var(--border); font-size: .95rem; }
.lp-price-list li > span:first-child { color: var(--text-2); font-weight: 550; }
.lp-dots { flex: 1; }
.lp-price-list strong { color: var(--text); font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-pricing-note { text-align: center; color: var(--text-3); margin: 2rem 0 0; font-size: .95rem; }
.lp-pricing-note i { color: var(--brand-strong); margin-right: .4rem; }
.lp-pricing-note a { color: var(--link); font-weight: 600; }
@media (max-width: 960px) { .lp-pricing { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
    .lp-price-panel-head, .lp-sizes, .lp-price-list { padding-left: 1.1rem; padding-right: 1.1rem; }
    .lp-calc { margin-left: 1.1rem; margin-right: 1.1rem; }
    .lp-calc input { width: 84px; }
    .lp-calc-out { margin-left: 0; width: 100%; }
}

/* About */
.lp-about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lp-about-media { position: relative; }
.lp-about-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); display: block; }
.lp-about-media::before { content: ""; position: absolute; inset: auto -14px -14px auto; width: 45%; height: 45%; border-radius: var(--radius-xl); background: var(--brand); z-index: -1; }
.lp-about { isolation: isolate; }
.lp-prose { color: var(--text-3); font-size: 1.02rem; }
.lp-prose p { margin: 0 0 1rem; }
.lp-checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.25rem; }
.lp-checks li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-2); font-weight: 550; font-size: .95rem; }
.lp-checks i { color: var(--success); margin-top: .25rem; }
@media (max-width: 860px) { .lp-about { grid-template-columns: 1fr; } .lp-about-media { max-width: 560px; } }
@media (max-width: 480px) { .lp-checks { grid-template-columns: 1fr; } }

/* Gallery */
.lp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.lp-gallery figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-3); }
.lp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lp-gallery figure:hover img { transform: scale(1.04); }
.lp-gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .8rem; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent); }
@media (max-width: 860px) { .lp-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Reviews */
.lp-reviews { columns: 3 300px; column-gap: 1.25rem; }
.lp-review { break-inside: avoid; margin: 0 0 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.6rem; box-shadow: var(--shadow-xs); }
.lp-stars { color: #f5b700; font-size: .85rem; display: flex; gap: .15rem; margin-bottom: .9rem; }
.lp-stars .off { color: var(--border-strong); }
.lp-review blockquote { margin: 0 0 1.25rem; color: var(--text-2); font-size: 1rem; line-height: 1.65; }
.lp-review figcaption { display: flex; align-items: center; gap: .75rem; }
.lp-review figcaption strong { display: block; color: var(--text); font-size: .92rem; }
.lp-review figcaption small { display: block; color: var(--text-3); font-size: .8rem; }
.lp-review-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--text); font-weight: 700; font-size: .8rem; object-fit: cover; flex-shrink: 0; }

/* FAQ */
.lp-faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lp-faq .lp-section-head { position: sticky; top: calc(var(--lp-header-h) + 2rem); }
.lp-faq-list details { border-bottom: 1px solid var(--border); }
.lp-faq-list details:first-child { border-top: 1px solid var(--border); }
.lp-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font-weight: 650; color: var(--text); font-size: 1.02rem; }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); font-size: .8rem; flex-shrink: 0; transition: transform .2s var(--ease), background-color .2s; }
.lp-faq-list details[open] summary i { transform: rotate(45deg); background: var(--brand); color: #1a1500; }
.lp-faq-list summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.lp-faq-answer { padding: 0 3rem 1.3rem 0; color: var(--text-3); }
@media (max-width: 860px) { .lp-faq { grid-template-columns: 1fr; } .lp-faq .lp-section-head { position: static; } }

/* Contact */
.lp-contact { display: grid; grid-template-columns: 1fr 1.45fr; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.lp-contact-info { background: var(--lp-ink); color: var(--lp-on-ink-muted); padding: clamp(1.75rem, 4vw, 3rem); position: relative; overflow: hidden; }
.lp-contact-info::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -140px; bottom: -140px; background: radial-gradient(circle, rgba(255, 214, 10, .22), transparent 70%); }
.lp-contact-info h2 { color: #fff; }
.lp-contact-info > p { margin: 0 0 2rem; }
.lp-contact-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; position: relative; z-index: 1; }
.lp-contact-info li { display: flex; gap: .9rem; align-items: flex-start; color: var(--lp-on-ink); font-weight: 550; overflow-wrap: anywhere; }
.lp-contact-info li > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--brand); flex-shrink: 0; }
.lp-contact-info li small { display: block; font-size: .75rem; color: var(--lp-on-ink-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .1rem; }
.lp-contact-info li a { color: #fff; }
.lp-contact-info li a:hover { color: var(--brand); }
.lp-form-card { padding: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 900px) { .lp-contact { grid-template-columns: 1fr; border-radius: var(--radius-xl); } }

.lp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.lp-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.lp-field.span-2 { grid-column: 1 / -1; }
.lp-field > label { font-size: .85rem; font-weight: 650; color: var(--text); }
.lp-optional { font-weight: 500; color: var(--text-4); margin-left: .35rem; }
.lp-field input:not([type=file]), .lp-field select, .lp-field textarea {
    width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text); padding: .7rem .9rem; font: inherit; font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
}
.lp-field textarea { resize: vertical; min-height: 120px; }
.lp-field input::placeholder, .lp-field textarea::placeholder { color: var(--text-4); }
.lp-field input:focus, .lp-field select:focus, .lp-field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px var(--focus); }
.lp-err { display: none; font-size: .8rem; color: var(--danger-text); font-weight: 550; }
.lp-form.was-validated .lp-field :is(input, select, textarea):invalid { border-color: var(--danger); }
.lp-form.was-validated .lp-field :is(input, select, textarea):invalid ~ .lp-err,
.lp-field.has-error .lp-err { display: block; }
.lp-drop { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: 12px; border: 1.5px dashed var(--border-strong); color: var(--text-3); font-size: .9rem; cursor: pointer; transition: border-color .15s, background-color .15s; }
.lp-drop i { font-size: 1.3rem; color: var(--text-4); }
.lp-drop:hover, .lp-file-input:focus-visible + .lp-err, .lp-drop.has-files { border-color: var(--link); background: var(--primary-soft); color: var(--text-2); }
.lp-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lp-field:has(.lp-file-input:focus-visible) .lp-drop { outline: 3px solid var(--focus); }
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lp-form-alert { margin: 1.25rem 0 0; padding: .85rem 1rem; border-radius: 12px; background: var(--danger-bg); color: var(--danger-text); font-size: .9rem; font-weight: 550; }
.lp-form .lp-btn-block { margin-top: 1.5rem; }
.lp-form-note { color: var(--text-4); font-size: .8rem; margin: .9rem 0 0; text-align: center; }
.lp-form-note a { color: var(--text-3); text-decoration: underline; }
.lp-form-success { text-align: center; padding: 2rem 0; outline: none; }
.lp-success-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--success-bg); color: var(--success-text); font-size: 1.6rem; margin-bottom: 1.25rem; }
.lp-form-success h3 { font-size: 1.5rem; margin: 0 0 .5rem; }
.lp-form-success p { color: var(--text-3); margin: 0 auto 1.5rem; max-width: 380px; }
.lp-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .2); border-top-color: currentColor; animation: spin .7s linear infinite; }
@media (max-width: 600px) { .lp-form-grid { grid-template-columns: 1fr; } }

/* ---- Footer ----------------------------------------------------------------- */
.lp-footer { background: var(--lp-ink); color: var(--lp-on-ink-muted); padding: 4rem 0 1.5rem; font-size: .92rem; }
.lp-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lp-footer-brand img { height: 48px; margin-bottom: 1rem; }
.lp-footer-brand p { max-width: 280px; margin: 0; }
.lp-footer h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin: .5rem 0 1rem; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.lp-footer li { display: flex; gap: .6rem; align-items: baseline; overflow-wrap: anywhere; }
.lp-footer li i { color: var(--brand); width: 14px; }
.lp-footer a { color: var(--lp-on-ink); }
.lp-footer a:hover { color: var(--brand); }
.lp-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .82rem; }
@media (max-width: 900px) { .lp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lp-footer-grid { grid-template-columns: 1fr; } }

/* ---- Floating WhatsApp ------------------------------------------------------ */
.lp-wa { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff !important; font-size: 1.7rem; box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .7); transition: transform .2s var(--ease); }
.lp-wa:hover { transform: scale(1.07); }

/* ---- Back to top ------------------------------------------------------------ */
.lp-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    display: grid; place-items: center;
    background: var(--lp-ink); color: var(--brand); font-size: 1.05rem;
    box-shadow: 0 10px 28px -8px rgba(11, 18, 39, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s, background-color .15s;
}
.lp-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s var(--ease), visibility 0s, background-color .15s; }
.lp-top:hover { background: var(--lp-ink-2); }
.lp-top:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .lp-top { transition: none; transform: none; } }

/* ---- Legal pages ------------------------------------------------------------ */
.lp-legal-hero { background: var(--lp-ink); padding: 3.5rem 0 3rem; }
.lp-legal-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 .5rem; }
.lp-legal-hero p { color: var(--lp-on-ink-muted); margin: 0; }
.lp-legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; padding: 3rem 0 5rem; align-items: start; }
.lp-legal-toc { position: sticky; top: calc(var(--lp-header-h) + 1.5rem); font-size: .875rem; }
.lp-legal-toc strong { display: block; color: var(--text); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.lp-legal-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; border-left: 2px solid var(--border); }
.lp-legal-toc a { display: block; padding: .3rem .9rem; color: var(--text-3); margin-left: -2px; border-left: 2px solid transparent; }
.lp-legal-toc a:hover { color: var(--text); border-left-color: var(--brand-strong); }
.lp-legal-body { max-width: 760px; color: var(--text-2); }
.lp-legal-sec { scroll-margin-top: calc(var(--lp-header-h) + 1rem); }
.lp-legal-body h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; }
.lp-legal-sec:first-of-type h2 { margin-top: 0; }
.lp-legal-body h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.lp-legal-body ul { padding-left: 1.2rem; }
.lp-legal-body li { margin-bottom: .35rem; }
.lp-legal-body a { color: var(--link); }
.lp-legal-callout { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .lp-legal { grid-template-columns: 1fr; gap: 1.5rem; } .lp-legal-toc { position: static; } }
.lp-legal-lead { font-size: 1.1rem; color: var(--text-2); margin-bottom: 2rem; }

/* ---- Public ticket page ----------------------------------------------------- */
.tk-page { background: var(--bg); padding: 2.5rem 0 4rem; min-height: 70vh; }
.tk-container { max-width: 1100px; }
.tk-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-xs); padding: 1.5rem; }
.tk-card h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; margin: 0 0 1rem; }
.tk-state { text-align: center; padding: 4rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; max-width: 560px; margin: 2rem auto; }
.tk-state h1 { font-size: 1.5rem; margin: 0; }
.tk-state p { color: var(--text-3); margin: 0 0 .75rem; }
.tk-state-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); font-size: 1.4rem; }
.tk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tk-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .25rem; overflow-wrap: anywhere; }
.tk-head p { color: var(--text-3); margin: 0; font-size: .92rem; }
.tk-status { font-size: .85rem; padding: .4rem .85rem; gap: .4rem; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.tk-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--lp-header-h) + 1rem); }
.tk-side .kv { grid-template-columns: 70px 1fr; font-size: .875rem; }
.tk-help p { color: var(--text-3); font-size: .9rem; }
.tk-note { font-size: .78rem; color: var(--text-4); display: flex; gap: .5rem; margin: 0; padding: 0 .25rem; }
.tk-thread { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.tk-msg { display: flex; gap: .75rem; align-items: flex-start; max-width: 92%; }
.tk-msg.is-staff { align-self: flex-end; flex-direction: row-reverse; }
.tk-bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; padding: .85rem 1rem; min-width: 0; }
.tk-msg.is-staff .tk-bubble { background: var(--primary-soft); border-color: color-mix(in srgb, var(--link) 20%, var(--border)); border-radius: 16px 4px 16px 16px; }
.tk-staff-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #1a1500; font-size: .8rem; flex-shrink: 0; }
.tk-msg-meta { display: flex; gap: .75rem; align-items: baseline; justify-content: space-between; font-size: .8rem; margin-bottom: .35rem; }
.tk-msg-meta strong { color: var(--text); font-size: .85rem; }
.tk-msg-meta time { color: var(--text-4); white-space: nowrap; }
.tk-msg-body { color: var(--text-2); font-size: .95rem; overflow-wrap: anywhere; }
.tk-msg-body p:last-child { margin-bottom: 0; }
.tk-attachments { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.tk-thumb { width: 88px; height: 88px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); display: block; }
.tk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tk-file { display: inline-flex; gap: .4rem; align-items: center; font-size: .8rem; padding: .4rem .7rem; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); }
.tk-reply { border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: .25rem; }
.tk-reply-actions { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; flex-wrap: wrap; }
.tk-files { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tk-files li { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; background: var(--surface-3); border-radius: 999px; padding: .2rem .3rem .2rem .7rem; }
.tk-files .btn-icon { width: 24px; height: 24px; }
.tk-closed { display: flex; gap: .75rem; align-items: flex-start; border-top: 1px solid var(--border); padding-top: 1.25rem; color: var(--text-2); font-size: .92rem; }
.tk-closed > i { color: var(--text-4); margin-top: .2rem; }
@media (max-width: 900px) { .tk-grid { grid-template-columns: 1fr; } .tk-side { position: static; } .tk-msg { max-width: 100%; } }
