/* Alcove website. No external fonts, scripts or trackers. */
:root {
    --blue: #2f6bff;
    --blue-strong: #1f55e0;
    --orange: #ffb547;
    --ink: #14171f;
    --ink-soft: #4a5263;
    --ink-faint: #737b8c;
    --paper: #ffffff;
    --paper-soft: #f4f6fa;
    --line: #e3e7ef;
    --card: #ffffff;
    --shadow: 0 1px 2px rgb(20 23 31 / 6%), 0 8px 24px rgb(20 23 31 / 8%);
    --radius: 14px;
    --max: 1080px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --blue: #5b8bff;
        --blue-strong: #7aa1ff;
        --ink: #eef1f7;
        --ink-soft: #b9c0cf;
        --ink-faint: #8f97a8;
        --paper: #0f1117;
        --paper-soft: #161a22;
        --line: #272c38;
        --card: #1a1e27;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button:hover { text-decoration: none; }
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: var(--blue-strong); }
.button.secondary { border-color: var(--line); color: var(--ink); background: var(--card); }
.button.secondary:hover { border-color: var(--ink-faint); }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 70% -10%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 20px; }
.hero h1 .accent { color: var(--blue); }
.hero h1 .tm { font-size: 0.32em; font-weight: 600; vertical-align: super; margin-left: 0.05em; line-height: 0; }
.hero p.lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 28px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .platforms { margin-top: 22px; font-size: 14px; color: var(--ink-faint); }

/* Hero illustration: a file manager window with the Alcove location */
.mock { position: relative; }
.window {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    font-size: 14px;
}
.window .titlebar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--paper-soft); }
.window .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window .titlebar .title { margin-left: 10px; color: var(--ink-faint); font-size: 13px; }
.window .body { display: grid; grid-template-columns: 150px 1fr; min-height: 240px; }
.window .sidebar { background: var(--paper-soft); border-right: 1px solid var(--line); padding: 12px 8px; color: var(--ink-soft); }
.window .sidebar .label { font-size: 11px; font-weight: 700; color: var(--ink-faint); padding: 6px 8px 4px; letter-spacing: 0.03em; }
.window .sidebar .item { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; }
.window .sidebar .item.active { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--ink); font-weight: 600; }
.window .sidebar .item img { width: 16px; height: 16px; }
.window .files { padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 16px; align-content: start; }
.window .file { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.window .file svg { width: 54px; height: 44px; }

.popover {
    position: absolute;
    right: -18px;
    bottom: -36px;
    width: 250px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-size: 13px;
}
.popover .head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); }
.popover .head .status { font-weight: 500; color: #22a559; font-size: 12px; }
.popover .row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.popover .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; }
.popover .who { line-height: 1.3; }
.popover .who small { color: var(--ink-faint); }
.popover .foot { border-top: 1px solid var(--line); padding: 8px 12px; color: var(--ink-faint); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.card .icon svg { width: 22px; height: 22px; }
.card .icon.orange { background: color-mix(in srgb, var(--orange) 22%, transparent); color: #c97800; }

.platform h3 { margin-top: 0; font-size: 22px; }
.platform ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); }
.platform li { margin: 4px 0; }
.platform .req { margin-top: 16px; font-size: 14px; color: var(--ink-faint); }

.privacy-points .card h3 { margin-top: 0; }

.cta { text-align: center; }
.cta .card { padding: 48px 24px; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; letter-spacing: -0.02em; }
.cta p { color: var(--ink-soft); margin: 0 auto 24px; max-width: 36em; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-faint); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); margin: 10px 0 0; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 4vw, 42px); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--ink-faint); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal .summary { background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.legal .summary ul { margin: 8px 0 0; padding-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal table.storage { table-layout: fixed; }
.legal table.storage th:first-child { width: 34%; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); font-weight: 600; }
.legal td { color: var(--ink-soft); }
.legal code { font-size: 0.9em; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; word-break: break-word; }
.legal address { font-style: normal; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--ink-faint); }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink-soft); }
.site-footer p { margin: 6px 0; }

/* Responsive */
@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 64px; }
    .grid.three { grid-template-columns: 1fr 1fr; }
    .popover { right: 8px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .site-nav { display: none; }
    .grid.three, .grid.two { grid-template-columns: 1fr; }
    .window .body { grid-template-columns: 1fr; }
    .window .sidebar { display: none; }
    .popover { position: relative; right: auto; bottom: auto; width: auto; margin: -24px 16px 0; }
    section { padding: 56px 0; }
}
