/*
 * Sender Registry — Public marketing site (Phase 4, Brick 3).
 *
 * Deliberately a SEPARATE stylesheet from tokens.css/base.css/
 * components.css, which serve the toggleable customer/admin app
 * surfaces. This page is a fixed dark identity by design (confirmed
 * with Chris, 14 Jul 2026) - it does not read the light/dark theme
 * toggle at all, so it can't share the same custom-property scaffolding
 * that's built around switching.
 *
 * Typeface: Archivo (Google Fonts, free) throughout, one family with
 * real weight/size contrast rather than a display+body pair - "precise,
 * evidence-led, technical-but-human" per PRODUCT.md's own brand-voice
 * words, and not on impeccable's reflex-reject list (Inter, Space
 * Grotesk, DM Sans, IBM Plex, Fraunces etc. were all deliberately
 * avoided).
 *
 * Color strategy: Committed, not Restrained - the deep navy/charcoal IS
 * the surface majority (per the mandatory Landing Page PRD Attachment's
 * own design language), with one electric-blue accent (the exact same
 * --accent value already used in the authenticated product's dark
 * theme, §tokens.css, so the mark carries through consistently) and red
 * reserved only for genuine risk states inside product-visual
 * recreations, never as a general marketing accent.
 */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,500&display=swap');

:root {
    --lp-bg: #0B1220;
    --lp-bg-alt: #101826;
    --lp-surface: #151E2E;
    --lp-surface-raised: #1B2537;
    --lp-border: #26324A;
    --lp-border-strong: #34435F;
    --lp-text: #EDF1F7;
    --lp-text-muted: #9AA7BD;
    --lp-text-dim: #6B7890;
    --lp-accent: #5B90FF;
    --lp-accent-dim: #3E6BCF;
    --lp-accent-tint: color-mix(in srgb, var(--lp-accent) 14%, var(--lp-bg));
    --lp-risk-critical: #C0362C;
    --lp-risk-high: #C0362C;
    --lp-risk-caution: #B8790C;
    --lp-risk-low: #1F7A4D;

    --lp-radius-sm: 6px;
    --lp-radius-md: 12px;
    --lp-radius-lg: 20px;

    --lp-space-1: 8px;
    --lp-space-2: 16px;
    --lp-space-3: 24px;
    --lp-space-4: 40px;
    --lp-space-5: 64px;
    --lp-space-6: 104px;

    /* Semantic z-index scale - never an arbitrary 999/9999 */
    --lp-z-sticky: 100;
    --lp-z-drawer: 200;
    --lp-z-modal-backdrop: 300;
    --lp-z-modal: 310;
    --lp-z-toast: 400;
}

.lp {
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.lp * { box-sizing: border-box; }

.lp h1, .lp h2, .lp h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-wrap: balance;
    margin: 0;
}

.lp p { text-wrap: pretty; }

.lp h1 { font-size: clamp(2.25rem, 3.2vw + 1.4rem, 4.5rem); }
.lp h2 { font-size: clamp(1.75rem, 1.8vw + 1.2rem, 2.75rem); }
.lp h3 { font-size: clamp(1.25rem, 0.8vw + 1rem, 1.625rem); }

.lp-body-lg { font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.25rem); color: var(--lp-text-muted); max-width: 62ch; line-height: 1.6; }
.lp-body { font-size: 1rem; color: var(--lp-text-muted); max-width: 68ch; line-height: 1.65; }

.lp-container {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 64px);
    padding-right: clamp(20px, 4vw, 64px);
}

.lp-section {
    padding-top: var(--lp-space-6);
    padding-bottom: var(--lp-space-6);
}

.lp-section--tight { padding-top: var(--lp-space-5); padding-bottom: var(--lp-space-5); }
.lp-section--alt { background: var(--lp-bg-alt); }

.lp-eyebrow-free {
    /* Deliberately not a repeated tiny-uppercase-tracked label on every
       section (impeccable's own ban on that as default scaffolding) -
       used at most once or twice across the whole page, and only where
       it's carrying real information (e.g. "Free, no signup"), never as
       decorative section grammar. */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lp-accent);
    background: var(--lp-accent-tint);
    border: 1px solid color-mix(in srgb, var(--lp-accent) 30%, transparent);
    border-radius: 999px;
    padding: 6px 14px;
}

/* ---------- Buttons ---------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--lp-radius-sm);
    padding: 13px 26px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease-out, border-color 0.2s ease-out;
    min-height: 44px;
}

.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:active { transform: translateY(0); }

.lp-btn--primary { background: var(--lp-accent); color: #05070C; }
.lp-btn--primary:hover { background: #6E9DFF; }

.lp-btn--secondary { background: transparent; color: var(--lp-text); border-color: var(--lp-border-strong); }
.lp-btn--secondary:hover { border-color: var(--lp-accent); }

.lp-btn--ghost { background: transparent; color: var(--lp-accent); padding-left: 4px; padding-right: 4px; min-height: auto; }
.lp-btn--ghost:hover { color: #6E9DFF; }

.lp-btn--platform {
    background: transparent;
    color: var(--lp-text);
    border-color: var(--lp-border-strong);
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 22px 10px 18px;
}
.lp-btn--platform:hover { border-color: var(--lp-accent); }
.lp-btn--platform svg { flex-shrink: 0; }
.lp-btn--platform-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.lp-btn--platform-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--lp-text-dim); }
.lp-btn--platform-label { font-size: 15px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
    .lp-btn { transition: none; }
    .lp-btn:hover { transform: none; }
}

/* ---------- Header / nav ---------- */

.lp-header {
    position: sticky;
    top: 0;
    z-index: var(--lp-z-sticky);
    background: color-mix(in srgb, var(--lp-bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lp-border);
}

.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lp-space-3);
    padding-top: 16px;
    padding-bottom: 16px;
}

.lp-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--lp-text);
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.lp-logo img { width: 30px; height: 30px; }

.lp-nav {
    display: flex;
    align-items: center;
    gap: var(--lp-space-4);
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: var(--lp-space-3);
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-nav-links a {
    color: var(--lp-text-muted);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    transition: color 0.15s ease-out;
}

.lp-nav-links a:hover { color: var(--lp-text); }

.lp-nav-cta { display: flex; align-items: center; gap: 12px; }

.lp-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--lp-border-strong);
    border-radius: var(--lp-radius-sm);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--lp-text);
    cursor: pointer;
}

.lp-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--lp-z-drawer);
    background: var(--lp-bg);
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: var(--lp-space-2);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-drawer.is-open { transform: translateX(0); }

.lp-drawer-close {
    align-self: flex-end;
    background: none;
    border: 1px solid var(--lp-border-strong);
    border-radius: var(--lp-radius-sm);
    width: 44px;
    height: 44px;
    color: var(--lp-text);
    cursor: pointer;
}

.lp-drawer nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: var(--lp-space-3);
}

.lp-drawer nav a {
    color: var(--lp-text);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    padding: 14px 4px;
    border-bottom: 1px solid var(--lp-border);
}

@media (prefers-reduced-motion: reduce) {
    .lp-drawer { transition: none; }
}

@media (max-width: 880px) {
    .lp-nav-links, .lp-nav-cta { display: none; }
    .lp-nav-toggle { display: inline-flex; }
}

/* ---------- Device frames (product visuals) ---------- */

.lp-visual-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(16px, 3vw, 48px);
    flex-wrap: wrap;
}

.device-frame {
    position: relative;
    flex-shrink: 0;
}

/* iPhone: fixed aspect ratio bezel, screen content fills the inset area
   at the correct proportion rather than a stretched/guessed crop. */
.device-frame--iphone {
    width: clamp(200px, 22vw, 260px);
    aspect-ratio: 390 / 844;
    background: #08090C;
    border-radius: 46px;
    padding: 14px;
    box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6), inset 0 0 0 2px #2a2d33;
}

.device-frame--iphone::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 34%;
    height: 22px;
    background: #08090C;
    border-radius: 12px;
    z-index: 2;
    box-shadow: 0 0 0 2px #1c1e22;
}

.device-frame--iphone .device-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: var(--lp-surface);
}

/* iMac: widescreen bezel + a simple stand, matching a real desktop's
   proportions rather than a generic rectangle. */
.device-frame--imac {
    width: clamp(240px, 34vw, 560px);
    max-width: 100%;
}

.device-frame--imac .device-screen-wrap {
    aspect-ratio: 16 / 10;
    background: #0C0D10;
    border-radius: 18px;
    padding: 14px 14px 20px;
    box-shadow: 0 40px 90px -24px rgba(0,0,0,0.65);
}

.device-frame--imac .device-screen {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: var(--lp-surface);
}

.device-frame--imac .device-stand {
    width: 22%;
    height: 34px;
    background: linear-gradient(180deg, #14161B, #0C0D10);
    margin: 0 auto;
    clip-path: polygon(38% 0%, 62% 0%, 82% 100%, 18% 100%);
}

.device-frame--imac .device-base {
    width: 42%;
    height: 8px;
    background: #14161B;
    margin: 0 auto;
    border-radius: 999px;
}

/* Free-standing: the UI panel itself, no chrome, a soft shadow lifting
   it off the page - for visuals the spec calls out as not needing a
   device (e.g. a Registry Record or evidence panel shown edge-to-edge). */
.device-frame--free .device-screen {
    border-radius: var(--lp-radius-md);
    overflow: hidden;
    background: var(--lp-surface);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55), 0 0 0 1px var(--lp-border);
}

@media (prefers-reduced-motion: no-preference) {
    .device-frame { animation: lp-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
}

@keyframes lp-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Cards, badges, misc ---------- */

.lp-card {
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-md);
    padding: var(--lp-space-3);
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--lp-surface-raised);
    color: var(--lp-text-muted);
    border: 1px solid var(--lp-border-strong);
}

.lp-badge--critical { background: color-mix(in srgb, var(--lp-risk-critical) 20%, var(--lp-surface)); color: #FF8A80; border-color: color-mix(in srgb, var(--lp-risk-critical) 45%, transparent); }
.lp-badge--low { background: color-mix(in srgb, var(--lp-risk-low) 20%, var(--lp-surface)); color: #6FDBA0; border-color: color-mix(in srgb, var(--lp-risk-low) 45%, transparent); }
.lp-badge--accent { background: var(--lp-accent-tint); color: var(--lp-accent); border-color: color-mix(in srgb, var(--lp-accent) 40%, transparent); }

.lp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lp-space-4); align-items: center; }
.lp-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--lp-space-3); }

@media (max-width: 900px) {
    .lp-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.lp-footer {
    border-top: 1px solid var(--lp-border);
    padding-top: var(--lp-space-4);
    padding-bottom: var(--lp-space-4);
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--lp-space-3);
}

.lp-footer-grid h4 { font-size: 13px; color: var(--lp-text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 12px; }
.lp-footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-footer-grid a { color: var(--lp-text-muted); text-decoration: none; font-size: 14px; }
.lp-footer-grid a:hover { color: var(--lp-text); }

.lp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--lp-space-2);
    margin-top: var(--lp-space-4);
    padding-top: var(--lp-space-2);
    border-top: 1px solid var(--lp-border);
    color: var(--lp-text-dim);
    font-size: 13px;
}

.lp-social { display: flex; gap: 10px; }

.lp-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border-strong);
    color: var(--lp-text-muted);
    transition: color 0.15s ease-out, border-color 0.15s ease-out;
}

.lp-social a:hover, .lp-social a:focus-visible { color: var(--lp-accent); border-color: var(--lp-accent); }

@media (max-width: 780px) {
    .lp-footer-grid { grid-template-columns: 1fr 1fr; }
    .lp-footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Auth (sign-in) ---------- */

.lp-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--lp-accent) 12%, transparent), transparent 45%),
        var(--lp-bg);
}

/* Same accent-ring treatment as the featured ("Most popular") pricing
   tier in sections/pricing.php - reused deliberately so sign-in reads as
   part of the same premium visual language, not a one-off card style. */
.lp-auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-accent);
    border-radius: var(--lp-radius-md);
    box-shadow: 0 0 0 1px var(--lp-accent), 0 30px 60px -20px rgba(0, 0, 0, 0.55);
    padding: var(--lp-space-4) var(--lp-space-3);
}

.lp-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--lp-text);
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    margin-bottom: var(--lp-space-3);
}

.lp-auth-logo img { width: 28px; height: 28px; }

.lp-auth-card h1 { font-size: 22px; text-align: center; }

.lp-auth-subtitle {
    font-size: 14px;
    color: var(--lp-text-muted);
    text-align: center;
    margin: 8px 0 var(--lp-space-3);
}

.lp-form-group { margin-bottom: 16px; }

.lp-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-text);
    margin-bottom: 6px;
}

.lp-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--lp-text);
    background: var(--lp-surface-raised);
    border: 1px solid var(--lp-border-strong);
    border-radius: var(--lp-radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lp-input:focus {
    outline: none;
    border-color: var(--lp-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-accent) 22%, transparent);
}

.lp-form-error {
    background: color-mix(in srgb, var(--lp-risk-high) 16%, var(--lp-surface));
    border: 1px solid color-mix(in srgb, var(--lp-risk-high) 45%, transparent);
    color: #FF8A80;
    border-radius: var(--lp-radius-sm);
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 16px;
}

.lp-auth-footnote {
    text-align: center;
    font-size: 13px;
    color: var(--lp-text-muted);
    margin-top: var(--lp-space-3);
}

.lp-auth-footnote a { color: var(--lp-accent); text-decoration: none; font-weight: 600; }
.lp-auth-footnote a:hover { color: #6E9DFF; }

/* ---------- Modal (region/currency + learn-more, shared component) ---------- */

.lp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--lp-z-modal-backdrop);
    background: rgba(5, 7, 12, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
}

.lp-modal-backdrop.is-open { opacity: 1; pointer-events: auto; }

.lp-modal {
    position: relative;
    z-index: var(--lp-z-modal);
    background: var(--lp-surface-raised);
    border: 1px solid var(--lp-border-strong);
    border-radius: var(--lp-radius-lg);
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--lp-space-3);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-modal--wide { max-width: 640px; }

.lp-modal-backdrop.is-open .lp-modal { transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
    .lp-modal-backdrop, .lp-modal { transition: none; }
}

.lp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border-strong);
    color: var(--lp-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lp-modal-close:hover { color: var(--lp-text); }

.lp-modal h3 { margin-bottom: 8px; }

.lp-modal-options { display: flex; flex-direction: column; gap: 10px; margin-top: var(--lp-space-2); }

.lp-modal-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border-strong);
    border-radius: var(--lp-radius-md);
    padding: 14px 16px;
    cursor: pointer;
    color: var(--lp-text);
}

.lp-modal-option:hover, .lp-modal-option:focus-visible { border-color: var(--lp-accent); }
.lp-modal-option strong { font-size: 15px; }
.lp-modal-option span { font-size: 13px; color: var(--lp-text-muted); }

@media (max-width: 700px) {
    .lp-visual-row { flex-direction: column; align-items: center; }
}
