/* PayzMoon home page ("Ledger" design). Plain CSS, no build step. */

:root {
    --ground: #F3F5F4;
    --surface: #FFFFFF;
    --ink: #0C1512;
    --muted: #46524D;
    --line: #D5DBD8;
    --line-soft: #E6EAE8;
    --accent: #0B6B4F;
    --accent-hover: #095A42;
    --accent-tint: #E3F1EC;
    --on-dark: #F3F5F4;
    --on-dark-muted: #A9B5B0;
    --dark-line: #2B3833;
    --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --radius: 4px;
    --wrap: 1240px;
    --gutter: 32px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 72px; }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.skip-link {
    position: absolute; left: 16px; top: -64px; z-index: 100;
    background: var(--ink); color: var(--on-dark);
    padding: 12px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }

.h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; max-width: 720px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 24px;
    border: 1px solid transparent; border-radius: var(--radius);
    font-weight: 600; text-decoration: none; cursor: pointer;
    transition: transform 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn svg { transition: transform 160ms var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--on-dark); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #FFFFFF; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.announce { background: var(--ink); color: var(--on-dark); font-size: 15px; text-align: center; }
.announce .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.announce strong { font-weight: 700; color: #F5C76B; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid var(--line); }
.site-header__bar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) {
    position: relative; padding: 12px 0; text-decoration: none; white-space: nowrap;
}
.site-nav a:not(.btn)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform 220ms var(--ease);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav a:not(.btn):hover { color: var(--accent); }
.menu-toggle {
    display: none; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 1px solid var(--ink); border-radius: var(--radius); cursor: pointer;
}

@media (max-width: 1100px) {
    .menu-toggle { display: inline-flex; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px var(--gutter) 24px; background: var(--ground); border-bottom: 1px solid var(--line);
        font-size: 18px;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .site-nav a:not(.btn)::after { display: none; }
    .site-nav .btn { margin-top: 20px; }
}

/* Hero */
.hero { padding-top: 64px; padding-bottom: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 600; }
.hero__lead { font-size: 20px; color: var(--muted); max-width: 520px; }
.hero__notice { display: flex; gap: 14px; align-items: flex-start; max-width: 560px; padding: 18px 20px; background: var(--accent-tint); border: 1px solid var(--accent); border-left-width: 5px; border-radius: var(--radius); color: var(--ink); }
.hero__notice svg { flex: none; margin-top: 2px; color: var(--accent); }
.hero__notice p { margin: 0; font-size: 17px; line-height: 1.45; }
.hero__notice strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 2px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--line); }

.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 48px -32px rgba(12, 21, 18, 0.35); overflow: hidden; }
.ledger__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.ledger__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ledger__stats > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.ledger__stats > div:last-child { border-right: 0; }
.ledger__stats dt { font-size: 12px; color: var(--muted); }
.ledger__stats dd { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.ledger__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.ledger__amount { font-family: var(--mono); text-align: right; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 3px; color: var(--accent); background: var(--accent-tint); white-space: nowrap; }
.tag--check { color: #5B4A0B; background: #F5EDCF; }
.ledger__payout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 20px; background: var(--ink); color: var(--on-dark); }
.ledger__payout small { display: block; font-size: 12px; color: var(--on-dark-muted); }
.ledger__payout strong { font-family: var(--mono); font-size: 22px; font-weight: 400; letter-spacing: -0.03em; }
.ledger__sent { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #7FE0BF; }

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.band { border-top: 1px solid var(--line); }
.band--surface { background: var(--surface); border-bottom: 1px solid var(--line); }
.band--dark { background: var(--ink); color: var(--on-dark); border: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; }
.split__intro { display: flex; flex-direction: column; gap: 16px; }
.split__intro p { color: var(--muted); max-width: 400px; }

.industry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--ink); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.industry-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }

/* Moon phases: application to payout */
.phases { margin-top: 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 0; }
.phase { display: flex; flex-direction: column; gap: 20px; }
.phase__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 0 0; border-top: 1px solid var(--ink); }
.phase:last-child .phase__body { border-top-color: var(--accent); padding-right: 0; }
.phase h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 600; }
.phase p { font-size: 15px; color: var(--muted); }
.moon { width: 72px; height: 72px; }
.moon__base { fill: var(--ground); }
.moon__lit { fill: var(--accent); }
.moon__shade { fill: var(--ground); }
.moon__ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }

/* The one scroll moment: the moons light up in order when the section arrives. */
.js .phases .moon__lit { opacity: 0; transition: opacity 500ms var(--ease); }
.js .phases.is-lit .moon__lit { opacity: 1; }
.js .phases .phase:nth-child(2) .moon__lit { transition-delay: 150ms; }
.js .phases .phase:nth-child(3) .moon__lit { transition-delay: 300ms; }
.js .phases .phase:nth-child(4) .moon__lit { transition-delay: 450ms; }
.js .phases .phase:nth-child(5) .moon__lit { transition-delay: 600ms; }

/* Features */
.feature-list { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--ink); }
.feature-list > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-list dt { font-weight: 600; }
.feature-list dd { color: var(--muted); }

/* Pricing */
.pricing__head { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-end; justify-content: space-between; }
.pricing__head > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pricing__head p { color: var(--on-dark-muted); max-width: 520px; }
.stats { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--dark-line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stats dd { font-family: var(--mono); font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -0.04em; }
.stats dt { color: var(--on-dark-muted); }
.stats > div { display: flex; flex-direction: column-reverse; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 22px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
    transition: color 160ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary svg { flex: none; transition: transform 220ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 720px; }
.faq__more { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; color: var(--muted); }

/* Referral */
.refer { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px 64px; align-items: end; }
.refer__copy { display: flex; flex-direction: column; gap: 20px; }
.refer__copy p { color: var(--muted); max-width: 560px; }
.refer__facts { border-top: 1px solid var(--ink); }
.refer__facts li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.refer__facts svg { color: var(--accent); flex: none; }

/* Close */
.close { padding-top: 120px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.close h2 { flex: 1 1 520px; min-width: 0; font-size: clamp(40px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }

/* Line-art street along the foot of the hero. Drawn on the page ground, edge to edge;
   its kerb line is the divider to the next section. */
.hero-scene { position: relative; margin-bottom: -1px; color: var(--ink); overflow: hidden; }
.hero-scene svg { display: block; width: 100%; height: auto; }
.hero-scene__hint { position: absolute; top: 0; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); pointer-events: none; }
@media (min-width: 1001px) {
    /* The sky slides up behind the hero's bottom edge, so the street is in the first screen. */
    .hero { position: relative; z-index: 1; padding-top: 48px; }
    .hero-scene { margin-top: -96px; }
    .hero-scene__hint { display: none; }
}

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; }
.site-footer__grid { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand p { color: var(--muted); max-width: 360px; }
.site-footer h3 { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--muted); padding-bottom: 8px; }
.site-footer li a { display: inline-block; padding: 6px 0; text-decoration: none; transition: color 160ms var(--ease); }
.site-footer li a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__base { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; color: var(--muted); font-size: 14px; }

/* Hero entrance, once on load */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__copy > *, .ledger { animation: rise 700ms var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 80ms; }
.hero__copy > :nth-child(3) { animation-delay: 160ms; }
.hero__copy > :nth-child(4) { animation-delay: 240ms; }
.hero__copy > :nth-child(5) { animation-delay: 320ms; }
.ledger { animation-delay: 200ms; }

@media (max-width: 1000px) {
    .hero { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 32px; gap: 48px; }
    .split, .refer { grid-template-columns: minmax(0, 1fr); }
    .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .feature-list { grid-template-columns: minmax(0, 1fr); }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    :root { --gutter: 20px; }
    .section { padding-top: 64px; padding-bottom: 64px; }
    .close { padding-top: 80px; padding-bottom: 80px; }
    .hero__lead { font-size: 18px; }
    .btn-row .btn { width: 100%; }
    .industry-list { grid-template-columns: minmax(0, 1fr); font-size: 18px; }
    .phases { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .phase { flex-direction: row; align-items: flex-start; }
    .phase .moon { width: 56px; height: 56px; flex: none; }
    .phase__body { flex: 1; padding: 0 0 0 0; border-top: 0; }
    .feature-list > div { grid-template-columns: minmax(0, 1fr); }
    .ledger__stats dd { font-size: 17px; }
    .ledger__stats > div { padding: 14px 12px; }
    .ledger__row { padding: 12px; font-size: 13px; }
    .faq summary { font-size: 17px; }
    .hero-scene__hint { font-size: 11px; }
    .faq details p { padding-right: 0; }
    .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .phases .moon__lit { opacity: 1; }
}
