/* Design Squared Solutions — Linear-inspired design system, light mode */

:root {
    /* Background surfaces */
    --bg-page: #f7f8f8;
    --bg-subtle: #f5f6f7;
    --bg-surface: #f3f4f5;
    --bg-card: #ffffff;

    /* Text (inverted from dark-mode hierarchy) */
    --text-primary: #08090a;
    --text-secondary: #3e3e44;
    --text-tertiary: #62666d;
    --text-quaternary: #8a8f98;

    /* Brand — DSQ blue, sourced from the logo */
    --brand-blue: #0370f5;
    --brand-navy: #011f45;

    /* Status */
    --status-emerald: #10b981;
    --status-danger: #dc2626;

    /* Borders */
    --border-subtle: #e6e6e6;
    --border-standard: #d0d6e0;
    --border-solid: #c4cad3;
}

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

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

@supports (font-variation-settings: normal) {
    html {
        font-family: 'Inter var', 'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, 'Segoe UI', Roboto, sans-serif;
    }
}

body {
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    font-feature-settings: "cv01", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ——— Hero ——————————————————————————————— */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem;
    min-height: calc(100vh - 64px);
}

.hero-inner {
    max-width: 720px;
    width: 100%;
}

/* Display headline — 48px desktop, scales up at large viewports, down on mobile */
.brand {
    font-size: 3rem; /* 48px Display */
    font-weight: 510;
    line-height: 1.0;
    letter-spacing: -1.056px;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

@media (min-width: 1024px) {
    .brand {
        font-size: 4rem; /* 64px Display Large */
        letter-spacing: -1.408px;
    }
}

@media (max-width: 600px) {
    .brand {
        font-size: 2.25rem; /* 36px on small phones */
        letter-spacing: -0.72px;
    }
}

.tagline {
    font-size: 1.125rem; /* 18px Body Large */
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.165px;
    color: var(--text-tertiary);
    margin: 0 0 3rem;
    max-width: 56ch;
}

/* ——— Product teaser card ———————————————————— */

.product-teaser {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 3rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.product-teaser h2 {
    font-size: 1.25rem; /* 20px Heading 3 */
    font-weight: 590;
    line-height: 1.33;
    letter-spacing: -0.24px;
    color: var(--text-primary);
    margin: 0.875rem 0 0.625rem;
}

.product-teaser p {
    font-size: 0.9375rem; /* 15px Small */
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.165px;
    color: var(--text-tertiary);
    margin: 0;
}

/* Neutral pill with emerald status dot */
.badge-coming {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px 0 6px;
    height: 22px;
    font-size: 12px;
    font-weight: 510;
    line-height: 1;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
}

.badge-coming::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--status-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ——— Signup ——————————————————————————————— */

.signup h3 {
    font-size: 0.9375rem; /* 15px Small Medium */
    font-weight: 510;
    line-height: 1.6;
    letter-spacing: -0.165px;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.signup-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.signup-form input[type="email"] {
    flex: 1 1 260px;
    background: var(--bg-card);
    border: 1px solid var(--border-standard);
    color: var(--text-primary);
    padding: 12px 14px;
    border-radius: 6px;
    font-family: inherit;
    font-feature-settings: "cv01", "ss03";
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.165px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.signup-form input[type="email"]::placeholder {
    color: var(--text-quaternary);
}

.signup-form input[type="email"]:hover {
    border-color: var(--border-solid);
}

.signup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(3, 112, 245, 0.18);
}

/* Primary brand button */
.signup-form button {
    background: var(--brand-blue);
    color: #ffffff;
    border: 1px solid transparent;
    padding: 8px 16px;
    font-family: inherit;
    font-feature-settings: "cv01", "ss03";
    font-size: 15px;
    font-weight: 510;
    line-height: 1.5;
    letter-spacing: -0.165px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.signup-form button:hover {
    background: var(--brand-navy);
}

.signup-form button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 112, 245, 0.35);
}

.signup-form button:active {
    background: var(--brand-navy);
}

.signup-success {
    font-size: 15px;
    font-weight: 510;
    line-height: 1.6;
    letter-spacing: -0.165px;
    color: var(--status-emerald);
    margin: 0;
}

.signup-error {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.13px;
    color: var(--status-danger);
    margin: 0.5rem 0 0;
}

.signup-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ——— Footer ——————————————————————————————— */

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-quaternary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.13px;
}

.site-footer a {
    color: var(--text-quaternary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer a:hover {
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .hero {
        padding: 4rem 1.25rem;
    }

    .site-footer {
        padding: 16px 20px;
        font-size: 12px;
    }
}
