/* PassPhantom — styles2.css
   Inspired by Linear, Tailscale, Vercel.
   Light background, restrained palette, generous whitespace.
   No gradients, no glow, no grid-card-itis. */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --text-primary: #111;
    --text-secondary: #555;
    --text-tertiary: #888;
    --bg: #fafafa;
    --bg-warm: #f4f2ef;
    --bg-card: #fff;
    --border: #e5e3e0;
    --accent: #111;
    --accent-hover: #333;
    --sentinel: #c4421a;
    --green: #1a7a3a;
    --red: #b91c1c;
    --amber: #92400e;
    --mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    /* Aliases used in inline styles */
    --fg: #111;
    --muted: #888;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

code {
    font-family: var(--mono);
    font-size: 0.875em;
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ---- Typography ---- */
h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

p {
    color: var(--text-secondary);
}

p + p { margin-top: 16px; }

em { font-style: italic; }

/* ---- Nav ---- */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.15s;
}

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

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.15s;
}

.nav-cta:hover { background: var(--accent-hover); }

/* ---- Hero ---- */
.hero {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 32px 100px;
    text-align: center;
}

.hero-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-brand img {
    border-radius: 24px;
}

.hero-brand-name {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero h1 { margin-bottom: 24px; }

.hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.btn-text:hover { color: var(--text-primary); }

/* ---- Sections ---- */
.section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 32px;
}

.section-warm {
    background: var(--bg-warm);
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.section-warm > * {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

.section-warm > table {
    max-width: 1016px;  /* 1080 - 64px padding */
}

.section-label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    text-align: center;
}

.section-title {
    margin-bottom: 16px;
    text-align: center;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
    text-align: center;
}

/* ---- Two-column layout ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.two-col h2 {
    position: sticky;
    top: 80px;
}

.two-col p {
    max-width: 600px;
}

/* ---- Stats ---- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 240px;
}

.stat-source {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-tertiary);
}

.stats-note {
    font-size: 15px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

/* ---- Steps ---- */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 48px auto;
    max-width: 680px;
}

.step {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.step:first-child { border-top: 1px solid var(--border); }

.step-num {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    width: 32px;
    flex-shrink: 0;
    padding-top: 2px;
}

.step-content h3 { margin-bottom: 8px; }

.step-content p {
    font-size: 15px;
    max-width: 540px;
}

/* ---- Extension popup mockup ---- */
.popup-mockup {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.popup-card {
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.popup-ghost {
    line-height: 1;
}

.popup-brand {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.popup-status {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.popup-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.popup-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.popup-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    flex-shrink: 0;
    background: rgba(26, 122, 58, 0.1);
    color: var(--green);
    font-weight: 600;
}

.popup-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ---- Bitwarden note ---- */
.bw-note {
    max-width: 600px;
    margin: 32px auto 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-tertiary);
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
}

/* ---- Architecture cards ---- */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.arch-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
}

.arch-card h3 { margin-bottom: 12px; }

.arch-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* ---- Tables ---- */
.resp-table, .comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.resp-table th, .resp-table td,
.comp-table th, .comp-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.resp-table th, .comp-table th {
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
}

.resp-table td:first-child { font-weight: 500; }

.comp-table .col-highlight {
    background: rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.comp-table td:first-child {
    font-weight: 500;
    min-width: 200px;
}

.comp-table th:not(:first-child),
.comp-table td:not(:first-child) {
    text-align: center;
    width: 120px;
}

.y { color: var(--green); font-weight: 500; }
.n { color: var(--red); }
.p { color: var(--amber); }

/* Comparison table wrapper for mobile scroll */
.comp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 900px;
    margin: 0 auto;
}

.comp-table-wrap .comp-table {
    min-width: 560px;
    width: 100%;
}

/* ---- Features list ---- */
.features-list {
    margin-top: 48px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.feature-row {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.feature-row:first-child { border-top: 1px solid var(--border); }

.feature-row h3 { margin-bottom: 0; }

.feature-row p {
    font-size: 14px;
    max-width: none;
}

/* ---- Critical accounts (Your digital life) ---- */
.critical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 48px auto;
    max-width: 800px;
}

.critical-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.critical-card h3 { margin-bottom: 12px; }
.critical-card p {
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.sentinel-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    padding: 32px;
    border: 1px solid var(--sentinel);
    border-radius: 8px;
    background: rgba(196, 66, 26, 0.04);
}

.sentinel-box h3 {
    color: var(--sentinel);
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.sentinel-box p {
    font-size: 14px;
    max-width: 560px;
}

.sentinel-box .btn-primary {
    background: var(--sentinel);
    white-space: nowrap;
    flex-shrink: 0;
}

.sentinel-box .btn-primary:hover {
    background: #a33815;
}

/* ---- Pricing ---- */
.pricing-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.pricing-wrap h2 {
    margin-bottom: 12px;
    text-align: center;
}

.pricing-subtitle {
    color: var(--text-tertiary);
    margin-bottom: 40px;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px; /* space for badge overflow */
}

.pricing-card {
    border-radius: 8px;
    padding: 32px 24px;
    position: relative;
}

.pricing-card--free {
    border: 1px solid var(--border);
}

.pricing-card--enterprise {
    border: 1px solid var(--border);
}

.pricing-card--auto {
    border: 1px solid var(--border);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: #fff;
    padding: 2px 16px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.pricing-price {
    font-size: 36px;
    font-weight: 600;
    margin: 12px 0 4px;
}

.pricing-price-unit {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-tertiary);
}

.pricing-meta {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    font-size: 14px;
    line-height: 2;
}

.pricing-cta {
    display: block;
    text-align: center;
    margin-top: 24px;
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-tertiary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Legacy pricing simple (keep for compatibility) */
.pricing-simple {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 32px 0;
    border-top: 1px solid var(--border);
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.price-label { font-weight: 500; }

.price-value { font-weight: 600; }

.price-unit {
    font-weight: 400;
    color: var(--text-tertiary);
    font-size: 13px;
}

.price-sentinel .price-label { color: var(--sentinel); }

/* ---- Social proof / Trust ---- */
.trust-counter {
    text-align: center;
    margin-bottom: 56px;
}

.trust-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-primary);
}

.trust-plus {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-tertiary);
}

.trust-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* ---- Testimonials ---- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    flex: 1;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-quote::before {
    content: "\201C";
    font-size: 24px;
    font-weight: 600;
    color: var(--text-tertiary);
    line-height: 0;
    vertical-align: -6px;
    margin-right: 2px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.testimonial-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ---- About section ---- */
.about-section {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.about-section p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.about-contact {
    margin-top: 8px;
}

.about-contact a {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: underline;
    transition: color 0.15s;
}

.about-contact a:hover {
    color: var(--text-primary);
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-primary); }

/* ---- Responsive ---- */
@media (max-width: 840px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .two-col h2 {
        position: static;
    }
    .stats-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .arch-grid {
        grid-template-columns: 1fr;
    }
    .feature-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .critical-grid {
        grid-template-columns: 1fr;
    }
    .sentinel-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .comp-table {
        font-size: 12px;
    }
    .comp-table th, .comp-table td {
        padding: 8px;
    }
    .nav-links a:not(.nav-cta) {
        display: none;
    }
    .hero {
        padding: 80px 24px 60px;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .popup-card {
        width: 260px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .hero { padding: 64px 20px 48px; }
    .section { padding: 56px 20px; }
    .hero-actions {
        flex-direction: column;
        gap: 16px;
    }
    .comp-table-wrap {
        margin: 0 -20px;
        padding: 0 20px;
    }
}
