/* -------------------------------------------------------------------------
   Design tokens (mirrors the product design system)
   ---------------------------------------------------------------------- */
:root {
    --color-bg: #0a0908;
    --color-elevated: #12100e;
    --color-surface: #181512;
    --color-border: #2c2824;
    --color-fg: #f7f4ef;
    --color-muted: #a39e96;
    --color-muted-dark: #6b6660;
    --color-accent: #d4bc7c;
    --color-accent-soft: rgba(212, 188, 124, 0.14);
    --color-brand: #ebd8a9;
    --color-glow: rgba(212, 188, 124, 0.09);

    --radius-card: 14px;
    --radius-pill: 999px;

    --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;

    --container: 1120px;
    --gutter: clamp(1.25rem, 5vw, 2.5rem);

    --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
    --transition: 150ms ease-out;
}

/* -------------------------------------------------------------------------
   Base / reset
   ---------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle warm glow behind the page — adds depth without imagery */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 100% 70% at 50% -30%, var(--color-glow), transparent 52%),
        radial-gradient(ellipse 60% 45% at 100% 0%, rgba(90, 76, 50, 0.12), transparent 50%);
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.03em;
    margin: 0;
}

/* Accent treatment for every "fit.shoes" mention */
.brand {
    color: var(--color-brand);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Accessible-only helper (visually hidden but read by screen readers) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -------------------------------------------------------------------------
   Layout
   ---------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Keep all content above the background glow */
.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.section {
    padding-block: clamp(3.5rem, 9vw, 7rem);
}

/* -------------------------------------------------------------------------
   Header
   ---------------------------------------------------------------------- */
.site-header__inner {
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: opacity var(--transition);
}

.wordmark__logo {
    display: block;
    width: 48px;
    height: 30px;
    border-radius: 14px;
}

.wordmark:hover {
    opacity: 0.85;
}

/* -------------------------------------------------------------------------
   Hero — vertically centered, communicates the mission immediately
   ---------------------------------------------------------------------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100svh - 5rem);
    text-align: center;
    padding-block: clamp(3rem, 8vw, 5rem);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: rgba(24, 21, 18, 0.85);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

.eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent);
}

.hero__title {
    margin-top: 1.75rem;
    max-width: 16ch;
    font-size: clamp(2.4rem, 7vw, 4.25rem);
    line-height: 1.05;
}

.hero__subtitle {
    margin-top: 1.35rem;
    max-width: 38rem;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--color-muted);
}

/* -------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn--primary {
    margin-top: 2.25rem;
    color: #1a1510;
    background: linear-gradient(160deg, #e5d4a8 0%, #d4bc7c 48%, #b89a5e 100%);
    box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.btn--primary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   Prose / SEO section
   ---------------------------------------------------------------------- */
.section__title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    text-align: center;
}

.prose__body {
    max-width: 44rem;
    margin-inline: auto;
    margin-top: 2.5rem;
    color: var(--color-muted);
    font-size: 1.0625rem;
}

.prose__body p {
    margin: 0 0 1.25rem;
}

.prose__body p:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Waitlist card + form
   ---------------------------------------------------------------------- */
.waitlist-card {
    max-width: 40rem;
    margin-inline: auto;
    padding: clamp(1.75rem, 5vw, 3rem);
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: linear-gradient(160deg, rgba(24, 21, 18, 0.98) 0%, rgba(15, 13, 11, 0.92) 100%);
    box-shadow: var(--shadow-card);
}

.waitlist-card__title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.waitlist-card__text {
    margin: 1rem auto 0;
    max-width: 34rem;
    color: var(--color-muted);
}

.waitlist-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.waitlist-form__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-elevated);
    color: var(--color-fg);
    font: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.waitlist-form__input::placeholder {
    color: var(--color-muted-dark);
}

.waitlist-form__input:focus-visible {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.waitlist-form__submit {
    margin-top: 0;
    flex: 0 0 auto;
}

.waitlist-card__note {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-muted-dark);
}

.form-error {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: #e8b4b0;
}

/* Honeypot — hidden from humans, still in the DOM for bots */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Success confirmation */
.confirmation {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2rem;
    padding: 0.85rem 1.35rem;
    border: 1px solid rgba(92, 184, 148, 0.4);
    border-radius: var(--radius-pill);
    background: rgba(92, 184, 148, 0.1);
}

.confirmation__icon {
    color: #72d4ad;
    flex: 0 0 auto;
}

.confirmation__text {
    margin: 0;
    color: var(--color-fg);
    font-weight: 500;
}

/* -------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding-block: 2.5rem;
    text-align: center;
}

.site-footer__tagline {
    margin: 0 auto;
    max-width: 40rem;
    font-size: 0.875rem;
    color: var(--color-muted);
}

.site-footer__legal {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-muted-dark);
}

/* -------------------------------------------------------------------------
   Responsive — stack the form on small screens
   ---------------------------------------------------------------------- */
@media (max-width: 560px) {
    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-form__input {
        text-align: center;
    }
}

/* -------------------------------------------------------------------------
   Respect reduced-motion preferences
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
