/* Sluice website. Dark, teal accent, Geist. Design: "Sluice website" canvas. */
:root {
    color-scheme: dark;
    --bg: #0A0D0F;
    --bg-raised: #0F1417;
    --card: #11171A;
    --chip: #1A2327;
    --line: #1C2428;
    --line-card: #1E272C;
    --line-strong: #2A353B;
    --text: #EAF0F2;
    --text-soft: #C9D3D8;
    --muted: #A9B6BC;
    --faint: #7C8B92;
    --accent: #3CC8C8;
    --accent-ink: #04201F;
    --accent-bg: #0F1D21;
    --accent-line: #2A5A62;
    --link: #7FDCDC;
    --ok: #4ADE80;
    --busy: #F5A524;
    --bad: #F87171;
    --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

a { color: var(--link); }
a:hover { color: #B5ECEC; }
code, .mono { font-family: var(--mono); }
code { font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--chip); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header and footer */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand:hover { color: var(--text); }
.brand-mark {
    width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
    display: flex; align-items: center; justify-content: center;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; font-size: 15px; }
.site-nav a { color: #93A3AB; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav .nav-cta {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px;
    background: var(--text); color: var(--bg); font-weight: 600;
}
.site-nav .nav-cta:hover { color: var(--bg); background: #FFFFFF; }

.site-footer { margin-top: 112px; border-top: 1px solid var(--line); }
.site-footer .wrap {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
    padding-top: 32px; padding-bottom: 48px; font-size: 14px; color: var(--faint);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: #93A3AB; text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }

/* Buttons */

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px; border-radius: 12px;
    font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: #5FD6D6; color: var(--accent-ink); }
.button-ghost { border-color: var(--line-strong); color: var(--text); }
.button-ghost:hover { border-color: #46555C; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Type */

h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 22px; font-weight: 600; }
.lead { margin: 0; max-width: 540px; font-size: 19px; color: var(--muted); }
.note { margin: 0; font-size: 14px; color: var(--faint); }
.soft { color: var(--muted); }
p { margin: 0; }

.pill {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border: 1px solid #233036; border-radius: 999px;
    font-family: var(--mono); font-size: 13px; color: #93A3AB;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Hero */

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.screen {
    flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; align-items: flex-end;
    border: 1px solid var(--line); border-radius: 20px; background: var(--bg-raised);
    padding-bottom: 36px; overflow: hidden;
}
.menubar {
    align-self: stretch; height: 34px; display: flex; align-items: center; justify-content: flex-end;
    gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #12181B;
    font-size: 13px; color: var(--muted);
}
.menubar-icon {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px;
    background: #1F2A2F; color: var(--ok); font-weight: 600;
}
.panel {
    width: 340px; max-width: calc(100% - 32px); margin: 10px 24px 0 0; padding: 8px;
    border-radius: 14px; background: #161D21; border: 1px solid #263137;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column; gap: 2px; font-size: 14px;
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 8px 10px; }
.panel-head span { font-size: 12px; color: #93A3AB; }
.tunnel { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 9px; }
.tunnel.hover { background: #1D262B; }
.tunnel-text { flex: 1; display: flex; flex-direction: column; }
.tunnel-text b { font-weight: 500; }
.tunnel-text small { font-size: 12px; color: #93A3AB; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); }
.dot.busy { background: var(--busy); }
.dot.bad { background: var(--bad); }
.dot.off { border: 1.5px solid #5C6B72; }
.switch { width: 32px; height: 19px; border-radius: 10px; background: #2A353B; position: relative; flex: none; }
.switch::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px;
    border-radius: 50%; background: #C9D3D8;
}
.switch.on { background: var(--accent); }
.switch.on::after { left: 15px; background: #FFFFFF; }
.panel-rule { height: 1px; background: #263137; margin: 6px 8px; }
.panel-item { display: flex; justify-content: space-between; padding: 5px 8px; color: var(--muted); }
.panel-item span:last-child { color: #66767D; }

/* Strip, sections, cards */

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .wrap {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: var(--faint);
}
.strip b { color: var(--text-soft); font-weight: 500; }

.section { padding-top: 112px; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.section-head p { color: var(--muted); font-size: 18px; }

.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card {
    min-width: 0; padding: 28px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-card);
    display: flex; flex-direction: column; gap: 14px;
}
.card p { color: var(--muted); }
.card.wide { grid-column: span 2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--text-soft); }
.chips span { padding: 6px 10px; border-radius: 8px; background: var(--chip); }
.chips.boxed span { padding: 8px 12px; border-radius: 10px; background: #172024; border: 1px solid #243036; }
.resolver {
    padding: 14px; border-radius: 10px; background: #0C1113; border: 1px solid var(--line-card);
    font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px;
}
.resolver em { font-style: normal; color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.timeline li { display: flex; gap: 12px; align-items: center; }
.timeline time { font-family: var(--mono); color: #66767D; width: 64px; }
.card.full { grid-column: 1 / -1; }
.split { flex-direction: row; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.split > * { flex: 1 1 300px; min-width: 0; }

.flow {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: none;
}
.flow li {
    position: relative; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-card);
    display: flex; flex-direction: column; gap: 6px;
}
.flow li:last-child { background: var(--accent-bg); border-color: var(--accent-line); }
.flow-kind { font-family: var(--mono); font-size: 12px; color: #93A3AB; text-transform: uppercase; letter-spacing: 0.04em; }
.flow b { font-size: 19px; font-weight: 600; }
.flow li > span:last-child { color: var(--muted); font-size: 15px; }
/* Arrows between the steps where they sit in one row. */
@media (min-width: 1000px) {
    .flow li:not(:last-child)::after {
        content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
        width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong);
        color: var(--accent); font-size: 13px; display: flex; align-items: center; justify-content: center; z-index: 1;
    }
}

.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 10;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #161D21; border: 1px solid var(--line-strong); color: var(--text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.to-top.shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--text); border-color: var(--accent); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .to-top { transition: none; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.steps li { padding: 24px; border-radius: 16px; border: 1px solid var(--line-card); display: flex; flex-direction: column; gap: 8px; }
.steps .num { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.steps b { font-size: 19px; font-weight: 600; }
.steps span:last-child { color: var(--muted); }

.pair { display: flex; flex-wrap: wrap; gap: 16px; }
.pair .card { flex: 1 1 440px; padding: 36px; border-radius: 20px; }
.pair h2 { font-size: 30px; line-height: 1.15; }

.cta {
    padding: 56px 40px; border-radius: 24px; border: 1px solid #22404A; background: var(--accent-bg);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta > div:first-child { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cta p { color: var(--muted); }
.cta .button-ghost { border-color: #2A4A52; }

.qa { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px; }
.qa > h2 { flex: 1 1 300px; }
.qa dl { flex: 2 1 560px; min-width: 0; margin: 0; }
.qa dl > div { padding: 20px 0; border-top: 1px solid var(--line-card); }
.qa dl > div:last-child { border-bottom: 1px solid var(--line-card); }
.qa dt { font-weight: 600; font-size: 18px; }
.qa dd { margin: 6px 0 0; color: var(--muted); }

/* Pricing */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.plan {
    min-width: 0; padding: 32px; border-radius: 20px; border: 1px solid var(--line-card); background: var(--bg-raised);
    display: flex; flex-direction: column; gap: 18px;
}
.plan.featured { border-color: var(--accent-line); background: var(--accent-bg); }
.plan-head { display: flex; flex-direction: column; gap: 6px; }
.plan-kind { font-family: var(--mono); font-size: 13px; color: #93A3AB; }
.plan.featured .plan-kind { color: var(--accent); }
.plan-price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.plan-head span:last-child { color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--text-soft); }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: "✓"; color: var(--accent); }
.plan .button { margin-top: auto; }

/* Text pages */

.doc { max-width: 760px; padding-top: 72px; display: flex; flex-direction: column; gap: 16px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.doc h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin-top: 24px; }
.doc p, .doc li { color: var(--text-soft); }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc .updated { color: var(--faint); font-size: 14px; }
.table-box { overflow-x: auto; border: 1px solid var(--line-card); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-card); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--faint); font-weight: 500; }

@media (max-width: 720px) {
    .card.wide { grid-column: auto; }
    .hero { padding-top: 56px; }
    .section { padding-top: 80px; }
    .cta { padding: 36px 24px; }
}
