/* Nosce — trynosce.com shared styles.
   Hand-written, no build step. Palette matches the iOS app + the /join page. */

:root {
    color-scheme: dark;

    /* Palette */
    --canvas: #0F0A1F;
    --canvas-2: #130C26;
    --surface: #1A1330;
    --surface-2: #211836;
    --accent: #8B5CF6;
    --accent-deep: #6D28D9;
    --gold: #E7B549;          /* the "earn" accent, used sparingly */
    --text-primary: #F4F1FB;
    --text-secondary: #B7AECC;
    --text-tertiary: #897FA6;
    --stroke: rgba(180, 168, 220, 0.16);
    --stroke-strong: rgba(180, 168, 220, 0.28);

    /* Type */
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
            "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Rhythm */
    --radius: 18px;
    --radius-lg: 26px;
    --maxw: 1080px;
    --pad: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
        var(--canvas);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text-primary); }

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

img, svg { display: block; max-width: 100%; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.narrow { max-width: 760px; }

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    background: rgba(15, 10, 31, 0.72);
    border-bottom: 1px solid var(--stroke);
}
.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
}
.brand .mark { width: 26px; height: 26px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }
@media (max-width: 640px) {
    .nav-links { gap: 18px; }
    .nav-links .hide-sm { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    color: #fff;
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-ghost {
    background: transparent;
    border-color: var(--stroke-strong);
    color: var(--text-primary);
}
.btn-ghost:hover { background: var(--surface); color: var(--text-primary); }

/* "Coming soon" pre-launch CTA — looks like the primary button but reads as a state */
.btn-soon {
    background: var(--surface-2);
    border-color: var(--stroke-strong);
    color: var(--text-primary);
    cursor: default;
}
.btn-soon .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(231, 181, 73, 0.18);
}

/* ---------- Hero ---------- */

.hero {
    text-align: center;
    padding: 84px 0 64px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 7px 14px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    margin-bottom: 26px;
}
h1 {
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 16ch;
    margin: 0 auto 22px;
}
.lede {
    font-size: clamp(17px, 2.4vw, 21px);
    color: var(--text-secondary);
    max-width: 56ch;
    margin: 0 auto 34px;
}
.cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.platform-note {
    margin-top: 22px;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ---------- Sections ---------- */

section { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
h2 {
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
}
h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.muted { color: var(--text-secondary); }
.divider { height: 1px; background: var(--stroke); border: 0; }

.lead-quote {
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.lead-quote em { color: var(--accent); font-style: normal; }

/* ---------- Cards / grids ---------- */

.card {
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
}
.card .tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.tag.notice { color: var(--accent); }
.tag.pact { color: var(--gold); }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 800px) {
    .two-col, .grid-3 { grid-template-columns: 1fr; }
}

.feature {
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 22px 22px;
    background: rgba(26, 19, 48, 0.5);
}
.feature .ico { font-size: 24px; margin-bottom: 12px; }
.feature h3 { font-size: 18px; }
.feature p { font-size: 15px; color: var(--text-secondary); }

ul.checklist { list-style: none; display: grid; gap: 12px; }
ul.checklist li {
    position: relative;
    padding-left: 30px;
    color: var(--text-secondary);
}
ul.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid var(--accent);
}
ul.checklist li strong { color: var(--text-primary); font-weight: 600; }

ul.nots { list-style: none; display: grid; gap: 14px; }
ul.nots li {
    padding: 18px 20px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    background: rgba(26, 19, 48, 0.4);
    color: var(--text-secondary);
}
ul.nots li strong { color: var(--text-primary); }

.principles { counter-reset: p; display: grid; gap: 18px; }
.principle { display: flex; gap: 18px; align-items: flex-start; }
.principle .num {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid var(--stroke-strong);
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Final CTA band ---------- */

.band {
    text-align: center;
    background: linear-gradient(180deg, var(--surface), var(--canvas-2));
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    padding: 56px 28px;
}

/* ---------- Prose (privacy / support) ---------- */

.prose { padding: 56px 0 24px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--text-secondary); }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; display: grid; gap: 8px; }
.prose strong { color: var(--text-primary); }
.prose .meta { color: var(--text-tertiary); font-size: 14px; }

details.faq {
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 4px 20px;
    margin-bottom: 12px;
    background: rgba(26, 19, 48, 0.45);
}
details.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
    content: "+";
    color: var(--accent);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}
details.faq[open] summary::after { content: "\2013"; }
details.faq .body { padding: 0 0 18px; color: var(--text-secondary); }
details.faq .body p { margin-bottom: 12px; }
details.faq .body p:last-child { margin-bottom: 0; }

.mailbtn {
    display: inline-block;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid var(--stroke-strong);
    color: var(--text-primary);
}
.mailbtn:hover { background: var(--surface); color: var(--text-primary); }

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--stroke);
    margin-top: 40px;
    padding: 40px 0 56px;
}
.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}
.footer .brand { font-size: 16px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 15px; }
.footer-links a:hover { color: var(--text-primary); }
.footer .latin { color: var(--text-tertiary); font-style: italic; font-size: 14px; }
.footer .copy { color: var(--text-tertiary); font-size: 13px; width: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .btn:active { transition: none; transform: none; }
}
