@import url("/assets/css/tokens.css");

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

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink-900);
    background: var(--paper-50);
    font-family: var(--font-sans);
    line-height: 1.6;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(circle at 15% 0%, rgb(75 138 124 / 9%), transparent 28%),
        radial-gradient(circle at 90% 8%, rgb(213 154 85 / 10%), transparent 25%);
    content: "";
    pointer-events: none;
}

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

button,
input,
select {
    font: inherit;
}

button,
label,
select {
    -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--white);
    background: var(--ink-950);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgb(23 32 51 / 8%);
    background: rgb(255 253 248 / 88%);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    width: min(calc(100% - 40px), var(--content));
    min-height: 68px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    border: 1px solid rgb(37 90 80 / 28%);
    border-radius: 11px;
    color: var(--paper-50);
    background: var(--jade-700);
    font-family: var(--font-serif);
    font-size: 18px;
    place-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-link {
    padding: 8px 11px;
    border-radius: 999px;
    color: var(--ink-600);
    font-size: 14px;
    font-weight: 650;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--jade-700);
    background: var(--jade-100);
}

.wallet-chip {
    display: inline-flex;
    min-width: 70px;
    padding: 8px 12px;
    border: 1px solid var(--paper-200);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: var(--ink-800);
    background: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.container {
    width: min(calc(100% - 40px), var(--content));
    margin-inline: auto;
}

.narrow {
    width: min(calc(100% - 40px), 760px);
    margin-inline: auto;
}

.page-main {
    min-height: calc(100vh - 68px);
    padding: 48px 0 88px;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 7px 11px;
    border: 1px solid rgb(37 90 80 / 15%);
    border-radius: 999px;
    align-items: center;
    gap: 7px;
    color: var(--jade-700);
    background: rgb(220 235 229 / 65%);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.eyebrow::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--jade-500);
    content: "";
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.24;
    letter-spacing: -0.045em;
}

h1 {
    font-size: clamp(38px, 6vw, 68px);
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
}

h3 {
    font-size: 20px;
}

.muted {
    color: var(--ink-600);
}

.fine-print {
    color: var(--ink-500);
    font-size: 13px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: wait;
    opacity: 0.58;
    transform: none;
}

.button-primary {
    color: var(--white);
    background: var(--jade-700);
    box-shadow: 0 10px 24px rgb(37 90 80 / 22%);
}

.button-primary:hover {
    background: #1d4d44;
}

.button-secondary {
    border: 1px solid var(--paper-200);
    color: var(--ink-800);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.button-block {
    width: 100%;
}

.card {
    border: 1px solid rgb(23 32 51 / 9%);
    border-radius: var(--radius-md);
    background: rgb(255 255 255 / 88%);
    box-shadow: var(--shadow-sm);
}

.panel {
    padding: clamp(22px, 4vw, 36px);
}

.grid {
    display: grid;
    gap: 18px;
}

.stack {
    display: grid;
    gap: 18px;
}

.section-header {
    max-width: 680px;
    margin-bottom: 28px;
}

.section-header p {
    margin-bottom: 0;
    color: var(--ink-600);
    font-size: 17px;
}

.field {
    display: grid;
    gap: 9px;
}

.field-label,
.legend {
    color: var(--ink-800);
    font-size: 14px;
    font-weight: 800;
}

.field-hint {
    color: var(--ink-500);
    font-size: 12px;
}

.input,
.select {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid #d9d5cc;
    border-radius: 12px;
    outline: none;
    color: var(--ink-900);
    background: var(--white);
    transition: border 150ms ease, box-shadow 150ms ease;
}

.input:focus,
.select:focus {
    border-color: var(--jade-500);
    box-shadow: 0 0 0 4px rgb(75 138 124 / 13%);
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.choice {
    position: relative;
}

.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice span {
    display: flex;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #ded9cf;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink-600);
    background: var(--white);
    font-weight: 750;
}

.choice input:checked + span {
    border-color: var(--jade-600);
    color: var(--jade-700);
    background: var(--jade-100);
    box-shadow: inset 0 0 0 1px var(--jade-600);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-600);
    font-size: 14px;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--jade-700);
}

.notice {
    padding: 15px 17px;
    border: 1px solid var(--gold-100);
    border-radius: 12px;
    color: var(--gold-700);
    background: rgb(243 227 202 / 48%);
    font-size: 14px;
}

.error-box {
    display: none;
    padding: 14px 16px;
    border: 1px solid rgb(183 73 61 / 22%);
    border-radius: 12px;
    color: var(--red-600);
    background: var(--red-100);
    font-size: 14px;
}

.error-box.is-visible {
    display: block;
}

.skeleton {
    position: relative;
    overflow: hidden;
    min-height: 18px;
    border-radius: 8px;
    background: var(--paper-200);
}

.skeleton::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 70%), transparent);
    content: "";
    animation: shimmer 1.2s infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

.site-footer {
    padding: 36px 0 44px;
    border-top: 1px solid rgb(23 32 51 / 8%);
    color: var(--ink-500);
    background: var(--paper-100);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 620px;
    margin-bottom: 0;
}

.footer-business {
    align-items: flex-start;
}

.footer-business p + p {
    margin-top: 7px;
}

.business-meta,
.footer-disclaimer {
    line-height: 1.7;
}

.footer-disclaimer {
    max-width: 700px;
}

.footer-legal {
    flex: 0 0 auto;
    text-align: right;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    font-weight: 700;
}

.footer-links a {
    color: var(--ink-700);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--jade-700);
    text-decoration: underline;
}

.legal-page {
    padding-bottom: 80px;
}

.legal-header {
    padding: 32px 0 24px;
}

.legal-header h1 {
    margin: 8px 0 12px;
}

.draft-notice {
    margin: 12px 0 32px;
    padding: 16px 18px;
    border: 1px solid rgb(162 111 28 / 24%);
    border-radius: 14px;
    color: var(--ink-700);
    background: #fff8e8;
    line-height: 1.65;
}

.legal-section {
    padding: 26px 0;
    border-top: 1px solid rgb(23 32 51 / 9%);
}

.legal-section h2 {
    margin: 0 0 12px;
    font-size: clamp(20px, 2vw, 25px);
}

.legal-section p,
.legal-section li {
    color: var(--ink-600);
    line-height: 1.78;
}

.legal-section ul,
.legal-section ol {
    padding-left: 22px;
}

@media (max-width: 720px) {
    .nav {
        width: min(calc(100% - 28px), var(--content));
        min-height: 62px;
    }

    .nav-link:not(.nav-link-primary) {
        display: none;
    }

    .container,
    .narrow {
        width: min(calc(100% - 28px), var(--content));
    }

    .page-main {
        padding-top: 32px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-legal {
        text-align: left;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .button {
        min-height: 52px;
    }
}

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