/* Guest homepage styles. Pure ASCII. */

.cife-guest-page {
    background: var(--cife-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ====== Top nav bar ====== */

.cife-guestbar {
    background: var(--cife-bg-elevated);
    border-bottom: 1px solid var(--cife-border);
}
.cife-guestbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cife-guestbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--cife-text);
    font-weight: 600;
}
.cife-guestbar-brand img { height: 32px; }
.cife-guestbar-brand span { font-size: 16px; }
.cife-guestbar-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cife-guestbar-nav .cife-btn { padding: 9px 18px; font-size: 14px; }

/* ====== Page wrapper ====== */

.tx-page {
    flex: 1;
}

/* ====== Sections ====== */

.tx-section {
    width: 100%;
    padding: 96px 32px;
    margin: 0;
    box-sizing: border-box;
}
.tx-section-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.tx-section.tx-bg-base { background: var(--cife-bg); }
.tx-section.tx-bg-elevated {
    background: var(--cife-bg-elevated);
    border-top: 1px solid var(--cife-border);
    border-bottom: 1px solid var(--cife-border);
}
.tx-section.tx-bg-invert {
    background: var(--cife-text);
    color: var(--cife-bg-elevated);
}
.tx-section.tx-bg-invert h2,
.tx-section.tx-bg-invert .tx-section-lead { color: inherit; }

/* ====== HERO ====== */

.tx-hero {
    padding: 96px 32px 112px;
    background: var(--cife-bg);
    border-bottom: 1px solid var(--cife-border);
}
.tx-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 72px;
    align-items: center;
}
.tx-hero h1 {
    font-size: clamp(48px, 7.5vw, 96px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin: 0 0 28px;
    font-weight: 700;
    color: var(--cife-text);
}
.tx-hero h1 .tx-h1-soft {
    color: var(--cife-text-muted);
    font-weight: 400;
}
.tx-hero .tx-tagline {
    font-size: clamp(17px, 1.55vw, 22px);
    line-height: 1.45;
    color: var(--cife-text-muted);
    margin: 0 0 40px;
    max-width: 580px;
}
.tx-hero .tx-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.tx-hero .tx-cta-row .cife-btn { padding: 16px 32px; font-size: 16px; }
.tx-hero .tx-pricing-hint {
    font-size: 14px;
    color: var(--cife-text-faint);
    margin: 0;
}

.tx-hero-visual {
    position: relative;
    width: 100%;
}
.tx-hero-visual svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating chips around the mockup */
.tx-chip {
    position: absolute;
    background: var(--cife-bg-elevated);
    border: 1px solid var(--cife-border);
    border-radius: 999px;
    padding: 8px 16px 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cife-text);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.tx-chip svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.tx-chip.tx-chip-1 { top: 8%; left: -24px; transform: rotate(-3deg); }
.tx-chip.tx-chip-2 { top: 44%; right: -16px; transform: rotate(2deg); }
.tx-chip.tx-chip-3 { bottom: 8%; left: 12%; transform: rotate(-2deg); }
[data-theme="dark"] .tx-chip {
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

/* ====== Section headings ====== */

.tx-section-heading {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}
.tx-eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cife-text-muted);
    margin: 0 0 16px;
}
.tx-section h2 {
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 20px;
    font-weight: 700;
    color: var(--cife-text);
}
.tx-section-lead {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.55;
    color: var(--cife-text-muted);
    margin: 0;
}

/* ====== Three pillars ====== */

.tx-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.tx-pillar {
    background: var(--cife-bg);
    border: 1px solid var(--cife-border);
    border-radius: 16px;
    padding: 36px 32px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tx-pillar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
[data-theme="dark"] .tx-pillar:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.tx-pillar-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--cife-text);
    color: var(--cife-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.tx-pillar h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--cife-text);
}
.tx-pillar p {
    margin: 0;
    color: var(--cife-text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* ====== Showcase: app UI side-by-side ====== */

.tx-showcase {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.tx-showcase-text h2 {
    font-size: clamp(28px, 3.2vw, 44px);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--cife-text);
}
.tx-showcase-text p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--cife-text-muted);
    margin: 0 0 16px;
}
.tx-showcase-text ul {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}
.tx-showcase-text li {
    padding: 8px 0 8px 32px;
    position: relative;
    font-size: 16px;
    color: var(--cife-text);
}
.tx-showcase-text li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 18px;
    height: 9px;
    border-left: 2px solid var(--cife-text);
    border-bottom: 2px solid var(--cife-text);
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}
.tx-showcase-visual {
    position: relative;
}
.tx-showcase-visual svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 32px 64px rgba(0,0,0,0.10);
}
[data-theme="dark"] .tx-showcase-visual svg {
    box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}

/* ====== Stats band (inverted) ====== */

.tx-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    text-align: center;
}
.tx-stat-value {
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin: 0 0 12px;
}
.tx-stat-label {
    font-size: 14px;
    color: var(--cife-text-faint);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.tx-bg-invert .tx-stat-label {
    color: rgba(255, 255, 255, 0.6);
}

/* ====== Feature groups ====== */

.tx-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}
.tx-feature-num {
    font-size: 14px;
    font-weight: 600;
    color: var(--cife-text-muted);
    margin: 0 0 8px;
}
.tx-feature-group h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cife-border);
    letter-spacing: -0.01em;
    color: var(--cife-text);
}
.tx-feature-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tx-feature-group li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: var(--cife-text);
    font-size: 15px;
    line-height: 1.55;
    border-bottom: 1px solid var(--cife-border);
}
.tx-feature-group li:last-child { border-bottom: none; }
.tx-feature-group li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 14px;
    height: 7px;
    border-left: 2px solid var(--cife-text);
    border-bottom: 2px solid var(--cife-text);
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

/* ====== Plans ====== */

.tx-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}
.tx-plan {
    background: var(--cife-bg);
    border: 1px solid var(--cife-border);
    border-radius: 20px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.tx-plan.featured {
    background: var(--cife-text);
    color: var(--cife-bg-elevated);
    border-color: var(--cife-text);
}
.tx-plan.featured h3,
.tx-plan.featured .tx-plan-price { color: var(--cife-bg-elevated); }
.tx-plan.featured .tx-plan-sub,
.tx-plan.featured .tx-plan-yearly { color: rgba(255,255,255,0.65); }
.tx-plan.featured li {
    color: rgba(255,255,255,0.92);
    border-bottom-color: rgba(255,255,255,0.1);
}
.tx-plan.featured li::before { border-color: rgba(255,255,255,0.95); }
.tx-plan.featured .cife-btn {
    background: var(--cife-bg-elevated);
    color: var(--cife-text);
    border-color: var(--cife-bg-elevated);
}
.tx-plan.featured .cife-btn:hover {
    background: var(--cife-bg-subtle, #f4f4f5);
}
.tx-plan-badge {
    position: absolute;
    top: -14px;
    left: 40px;
    background: var(--cife-bg-elevated);
    color: var(--cife-text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--cife-border);
}
.tx-plan h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--cife-text);
}
.tx-plan-sub {
    color: var(--cife-text-muted);
    margin: 0 0 32px;
    font-size: 14px;
}
.tx-plan-price {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1;
    color: var(--cife-text);
}
.tx-plan-price-unit {
    font-size: 16px;
    font-weight: 400;
    margin-left: 4px;
    opacity: 0.6;
}
.tx-plan-yearly {
    font-size: 13px;
    margin: 12px 0 32px;
    color: var(--cife-text-muted);
}
.tx-plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
}
.tx-plan li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 14.5px;
    border-bottom: 1px solid var(--cife-border);
    color: var(--cife-text);
}
.tx-plan li:last-child { border-bottom: none; }
.tx-plan li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--cife-text);
    border-bottom: 2px solid var(--cife-text);
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}
.tx-plan .cife-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    justify-content: center;
}

/* ====== FAQ ====== */

.tx-faq {
    max-width: 820px;
    margin: 0 auto;
}
.tx-faq details {
    border-bottom: 1px solid var(--cife-border);
    padding: 24px 0;
}
.tx-faq details:first-child {
    border-top: 1px solid var(--cife-border);
}
.tx-faq summary {
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    padding-right: 40px;
    position: relative;
    letter-spacing: -0.005em;
    color: var(--cife-text);
}
.tx-faq summary::-webkit-details-marker { display: none; }
.tx-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -2px;
    font-size: 28px;
    color: var(--cife-text-muted);
    line-height: 1;
    font-weight: 300;
    transition: transform 0.15s ease;
}
.tx-faq details[open] summary::after { content: "\2212"; }
.tx-faq p {
    margin: 16px 0 0;
    color: var(--cife-text-muted);
    line-height: 1.65;
    font-size: 16px;
    max-width: 720px;
}

/* ====== Final CTA ====== */

.tx-final-cta {
    text-align: center;
    padding: 120px 32px;
    background: var(--cife-text);
    color: var(--cife-bg-elevated);
}
.tx-final-cta h2 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--cife-bg-elevated);
}
.tx-final-cta p {
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.55;
}
.tx-final-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.tx-final-cta .cife-btn {
    background: var(--cife-bg-elevated);
    color: var(--cife-text);
    border-color: var(--cife-bg-elevated);
    padding: 16px 32px;
    font-size: 16px;
}
.tx-final-cta .cife-btn:hover {
    background: var(--cife-bg-subtle, #f4f4f5);
}
.tx-final-cta .cife-btn.tx-ghost-on-dark {
    background: transparent;
    color: var(--cife-bg-elevated);
    border-color: rgba(255,255,255,0.3);
}
.tx-final-cta .cife-btn.tx-ghost-on-dark:hover {
    background: rgba(255,255,255,0.08);
}

.tx-email-link {
    color: var(--cife-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    font-weight: 500;
}

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

.cife-guest-footer {
    background: var(--cife-bg-elevated);
    border-top: 1px solid var(--cife-border);
    padding: 28px 32px;
    margin-top: 0;
}
.cife-guest-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}
.cife-guest-footer p {
    margin: 0;
    color: var(--cife-text-muted);
    font-size: 13px;
}

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

@media (max-width: 980px) {
    .tx-hero-inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .tx-hero-visual {
        max-width: 540px;
        margin: 0 auto;
    }
    .tx-showcase {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .tx-chip.tx-chip-1 { left: 0; }
    .tx-chip.tx-chip-2 { right: 0; }
}

@media (max-width: 640px) {
    .cife-guestbar-inner { padding: 12px 16px; }
    .tx-section { padding: 64px 20px; }
    .tx-hero { padding: 48px 20px 72px; }
    .tx-final-cta { padding: 80px 20px; }
    .tx-pillar { padding: 28px 24px; }
    .tx-plan { padding: 36px 28px; }
    .tx-plan-price { font-size: 44px; }
    .tx-plan-badge { left: 28px; }
    .tx-chip { display: none; }
    .tx-section-heading { margin-bottom: 40px; }
    .tx-stats { gap: 32px; }
    .tx-hero h1 br { display: none; }
}
