/* =============================================================================
   Lens of Truth — Styles
   Light theme, soft off-white. Three-tier font system:
     Logo:     Cutive Mono — typewriter, original-document feel
     UI chrome: IBM Plex Mono — headings, labels, pricing, buttons, stage names
     Body:     Inter — body text, textarea, analysis results
   Standalone. No Ori CSS dependencies.
   ============================================================================= */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f5f7;
    color: #1f2937;
    line-height: 1.6;
    min-height: 100vh;
}

/* =============================================================================
   Layout
   ============================================================================= */

.lot-container {
    max-width: 740px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lot-main {
    flex: 1;
}

/* =============================================================================
   Header
   ============================================================================= */

.lot-header {
    text-align: center;
    padding: 3rem 0 2rem;
    position: relative;
}

.lot-header-compact {
    padding: 1.5rem 0 1rem;
    text-align: left;
}

.lot-header-compact .lot-home-link {
    top: 1.5rem;
}

.lot-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-right: 3.8rem; /* balance icon width + gap so text is visually centred */
}

.lot-icon {
    width: 3.2rem;
    height: 3.2rem;
    color: #6b7a8d;
    flex-shrink: 0;
}

.lot-logo {
    font-family: 'Cutive Mono', monospace;
    font-size: 2rem;
    font-weight: 400;
    color: #1f2937;
    letter-spacing: 0;
}

.lot-logo-link {
    text-decoration: none;
    color: inherit;
}

.lot-home-link {
    position: absolute;
    top: 2rem;
    right: 0;
    color: #8b95a5;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.lot-home-link:hover {
    opacity: 1;
}

.lot-home-link svg {
    width: 22px;
    height: 22px;
}

.lot-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: #6b7a8d;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* =============================================================================
   Landing page intro animation (scoped to .lot-landing)
   ============================================================================= */

@keyframes lotFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lot-landing .lot-logo-row {
    opacity: 0;
    animation: lotFadeIn 0.8s ease-in forwards;
}

.lot-landing .lot-tagline {
    opacity: 0;
    min-height: 1.4rem;
    transition: opacity 1s ease-in;
}

.lot-landing .lot-main,
.lot-landing .lot-footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.lot-landing .lot-main.lot-visible,
.lot-landing .lot-footer.lot-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   Messages (error, info)
   ============================================================================= */

.lot-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.lot-message-error {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.lot-message-info {
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.2);
    color: #0284c7;
}

/* =============================================================================
   Intro
   ============================================================================= */

.lot-intro {
    margin-bottom: 2rem;
}

.lot-intro p {
    font-size: 1.05rem;
    color: #5a6577;
    line-height: 1.7;
}

/* =============================================================================
   Form
   ============================================================================= */

.lot-form {
    margin-bottom: 3rem;
}

.lot-textarea-wrapper {
    position: relative;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lot-textarea-wrapper:focus-within {
    border-color: #8b95a5;
    box-shadow: 0 0 0 1px #8b95a5;
}

.lot-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    resize: vertical;
    min-height: 200px;
    outline: none;
}

.lot-form textarea::placeholder {
    color: #9ca3af;
}

.lot-textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-top: 1px solid #e5e7eb;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
}

.lot-word-count {
    flex: 1;
    color: #5a6577;
    text-align: left;
}

.lot-word-count.lot-over-limit {
    color: #dc2626;
}

.lot-price {
    flex: 1;
    color: #5a6577;
    text-align: right;
}

/* Mic button */
.lot-mic-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #8b95a5;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.lot-mic-btn:hover {
    color: #5a6577;
}

.lot-mic-btn svg {
    width: 20px;
    height: 20px;
}

/* Mic active state — gentle pulse */
.lot-mic-btn.lot-mic-active {
    color: #5a6577;
    animation: lotMicPulse 1.5s ease-in-out infinite;
}

@keyframes lotMicPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Toast notification */
.lot-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #2a2f38;
    color: #f0f0f0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.lot-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* File upload */
.lot-upload {
    margin-top: 0.75rem;
}

.lot-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: #6b7a8d;
    transition: color 0.2s;
}

.lot-upload-label:hover {
    color: #4e5b6e;
}

.lot-upload-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.lot-upload-formats {
    color: #8b95a5;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Bypass code chip — inside textarea area */
.lot-bypass-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    position: absolute;
    top: 0.65rem;
    left: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: #5a6577;
    background: #eef0f3;
    border: 1px solid #d1d5db;
    z-index: 1;
    cursor: default;
    user-select: none;
}

.lot-bypass-chip button {
    background: none;
    border: none;
    color: #8b95a5;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 0.1rem;
    line-height: 1;
}

.lot-bypass-chip button:hover {
    color: #4a5e5e;
}

/* Shift textarea text down when chip is visible */
.lot-textarea-wrapper.has-bypass textarea {
    padding-top: 2.5rem;
}

.lot-upload-status {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.lot-upload-loading {
    color: #0284c7;
}

.lot-upload-success {
    color: #5a6577;
    background: #eef0f3;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.lot-upload-filename {
    font-weight: 500;
    color: #1f2937;
}

.lot-upload-remove {
    background: none;
    border: none;
    color: #8b95a5;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 0.3rem;
    margin-left: 0.25rem;
    transition: color 0.2s;
}

.lot-upload-remove:hover {
    color: #dc2626;
}

.lot-upload-error {
    color: #dc2626;
}

/* Email row */
.lot-email-row {
    margin-top: 1rem;
}

.lot-email-row label {
    display: block;
    font-size: 0.85rem;
    color: #5a6577;
    margin-bottom: 0.4rem;
}

.lot-optional {
    color: #8b95a5;
}

.lot-email-row input {
    width: 100%;
    padding: 0.6rem 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.lot-email-row input:focus {
    border-color: #8b95a5;
    box-shadow: 0 0 0 3px rgba(139, 149, 165, 0.12);
}

/* Submit button */
.lot-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.85rem 1.5rem;
    background: #2a2f38;
    color: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    letter-spacing: 0.5px;
}

.lot-submit:hover:not(:disabled) {
    background: #374151;
}

.lot-submit:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lot-submit-price {
    font-weight: 400;
    opacity: 0.7;
}

.lot-form-error {
    margin-top: 0.75rem;
    color: #dc2626;
    font-size: 0.9rem;
}

.lot-sic-nudge {
    margin-top: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: var(--lot-surface, #f8f7f4);
    border-left: 3px solid var(--lot-accent, #b5976a);
    font-size: 0.875rem;
    color: var(--lot-text-secondary, #666);
    border-radius: 0 4px 4px 0;
}

.lot-sic-nudge a {
    color: var(--lot-accent, #b5976a);
    text-decoration: none;
    font-weight: 600;
}

.lot-sic-nudge a:hover {
    text-decoration: underline;
}

/* =============================================================================
   Pricing
   ============================================================================= */

.lot-pricing {
    margin-bottom: 3rem;
}

.lot-pricing h2,
.lot-about h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7a8d;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lot-tiers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.lot-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #dfe2e7;
    border-radius: 8px;
    width: calc((100% - 1.5rem) / 3);
}

.lot-tier-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #8b95a5;
    margin-bottom: 0.4rem;
    text-align: center;
}

.lot-tier-price {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: #5a6577;
    margin-top: auto;
}

.lot-pricing-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #8b95a5;
}

/* =============================================================================
   About / Features
   ============================================================================= */

.lot-about {
    margin-bottom: 3rem;
}

.lot-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.lot-feature {
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #dfe2e7;
    border-radius: 8px;
}

.lot-feature h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.4rem;
}

.lot-feature p {
    font-size: 0.85rem;
    color: #5a6577;
    line-height: 1.5;
}

/* =============================================================================
   Progress (analysis page)
   ============================================================================= */

.lot-progress {
    text-align: center;
    padding: 3rem 0;
}

.lot-progress h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.lot-progress-phrase {
    font-family: 'IBM Plex Mono', monospace;
    color: #8b95a5;
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    min-height: 1.4em;
    transition: opacity 0.4s ease;
}

.lot-progress-timer {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #b0b8c4;
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
}

.lot-stages {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
}

.lot-stage {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lot-stage-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e8eaed;
    border: 2px solid #d0d4db;
    flex-shrink: 0;
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.lot-stage.active .lot-stage-dot {
    background: #7a8fa6;
    border-color: #7a8fa6;
    box-shadow: 0 0 8px rgba(122, 143, 166, 0.4);
    animation: lot-pulse 1.5s ease-in-out infinite;
}

.lot-stage.complete .lot-stage-dot {
    background: #829696;
    border-color: #829696;
    box-shadow: none;
    animation: none;
}

@keyframes lot-pulse {
    0%, 100% {
        box-shadow: 0 0 4px rgba(107, 122, 141, 0.25);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 14px rgba(107, 122, 141, 0.5);
        transform: scale(1.3);
    }
}

/* =============================================================================
   Result
   ============================================================================= */

.lot-result {
    padding: 1rem 0 2rem;
}

.lot-result-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #1f2937;
}

/* Markdown styling within result */
.lot-result-content h1 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.3rem;
    font-weight: 500;
    color: #111827;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dfe2e7;
}

.lot-result-content h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: #111827;
    margin: 1.75rem 0 0.75rem;
}

.lot-result-content h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    margin: 1.5rem 0 0.5rem;
}

.lot-result-content p {
    margin-bottom: 1rem;
}

.lot-result-content strong {
    color: #111827;
    font-weight: 600;
}

.lot-result-content em {
    font-style: italic;
    color: #5a6577;
}

.lot-result-content blockquote {
    border-left: 3px solid #c8cdd5;
    padding: 0.5rem 0 0.5rem 1.25rem;
    margin: 1rem 0;
    color: #5a6577;
    font-style: italic;
    background: #eef0f3;
    border-radius: 0 4px 4px 0;
}

.lot-result-content ul, .lot-result-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.lot-result-content li {
    margin-bottom: 0.4rem;
}

.lot-result-content hr {
    border: none;
    border-top: 1px solid #dfe2e7;
    margin: 2rem 0;
}

/* =============================================================================
   Error section
   ============================================================================= */

.lot-error-section {
    text-align: center;
    padding: 3rem 0;
}

.lot-error-section h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: #A85951;
    margin-bottom: 0.75rem;
}

.lot-error-section p {
    color: #8b95a5;
    margin-bottom: 1.5rem;
}

/* =============================================================================
   Download PDF
   ============================================================================= */

.lot-download {
    margin-top: 2rem;
    text-align: center;
}

.lot-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7a8d;
    background: transparent;
    border: 1px solid #dfe2e7;
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    cursor: pointer;
}

.lot-download-btn:hover {
    border-color: #8b95a5;
    color: #2a2f38;
}

.lot-download-btn svg {
    flex-shrink: 0;
}

/* =============================================================================
   Product funnel
   ============================================================================= */

.lot-funnel {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #dfe2e7;
}

.lot-funnel-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.lot-funnel-intro h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.lot-funnel-intro p {
    color: #5a6577;
    font-size: 0.95rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

.lot-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.lot-tile {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 16px;
    aspect-ratio: 4 / 5;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.lot-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.lot-tile-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
}

.lot-tile-logo-svg {
    width: 56px;
    height: 56px;
}

.lot-tile-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.lot-tile-desc {
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* ── Ori tile — Shippori Mincho, sage accent ── */
.lot-tile-ori {
    border-color: #829696;
    font-family: 'Shippori Mincho', serif;
}
.lot-tile-ori:hover {
    background: linear-gradient(135deg, rgba(130, 150, 150, 0.08) 0%, #ffffff 100%);
    border-color: #829696;
}
.lot-tile-ori .lot-tile-title { color: #5a7a7a; }
.lot-tile-ori .lot-tile-desc { color: #6b7a8d; }

/* ── Common Ground tile — Inter, silver-grey accent ── */
.lot-tile-cg {
    border-color: #6b7380;
    font-family: 'Inter', -apple-system, sans-serif;
}
.lot-tile-cg:hover {
    background: linear-gradient(135deg, rgba(107, 115, 128, 0.08) 0%, #ffffff 100%);
    border-color: #98a0ab;
}
.lot-tile-cg .lot-tile-title { color: #374151; }
.lot-tile-cg .lot-tile-desc { color: #6b7a8d; }

/* ── [sic] tile — Cormorant Garamond, cool grey accent ── */
.lot-tile-sic-wordmark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: #374151;
    line-height: 1;
    margin-bottom: 4px;
}

.lot-tile-sic {
    border-color: #4e5b6e;
    font-family: 'Inter', -apple-system, sans-serif;
}
.lot-tile-sic:hover {
    background: linear-gradient(135deg, rgba(78, 91, 110, 0.08) 0%, #ffffff 100%);
    border-color: #707c8e;
}
.lot-tile-sic .lot-tile-title { color: #374151; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6em; }
.lot-tile-sic .lot-tile-desc { color: #5a6577; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15em; }

/* =============================================================================
   Buttons & links
   ============================================================================= */

.lot-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: #2a2f38;
    color: #f0f0f0;
    border: none;
    border-radius: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.5px;
}

.lot-btn:hover {
    background: #374151;
}

.lot-another {
    text-align: center;
    padding: 2rem 0;
}

/* =============================================================================
   Footer
   ============================================================================= */

.lot-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.lot-footer p {
    font-size: 0.75rem;
    color: #8b95a5;
}

.lot-footer a {
    color: #8b95a5;
    text-decoration: none;
    transition: color 0.2s;
}

.lot-footer a:hover {
    color: #5a6577;
}

/* =============================================================================
   Consent note (above submit)
   ============================================================================= */

.lot-consent-note {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: #8b95a5;
    line-height: 1.5;
    text-align: center;
}

.lot-consent-note a {
    color: #6b7a8d;
    text-decoration: underline;
    text-decoration-color: rgba(107, 122, 141, 0.3);
    transition: color 0.2s;
}

.lot-consent-note a:hover {
    color: #1f2937;
}

/* =============================================================================
   Legal pages (privacy, terms)
   ============================================================================= */

.lot-legal {
    padding: 1rem 0 2rem;
}

.lot-legal h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.3rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.lot-legal-updated {
    font-size: 0.8rem;
    color: #8b95a5;
    margin-bottom: 2rem;
}

.lot-legal h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.lot-legal p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.lot-legal ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.lot-legal li {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.lot-legal a {
    color: #6b7a8d;
    text-decoration: underline;
    text-decoration-color: rgba(107, 122, 141, 0.3);
    transition: color 0.2s;
}

.lot-legal a:hover {
    color: #1f2937;
}

/* =============================================================================
   Example tiles
   ============================================================================= */

.lot-examples {
    margin-bottom: 3rem;
}

/* =============================================================================
   Learn more (expandable)
   ============================================================================= */

.lot-learn-more {
    margin-bottom: 3rem;
}

.lot-learn-body {
    border-top: 1px solid #dfe2e7;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.lot-learn-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 1rem;
}

.lot-learn-body p {
    font-size: 1rem;
    line-height: 1.7;
    color: #3a3a4a;
    margin-bottom: 1rem;
}

.lot-learn-source {
    font-size: 0.875rem !important;
    color: #6b7a8d !important;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.lot-learn-source a {
    color: var(--lot-accent, #b5976a);
    text-decoration: none;
}

.lot-examples h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7a8d;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lot-example-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.lot-example-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #dfe2e7;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    text-decoration: none;
    color: inherit;
}

.lot-example-tile:hover {
    border-color: #8b95a5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lot-example-category {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b95a5;
    margin-bottom: 0.5rem;
}

.lot-example-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.4rem;
}

.lot-example-desc {
    font-size: 0.9rem;
    color: #5a6577;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.lot-example-cta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7a8d;
}

.lot-example-tile:hover .lot-example-cta {
    color: #1f2937;
}

/* =============================================================================
   Alignment / sycophancy article (Why this exists)
   ============================================================================= */

.lot-alignment-prose {
    font-size: 1rem;
    line-height: 1.75;
    color: #3a4555;
    margin-bottom: 1.4rem;
}

.lot-alignment-pullquote {
    margin: 2.25rem 0;
    padding: 0.5rem 0 0.75rem 1.75rem;
    border-left: 3px solid #7a8fa6;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #1f2937;
    font-style: italic;
    letter-spacing: -0.1px;
}

.lot-alignment-pullquote-source {
    font-size: 0.78rem;
    color: #8b95a5;
    font-style: normal;
    margin-top: 0.75rem;
    display: block;
    letter-spacing: 0.2px;
    font-family: 'IBM Plex Mono', monospace;
}

.lot-alignment-pullquote-source strong {
    color: #5a6577;
    font-weight: 500;
}

.lot-alignment-subheading {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.1px;
}

.lot-alignment-prompt {
    background: #f7f8fa;
    border: 1px solid #dfe2e7;
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3a4555;
    margin: 1.5rem 0 2rem;
    font-style: italic;
}

.lot-chat-box {
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    font-size: 0.93rem;
    line-height: 1.7;
    margin: 1.25rem 0 0.5rem;
}

.lot-chat-box p {
    margin-bottom: 0.7rem;
    color: #3a4555;
}

.lot-chat-box p:last-child {
    margin-bottom: 0;
}

.lot-chat-box-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.9rem;
    display: block;
}

/* ChatGPT — OpenAI green on near-white */
.lot-chat-box.chatgpt {
    background: #f7f7f8;
    border: 1px solid #e3e3e5;
}

.lot-chat-box.chatgpt .lot-chat-box-label {
    color: #10a37f;
    font-family: 'Inter', system-ui, sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

/* Claude — Anthropic terracotta on warm cream */
.lot-chat-box.claude {
    background: #faf8f5;
    border: 1px solid #e8e0d5;
}

.lot-chat-box.claude .lot-chat-box-label {
    color: #d97040;
    font-family: 'Inter', system-ui, sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

/* Lens of Truth — LoT blue-grey */
.lot-chat-box.bilateral {
    background: #f4f6f9;
    border: 1px solid #d0d8e4;
}

.lot-chat-box.bilateral .lot-chat-box-label {
    color: #5a7a96;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lot-chat-commentary {
    font-size: 0.88rem;
    color: #5a6577;
    line-height: 1.7;
    font-style: italic;
    margin: 0.25rem 0 1.75rem;
    padding-left: 0.25rem;
}

/* =============================================================================
   Example modal
   ============================================================================= */

.lot-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lot-modal {
    background: #f4f5f7;
    border-radius: 12px;
    width: 100%;
    max-width: 740px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.lot-modal.is-fullscreen {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    height: 100vh;
}

.lot-modal-overlay.is-fullscreen-mode {
    padding: 0;
}

.lot-modal-header {
    position: sticky;
    top: 0;
    background: #f4f5f7;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem 0;
    z-index: 1;
}

.lot-modal-close,
.lot-modal-fullscreen {
    background: none;
    border: none;
    cursor: pointer;
    color: #8b95a5;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}

.lot-modal-close:hover,
.lot-modal-fullscreen:hover {
    color: #1f2937;
}

.lot-modal-fullscreen {
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.lot-modal-body {
    padding: 0.5rem 2.5rem 2.5rem;
}

.lot-modal-section {
    margin-bottom: 3rem;
}

.lot-modal-section:last-child {
    margin-bottom: 0;
}

.lot-modal-step-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b95a5;
    margin-bottom: 0.4rem;
}

.lot-modal-section h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.lot-modal-intro {
    color: #5a6577;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.lot-modal-aside {
    color: #8b95a5;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 1rem;
}

/* Input box */
.lot-modal-input-box {
    background: #ffffff;
    border: 1px solid #dfe2e7;
    border-radius: 8px;
    padding: 1.5rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #374151;
}

.lot-modal-input-box p {
    margin-bottom: 0.8rem;
}

.lot-modal-input-box p:last-child {
    margin-bottom: 0;
}

/* Pipeline passes */
.lot-modal-pipeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lot-modal-pass {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.lot-modal-pass-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #829696;
    color: #ffffff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.lot-modal-pass strong {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1f2937;
}

.lot-modal-pass p {
    font-size: 0.85rem;
    color: #5a6577;
    line-height: 1.5;
    margin-top: 0.2rem;
}

/* Output */
.lot-modal-output {
    background: #ffffff;
    border: 1px solid #dfe2e7;
    border-radius: 8px;
    padding: 1.5rem;
    font-size: 0.88rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
}

.lot-modal-output p {
    margin-bottom: 1rem;
}

.lot-modal-output p:last-child {
    margin-bottom: 0;
}

/* Commentary */
.lot-modal-commentary h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 1rem;
}

.lot-modal-diff-box {
    background: #ffffff;
    border: 1px solid #dfe2e7;
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.5rem 1.25rem;
}

.lot-modal-diff-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lot-modal-diff-box li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #5a6577;
    padding-left: 1.25rem;
    position: relative;
}

.lot-modal-diff-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #829696;
}

.lot-modal-diff-box li strong {
    color: #1f2937;
}

/* Modal tiles reuse existing .lot-tiles styles */
.lot-modal-section .lot-tiles {
    margin-top: 0;
}

/* Go deeper — product funnel below alignment article */
.lot-go-deeper {
    max-width: 740px;
    margin: 4rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid #dfe2e7;
    text-align: center;
}

.lot-go-deeper-heading {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.lot-go-deeper-intro {
    color: #5a6577;
    font-size: 0.95rem;
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.lot-go-deeper .lot-tiles {
    text-align: left;
}

/* Fullscreen modal — tiles match reflectai.systems home page proportions.
   Home page: 4 tiles in repeat(4,1fr) at max-width 1200px, gap 40px → ~270px/tile.
   LoT has 3 tiles: 3 × 270px + 2 × 40px = 890px max-width to match tile width. */
.is-fullscreen .lot-modal-body {
    max-width: 1200px;
    margin: 0 auto;
}

.is-fullscreen .lot-tiles {
    gap: 40px;
    max-width: 890px;
    margin: 0 auto;
}

.is-fullscreen .lot-tile {
    padding: clamp(30px, 5vh, 60px) clamp(20px, 3vw, 40px);
    gap: clamp(16px, 2vh, 24px);
    transition: all 0.3s ease;
}

.is-fullscreen .lot-tile-title {
    font-size: 28px;
    font-weight: 500;
}

.is-fullscreen .lot-tile-desc {
    font-size: 16px;
}

.is-fullscreen .lot-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 600px) {
    .lot-container {
        padding: 1rem;
    }

    .lot-header {
        padding: 2rem 0 1.5rem;
    }

    .lot-logo {
        font-size: 1.5rem;
    }

    .lot-icon {
        width: 2.7rem;
        height: 2.7rem;
    }

    .lot-logo-row {
        padding-right: 3.3rem; /* balance smaller icon (2.7rem) + gap */
    }

    .lot-tiers .lot-tier {
        width: calc((100% - 0.75rem) / 2);
    }

    .lot-features {
        grid-template-columns: 1fr;
    }

    .lot-intro p {
        font-size: 0.95rem;
    }

    .lot-tiles {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .lot-modal-overlay {
        padding: 0;
    }

    .lot-modal {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        height: 100vh;
    }

    .lot-modal-body {
        padding: 0.5rem 1.25rem 2rem;
    }

    .lot-modal-fullscreen {
        display: none;
    }

    .lot-modal-diff-box {
        padding: 1.25rem 1rem 1.25rem 1rem;
    }
}
