:root {
    --white: #ffffff;
    --black: #010101;
    --purple-800: #170b3b;
    --purple-600: #341948;
    --purple-300: #9388a2;
    --grey-100: #fafafa;
    --blue-700: #092d74;
    --color-brand-900: var(--purple-800);
    --color-brand-700: var(--purple-600);
    --color-brand-300: var(--purple-300);
    --color-surface-page: var(--grey-100);
    --color-surface-card: var(--white);
    --color-text-strong: var(--purple-800);
    --color-text-body: #3f4354;
    --color-border-soft: rgba(23, 11, 59, 0.10);
    --color-border-mid: rgba(23, 11, 59, 0.16);
    --color-accent-blue: var(--blue-700);
    --color-accent-green: #59dd71;
    --site-bg: var(--color-surface-page);
    --site-bg-accent: rgba(147, 136, 162, 0.08);
    --site-bg-emphasis: rgba(52, 25, 72, 0.04);
    --surface-color: var(--color-surface-card);
    --surface-muted: rgba(255, 255, 255, 0.98);
    --surface-strong: rgba(147, 136, 162, 0.06);
    --surface-accent: rgba(147, 136, 162, 0.08);
    --text-color: var(--black);
    --text-strong: var(--color-text-strong);
    --text-muted: var(--color-text-body);
    --text-subtle: #625c73;
    --border-color: var(--color-border-soft);
    --border-strong: var(--color-border-mid);
    --border-accent: rgba(23, 11, 59, 0.12);
    --accent-color: var(--color-brand-700);
    --accent-strong: #261238;
    --accent-soft: rgba(52, 25, 72, 0.06);
    --accent-highlight: #4d2663;
    --accent-ink: var(--color-brand-900);
    --shadow-soft: 0 18px 40px rgba(23, 11, 59, 0.04);
    --shadow-card: 0 18px 42px rgba(23, 11, 59, 0.06);
    --shadow-hover: 0 22px 52px rgba(23, 11, 59, 0.1);
    --radius-sm: 1rem;
    --radius-md: 1.5rem;
    --radius-lg: 2rem;
    --panel-padding: clamp(1rem, 1.45vw, 1.4rem);
    --panel-padding-lg: clamp(1.15rem, 1.8vw, 1.65rem);
    --panel-radius: var(--radius-md);
    --panel-radius-lg: var(--radius-lg);
    --panel-border: 1px solid var(--border-color);
    --panel-border-subtle: 1px solid rgba(23, 11, 59, 0.06);
    --panel-divider-color: rgba(23, 11, 59, 0.08);
    --panel-surface: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 0.96) 100%);
    --panel-surface-muted: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 250, 250, 0.98) 72%, rgba(147, 136, 162, 0.05) 100%);
    --panel-surface-soft: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.96) 100%);
    --panel-highlight: linear-gradient(90deg, rgba(52, 25, 72, 0.94) 0%, rgba(147, 136, 162, 0.32) 48%, rgba(147, 136, 162, 0) 100%);
    --panel-inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    --content-width: min(1160px, calc(100% - clamp(1.5rem, 4vw, 3rem)));
    --content-width-detail: min(1240px, calc(100% - clamp(1.5rem, 4vw, 3.5rem)));
    --content-width-legal: min(1180px, calc(100% - clamp(1.5rem, 4vw, 3.5rem)));
    --section-space: clamp(3rem, 5vw, 4.5rem);
    --section-space-tight: clamp(2.45rem, 4vw, 3.35rem);
    --section-space-intro-bottom: clamp(1.45rem, 2.4vw, 2rem);
}

html {
    box-sizing: border-box;
    font-size: 16px;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at top left, rgba(147, 136, 162, 0.08), transparent 24%),
        radial-gradient(circle at top right, rgba(52, 25, 72, 0.03), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, var(--site-bg) 22%, #ffffff 100%);
    color: var(--text-color);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
}

main {
    display: block;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: rgba(52, 25, 72, 0.18);
}

a {
    color: var(--accent-color);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    color: var(--accent-strong);
}

a:not([class]) {
    text-decoration: underline;
    text-decoration-color: rgba(52, 25, 72, 0.22);
}

button,
input,
textarea {
    font: inherit;
}

button,
input,
textarea,
select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--text-strong);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.95rem, 2.8vw, 2.75rem);
}

h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
}

h3 {
    margin-bottom: 0.55rem;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
}

h4 {
    margin-bottom: 0.65rem;
    font-size: 1rem;
}

p,
li {
    color: var(--text-muted);
}

p {
    margin-bottom: 0;
    max-width: 68ch;
    font-size: 1rem;
}

strong {
    color: var(--text-strong);
}

ul,
ol {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

li + li {
    margin-top: 0.55rem;
}

:focus-visible {
    outline: 3px solid rgba(52, 25, 72, 0.24);
    outline-offset: 3px;
}

.site-container {
    width: var(--content-width);
    margin: 0 auto;
}

.site-container--detail-wide {
    width: var(--content-width-detail);
}

.site-container--legal-wide {
    width: var(--content-width-legal);
}

.site-section {
    position: relative;
    padding: var(--section-space) 0;
}

.site-section--intro {
    padding: var(--section-space-tight) 0 var(--section-space-intro-bottom);
}

.site-section--hero {
    padding: clamp(2.2rem, 3.6vw, 3.05rem) 0 clamp(1.85rem, 3vw, 2.45rem);
}

.site-section--tone-soft::before,
.site-section--tone-emphasis::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-top: 1px solid rgba(23, 11, 59, 0.08);
    border-bottom: 1px solid rgba(23, 11, 59, 0.06);
}

.site-section--tone-soft::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(147, 136, 162, 0.05) 100%);
}

.site-section--tone-emphasis::before {
    background:
        radial-gradient(circle at 8% 18%, rgba(52, 25, 72, 0.05) 0%, rgba(52, 25, 72, 0) 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(147, 136, 162, 0.06) 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    color: var(--accent-color);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow::before {
    content: "";
    width: 1.25rem;
    height: 1px;
    background: rgba(52, 25, 72, 0.5);
    border-radius: 999px;
}

.page-marker {
    padding: clamp(1.5rem, 2vw, 2rem);
    border: var(--panel-border);
    border-radius: var(--panel-radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

.page-marker--error {
    border-color: #e5c7c7;
}

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.1rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid rgba(23, 11, 59, 0.08);
    border-radius: 999px;
    background: linear-gradient(180deg, #422055 0%, var(--color-brand-700) 60%, #261238 100%);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.015em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(23, 11, 59, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-button:hover {
    color: var(--white);
    background: linear-gradient(180deg, #3b1d4d 0%, #2f1641 56%, #1f0f2d 100%);
    box-shadow: 0 18px 34px rgba(23, 11, 59, 0.2);
    transform: translateY(-2px);
}

.site-button--secondary {
    border-color: var(--color-border-mid);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-brand-700);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.site-button--secondary:hover {
    background: rgba(147, 136, 162, 0.08);
    color: var(--color-brand-900);
    border-color: rgba(23, 11, 59, 0.2);
    box-shadow: 0 10px 24px rgba(23, 11, 59, 0.08);
}

.validation-summary,
.field-validation-error {
    color: #a42a2a;
}

.validation-summary {
    padding: 1rem 1.1rem;
    border: 1px solid #efc9c9;
    border-radius: var(--radius-sm);
    background: #fff8f8;
}

.field-validation-valid {
    display: none;
}

@media (max-width: 640px) {
    body {
        line-height: 1.68;
    }

    .site-section {
        padding: 2.6rem 0;
    }

    .site-section--intro {
        padding: 2.55rem 0 1.45rem;
    }

    h1 {
        margin-bottom: 1rem;
    }

    h2 {
        margin-bottom: 0.8rem;
    }

    .site-button {
        width: 100%;
    }
}
