/* Amen Pact website: the app's "Pax" design system in plain CSS.
   Values mirror AmenPact/DesignSystem/AmenTheme.swift (AmenColor, AmenTypeScale, AmenSpace,
   AmenRadius, AmenStroke, AmenShadow), AmenColors.xcassets and AmenComponents.swift.
   Fonts are self-hosted (SIL OFL 1.1, licences in /assets/fonts/). No third-party requests. */

@font-face { font-family: "Grandstander AP"; src: url("/assets/fonts/GrandstanderAP-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Grandstander AP"; src: url("/assets/fonts/GrandstanderAP-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/Nunito-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
    color-scheme: light dark;
    /* AmenColor (light) */
    --background: #FFFFFF;
    --background-grouped: #F5F0F4;
    --wash-top: #EFE7ED;          /* lavender */
    --wash-cool: #D4DCEE;         /* periwinkle */
    --wash-warm: #EFE9E2;         /* peach */
    --surface: #FFFFFF;
    --surface-sunken: #EDF5FA;
    --surface-raised: #FFFFFF;
    --ink: #533849;
    --ink-deep: #3A2436;
    --line-soft: #E6DDE4;
    --primary: #82B6E2;
    --primary-shade: #6E9FCF;
    --on-primary: #3A2436;
    --accent: #F7D287;
    --accent-shade: #E3B670;
    --accent-glow: #F9D380;
    --on-accent: #3A2436;
    --accent-text: #7A4F14;
    --text-primary: #3A2436;
    --text-secondary: #6B5464;
    --text-tertiary: #7A6674;
    --text-link: #356694;
    --warning-fill: #FDF0E3;      /* AmenChip .warning */
    --warning-line: #E7C29D;
    --warning-text: #8F5313;
    --glint: #FFFAF0;             /* PaxPalette.paxGlint */
    --cel-drop: rgba(58, 36, 54, 0.12);   /* AmenShadow.celDrop: #3A2436 @ 12%, 0 4 0 */

    /* AmenTypeScale */
    --font-display: "Grandstander AP", "Nunito", ui-rounded, system-ui, sans-serif;
    --font-text: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;

    /* AmenRadius */
    --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-button: 20px; --r-card: 24px; --r-hero: 32px;
    /* AmenSpace */
    --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-lg: 16px; --s-xl: 20px; --s-xxl: 24px; --s-3xl: 32px; --s-huge: 40px; --s-giant: 48px; --s-hero: 64px;
    --screen-margin: 20px; --card-padding: 20px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #1C1420;
        --background-grouped: #150F18;
        --wash-top: #231A29;
        --wash-cool: #1B1A2C;
        --wash-warm: #251B22;
        --surface: #2A1F2B;
        --surface-sunken: #241A26;
        --surface-raised: #3A2436;
        --ink: #957B90;
        --ink-deep: #120B12;
        --line-soft: #3A2C3A;
        --accent-text: #F7D287;
        --text-primary: #FCFBFC;
        --text-secondary: #C8BCC6;
        --text-tertiary: #A898A5;
        --text-link: #9CC6EA;
        --warning-fill: #3A2A1F;
        --warning-line: #8F6A44;
        --warning-text: #F4C69B;
        --cel-drop: rgba(0, 0, 0, 0.35);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-text);
    font-size: 17px;                 /* AmenTypeScale.body: Nunito Regular 17 / 24 */
    line-height: 24px;
    color: var(--text-primary);
    background-color: var(--wash-top);
    /* AmenWashBackground: lavender, periwinkle from the top right, peach from the bottom left */
    background-image:
        radial-gradient(ellipse 80% 60% at 100% 0%, var(--wash-cool), transparent 70%),
        radial-gradient(ellipse 80% 60% at 0% 100%, var(--wash-warm), transparent 70%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100svh;
    -webkit-font-smoothing: antialiased;
}
body.grouped { background: var(--background-grouped); }   /* Settings / About canvas */

img { display: block; max-width: 100%; }
a { color: var(--text-link); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { width: 100%; max-width: 560px; margin: 0 auto; padding: var(--s-3xl) var(--screen-margin) var(--s-huge); }
.page.wide { max-width: 1040px; }

/* ---- Type ---- */
.display { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 40px; }   /* display */
.title1  { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 34px; }
.title2  { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 28px; }
.title3  { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; }
.headline { font-family: var(--font-text); font-weight: 700; font-size: 17px; line-height: 22px; }
.subhead { font-size: 15px; line-height: 21px; }
.footnote { font-size: 13px; line-height: 18px; }
.caption { font-weight: 700; font-size: 12px; line-height: 16px; }
.secondary { color: var(--text-secondary); }
.tertiary { color: var(--text-tertiary); }
.center { text-align: center; }

/* ---- Pax + wordmark lockup (About screen: Pax 150pt tall, wordmark 180pt wide, -10pt overlap) ---- */
.lockup { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.lockup .pax { height: 150px; width: auto; }
.lockup .wordmark { width: 180px; height: auto; margin-top: -10px; }
.lockup.large .pax { height: 190px; }
.lockup.large .wordmark { width: 228px; margin-top: -12px; }
.lockup.small .pax { height: 72px; }
.lockup.small .wordmark { width: 120px; margin-top: -6px; }
.hero-glow { position: relative; }
.hero-glow::before {               /* HomeBackground gold glow behind the hero (#F9D380 @ 38%) */
    content: ""; position: absolute; left: 50%; top: 36%; width: 360px; height: 360px; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(249, 211, 128, 0.38), rgba(249, 211, 128, 0) 70%);
    pointer-events: none; z-index: -1;
}
@media (prefers-color-scheme: dark) { .hero-glow::before { background: radial-gradient(circle, rgba(249, 211, 128, 0.10), rgba(249, 211, 128, 0) 70%); } }

/* "Made with <heart> by Eloise" (About): subhead, secondary; heart = cap height, tip on the baseline */
.made-with { font-size: 15px; line-height: 21px; color: var(--text-secondary); }
.made-with .heart { display: inline-block; height: 0.78em; width: auto; vertical-align: -0.06em; margin: 0 0.12em; }

/* ---- Card: AmenCardModifier .borderless (white, radius 24, padding 20, hard 4pt cel drop) ---- */
.card {
    background: var(--surface);
    border-radius: var(--r-card);
    padding: var(--card-padding);
    box-shadow: 0 4px 0 var(--cel-drop);
}
.card + .card { margin-top: var(--s-xl); }

/* AmenFeatureRow: 34pt icon, headline title, subhead detail */
.feature { display: flex; gap: var(--s-md); align-items: flex-start; text-align: left; }
.feature > picture { flex: none; display: block; }
.feature .icon { width: 38px; height: 38px; }
.feature .title { font-weight: 700; font-size: 17px; line-height: 22px; color: var(--text-primary); }
.feature .detail { font-size: 15px; line-height: 21px; color: var(--text-secondary); margin-top: 2px; }
.features { display: grid; gap: var(--s-xl); }
.features .card + .card { margin-top: 0; }

/* ---- Buttons: AmenButtonStyle. 56pt, radius 20, 2pt ink outline, 4pt solid plum lip,
        cel band low-right (base shifted up-left over the shade), Grandstander Bold 18 / +0.4 ---- */
.btn {
    --fill: var(--accent); --shade: var(--accent-shade); --label: var(--on-accent); --border: var(--ink);
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 56px; padding: 0 var(--s-xxl);
    font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.4px; line-height: 1.1;
    color: var(--label); text-decoration: none; text-align: center;
    background: var(--fill);
    border: 2px solid var(--border); border-radius: var(--r-button);
    box-shadow: inset -2px -4px 0 var(--shade), 0 4px 0 var(--ink-deep);
    margin-bottom: 4px;              /* room for the lip */
    cursor: pointer;
}
.btn.halo { box-shadow: inset -2px -4px 0 var(--shade), 0 4px 0 var(--ink-deep), 0 0 18px rgba(249, 211, 128, 0.6); }
.btn.halo::before {                  /* the cream glint dash from Pax's halo */
    content: ""; position: absolute; left: 14px; top: 5px; width: 16px; height: 5px; border-radius: 3px;
    background: var(--glint); transform: rotate(-8deg);
}
.btn.primary { --fill: var(--primary); --shade: var(--primary-shade); --label: var(--on-primary); }
.btn.secondary { --fill: var(--surface); --shade: var(--surface-sunken); --label: var(--text-primary); }
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: translateY(3px); box-shadow: inset -1px -2px 0 var(--shade), 0 1px 0 var(--ink-deep); }
.btn.inline { display: inline-flex; width: auto; }
/* Not available yet: muted, flat, inert (use with aria-disabled="true" and no href) */
.btn.is-disabled {
    --fill: var(--surface-sunken); --label: var(--text-tertiary); --border: var(--line-soft);
    box-shadow: none; cursor: default; pointer-events: none; user-select: none;
}
.btn.is-disabled:hover, .btn.is-disabled:active { filter: none; transform: none; box-shadow: none; }
.btn-note { margin-top: var(--s-xs); text-align: center; }
.btn + .btn { margin-top: var(--s-md); }
@media (prefers-reduced-motion: no-preference) {
    .btn { transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s; }
}

/* ---- Chip: AmenChip (Nunito Bold 13, 28pt capsule, 1.5pt ink outline) ---- */
.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px;
    font-family: var(--font-text); font-weight: 700; font-size: 13px; line-height: 1;
    color: var(--text-primary); text-decoration: none;
    background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px;
}
.chip.gold { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 12px rgba(249, 211, 128, 0.7); }
.chip.warning { background: var(--warning-fill); border-color: var(--warning-line); color: var(--warning-text); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-sm); }

/* ---- Footer ---- */
.site-footer { margin-top: var(--s-giant); text-align: center; display: grid; gap: var(--s-sm); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-xs) var(--s-lg); font-weight: 700; font-size: 15px; }
.site-footer nav a { text-decoration: none; padding: 6px 2px; overflow-wrap: anywhere; min-width: 0; }
.site-footer, .site-footer nav { max-width: 100%; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footnote { color: var(--text-tertiary); }

@media (min-width: 720px) {
    .page { padding-top: var(--s-hero); }
    .display { font-size: 44px; line-height: 50px; }
}

/* ---- Forms: waitlist signup (homepage) ---- */
[hidden] { display: none !important; }
.signup { text-align: center; }
.signup-lead { font-weight: 700; font-size: 17px; line-height: 24px; color: var(--text-primary); margin-bottom: var(--s-lg); text-wrap: balance; }
.btn:disabled { cursor: default; filter: saturate(0.6) opacity(0.7); }
.btn:disabled:hover { filter: saturate(0.6) opacity(0.7); }
.btn:disabled:active { transform: none; box-shadow: inset -2px -4px 0 var(--shade), 0 4px 0 var(--ink-deep); }

.field { display: grid; gap: 6px; text-align: left; margin-bottom: var(--s-lg); }
.field label { font-weight: 700; font-size: 15px; line-height: 21px; }
.input {
    width: 100%; min-height: 52px; padding: 0 var(--s-lg);
    font: inherit; color: var(--text-primary);
    background: var(--surface-sunken); border: 2px solid var(--ink); border-radius: var(--r-md);
    -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--text-tertiary); opacity: 1; }
.input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--warning-text); }
.field-error, .form-error { font-weight: 700; font-size: 15px; line-height: 21px; color: var(--warning-text); }
.form-error { text-align: left; background: var(--warning-fill); border: 1.5px solid var(--warning-line); border-radius: var(--r-sm); padding: var(--s-md) var(--s-lg); margin-bottom: var(--s-lg); }
.form-error a { color: inherit; }
.form-note { margin-top: var(--s-md); }
button.btn[aria-disabled="true"] { cursor: progress; filter: saturate(0.85); }   /* signup submit while sending */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.signup-success { text-align: center; display: grid; justify-items: center; gap: var(--s-xs); }
.signup-success .pax { height: 96px; width: auto; margin-bottom: var(--s-sm); }
.signup-success:focus { outline: none; }
.signup-success:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .signup-success { animation: amen-pop 0.32s ease-out; }
    @keyframes amen-pop { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
}
