/*
 * SwrlSite public presentation recovery.
 *
 * This layer deliberately returns the public site to the original light,
 * founder-led visual language while preserving the AI-first product hierarchy.
 * It loads after page-level CSS and is intentionally scoped to public pages.
 */

/* Shared header: one compact cluster, no centered language controls. */
.site-header {
    justify-content: flex-start;
    gap: clamp(10px, 1.25vw, 18px);
    padding: 12px 20px;
}

.site-header .brand { flex: 0 0 auto; }
.site-header .nav-lang { flex: 0 0 auto; margin-left: auto; }
.site-header .main-nav {
    margin-left: 0;
    gap: clamp(10px, 1vw, 17px);
    font-size: .9rem;
}

.nav-lang-switch {
    min-width: 36px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 16, 20, .14);
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(255, 255, 255, .74);
    color: #34323a;
    font: 800 .74rem/1 Inter, Arial, sans-serif;
    letter-spacing: .06em;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.nav-lang-switch:hover {
    border-color: rgba(16, 16, 20, .32);
    background: #fff;
    transform: translateY(-1px);
}

.site-header .main-nav .nav-account {
    border: 1px solid rgba(16, 16, 20, .12);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, .58);
    font-size: .84rem;
    font-weight: 750;
}
.site-header .nav-cta { padding: 10px 15px; }

/* Public foundation. Vertical document scrolling is always preserved. */
body.public-page {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--paper);
    color: var(--ink);
}
body.public-page main { overflow: visible; }

.public-page .clean-hero,
.public-page .clean-page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 20%, rgba(40, 120, 216, .13), transparent 27rem),
        radial-gradient(circle at 12% 0%, rgba(135, 95, 170, .12), transparent 24rem),
        linear-gradient(180deg, #fffdf8, #fff8ea);
    border-bottom: 1px solid rgba(16, 16, 20, .06);
}
.public-page .clean-hero > canvas,
.public-page .clean-hero > .swrl-hero-poster,
.public-page .clean-page-hero > canvas,
.public-page .clean-page-hero > .swrl-poster {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.clean-hero-grid,
.clean-page-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(350px, .96fr);
    gap: clamp(38px, 6vw, 74px);
    align-items: center;
}
.clean-hero-grid { min-height: min(720px, calc(100svh - 66px)); padding: 64px 0 68px; }
.clean-page-grid { padding: 66px 0; }

.public-page .clean-hero h1,
.public-page .clean-page-hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(2.8rem, 4.9vw, 4.7rem);
    line-height: .96;
    letter-spacing: -.057em;
    text-wrap: balance;
}
.public-page .clean-hero .lead,
.public-page .clean-page-hero .lead {
    max-width: 700px;
    margin: 0;
    color: #55545f;
    font-size: clamp(1.08rem, 1.65vw, 1.24rem);
    line-height: 1.62;
}

.clean-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.clean-actions .button { margin: 0; }
.clean-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 23px;
    color: #514f59;
    font-size: .9rem;
    font-weight: 760;
}
.clean-trust span::before {
    margin-right: 6px;
    content: "✓";
    color: var(--green-ink);
    font-weight: 900;
}

/* Functional light interface visual used in the Home and AI heroes. */
.clean-call-demo {
    position: relative;
    border: 1px solid rgba(16, 16, 20, .11);
    border-radius: 27px;
    padding: 18px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 22px 64px rgba(42, 23, 72, .13);
    backdrop-filter: blur(14px);
}
.clean-call-demo::before {
    position: absolute;
    inset: -10% -8% auto auto;
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    content: "";
    background: radial-gradient(circle, rgba(135, 95, 170, .18), transparent 68%);
    pointer-events: none;
}
.clean-demo-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 4px 3px 14px;
    color: #44424b;
    font-size: .82rem;
    font-weight: 800;
}
.clean-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.clean-live::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    content: "";
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(19, 163, 111, .12);
}
.clean-demo-thread {
    position: relative;
    display: grid;
    gap: 11px;
    padding: 18px 0;
}
.clean-demo-bubble {
    max-width: 84%;
    border-radius: 16px;
    padding: 12px 14px;
    color: #312f37;
    font-size: .94rem;
    line-height: 1.48;
}
.clean-demo-bubble.agent { background: #f0e8fa; }
.clean-demo-bubble.caller { justify-self: end; background: #e8f2ff; }
.clean-demo-result {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(19, 163, 111, .2);
    border-radius: 16px;
    padding: 14px;
    background: var(--mint);
}
.clean-demo-result > span:first-child {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff;
    color: var(--green-ink);
    font-weight: 900;
}
.clean-demo-result strong,
.clean-demo-result small { display: block; }
.clean-demo-result small { margin-top: 2px; color: #4b6258; }

.clean-section {
    position: relative;
    padding: clamp(58px, 6.5vw, 82px) 0;
    border-top: 1px solid rgba(16, 16, 20, .055);
}
.clean-section.soft { background: rgba(255, 255, 255, .48); }
.clean-heading { max-width: 790px; margin-bottom: 32px; }
.clean-heading.center { margin-inline: auto; text-align: center; }
.clean-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3.45vw, 3.35rem);
    line-height: 1;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.clean-heading p:not(.eyebrow) {
    max-width: 720px;
    margin: 0;
    color: #5b5963;
    font-size: 1.06rem;
    line-height: 1.62;
}

.clean-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.clean-card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.clean-card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clean-card {
    position: relative;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 25px;
    background: #fffdf9;
    box-shadow: 0 10px 30px rgba(35, 24, 45, .055);
}
.clean-card.featured {
    border-color: rgba(135, 95, 170, .48);
    box-shadow: 0 20px 55px rgba(70, 42, 92, .1);
}
.clean-card .clean-tag {
    display: inline-flex;
    margin-bottom: 15px;
    border-radius: 999px;
    padding: 5px 9px;
    background: #f0e8fa;
    color: var(--brand-ink);
    font-size: .71rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.clean-card h2,
.clean-card h3 { margin: 0 0 10px; line-height: 1.12; }
.clean-card h2 { font-size: clamp(1.75rem, 2.7vw, 2.55rem); }
.clean-card h3 { font-size: 1.32rem; }
.clean-card > p { color: #5d5a64; }
.clean-card ul,
.clean-checks {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.clean-card li,
.clean-checks li {
    position: relative;
    margin: 8px 0;
    padding-left: 22px;
    color: #403d46;
}
.clean-card li::before,
.clean-checks li::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: var(--green-ink);
    font-weight: 900;
}
.clean-card .text-link { margin-top: 18px; }
.clean-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 17px;
    border-radius: 14px;
    background: #f0e8fa;
    color: var(--brand-ink);
    font: 850 .79rem Inter, Arial, sans-serif;
}
.clean-card:nth-child(2) .clean-icon { background: #e8f2ff; color: var(--blue-ink); }
.clean-card:nth-child(3) .clean-icon { background: var(--mint); color: var(--green-ink); }
.clean-card:nth-child(4) .clean-icon { background: #fff1d2; color: #80560a; }

.clean-demo-band {
    padding: 34px 0;
    border-block: 1px solid var(--line);
    background: linear-gradient(90deg, #f0e8fa, #fff 47%, #e8f2ff);
}
.clean-demo-band-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}
.clean-demo-band h2 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.clean-demo-band p:not(.eyebrow) { margin: 0; color: #5d5a64; }

.clean-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.clean-flow.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.clean-flow-step {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    background: #fff;
}
.clean-flow-step > span {
    display: block;
    margin-bottom: 10px;
    color: var(--brand-ink);
    font: 850 .76rem Inter, Arial, sans-serif;
}
.clean-flow-step h3 { margin: 0 0 8px; font-size: 1.12rem; }
.clean-flow-step p { margin: 0; color: #5f5c66; font-size: .93rem; line-height: 1.52; }

.clean-split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(34px, 5.5vw, 68px);
    align-items: center;
}
.clean-founder {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}
.clean-founder-media {
    width: 100%;
    aspect-ratio: 4 / 4.7;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, #f0e8fa, #e8f2ff);
    box-shadow: 0 18px 50px rgba(42, 23, 72, .11);
}
.clean-founder-media img,
.clean-founder-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.clean-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.clean-chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 11px;
    background: #fff;
    color: #403d46;
    font-size: .81rem;
    font-weight: 760;
}

.clean-note {
    border-radius: 16px;
    padding: 15px 16px;
    background: var(--mint);
    color: #274d3e;
    line-height: 1.5;
}
.clean-note.violet { background: #f0e8fa; color: #4a3860; }
.clean-note.blue { background: #e8f2ff; color: #284c74; }

.clean-price {
    margin: 9px 0 8px;
    color: var(--brand-ink);
    font: 850 clamp(2rem, 3.4vw, 3rem)/1 Inter, Arial, sans-serif;
    letter-spacing: -.045em;
}
.clean-price small {
    color: #66636c;
    font-size: .87rem;
    font-weight: 650;
    letter-spacing: 0;
}
.clean-wide-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 28px;
    align-items: center;
    padding: clamp(26px, 4vw, 38px);
}
.clean-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.clean-browser {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 15px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 55px rgba(42, 23, 72, .11);
}
.clean-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    padding: 5px 3px 13px;
}
.clean-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9c3ce; }
.clean-browser-bar i:nth-child(2) { background: #ff7b62; }
.clean-browser-bar i:nth-child(3) { background: #27a77b; }
.clean-browser-url {
    flex: 1;
    margin-left: 7px;
    border-radius: 999px;
    padding: 6px 10px;
    background: #f7f4ef;
    color: #6b6870;
    font-size: .73rem;
}
.clean-browser-screen { padding: 15px 0 0; }
.clean-browser-hero {
    min-height: 180px;
    border-radius: 16px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, #2b76c6, #193f6b);
}
.clean-browser-hero small,
.clean-browser-hero strong,
.clean-browser-hero span { display: block; }
.clean-browser-hero strong { max-width: 320px; margin-top: 8px; font-size: 1.58rem; line-height: 1.08; }
.clean-browser-hero span {
    width: fit-content;
    margin-top: 16px;
    border-radius: 999px;
    padding: 7px 11px;
    background: #fff;
    color: #193f6b;
    font-size: .76rem;
    font-weight: 850;
}
.clean-browser-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.clean-browser-cards i { min-height: 76px; border-radius: 12px; background: #f1ede7; }

.clean-faq { display: grid; gap: 10px; max-width: 900px; margin-inline: auto; }
.clean-faq details {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.clean-faq summary {
    position: relative;
    cursor: pointer;
    padding: 17px 46px 17px 20px;
    font-weight: 800;
    list-style: none;
}
.clean-faq summary::-webkit-details-marker { display: none; }
.clean-faq summary::after {
    position: absolute;
    right: 20px;
    top: 50%;
    content: "+";
    color: var(--brand-ink);
    font-size: 1.2rem;
    transform: translateY(-50%);
}
.clean-faq details[open] summary::after { content: "−"; }
.clean-faq details > div {
    border-top: 1px solid var(--line);
    padding: 15px 20px 18px;
    color: #5d5a64;
    line-height: 1.58;
}

.clean-final { padding: 54px 0 66px; }
.clean-final-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    border: 1px solid rgba(135, 95, 170, .32);
    border-radius: 27px;
    padding: clamp(26px, 4vw, 38px);
    background: linear-gradient(135deg, #fff, #f1eafb, #e8f2ff);
}
.clean-final-box h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 3.3vw, 3rem);
    line-height: 1;
    letter-spacing: -.045em;
}
.clean-final-box p:not(.eyebrow) { margin: 0; color: #5d5a64; }

/* Proof/project presentation: always light and readable. */
.clean-proof-stack { display: grid; gap: 18px; }
.clean-proof-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
    gap: 28px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(25px, 4vw, 38px);
    background: #fff;
    box-shadow: 0 13px 38px rgba(35, 24, 45, .065);
}
.clean-proof-visual {
    min-height: 250px;
    display: grid;
    align-content: center;
    gap: 10px;
    border-radius: 18px;
    padding: 20px;
    background: linear-gradient(145deg, #f3ecfb, #eaf3ff);
}
.clean-proof-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: center;
    border: 1px solid rgba(16,16,20,.07);
    border-radius: 13px;
    padding: 12px;
    background: rgba(255,255,255,.9);
}
.clean-proof-row > span:first-child {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f0e8fa;
    color: var(--brand-ink);
    font-weight: 900;
}

/* Public footer returns to the original light presentation. */
.public-page .site-footer {
    color: #4f4b55;
    background: #f5eee3;
    border-top: 1px solid var(--line);
}
.public-page .site-footer h2,
.public-page .site-footer .brand { color: var(--ink); }
.public-page .site-footer a { color: #4f4b55; }
.public-page .site-footer a:hover { color: var(--blue-ink); }

@media (max-width: 1040px) {
    .clean-hero-grid,
    .clean-page-grid,
    .clean-split,
    .clean-founder,
    .clean-wide-card,
    .clean-proof-feature {
        grid-template-columns: 1fr;
    }
    .clean-card-grid.four,
    .clean-flow,
    .clean-flow.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .clean-call-demo,
    .clean-browser { width: min(100%, 720px); margin-inline: auto; }
    .clean-founder-media { max-width: 340px; }
}

@media (max-width: 820px) {
    .site-header { gap: 9px; padding: 11px 15px; }
    .nav-lang-switch { min-width: 34px; min-height: 32px; padding: 5px 8px; }
    .public-page .clean-hero h1,
    .public-page .clean-page-hero h1 { font-size: clamp(2.45rem, 10.5vw, 3.45rem); }
    .clean-hero-grid { min-height: auto; padding: 50px 0 58px; }
    .clean-page-grid { padding: 52px 0; }
    .clean-card-grid,
    .clean-card-grid.two { grid-template-columns: 1fr; }
    .clean-demo-band-grid,
    .clean-final-box { grid-template-columns: 1fr; }
    .clean-final-box .clean-actions { margin-top: 0; }
}

@media (max-width: 620px) {
    .site-header .main-nav .nav-account { display: none; }
    .public-page .clean-hero h1,
    .public-page .clean-page-hero h1 { font-size: clamp(2.25rem, 11vw, 2.95rem); }
    .clean-hero-grid { padding: 42px 0 48px; }
    .clean-page-grid { padding: 45px 0; }
    .clean-section { padding: 52px 0; }
    .clean-heading h2 { font-size: clamp(1.95rem, 9vw, 2.55rem); }
    .clean-actions { display: grid; }
    .clean-actions .button { width: 100%; }
    .clean-trust { font-size: .84rem; }
    .clean-card-grid.four,
    .clean-flow,
    .clean-flow.five,
    .clean-browser-cards { grid-template-columns: 1fr; }
    .clean-card,
    .clean-flow-step { padding: 21px; }
    .clean-call-demo { padding: 14px; border-radius: 21px; }
    .clean-demo-bubble { max-width: 92%; }
    .clean-final { padding: 40px 0 54px; }
}

@media (prefers-reduced-motion: reduce) {
    .clean-call-demo::before { display: none; }
}
