/* Darc website. One stylesheet for every page. Colours follow the app: near-black base,
   purple accent, and the golden light from the icon. System fonts only. */

:root {
    color-scheme: dark;
    --bg: #0D0D17;
    --bg-raised: #15152A;
    --bg-card: #1A1A30;
    --line: rgba(255, 255, 255, 0.09);
    --text: #F4F3FA;
    --text-soft: #B9B7CC;
    --text-faint: #8E8BA6;
    --accent: #7F4CF8;
    --accent-2: #974BF7;
    --accent-text: #B79BFF;
    --gold: #FFD68C;
    --gradient: linear-gradient(135deg, #7F4CF8 0%, #974BF7 100%);
    --radius: 22px;
    --radius-small: 14px;
    --container: 1120px;
    --gutter: 20px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: #D2C2FF; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--gold); color: #1A1300; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.purple { color: var(--accent-text); }
.gold { color: var(--gold); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(13, 13, 23, 0.82);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 9px; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-soft); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
    color: #fff; background: var(--gradient); padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
@media (max-width: 760px) { .nav-hide { display: none; } }

/* Buttons and badge */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.badge-link { display: inline-block; border-radius: 12px; }
.badge-link img { width: 162px; height: 54px; }
.cta-note { color: var(--text-faint); font-size: 0.95rem; margin: 0; }

/* Hero */
.hero { position: relative; padding: 72px 0 48px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(closest-side, rgba(127, 76, 248, 0.32), rgba(127, 76, 248, 0) 70%);
    pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; left: -15%; bottom: -30%; width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
    background: radial-gradient(closest-side, rgba(255, 214, 140, 0.08), rgba(255, 214, 140, 0) 70%);
    pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 16px 48px rgba(127, 76, 248, 0.45); margin-bottom: 26px; }
.eyebrow { color: var(--gold); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 14px; }
.lede { color: var(--text-soft); font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34em; }
.hero-art { justify-self: center; width: 100%; max-width: 560px; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)); }
@media (max-width: 900px) {
    .hero { padding-top: 44px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: linear-gradient(180deg, rgba(127, 76, 248, 0.06), rgba(127, 76, 248, 0) 70%); border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 44px; }
.section-head p { color: var(--text-soft); font-size: 1.12rem; }
.kicker { color: var(--accent-text); font-weight: 650; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* Both ways */
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.way { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.way p { color: var(--text-soft); margin: 0; }
.mini { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 22px; }
.mini-arrow { color: var(--accent-text); font-size: 1.4rem; }
.page {
    border-radius: 12px; padding: 12px; min-height: 132px; border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 7px;
}
.page .dots { display: flex; gap: 4px; margin-bottom: 4px; }
.page .dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.35; }
.page .h { height: 10px; width: 70%; border-radius: 4px; background: currentColor; opacity: 0.85; }
.page .l { height: 6px; border-radius: 3px; background: currentColor; opacity: 0.32; }
.page .l.s { width: 60%; }
.page .img { height: 26px; border-radius: 6px; background: linear-gradient(90deg, #E7834A, #A55BF2); margin-top: 3px; }
.page-light { background: #F7F6FB; color: #23213A; }
.page-dark { background: #121220; color: #E8E6F5; }
.page-oled { background: #000; color: #E8E6F5; }
.page-label { font-size: 0.75rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; display: block; }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.screen figure { margin: 0; }
.shot {
    border-radius: 34px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); background: #000; max-width: 300px; margin: 0 auto 20px;
}
.screen h3 { margin-top: 4px; }
.screen p { color: var(--text-soft); margin: 0; }
@media (max-width: 900px) {
    .screens { grid-template-columns: 1fr; gap: 44px; }
    .screen { max-width: 420px; margin: 0 auto; text-align: center; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.feature { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 22px; }
.feature p { color: var(--text-soft); margin: 0; font-size: 0.98rem; }
.feature-icon {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
    background: rgba(127, 76, 248, 0.18); color: var(--accent-text);
}
.feature-icon svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Trust */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.warning-card {
    background: #1E1E2E; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.warning-card .warn-title { font-weight: 650; margin-bottom: 6px; }
.warning-card .warn-body { color: var(--text-soft); font-size: 0.95rem; margin: 0; }
.warning-card .warn-tag { display: inline-block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; color: var(--text-soft); }
.checks li::before {
    content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
    background: var(--gradient);
    -webkit-mask: radial-gradient(circle, #000 99%, transparent 100%);
}
.checks li::after {
    content: ""; position: absolute; left: 7px; top: calc(0.3em + 4px); width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checks strong { color: var(--text); }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; gap: 32px; } }

/* Plans */
.plans-wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 40px; align-items: center; }
.plans-art { max-width: 340px; justify-self: center; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan-forever { border-color: rgba(151, 75, 247, 0.6); background: linear-gradient(160deg, rgba(127, 76, 248, 0.22), rgba(26, 26, 48, 1) 60%); }
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan .plan-sub { color: var(--text-faint); font-size: 0.95rem; margin-bottom: 14px; }
.plan ul { padding-left: 1.1em; margin: 0; color: var(--text-soft); }
.plan li { margin-bottom: 6px; }
.plan-note { color: var(--text-faint); font-size: 0.92rem; margin-top: 18px; }
@media (max-width: 900px) {
    .plans-wrap { grid-template-columns: 1fr; }
    .plans-art { max-width: 220px; }
}
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* Devices */
.devices { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.ipad {
    border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
@media (max-width: 860px) { .devices { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
    font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; color: var(--accent-text); font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { color: var(--text-soft); padding: 0 0 18px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Final CTA */
.final { text-align: center; }
.final .hero-icon { margin: 0 auto 22px; }
.final .cta-row { justify-content: center; }
.final p { color: var(--text-soft); }

/* Documents */
.doc { padding: 56px 0 80px; }
.doc .container { max-width: 800px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc h3 { margin-top: 1.5em; }
.doc p, .doc li { color: var(--text-soft); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.45em; }
.doc-meta { color: var(--text-faint); font-size: 0.95rem; }
.callout { background: var(--bg-card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-small); padding: 18px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.toc { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 18px 22px; margin: 28px 0; }
.toc ol { margin: 0; }
.licence {
    white-space: pre-wrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.82rem; line-height: 1.55;
    color: var(--text-soft); background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-small);
    padding: 18px; overflow-x: auto;
}
kbd { font-family: inherit; background: var(--bg-card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--text-faint); font-size: 0.92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-small { margin-top: 22px; max-width: 46rem; }
.footer-small p { margin: 0 0 6px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound p { color: var(--text-soft); }
