/* ==========================================================================
   Marketing pages. Motion here is explanatory and seen rarely, so it may run a
   little longer than app UI - but it still uses transform/opacity only,
   strong ease-out curves, short staggers, and plays once.
   ========================================================================== */

.site { background: var(--paper); overflow-x: clip; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Nav ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 40;
    border-bottom: 1px solid transparent;
    transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}
.site-nav[data-scrolled="true"] {
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom-color: var(--line);
}
.site-nav .wrap { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.site-brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--font-serif); font-size: 1.22rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.site-brand:hover { text-decoration: none; }
.site-links { display: flex; gap: .25rem; margin-left: .5rem; }
.site-links a { padding: .45rem .7rem; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: .92rem; text-decoration: none; transition: background-color 120ms ease, color 120ms ease; }
@media (hover: hover) and (pointer: fine) { .site-links a:hover { background: var(--paper-2); color: var(--ink); } }
.site-nav .cta { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.site-menu-btn { display: none; }
@media (max-width: 820px) {
    .site-links { display: none; }
    .site-nav .cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero::before {
    content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(40% 40% at 78% 30%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
        radial-gradient(30% 35% at 12% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 {
    font-family: var(--font-serif); font-weight: 560; font-variation-settings: "opsz" 144;
    font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.022em; margin: 0 0 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 480; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 34rem; margin-bottom: 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .assurance { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 2rem; color: var(--muted); font-size: .88rem; }
.hero .assurance span { display: inline-flex; align-items: center; gap: .4rem; }
.hero .assurance .icon { color: var(--brand); width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .35rem; margin-bottom: 1.5rem; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .84rem; color: var(--ink-2); font-weight: 550; }
.pill b { padding: .12rem .55rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .74rem; }

/* Hero illustration: a small living tree */
.showcase { position: relative; aspect-ratio: 1 / .92; min-height: 380px; }
.showcase-frame {
    position: absolute; inset: 0;
    border-radius: 24px; border: 1px solid var(--line);
    background-color: var(--panel);
    background-image: radial-gradient(circle, var(--line) 1px, transparent 1px);
    background-size: 20px 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.showcase-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--panel); font-size: .8rem; color: var(--muted); font-weight: 600; }
.showcase-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.showcase-bar span { margin-left: .5rem; }
.showcase svg.lines { position: absolute; inset: 44px 0 0; width: 100%; height: calc(100% - 44px); }
.showcase .ln { fill: none; stroke: var(--brand-line); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.showcase .ln.trunk { stroke: var(--brand); }
.js .showcase[data-visible] .ln { animation: draw 900ms var(--ease-in-out) forwards; animation-delay: calc(var(--d, 0) * 1ms + 350ms); }
.no-js .showcase .ln, .showcase.static .ln { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.mini {
    position: absolute; display: flex; gap: .5rem; align-items: center;
    width: 28%; min-width: 0; padding: .5rem .55rem; border-radius: 11px;
    background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
    font-size: .76rem; line-height: 1.25;
    transform: translate(-50%, -50%);
}
.mini .avatar { width: 30px; height: 30px; font-size: .68rem; }
.mini strong { display: block; font-size: .78rem; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
.mini .text span { color: var(--muted); }
.mini .text { min-width: 0; }
.mini.focus { border-color: var(--brand); box-shadow: var(--ring), var(--shadow); }
.mini.new { border-style: dashed; border-color: var(--accent); background: var(--accent-soft); }
.mini.new .avatar { background: var(--panel); color: var(--accent); }
.js .showcase .mini { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js .showcase[data-visible] .mini { opacity: 1; transform: translate(-50%, -50%); }

/* Floating approval card with a morphing button (blur crossfade masks the state swap) */
.approval {
    position: absolute; right: -6%; bottom: -7%; width: min(300px, 72%);
    padding: .9rem; border-radius: 14px;
    background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    font-size: .84rem;
}
.js .approval { opacity: 0; transform: translateY(14px) scale(.97); transition: opacity 500ms var(--ease-out) 1500ms, transform 500ms var(--ease-out) 1500ms; }
.js .showcase[data-visible] .approval { opacity: 1; transform: none; }
.approval .who { display: flex; gap: .55rem; align-items: center; margin-bottom: .55rem; }
.approval .who .avatar { width: 28px; height: 28px; font-size: .66rem; background: var(--accent-soft); color: var(--accent); }
.approval .who b { font-weight: 650; }
.approval .who time { margin-left: auto; color: var(--faint); font-size: .76rem; }
.approval p { margin: 0 0 .75rem; color: var(--ink-2); }
.approval .acts { display: flex; gap: .4rem; }
.approval .acts .btn { flex: 1; min-height: 34px; font-size: .82rem; }
.morph { position: relative; overflow: hidden; }
.morph .state { display: inline-flex; align-items: center; gap: .35rem; transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--ease-out); }
.morph .state.after { position: absolute; inset: 0; justify-content: center; opacity: 0; filter: blur(4px); transform: translateY(6px); }
.morph[data-done="true"] .state.before { opacity: 0; filter: blur(4px); transform: translateY(-6px); }
.morph[data-done="true"] .state.after { opacity: 1; filter: blur(0); transform: none; }
.morph[data-done="true"] { --btn-bg: var(--good); --btn-border: var(--good); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-family: var(--font-serif); font-weight: 560; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -.018em; margin-bottom: .9rem; font-variation-settings: "opsz" 120; }
.section-head p { font-size: 1.08rem; color: var(--ink-2); margin: 0; }

.trust { border-block: 1px solid var(--line); background: var(--panel-2); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust .item { display: flex; gap: .75rem; align-items: flex-start; padding: 1.5rem 1.25rem; border-left: 1px solid var(--line); }
.trust .item:first-child { border-left: 0; padding-left: 0; }
.trust .item .icon { color: var(--brand); width: 22px; height: 22px; margin-top: 2px; }
.trust .item b { display: block; font-size: .95rem; }
.trust .item span { color: var(--muted); font-size: .86rem; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 1.5rem; font-family: var(--font-serif); font-size: 2.4rem; line-height: 1; color: var(--brand); font-weight: 500; letter-spacing: -.03em; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); margin: 0; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.tile { position: relative; overflow: hidden; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.tile h3 { font-size: 1.12rem; margin: 0; }
.tile p { color: var(--muted); margin: 0; }
.tile .visual { margin-top: auto; padding-top: 1.25rem; }
.tile-a { grid-column: span 4; }
.tile-b { grid-column: span 2; }
.tile-c { grid-column: span 2; }
.tile-d { grid-column: span 2; }
.tile-e { grid-column: span 2; }
.tile .kicker { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); margin-bottom: .5rem; }

.queue { display: grid; gap: .5rem; }
.queue-row { display: flex; align-items: center; gap: .7rem; padding: .65rem .75rem; border-radius: 11px; border: 1px solid var(--line); background: var(--panel-2); font-size: .86rem; }
.queue-row .avatar { width: 28px; height: 28px; font-size: .66rem; }
.queue-row .grow { flex: 1; min-width: 0; }
.queue-row .grow b { display: block; font-weight: 600; }
.queue-row .grow span { color: var(--muted); font-size: .8rem; }

.roles { display: grid; gap: .45rem; }
.role-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem .7rem; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: .86rem; }
.role-row b { font-weight: 650; }
.role-row span { color: var(--muted); font-size: .8rem; }

.lock-visual { display: grid; place-items: center; height: 120px; border-radius: 12px; background: radial-gradient(circle at center, var(--brand-soft), transparent 70%); }
.lock-visual svg { width: 56px; height: 56px; color: var(--brand); }

.photos-visual { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.photos-visual i { aspect-ratio: 1; border-radius: 9px; background: linear-gradient(135deg, var(--accent-soft), var(--paper-2)); border: 1px solid var(--line); }
.photos-visual i:nth-child(2) { background: linear-gradient(135deg, var(--brand-soft), var(--paper-2)); }
.photos-visual i:nth-child(4) { background: linear-gradient(135deg, var(--info-soft), var(--paper-2)); }

/* Security band */
.band {
    position: relative; overflow: hidden; color: #e9f0ec;
    background: radial-gradient(110% 120% at 100% 0%, #2a7259 0%, #164536 45%, #0d281f 100%);
}
.band .section-head h2 { color: #fff; }
.band .section-head p { color: rgba(233, 240, 236, .78); }
.band .eyebrow { color: #9fd9bf; }
.shield-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.shield { padding: 1.4rem; background: rgba(13, 40, 31, .55); }
.shield .icon { width: 22px; height: 22px; color: #9fd9bf; margin-bottom: .8rem; }
.shield b { display: block; color: #fff; margin-bottom: .25rem; }
.shield span { color: rgba(233, 240, 236, .72); font-size: .9rem; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem .25rem; cursor: pointer; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--muted); transition: transform 200ms var(--ease-out), background-color 150ms ease; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--paper-2); }
.faq .answer { padding: 0 .25rem 1.25rem; color: var(--ink-2); max-width: 62ch; }
.faq details[open] .answer { animation: faq-in 240ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* Final CTA */
.cta-card {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center;
    padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px;
    background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cta-card h2 { font-family: var(--font-serif); font-weight: 560; font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.03em; margin: 0 0 .5rem; }
.cta-card p { color: var(--muted); margin: 0; }
.cta-card .actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* Prose pages */
.prose { max-width: 720px; margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.prose h2 { font-family: var(--font-serif); font-weight: 560; font-size: 1.45rem; margin: 2.25rem 0 .6rem; letter-spacing: -.015em; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.02rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose .updated { color: var(--muted); font-size: .9rem; }

.demo-head { padding: 2rem 0 1rem; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--stagger, 0) * 70ms); }
.js [data-reveal][data-visible] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero .wrap { grid-template-columns: minmax(0, 1fr); }
    .showcase { max-width: 560px; width: 100%; margin-inline: auto; }
    .approval { right: 2%; }
    .trust .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust .item:nth-child(3) { border-left: 0; padding-left: 0; }
    .trust .item { border-top: 1px solid var(--line); }
    .trust .item:nth-child(-n+2) { border-top: 0; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile-a { grid-column: span 2; }
    .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 1; }
    .shield-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .wrap { width: calc(100% - 2rem); }
    .steps, .bento, .shield-list { grid-template-columns: minmax(0, 1fr); }
    .tile-a, .tile-b, .tile-c, .tile-d, .tile-e { grid-column: auto; }
    .trust .wrap { grid-template-columns: minmax(0, 1fr); }
    .trust .item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
    .trust .item:nth-child(2) { border-top: 1px solid var(--line); }
    .cta-card { grid-template-columns: minmax(0, 1fr); }
    .hero .actions .btn { flex: 1 1 auto; }
    .showcase { min-height: 340px; }
    .mini { min-width: 0; width: 31%; padding: .4rem; }
    .mini .avatar { display: none; }
    .approval { right: 0; left: 8%; width: auto; bottom: 3%; }
}

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal], .js .showcase .mini, .js .approval { transform: none !important; transition-property: opacity; transition-duration: 300ms; }
    .js .showcase .ln { animation: none !important; stroke-dashoffset: 0; }
    .morph .state { transition-property: opacity; filter: none !important; transform: none !important; }
}

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: clamp(1rem, 4vw, 3rem); }
.contact-title { font-family: var(--font-serif); font-weight: 560; font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.06; letter-spacing: -.025em; margin-bottom: 1rem; }
.lede-sm { font-size: 1.06rem; color: var(--ink-2); max-width: 34rem; }
.contact-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.contact-points li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-2); }
.contact-points .icon { color: var(--brand); margin-top: .15rem; }
.contact-card { position: relative; box-shadow: var(--shadow); }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: minmax(0, 1fr); } }
