:root {
    --background: #fdfcfb;
    --surface: #ffffff;
    --surface-muted: #faf7f5;
    --text: #262220;
    --muted: #706965;
    --line: #e8e0db;
    --accent: #c87568;
    --accent-dark: #9d5148;
    --accent-soft: #f6e7e4;
    --success: #3d7658;
    --danger: #a94f47;
    --shadow: 0 22px 60px rgba(38, 34, 32, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.hero {
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
    gap: clamp(32px, 6vw, 76px);
    align-items: center;
}

.intro {
    max-width: 650px;
}

.eyebrow {
    width: fit-content;
    margin: 0 0 22px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--accent-dark);
    background: var(--surface);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.75rem, 7vw, 5.9rem);
    line-height: 0.96;
    letter-spacing: 0;
    color: var(--text);
}

.subtitle {
    max-width: 600px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    line-height: 1.7;
}

.waitlist-form {
    width: min(100%, 520px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 34px;
}

.waitlist-form input {
    min-width: 0;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    color: var(--text);
    background: var(--surface);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.waitlist-form input::placeholder {
    color: #9f9792;
}

.waitlist-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.waitlist-form button {
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: #ffffff;
    background: var(--accent);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.waitlist-form button:hover,
.waitlist-form button:focus-visible {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

.form-message {
    width: min(100%, 520px);
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-size: 0.95rem;
}

.form-message-success {
    border-color: rgba(61, 118, 88, 0.24);
    color: var(--success);
}

.form-message-neutral {
    color: var(--muted);
}

.form-message-error {
    border-color: rgba(169, 79, 71, 0.22);
    color: var(--danger);
}

.supporting {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.promo {
    width: fit-content;
    max-width: 100%;
    margin: 18px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(200, 117, 104, 0.26);
    border-radius: 8px;
    color: var(--accent-dark);
    background: var(--accent-soft);
    font-size: 0.94rem;
    font-weight: 650;
}

.preview {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.preview-header a {
    color: var(--muted);
    text-decoration: none;
    transition: color 160ms ease;
}

.preview-header a:hover,
.preview-header a:focus-visible {
    color: var(--accent-dark);
}

.preview-frame {
    width: 100%;
    height: min(680px, calc(100vh - 142px));
    min-height: 520px;
    background: var(--surface-muted);
    overflow: hidden;
}

.preview-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

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

@media (max-width: 920px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 28px 0 48px;
    }

    .preview {
        max-width: 640px;
    }
}

@media (max-width: 560px) {
    .page {
        width: min(100% - 24px, 1120px);
        padding: 18px 0;
    }

    .hero {
        gap: 34px;
    }

    .waitlist-form {
        grid-template-columns: 1fr;
    }

    .waitlist-form button {
        width: 100%;
    }

    .preview-frame {
        height: 640px;
        min-height: 0;
    }
}
