/* Global tokens, resets, typography, and page structure. */

/* Design tokens */
:root {
    --page-container: 1600px;
    --min-viewport: 320px;
    --white: #ffffff;
    --black: #000000;
    --text: #111827;
    --text-soft: #374151;
    --text-muted: #6b7280;
    --selection-text: #7c2d12;
    --selection-bg: rgba(var(--accent-rgb), var(--a-xl));
    --outer-padding: clamp(20px, calc((60px + 100vw) / 21), 60px);
    --space-s: clamp(6px, calc((150px + 10vw) / 31), 10px);
    --space-m: clamp(12px, calc((336px + 10vw) / 31), 16px);
    --space-l: clamp(16px, calc((460px + 10vw) / 31), 20px);
    --space-xl: clamp(24px, calc((690px + 15vw) / 31), 30px);
    --space-2xl: clamp(40px, calc((1168px + 20vw) / 31), 48px);
    --radius-s: clamp(8px, calc((212px + 10vw) / 31), 12px);
    --radius-m: clamp(12px, calc((318px + 15vw) / 31), 18px);
    --radius-l: clamp(20px, calc((548px + 20vw) / 31), 28px);
    --font-s: clamp(0.7rem, calc((20.8rem + 4vw) / 31), 0.8rem);
    --font-m: clamp(0.9rem, calc((27rem + 4vw) / 31), 1rem);
    --font-l: clamp(1.1rem, calc((32.3rem + 8vw) / 31), 1.3rem);
    --font-xl: clamp(1.2rem, calc((32.7rem + 20vw) / 31), 1.7rem);
    --font-2xl: clamp(1.9rem, calc((52.6rem + 28vw) / 31), 2.6rem);
    --font-3xl: clamp(2.4rem, calc((51.9rem + 100vw) / 31), 4.9rem);
    --radius-pill: 999px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
    --icon-s: 24px;
    --a-0: 0%;
    --a-xs: 4%;
    --a-s: 8%;
    --a-m: 12%;
    --a-l: 20%;
    --a-xl: 40%;
    --a-2xl: 60%;
    --a-3xl: 90%;
    --section-divider: clamp(60px, calc((1320px + 150vw) / 31), 120px);
    --shell-text: #d6d6d6;
    --shell-accent: #facc14;
    --shell-bg-start: #29003d;
    --shell-bg-end: #11001a;
    --shell-bg-gradient-x: linear-gradient(90deg, var(--shell-bg-start), var(--shell-bg-end));
    --shell-bg-gradient-y: linear-gradient(180deg, var(--shell-bg-start), var(--shell-bg-end));
    --accent-text: #ea580c;
    --accent: #ff7a1a;
    --accent-rgb: 255, 122, 26;
    --accent-dark: #c2410c;
    --accent-light: #fff2e8;
    --purple: #a32fde;
    --purple-rgb: 163, 47, 222;
    --purple-dark: #741aa1;
    --purple-dark-rgb: 116, 26, 161;
    --purple-light: #faf0ff;
    --purple-border: #e6b3ff;
    --transition-purple-glow: 0.4s ease;
    --surface: #fffdfb;
    --surface-soft: #f3ebe4;
    --html-bg: #faf9f7;
    --body-bg-start: #fdfcfb;
    --body-bg-end: #faf9f7;
}

/* Element defaults and resets */
img, video {
    display: block;
    max-width: 100%;
    user-select: none;
}

ui-icon {
    display: inline-block;
    user-select: none;
}

*, *::before, *::after {
    min-width: 0;
    border: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-clip: padding-box;
}

button {
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
}

:is(a[href], button, [data-popup-open]) {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

/* Typography */
@font-face {
    font-family: "nunito";
    src: url("/assets/fonts/nunito.woff2") format("woff2");
    font-style: normal;
    font-display: swap;
}

h1 {
    font-size: var(--font-3xl);
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

h2 {
    font-size: var(--font-2xl);
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

h3 {
    font-size: var(--font-xl);
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

h4 {
    font-size: var(--font-l);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text);
}

.text-lead {
    font-size: var(--font-l);
    line-height: 1.2;
    color: var(--text-soft);
}

.text-body {
    font-size: var(--font-m);
    line-height: 1.4;
    color: var(--text-soft);
}

ul, ol {
    font-size: var(--font-m);
    line-height: 1.6;
    color: var(--text-soft);
}











/* Typography spacing */
h1:not(:last-child) {
    margin-block-end: var(--space-l);
}

:is(h2, h3):not(:last-child) {
    margin-block-end: var(--space-m);
}

h4:not(:last-child) {
    margin-block-end: var(--space-s);
}

:is(p.text-body, p.text-lead):not(:last-child) {
    margin-block-end: var(--space-m);
}

.section-header {
    margin-block-end: var(--space-xl);
}

:is(.stack-grid, .pill-list):not(:last-child) {
    margin-block-end: var(--space-l);
}

.icon-title-row {
    margin-block-end: var(--space-s);
}

.info-card-header {
    margin-block-end: var(--space-l);
}

.faq-answer > *:not(:last-child) {
    margin-block-end: var(--space-m);
}

:is(.faq-answer, .info-card-list) li:not(:last-child) {
    margin-block-end: var(--space-s);
}

/* Text locking */
.line-lock > span {
    display: inline;
}

.line-lock.is-line-locked > span {
    display: block;
    white-space: nowrap;
}

.phrase-lock {
    white-space: nowrap;
}

























/* Document shell */
html {
    max-width: 100%;
    scroll-behavior: smooth;
    background: var(--html-bg);
}

body {
    min-width: var(--min-viewport);
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 480;
    line-height: 1.08;
    letter-spacing: 0em;
    color: var(--text);
    background: linear-gradient( 180deg, var(--body-bg-start) 0%, var(--body-bg-end) 100% );
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    color: var(--selection-text);
    background-color: var(--selection-bg);
}

:focus-visible:not(.search-input):not(.page-notice) {
    border-radius: var(--radius-m);
    outline: 2px solid var(--purple);
    outline-offset: 4px;
}

@media (min-width: 1200px) {
    :root {
        --outer-padding: clamp(60px, calc(15vw - 120px), 120px);
    }
}

/* Page sections */
main>section {
    position: relative;
    padding-block: var(--section-divider);
}

main>section+section::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 50%;
    width: min(calc((100% - var(--outer-padding)) * 0.9), calc(var(--page-container) * 0.9));
    transform: translateX(-50%);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--purple-rgb), var(--a-m)) 8%, rgba(var(--purple-rgb), var(--a-l)) 24%, rgba(var(--purple-rgb), var(--a-xl)) 50%, rgba(var(--purple-rgb), var(--a-l)) 76%, rgba(var(--purple-rgb), var(--a-m)) 92%, transparent 100%);
    box-shadow: 0 0 12px rgba(var(--purple-rgb), var(--a-m)), 0 0 26px rgba(var(--purple-rgb), var(--a-s));
}

main>section+section::after {
    content: "";
    position: absolute;
    inset-block-start: calc(var(--section-divider) * -0.3);
    height: calc(var(--section-divider) * 0.6);
    inset-inline-start: 50%;
    width: min(calc((100% - var(--outer-padding)) * 0.8), calc(var(--page-container) * 0.8));
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(var(--purple-rgb), var(--a-l)) 0%, rgba(var(--purple-rgb), var(--a-m)) 20%, rgba(var(--purple-rgb), var(--a-s)) 40%, rgba(var(--purple-rgb), var(--a-xs)) 80%, transparent 100%);
    filter: blur(calc(var(--section-divider) * 0.1));
    opacity: 0.48;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
    }
}
