/* CaratMerge website. One stylesheet, no build step. Dark, to match the app. */

:root {
    --bg-top: #1b1448;
    --bg-bottom: #08060f;
    --panel: rgba(255, 255, 255, 0.07);
    --panel-border: rgba(255, 255, 255, 0.16);
    --text: #f4f2ff;
    --text-soft: #c9c4e6;      /* 10:1 on the background */
    --accent: #8fa8ff;         /* links: 8:1 on the background */
    --accent-strong: #0060df;  /* button fill; white text on it is 5.6:1 */
    --radius: 18px;
    --max: 960px;
}

* { box-sizing: border-box; }

img { max-width: 100%; height: auto; }

html { color-scheme: dark; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 70%) fixed;
    font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #fff;
    color: #000;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 10;
}
.skip-link:focus { left: 8px; }

.wrap {
    width: min(100% - 40px, var(--max));
    margin-inline: auto;
}

/* Header and footer */

.site-header {
    padding: 22px 0;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span span { font-weight: 300; }

nav ul {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
nav a:hover, nav a[aria-current="page"] {
    color: #fff;
    border-bottom-color: var(--accent);
}

.site-footer {
    margin-top: 80px;
    padding: 32px 0 48px;
    border-top: 1px solid var(--panel-border);
    color: var(--text-soft);
    font-size: 0.95rem;
}
.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.site-footer ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* Hero */

.hero {
    text-align: center;
    padding: 36px 0 24px;
}
.hero .icon {
    width: 150px;
    height: 150px;
    border-radius: 34px;
    box-shadow: 0 0 60px rgba(143, 168, 255, 0.35), 0 12px 30px rgba(0, 0, 0, 0.5);
}
.hero h1 {
    margin: 26px 0 8px;
    font-size: clamp(2.4rem, 7vw, 3.6rem);
    line-height: 1.1;
    font-weight: 300;
    letter-spacing: -0.01em;
}
.hero h1 strong {
    font-weight: 800;
    background: linear-gradient(90deg, #8fa8ff, #c58cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead {
    margin: 0 auto 28px;
    max-width: 34rem;
    font-size: 1.25rem;
    color: var(--text-soft);
}

.button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 14px;
    background: var(--accent-strong);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.button:hover { background: #1a73ec; color: #fff; }
.button + .button { margin-left: 10px; }
.button.secondary {
    background: var(--panel);
    border: 1px solid var(--panel-border);
}
.button.secondary:hover { background: rgba(255, 255, 255, 0.14); }
.note { color: var(--text-soft); font-size: 0.9rem; margin-top: 10px; }

/* Gem ladder */

.ladder {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    list-style: none;
    margin: 36px auto 0;
    padding: 18px 20px;
    max-width: 720px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
}
.ladder li { text-align: center; width: 44px; }
.ladder img { width: 40px; height: 40px; display: block; margin: 0 auto; }

/* Sections */

section { padding: 44px 0 0; }

h2 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0 0 18px;
}
h3 { margin: 0 0 6px; font-size: 1.1rem; }

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 22px;
}
.card p { margin: 0; color: var(--text-soft); }

.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.steps li {
    counter-increment: step;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 22px;
}
.steps li::before {
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--accent-strong);
    font-weight: 700;
}
.steps p { margin: 0; color: var(--text-soft); }

/* Text pages (support, privacy) */

.page { padding: 20px 0 0; max-width: 720px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 8px; }
.page .meta { color: var(--text-soft); margin: 0 0 28px; }
.page h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.page p, .page li { color: #e6e2fa; }
.page ul { padding-left: 1.3em; }
.page li { margin: 6px 0; }

details {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 14px 18px;
    margin: 10px 0;
}
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
details p { margin: 0 0 8px; }

.contact {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 22px;
    margin: 20px 0 8px;
}
.contact p { margin: 0 0 12px; }

@media (prefers-reduced-motion: no-preference) {
    .button { transition: background 0.15s; }
}
