/* Public hilina.ai pages: the marketing homepage (.hl-mk-*) and the SMS opt-in
   evidence page (.hl-public-*, loaded after hilina_legal.css for its shell).
   Anonymous visitors get a CSP without 'unsafe-inline', so no inline styles or scripts.
   Tokens follow lina-product 00_PRODUCT/prd.md (Design Tokens). */

/* ---------- SMS opt-in evidence page ---------- */
.hl-public-section {
    margin-top: 1.75rem;
}

.hl-public-section p {
    margin: 0 0 0.75rem;
}

.hl-public-h2 {
    font-family: var(--hl-font-headline, "Inter", "Segoe UI", system-ui, sans-serif);
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

.hl-legal-shell a:not(.hl-wordmark) {
    color: var(--hl-cobalt, #000000);
}

.hl-public-shots {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.hl-public-shot {
    margin: 0 0 2.25rem;
}

.hl-public-shot img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--hl-bdr, rgba(0, 0, 0, 0.08));
    border-radius: 12px;
}

.hl-public-shot figcaption {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

.hl-public-shot-num {
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--hl-txt2, #666666);
}

.hl-public-sms {
    margin: 0;
    padding: 1rem 1.25rem;
    background: var(--hl-bg, #FAFAFA);
    border-radius: 12px;
    font-size: 0.9375rem;
}

.hl-public-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.75rem 0 0;
}

.hl-public-footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hl-bdr-mid, rgba(0, 0, 0, 0.13));
    font-size: 0.8125rem;
    color: var(--hl-txt2, #666666);
}

.hl-public-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.hl-public-copyright {
    margin: 0.75rem 0 0;
}

/* ---------- Marketing homepage ---------- */
.hl-mk {
    --mk-navy: #000000;
    --mk-cobalt: #000000;
    --mk-cobalt-mid: #333333;
    --mk-bg: #FAFAFA;
    --mk-txt: #000000;
    --mk-txt2: #666666;
    --mk-bdr: rgba(0, 0, 0, 0.08);
    min-height: 100vh;
    background: var(--mk-bg);
    color: var(--mk-txt);
    font-family: var(--hl-font-body, "DM Sans", system-ui, sans-serif);
}
.hl-mk h1, .hl-mk h2, .hl-mk h3 {
    font-family: var(--hl-font-headline, "Inter", system-ui, sans-serif);
    margin: 0;
}
.hl-mk-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Hero: same dark panel and glow as the sign-in page */
.hl-mk-hero {
    position: relative;
    overflow: hidden;
    background: var(--mk-navy);
    color: #FFFFFF;
    padding: 28px 0 96px;
}
.hl-mk-hero::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 65%);
    pointer-events: none;
}
.hl-mk-nav {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hl-mk-nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.hl-mk-nav-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 500;
}
.hl-mk-nav-link:hover { color: #FFFFFF; }
.hl-mk-hero-grid {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 88px 32px 0;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 56px;
    align-items: center;
}
.hl-mk-eyebrow {
    margin: 0 0 18px;
    color: #8FA6FF;
    font-family: var(--hl-font-headline, "Inter", sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hl-mk-headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.02em;
}
.hl-mk-headline .dim { display: block; color: rgba(255, 255, 255, 0.45); }
.hl-mk-headline .cobalt { color: #3B63FF; }
.hl-mk-headline .bright { color: #FFFFFF; }
.hl-mk-sub {
    max-width: 34rem;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1875rem;
    line-height: 1.55;
}
.hl-mk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}
.hl-mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 26px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    font-family: var(--hl-font-headline, "Inter", sans-serif);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.hl-mk-btn--sm { height: 40px; padding: 0 18px; font-size: 0.875rem; border-radius: 10px; }
.hl-mk-btn--primary {
    background: var(--mk-cobalt);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.hl-mk-btn--primary:hover { background: var(--mk-cobalt-mid); }
.hl-mk-btn--ghost {
    border-color: rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
}
.hl-mk-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.6); }

.hl-mk-hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.hl-mk-card {
    width: 100%;
    max-width: 380px;
    padding: 22px 24px;
    background: #FFFFFF;
    color: var(--mk-txt);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 8, 40, 0.45);
}
.hl-mk-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hl-mk-card-label {
    color: var(--mk-txt2);
    font-size: 0.8125rem;
    font-weight: 500;
}
.hl-mk-pill {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 184, 92, 0.12);
    color: #00934A;
    font-size: 0.75rem;
    font-weight: 600;
}
.hl-mk-card-metric {
    margin-top: 14px;
    color: var(--mk-txt2);
    font-size: 0.9375rem;
}
.hl-mk-num {
    color: var(--mk-txt);
    font-family: var(--hl-font-mono, "JetBrains Mono", ui-monospace, monospace);
    font-size: 2.5rem;
    font-weight: 600;
    margin-right: 6px;
}
.hl-mk-card-line {
    margin: 12px 0 0;
    padding: 12px 14px;
    background: #F5F5F5;
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.45;
}

/* Sections */
.hl-mk-section { padding: 88px 0; }
.hl-mk-section--white { background: #FFFFFF; }
.hl-mk .hl-mk-h2 {
    font-size: 2.125rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
}
.hl-mk-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hl-mk-step {
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid var(--mk-bdr);
    border-radius: 18px;
}
.hl-mk-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #F5F5F5;
    color: var(--mk-cobalt);
    font-family: var(--hl-font-headline, "Inter", sans-serif);
    font-weight: 700;
}
.hl-mk-step h3, .hl-mk-feature h3 {
    margin-top: 18px;
    font-size: 1.1875rem;
    font-weight: 700;
}
.hl-mk-step p, .hl-mk-feature p {
    margin: 8px 0 0;
    color: var(--mk-txt2);
    line-height: 1.55;
}
.hl-mk-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.hl-mk-feature {
    padding: 20px 0 0;
    border-top: 3px solid var(--mk-cobalt);
}
.hl-mk-feature a { color: var(--mk-cobalt); white-space: nowrap; }

/* Closing call to action */
.hl-mk-cta {
    background: var(--mk-navy);
    padding: 72px 0;
}
.hl-mk-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.hl-mk .hl-mk-cta-title {
    color: #FFFFFF;
    font-size: 2rem;
    font-weight: 800;
}

/* Footer */
.hl-mk-footer {
    padding: 48px 0 32px;
    color: var(--mk-txt2);
    font-size: 0.875rem;
}
.hl-mk-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}
.hl-mk-footer-note { margin: 10px 0 0; }
.hl-mk-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}
.hl-mk-footer-links a { color: var(--mk-txt2); text-decoration: none; }
.hl-mk-footer-links a:hover { color: var(--mk-cobalt); }
.hl-mk-copyright { margin-top: 28px; }

@media (max-width: 960px) {
    .hl-mk-hero-grid { grid-template-columns: 1fr; padding-top: 56px; }
    .hl-mk-headline { font-size: 2.5rem; }
    .hl-mk-steps, .hl-mk-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .hl-mk-wrap, .hl-mk-nav, .hl-mk-hero-grid { padding-left: 20px; padding-right: 20px; }
    .hl-mk-headline { font-size: 2.125rem; }
    .hl-mk-steps, .hl-mk-features { grid-template-columns: 1fr; }
    .hl-mk-section { padding: 64px 0; }
    .hl-mk-nav-link { display: none; }
}
