/* Aurora consumer pages (aurora.qa.alvvaos.com). Hand-written, no build.
   Restrained editorial system: serif headlines, neutral sans, hairline rules,
   one deep navy accent. The only illustrative element is the phone. */

:root {
    --paper: #F7F5F0;
    --card: #FDFCF9;
    --ink: #0F1115;
    --ink-2: #3A3D44;
    --muted: #5C6068;
    --rule: #DCD8CE;
    --rule-strong: #C9C4B8;
    --accent: #1C2B4B;
    --accent-hover: #121D35;
    --danger: #A4271B;

    --night: #0F1115;
    --night-text: #F2F0EA;
    --night-muted: #A9ACB3;
    --night-rule: #2A2D34;

    --ios-blue: #0B84FE;
    --ios-grey: #E9E9EB;

    --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ios: -apple-system, "SF Pro Text", system-ui, "Inter", sans-serif;

    --gutter: 16px;
    --max: 1160px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.au {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.au img { max-width: 100%; }
.au a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.au p, .au ul, .au ol, .au dl, .au dd, .au figure { margin: 0; }
.au ul, .au ol { padding: 0; list-style: none; }

.au :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

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

.au-skip {
    position: absolute; left: var(--gutter); top: -60px;
    background: var(--ink); color: var(--paper) !important;
    padding: 10px 14px; z-index: 10;
}
.au-skip:focus { top: 12px; }

.au-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Header ---------- */
.au-top { border-bottom: 1px solid var(--rule); }
.au-top__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.au-brand {
    font-family: var(--serif);
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--ink) !important;
    text-decoration: none;
}
.au-toplink {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink) !important;
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 1px;
}
.au-toplink:hover { color: var(--accent) !important; border-color: var(--accent); }

/* ---------- Type ---------- */
.au-h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.5rem, 4.6vw + 0.6rem, 4rem);
    line-height: 1.04;
    letter-spacing: -0.018em;
    margin: 0;
    max-width: 13ch;
    text-wrap: balance;
}
.au-h1--page { font-size: clamp(2.5rem, 4vw + 1rem, 3.5rem); max-width: none; }

.au-h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.875rem, 2vw + 1.1rem, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.012em;
    margin: 0 0 40px;
}

.au-h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.4375rem;
    line-height: 1.25;
    letter-spacing: -0.005em;
    margin: 0 0 10px;
}

.au-lede {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 32rem;
    margin-top: 24px !important;
}

.au-note { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Buttons and links ---------- */
.au-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid var(--accent);
    border-radius: 3px;
    background: var(--accent);
    color: #FFFFFF !important;
    font: 500 1rem/1 var(--sans);
    letter-spacing: 0.005em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 120ms ease;
}
.au-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.au-btn--block { display: flex; width: 100%; }
.au-btn--ghost {
    background: transparent;
    color: var(--ink) !important;
    border-color: var(--rule-strong);
}
.au-btn--ghost:hover { background: transparent; border-color: var(--ink); }

.au-link {
    font-weight: 500;
    color: var(--ink) !important;
    text-decoration: underline;
    text-decoration-color: var(--rule-strong);
}
.au-link:hover { text-decoration-color: var(--ink); }

/* ---------- Hero ---------- */
.au-hero { padding: 56px 0 64px; }
.au-hero__grid { display: grid; gap: 56px; align-items: center; }
.au-hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

@media (min-width: 940px) {
    .au-hero { padding: 88px 0 96px; }
    .au-hero__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; }
}
@media (min-width: 1100px) {
    .au-hero__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 120px; }
}

/* ---------- Phone ---------- */
.au-device {
    justify-self: center;
    width: min(100%, 340px);
    padding: 11px;
    border-radius: 54px;
    background: #1B1D21;
    box-shadow:
        inset 0 0 0 1px #3A3D43,
        0 0 0 1px #0B0C0E,
        0 40px 70px -40px rgba(15, 17, 21, 0.45);
}
.au-device__screen {
    position: relative;
    border-radius: 44px;
    background: #FFFFFF;
    overflow: hidden;
    font-family: var(--ios);
    color: #000;
    display: flex; flex-direction: column;
    min-height: 560px;
}
.au-device__status {
    position: relative;
    height: 50px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 30px 0 34px;
    font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.au-device__island {
    position: absolute; left: 50%; top: 11px;
    width: 96px; height: 28px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: #000;
}
.au-device__icons { display: inline-flex; align-items: center; gap: 6px; }
.au-ico-signal { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 11px; }
.au-ico-signal i { display: block; width: 3px; background: #000; border-radius: 1px; }
.au-ico-signal i:nth-child(1) { height: 4px; }
.au-ico-signal i:nth-child(2) { height: 6px; }
.au-ico-signal i:nth-child(3) { height: 8.5px; }
.au-ico-signal i:nth-child(4) { height: 11px; }
.au-ico-battery {
    position: relative;
    width: 24px; height: 12px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 3.5px;
    padding: 1.5px;
}
.au-ico-battery::after {
    content: ""; position: absolute; right: -3px; top: 3.5px;
    width: 1.5px; height: 4px; border-radius: 0 1px 1px 0;
    background: rgba(0, 0, 0, 0.4);
}
.au-ico-battery i { display: block; height: 100%; width: 78%; border-radius: 1.5px; background: #000; }

.au-device__head {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 4px 16px 10px;
    background: #F6F6F7;
    border-bottom: 0.5px solid #D1D1D6;
}
.au-device__back {
    position: absolute; left: 16px; top: 20px;
    width: 11px; height: 11px;
    border-left: 2.5px solid var(--ios-blue);
    border-bottom: 2.5px solid var(--ios-blue);
    transform: rotate(45deg);
    border-radius: 1px;
}
.au-device__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #E5E5EA;
}
.au-device__name { font-size: 11px; color: #000; }

.au-chat {
    flex: 1;
    display: flex; flex-direction: column; gap: 3px;
    padding: 10px 12px 14px;
    font-size: 15px;
    line-height: 1.32;
    letter-spacing: -0.01em;
}
.au-chat__stamp {
    align-self: center;
    text-align: center;
    font-size: 11px; line-height: 1.35;
    color: #8E8E93;
    margin-bottom: 8px;
}
.au-b {
    max-width: 78%;
    padding: 7px 12px 8px;
    border-radius: 18px;
}
.au-b--me { align-self: flex-end; background: var(--ios-blue); color: #FFFFFF; }
.au-b--her { align-self: flex-start; background: var(--ios-grey); color: #000; }
.au-b--me + .au-b--her, .au-b--her + .au-b--me { margin-top: 8px; }
.au-b--typing {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 11px 13px;
}
.au-b--typing i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #9A9AA0; }
@media (prefers-reduced-motion: no-preference) {
    .au-b--typing i { animation: au-typing 1.3s infinite ease-in-out; }
    .au-b--typing i:nth-child(2) { animation-delay: 0.18s; }
    .au-b--typing i:nth-child(3) { animation-delay: 0.36s; }
}
@keyframes au-typing { 0%, 70%, 100% { opacity: 0.35; } 35% { opacity: 1; } }

.au-device__compose {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px 26px;
}
.au-device__plus {
    position: relative; flex: none;
    width: 30px; height: 30px; border-radius: 50%;
    background: #EFEFF1;
}
.au-device__plus::before, .au-device__plus::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 13px; height: 2px; background: #7C7C82; border-radius: 1px;
    transform: translate(-50%, -50%);
}
.au-device__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.au-device__field {
    flex: 1;
    height: 34px;
    display: flex; align-items: center;
    padding: 0 14px;
    border: 1px solid #D1D1D6;
    border-radius: 17px;
    font-size: 15px; color: #A1A1A6;
}

/* ---------- Trust strip ---------- */
.au-trust { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.au-trust__list { display: grid; }
.au-trust__list li {
    padding: 18px 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--ink-2);
}
.au-trust__list li + li { border-top: 1px solid var(--rule); }
@media (min-width: 820px) {
    .au-trust__list { grid-template-columns: repeat(3, 1fr); }
    .au-trust__list li { padding: 22px 28px; }
    .au-trust__list li:first-child { padding-left: 0; }
    .au-trust__list li + li { border-top: 0; border-left: 1px solid var(--rule); }
}

/* ---------- Content sections ---------- */
.au-section { padding: 72px 0; }
.au-section + .au-section { border-top: 1px solid var(--rule); }
@media (min-width: 940px) { .au-section { padding: 104px 0; } }

.au-cols { display: grid; gap: 36px; }
.au-cols li { border-top: 1px solid var(--ink); padding-top: 20px; }
.au-cols p { color: var(--ink-2); max-width: 34ch; }
@media (min-width: 820px) { .au-cols { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

.au-lead-service { border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: 40px; }
.au-lead-service p { color: var(--ink-2); max-width: 62ch; }
.au-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--accent);
    vertical-align: middle;
}
.au-services { display: grid; }
.au-services li { padding: 16px 0; border-top: 1px solid var(--rule); }
.au-services__title { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.au-services p { color: var(--ink-2); font-size: 0.9375rem; margin: 0; }
.au-price { font-weight: 500; color: var(--ink-2); margin-left: 6px; white-space: nowrap; }
@media (min-width: 720px) { .au-services { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1000px) { .au-services { grid-template-columns: repeat(3, 1fr); } }

.au-next {
    margin-top: 48px !important;
    font-size: 0.9375rem;
    color: var(--muted);
}

.au-steps { display: grid; gap: 32px; counter-reset: step; }
.au-steps li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.au-steps li::before {
    content: counter(step);
    display: block;
    margin-bottom: 18px;
    font-family: var(--serif);
    font-size: 1.375rem;
    font-variant-numeric: lining-nums;
    color: var(--accent);
}
.au-steps .au-h3 { font-size: 1.3125rem; }
.au-steps p { color: var(--ink-2); max-width: 30ch; }
@media (min-width: 720px) { .au-steps { grid-template-columns: repeat(2, 1fr); gap: 44px 48px; } }
@media (min-width: 1000px) { .au-steps { grid-template-columns: repeat(4, 1fr); gap: 40px; } }

/* ---------- Attorney (dark) ---------- */
.au-attorney {
    background: var(--night);
    color: var(--night-text);
    padding: 80px 0;
}
@media (min-width: 940px) { .au-attorney { padding: 112px 0; } }
.au-attorney + .au-section { border-top: 0; }
.au-attorney a { color: var(--night-text); }
.au-attorney :focus-visible { outline-color: var(--night-text); }
.au-attorney__grid { display: grid; gap: 56px; }
@media (min-width: 940px) { .au-attorney__grid { grid-template-columns: 1.1fr 1fr; gap: 96px; } }
.au-attorney .au-h2 { color: var(--night-text); margin-bottom: 28px; }
.au-attorney__grid p {
    max-width: 32rem;
    font-size: 1.125rem;
    color: #D6D4CE;
}
.au-attorney__grid p + p { margin-top: 18px; }
.au-attorney__label {
    margin: 0 0 4px;
    font: 500 0.9375rem/1.4 var(--sans);
    color: var(--night-muted);
}
.au-human > div {
    display: grid; gap: 4px;
    padding: 18px 0;
    border-bottom: 1px solid var(--night-rule);
}
@media (min-width: 560px) { .au-human > div { grid-template-columns: 11rem 1fr; gap: 24px; } }
.au-human dt { font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; }
.au-human dd { color: var(--night-muted); font-size: 1rem; line-height: 1.55; padding-top: 2px; }

/* ---------- Sign-up ---------- */
.au-signup__grid { display: grid; gap: 32px; }
@media (min-width: 940px) {
    .au-signup__grid { grid-template-columns: 1fr 460px; gap: 96px; align-items: start; }
}
.au-signup__intro .au-h2 { margin-bottom: 16px; }
.au-signup__intro p { color: var(--ink-2); max-width: 26rem; }

.au-form {
    display: grid; gap: 20px;
    padding: 24px 20px;
    background: var(--card);
    border: 1px solid var(--rule-strong);
    border-radius: 4px;
}
@media (min-width: 600px) { .au-form { padding: 36px; } }

.au-form__alert {
    padding: 12px 14px;
    border-left: 3px solid var(--danger);
    background: #F6E9E6;
    color: var(--danger);
    font-weight: 500;
    font-size: 0.9375rem;
}

.au-field { display: grid; gap: 7px; min-width: 0; }
.au-field > label { font-weight: 500; font-size: 0.9375rem; color: var(--ink); }
.au-field input, .au-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--rule-strong);
    border-radius: 3px;
    background: #FFFFFF;
    color: var(--ink);
    font: 400 1.0625rem/1.2 var(--sans);
    -webkit-appearance: none;
    appearance: none;
}
.au-field input::placeholder { color: #8B8E95; }
.au-field input:hover, .au-field select:hover { border-color: #A9A397; }
.au-field input:focus-visible, .au-field select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent);
}
.au-field.is-invalid input { border-color: var(--danger); }
.au-field__error { color: var(--danger); font-size: 0.9375rem; font-weight: 500; }

.au-phone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.au-phone select {
    width: auto;
    padding-right: 34px;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.au-consent { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }

/* ---------- Narrow pages: welcome, drive, legal ---------- */
.au-page {
    max-width: 40rem;
    margin: 0 auto;
    padding: 64px var(--gutter) 96px;
}
@media (min-width: 720px) { .au-page { padding-top: 96px; padding-bottom: 128px; } }

.au-welcome .au-lede { margin-top: 20px !important; }
.au-line {
    display: flex; align-items: center; gap: 16px;
    margin: 44px 0 32px !important;
    padding: 24px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.au-line__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #ECEAE4; }
.au-line__number {
    font-family: var(--serif);
    font-size: clamp(2rem, 6vw, 2.875rem);
    line-height: 1.1;
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: -0.005em;
    color: var(--ink) !important;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.au-line__number:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.au-welcome__actions { display: grid; gap: 12px; max-width: 360px; margin-top: 32px; }
.au-line + .au-welcome__actions { margin-top: 0; }
.au-welcome__tip { margin-top: 24px !important; max-width: 30rem; }

.au-legal .au-h1 { margin-bottom: 12px; }
.au-legal h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.375rem;
    line-height: 1.3;
    margin: 40px 0 8px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}
.au-legal p { color: var(--ink-2); max-width: 36rem; }

/* ---------- Footer ---------- */
.au-foot { border-top: 1px solid var(--rule); }
.au-foot__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px var(--gutter) 40px;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
    font-size: 0.875rem;
    color: var(--muted);
}
.au-foot p { max-width: 40rem; }
.au-foot nav { display: flex; gap: 24px; }
.au-foot a { color: var(--ink) !important; text-decoration: none; }
.au-foot a:hover { text-decoration: underline; }
