/*
 * Tenant landing page (/home/{companyKey}, LandingPageView) — was an inline
 * <style>. The tenant-derived tokens (--primary*, --secondary*, legacy
 * --primary-color/--primary-hover/--secondary-color/--secondary-hover) are
 * emitted by the page head through cssRootVariables(), from colours checked
 * by HexColorSanitizer; everything here is static.
 */
:root {
    /* Cool neutral stone / concrete palette */
    --paper:       #fafaf9;
    --paper-deep:  #f2f2f1;
    --stone-50:    #f7f7f6;
    --stone-100:   #eeeeed;
    --stone-150:   #e5e5e3;
    --stone-200:   #d9d9d7;
    --stone-300:   #bcbcb9;
    --stone-400:   #8f8f8c;
    --stone-500:   #6b6b69;
    --stone-600:   #4d4d4b;
    --stone-700:   #35352f;  /* Very dark stone — for headings */
    --stone-800:   #23231f;
    --stone-900:   #151513;

    --font-display: 'Geist', system-ui, -apple-system, sans-serif;
    --font-body:    'Geist', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    color: var(--stone-700);
    background: var(--paper);
}
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--stone-900);
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* Grain utility (off by default — subtle, cool) */
.grain { position: relative; }

/* Company-colored top rule */
.crown-rule {
    height: 3px;
    background: var(--primary);
}

/* Header */
.site-header {
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--stone-150);
}
.brandmark {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--stone-200);
    display: flex; align-items: center; justify-content: center;
    padding: 6px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.brandmark img { width: 100%; height: 100%; object-fit: contain; }
.header-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.8125rem; font-weight: 500;
    color: var(--stone-600);
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.header-link:hover { color: var(--primary); }

/* Hero — clean cool stone, single soft primary glow */
.hero {
    position: relative;
    background: var(--paper);
    overflow: hidden;
    border-bottom: 1px solid var(--stone-150);
}
.hero::after {
    content: "";
    position: absolute;
    right: -12%;
    top: -20%;
    width: 620px; height: 620px;
    border-radius: 999px;
    background: radial-gradient(circle,
        rgba(var(--primary-rgb), 0.07),
        transparent 65%);
    pointer-events: none;
}

.hero-plate {
    width: 104px; height: 104px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--stone-200);
    display: flex; align-items: center; justify-content: center;
    padding: 18px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 12px 32px -16px rgba(64, 59, 51, 0.22);
    position: relative;
}
.hero-plate img { width: 100%; height: 100%; object-fit: contain; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.625rem;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--stone-600);
}
.eyebrow .tick {
    width: 22px; height: 1px;
    background: var(--primary);
}
.eyebrow .dot {
    width: 6px; height: 6px; border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.18);
}

.display-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--stone-900);
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.lede {
    font-family: var(--font-body);
    color: var(--stone-600);
    font-size: 1.0625rem;
    line-height: 1.65;
    max-width: 38rem;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.8125rem 1.5rem;
    border-radius: 4px;
    transition: transform 0.18s cubic-bezier(.2,.7,.3,1), box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.005em;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary-dark);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.16) inset,
        0 8px 18px -10px rgba(var(--primary-rgb), 0.55);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.18) inset,
        0 14px 24px -10px rgba(var(--primary-rgb), 0.55);
}
.btn-stone {
    background: white;
    color: var(--stone-800);
    border: 1px solid var(--stone-200);
}
.btn-stone:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-ghost {
    background: transparent;
    color: var(--stone-700);
    border: 1px solid var(--stone-300);
}
.btn-ghost:hover {
    background: var(--stone-100);
    color: var(--stone-900);
}

/* Hairline divider with dot */
.hairline {
    display: flex; align-items: center; gap: 0.875rem;
    color: var(--stone-400);
}
.hairline .line {
    flex: 1;
    height: 1px;
    background: var(--stone-200);
}
.hairline .mark {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--primary);
}

/* Section label */
.section-label {
    display: inline-flex; align-items: center; gap: 0.625rem;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--stone-500);
}
.section-label .bar {
    width: 18px; height: 1px; background: var(--primary);
}

/* Stone card */
.stone-card {
    position: relative;
    background: var(--stone-50);
    border: 1px solid var(--stone-200);
    border-radius: 2px;
    padding: 1.75rem 1.625rem 1.625rem;
    transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.stone-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 28px;
    background: var(--primary);
    opacity: 0.55;
    transition: height 0.25s, opacity 0.25s;
}
.stone-card:hover {
    border-color: var(--stone-300);
    box-shadow: 0 14px 36px -24px rgba(64, 59, 51, 0.25);
    transform: translateY(-2px);
}
.stone-card:hover::before {
    height: 48px;
    opacity: 1;
}

.card-index {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--stone-900);
    letter-spacing: -0.02em;
    margin-top: 0.625rem;
    margin-bottom: 0.875rem;
}

.bullet {
    display: flex; align-items: flex-start; gap: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--stone-700);
    padding: 0.375rem 0;
}
.bullet + .bullet {
    border-top: 1px dashed var(--stone-200);
}
.bullet .mk {
    flex-shrink: 0;
    width: 14px; height: 14px;
    margin-top: 0.3rem;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary);
}

/* Step marker */
.step-num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--primary);
    width: 22px;
    text-align: left;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Trust pills */
.trust-row {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0;
    border: 1px solid var(--stone-200);
    background: var(--stone-50);
    border-radius: 2px;
    overflow: hidden;
}
.trust-cell {
    flex: 1 1 200px;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.9375rem 1.25rem;
    border-right: 1px solid var(--stone-200);
    font-size: 0.875rem;
    color: var(--stone-700);
    letter-spacing: 0.01em;
}
.trust-cell:last-child { border-right: 0; }
.trust-cell .pip {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .trust-cell {
        flex: 1 1 100%;
        border-right: 0;
        border-bottom: 1px solid var(--stone-200);
    }
    .trust-cell:last-child { border-bottom: 0; }
}

/* Closing band */
.closing {
    background: var(--stone-800);
    color: var(--stone-100);
    position: relative;
    overflow: hidden;
}
.closing::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 85% 30%, rgba(var(--primary-rgb), 0.18), transparent 65%),
        radial-gradient(ellipse 40% 60% at 10% 90%, rgba(var(--secondary-rgb), 0.10), transparent 60%);
    pointer-events: none;
}
.closing::after {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(255,255,255,0.06);
    pointer-events: none;
}
.btn-closing-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}
.btn-closing-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}
.btn-closing-outline {
    background: transparent;
    color: var(--stone-100);
    border: 1px solid rgba(255,255,255,0.22);
}
.btn-closing-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.36);
}

/* Marginalia label */
.marg {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--stone-500);
    letter-spacing: 0.02em;
}

/* Hero — audience callout (sits under eyebrow) */
.audience-callout {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--stone-500);
    letter-spacing: 0.02em;
    margin: 0;
}

/* Hero — anonymity callout (sits under primary CTA) */
.anonymity-callout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--stone-500);
    letter-spacing: 0.02em;
}

/* Reassurance strip — 2x2 on mobile, 1x4 on desktop.
   Reuses .trust-row / .trust-cell / .pip vocabulary so
   nothing about the stone palette changes. */
.trust-row.reassurance-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--stone-200);
    background: var(--stone-50);
    border-radius: 2px;
    overflow: hidden;
}
.trust-row.reassurance-row .trust-cell {
    flex: unset;
    border-right: 1px solid var(--stone-200);
    border-bottom: 1px solid var(--stone-200);
}
.trust-row.reassurance-row .trust-cell:nth-child(2n) { border-right: 0; }
.trust-row.reassurance-row .trust-cell:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 768px) {
    .trust-row.reassurance-row {
        grid-template-columns: repeat(4, 1fr);
    }
    .trust-row.reassurance-row .trust-cell {
        border-right: 1px solid var(--stone-200);
        border-bottom: 0;
    }
    .trust-row.reassurance-row .trust-cell:nth-child(2n) {
        border-right: 1px solid var(--stone-200);
    }
    .trust-row.reassurance-row .trust-cell:last-child {
        border-right: 0;
    }
}

/* Two-track cards — sharp accent ribbon, never a field */
.track-card { border-top: 2px solid var(--stone-200); }
.track-card.track-compliance { border-top-color: var(--primary); }
.track-card.track-karin      { border-top-color: var(--secondary); }

/* Process stepper — vertical with left rail on mobile,
   horizontal with hairline connectors on desktop. */
.stepper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    position: relative;
}
.stepper .step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    padding-left: 1.5rem;
}
.stepper .step::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 28px;
    bottom: -1.25rem;
    width: 1px;
    background: var(--stone-200);
}
.stepper .step:last-child::before { display: none; }
.stepper .step .num {
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) {
    .stepper {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    .stepper .step {
        flex-direction: column;
        padding-left: 0;
        padding-top: 1.5rem;
    }
    .stepper .step::before {
        left: 0;
        right: 0;
        top: 10px;
        bottom: auto;
        width: auto;
        height: 1px;
        background: var(--stone-200);
    }
    .stepper .step .num {
        position: static;
        width: auto;
    }
}

/* FAQ accordion — native <details>, no JS, hairline-only.
   Tap target >=44px tall per Apple HIG. */
details.faq-item {
    border-top: 1px solid var(--stone-150);
}
details.faq-item:last-of-type {
    border-bottom: 1px solid var(--stone-150);
}
details.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.125rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 44px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--stone-900);
    letter-spacing: -0.01em;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .chev {
    display: inline-flex;
    transition: transform 0.18s ease;
    color: var(--stone-400);
    flex-shrink: 0;
}
details.faq-item[open] summary .chev {
    transform: rotate(180deg);
}
details.faq-item .faq-answer {
    padding: 0 0 1.125rem;
    color: var(--stone-600);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Footer fine-print — small line under the main row */
.footer-fineprint {
    font-size: 0.75rem;
    color: var(--stone-400);
    letter-spacing: 0.02em;
}

/* Selection */
::selection {
    background: rgba(var(--primary-rgb), 0.24);
    color: var(--stone-900);
}

/* Footer links: stone-500, primary on hover (were inline onmouseover/onmouseout). */
.footer-link {
  color: var(--stone-500);
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--primary);
}
