* { box-sizing: border-box; }
:root {
    color: #251d3a;
    background: #f8f6fc;
    font-family: "Segoe UI", Arial, sans-serif;
    font-synthesis: none;
    --violet: #6341b4;
    --muted: #655d73;
    --edge: #ded8e8;
}
::selection { background: #e2d5fa; color: #251d3a; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
.wrap { width: min(100% - 64px, 1280px); margin-inline: auto; }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top { min-height: 90px; border-bottom: 1px solid var(--edge); }
.logo img { display: block; width: clamp(115px, 16vw, 160px); height: auto; }
.login { display: inline-flex; align-items: center; gap: 7px; color: var(--violet); text-decoration: none; font-weight: 650; padding-block: 12px; }
.login:hover { color: #442687; }
.hero { flex: 1; display: grid; grid-template-columns: minmax(0, 0.89fr) minmax(0, 1.11fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: clamp(48px, 8vw, 112px); }
h1 { margin: 0; font-size: clamp(56px, 7.3vw, 96px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 750; }
h1 em { color: var(--violet); font-style: normal; }
.lead { color: var(--muted); font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; max-width: 34ch; margin: 24px 0 34px; }
label { display: block; margin-bottom: 8px; font-size: .95rem; font-weight: 650; }
.form-row { display: flex; gap: 8px; max-width: 505px; }
input, button { font: inherit; min-height: 52px; border-radius: 10px; }
input[type=email] { flex: 1; width: 100%; min-width: 0; padding: 0 13px; background: #fff; color: inherit; border: 1px solid #a79ab9; caret-color: var(--violet); }
input::placeholder { color: #70677e; }
button { padding: 0 17px; border: 1px solid transparent; background: var(--violet); color: white; font-weight: 700; cursor: pointer; }
button:hover { background: #503393; }
:focus-visible { outline: 3px solid #7955c8; outline-offset: 3px; }
.note, figcaption { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.note { margin: 11px 0 0; }
.notice { border-radius: 10px; padding: 12px 14px; line-height: 1.5; }
.error { background: #f9e9ee; color: #86233f; }
.success { background: #e5f4ec; color: #17593d; }
.preview { min-width: 0; margin: 0; }
.preview img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 10px; text-align: center; }
.footer { border-top: 1px solid var(--edge); padding-block: 22px; color: var(--muted); font-size: .875rem; }
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 36px; }
    .preview { width: min(100%, 680px); justify-self: center; }
}
@media (max-width: 480px) {
    .wrap { width: calc(100% - 36px); }
    .top { min-height: 72px; }
    .hero { padding-block: 46px 32px; }
    h1 { font-size: clamp(47px, 12vw, 58px); }
    .form-row { flex-direction: column; }
    input[type=email] { flex: auto; }
}
