/* SantaSwap website styles. Tokens match the app; see DESIGN.md in the project root.
   Assets are cached immutably for a year: rename this file when you change it. */

:root {
    --ground: #052628;
    --surface: #0B3A3C;
    --surface-raised: #12494B;
    --hairline: rgba(143, 224, 222, 0.18);
    --text: #EAFBFA;
    --text-secondary: #B9E6E4;
    --text-muted: #8FCBC9;
    --aqua: #4FD9D6;
    --aqua-hover: #8FEDEB;
    --amber: #F5B85B;
    --max: 1120px;
    --gutter: 20px;
    --section: 96px;
}

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

body {
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--aqua);
}

a:hover {
    color: var(--aqua-hover);
}

img {
    max-width: 100%;
}

h1, h2, h3 {
    margin: 0;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

/* Header */
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-block: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}

.brand:hover {
    color: var(--text);
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.site-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    font-size: 16px;
    font-weight: 700;
}

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--aqua);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--ground);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
}

.btn-primary:hover {
    color: var(--ground);
    filter: brightness(1.06);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--surface-raised);
    color: var(--aqua);
    font-weight: 700;
    text-decoration: none;
}

/* Hero */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    padding-block: 64px var(--section);
}

.hero-copy {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--aqua);
}

.lead {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 520px;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Phone mockup */
.phone-wrap {
    flex: 0 1 340px;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.phone {
    width: 300px;
    max-width: 100%;
    border-radius: 44px;
    background: var(--surface);
    padding: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.phone-screen {
    border-radius: 34px;
    background: var(--ground);
    padding: 44px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-title {
    font-size: 13px;
    font-weight: 800;
}

.phone-hint {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.35;
}

.card {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--surface);
    font-size: 16px;
    font-weight: 700;
}

.card .avatar {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.card.revealed {
    height: 70px;
    background: var(--surface-raised);
    outline: 2px solid var(--amber);
    outline-offset: -2px;
}

.card.revealed .avatar {
    background: var(--amber);
    color: var(--ground);
}

.card .recipient {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--amber);
}

.card .recipient small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 6px;
}

/* Sections */
.band {
    background: var(--surface);
}

.section {
    padding-block: var(--section);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
}

.section-head h2,
.closing h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.section-head p {
    font-size: 18px;
    color: var(--text-secondary);
}

.grid-3,
.grid-2 {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step {
    background: var(--ground);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
}

.step-number.festive {
    background: var(--amber);
    color: var(--ground);
}

.step h3 {
    font-size: 22px;
}

.step p,
.panel p,
.panel li {
    font-size: 16px;
    color: var(--text-secondary);
}

.panel {
    background: var(--surface);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel h2 {
    font-size: 28px;
}

.checks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checks li {
    display: flex;
    gap: 12px;
}

.checks svg {
    flex: none;
    margin-top: 2px;
    width: 22px;
    height: 22px;
    stroke: var(--aqua);
}

.panel-link {
    font-weight: 800;
    text-decoration: none;
}

.closing {
    padding-block: 0 var(--section);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

/* Text pages (privacy, support) */
.page {
    max-width: 820px;
    padding-block: 48px var(--section);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.page-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-head h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
}

.page-head p {
    font-size: 19px;
    color: var(--text-secondary);
}

.last-updated {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.prose {
    background: var(--surface);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.prose section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prose h2 {
    font-size: 28px;
}

.prose h3 {
    font-size: 21px;
}

.prose p,
.prose li {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.prose ul,
.prose ol {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prose strong {
    color: var(--text);
}

.prose .tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 16px;
}

.prose .tile {
    background: var(--ground);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note {
    font-size: 14px;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--hairline);
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-block: 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.site-footer nav {
    display: flex;
    gap: 24px;
}

.site-footer nav a {
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer nav a:hover {
    color: var(--aqua);
}

/* Phone */
@media (max-width: 760px) {
    :root {
        --section: 64px;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .panel,
    .prose {
        padding: 28px 24px;
    }

    .step {
        padding: 28px 24px;
    }

    .site-nav {
        gap: 20px;
    }
}
