:root {
    --ink: #171323;
    --navy: #17243d;
    --purple: #6a1bbd;
    --purple-dark: #4c118f;
    --purple-soft: #f4edfb;
    --teal: #087f88;
    --teal-soft: #eaf7f6;
    --gold: #e8a52d;
    --muted: #6f697c;
    --line: #eee8f3;
    --line-strong: #ddd4e5;
    --surface: #ffffff;
    --paper: #fcfbfd;
    --surface-muted: #faf7fc;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --shadow-sm: 0 12px 28px rgba(28, 18, 46, 0.045);
    --shadow-md: 0 20px 48px rgba(28, 18, 46, 0.075);
    --shadow-lg: 0 28px 76px rgba(28, 18, 46, 0.12);
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #fff 0, var(--paper) 620px),
        var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

body,
button,
input,
select,
textarea {
    font-size: 16px;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

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

a {
    color: var(--purple);
    text-decoration: none;
}

a:hover {
    color: var(--purple-dark);
}

::selection {
    color: #fff;
    background: var(--purple);
}

.container,
.nav-container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.narrow {
    width: min(760px, 100%);
}

.center-block {
    margin-right: auto;
    margin-left: auto;
}

.content-measure {
    max-width: 780px;
}

.is-hidden {
    display: none;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.14;
    letter-spacing: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 22px;
    color: inherit;
    font-size: 64px;
    font-weight: 800;
}

h2 {
    margin-bottom: 14px;
    font-size: 42px;
    font-weight: 800;
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

h4 {
    margin-bottom: 8px;
    font-size: 17px;
}

p {
    margin-bottom: 16px;
}

.muted {
    color: var(--muted);
}

.accent {
    color: var(--purple);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    min-height: var(--header-height);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(23, 36, 61, 0.76);
    backdrop-filter: blur(16px);
    transition: background 180ms ease, box-shadow 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(251, 250, 252, 0.94);
    box-shadow: 0 8px 24px rgba(24, 18, 38, 0.08);
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .site-links a {
    color: var(--ink);
}

.site-header.is-scrolled .brand-mark {
    background: var(--purple);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.brand:hover {
    color: #fff;
}

.brand-mark {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(12, 7, 24, 0.12);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.brand:hover .brand-mark {
    transform: translateY(-1px);
}

.brand-mark img {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    object-fit: cover;
}

.brand-copy {
    display: grid;
    gap: 1px;
    line-height: 1.1;
}

.brand-copy small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.site-header.is-scrolled .brand-copy small {
    color: var(--muted);
}

.privacy-page .site-header {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    background: rgba(23, 36, 61, 0.96);
}

.privacy-page .site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(251, 250, 252, 0.94);
}

.site-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-links a {
    position: relative;
    padding: 9px 12px;
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 700;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-links a::after {
    position: absolute;
    right: 12px;
    bottom: 4px;
    left: 12px;
    height: 2px;
    content: "";
    background: var(--gold);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 160ms ease, transform 160ms ease;
}

.site-links a:hover,
.site-links a.is-active {
    color: #fff;
    background: transparent;
}

.site-links a:hover::after,
.site-links a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-header.is-scrolled .site-links a:hover,
.site-header.is-scrolled .site-links a.is-active {
    color: var(--purple);
    background: transparent;
}

.nav-cta {
    margin-left: 8px;
    color: #fff !important;
    background: var(--purple) !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    color: #fff !important;
    background: var(--purple-dark) !important;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #1c1f3a 0%, var(--navy) 52%, #12323d 100%);
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(115deg, rgba(106, 27, 189, 0.16), transparent 50%, rgba(8, 127, 136, 0.1));
    pointer-events: none;
}

.hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 180px;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(16, 23, 41, 0.34));
    pointer-events: none;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 72px;
    padding-top: 84px;
}

.hero-content {
    max-width: 690px;
}

.hero-content h1 {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 2px;
    content: "";
    background: currentColor;
}

.hero-lead {
    max-width: 580px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 19px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, color 160ms ease, background 160ms ease, border 160ms ease, box-shadow 160ms ease;
}

.button:focus-visible,
.site-links a:focus-visible,
.brand:focus-visible,
.menu-toggle:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(232, 165, 45, 0.68);
    outline-offset: 3px;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--purple);
    box-shadow: 0 10px 22px rgba(106, 27, 189, 0.16);
}

.button-primary:hover {
    color: #fff;
    background: var(--purple-dark);
}

.button-light {
    color: var(--ink);
    background: #fff;
}

.button-light:hover {
    color: var(--purple);
    background: #fff;
}

.button-ghost {
    color: var(--purple);
    border-color: var(--line);
    background: #fff;
}

.button-ghost:hover {
    color: var(--purple-dark);
    border-color: rgba(106, 27, 189, 0.35);
    background: var(--purple-soft);
}

.button-ghost-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
}

.button-ghost-light:hover {
    color: var(--navy);
    background: #fff;
}

.quiet-link {
    color: #8f879b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(143, 135, 155, 0.35);
    text-underline-offset: 3px;
}

.quiet-link:hover {
    color: var(--purple);
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 42px;
}

.hero-proof span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.hero-proof i {
    flex: 0 0 auto;
    color: var(--gold);
    font-size: 17px;
}

.hero-banner {
    align-self: end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 22px 54px rgba(9, 12, 28, 0.12);
    aspect-ratio: 1024 / 500;
}

.hero-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.hero-banner:hover img {
    transform: scale(1.025);
}

.section--visuals {
    background: #fff;
}

.app-image-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.app-shot {
    overflow: hidden;
    border: 1px solid rgba(233, 228, 237, 0.86);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 36px rgba(28, 18, 46, 0.08);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.app-shot img {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    transition: transform 700ms ease;
}

.app-shot:hover {
    border-color: rgba(106, 27, 189, 0.2);
    box-shadow: 0 24px 54px rgba(28, 18, 46, 0.13);
    transform: translateY(-6px);
}

.app-shot:hover img {
    transform: scale(1.035);
}

.section {
    padding: 88px 0;
}

.section--tint {
    background: linear-gradient(180deg, #fbf8ff 0%, var(--purple-soft) 100%);
}

.section--navy {
    color: #fff;
    background: var(--navy);
}

.section-heading {
    max-width: 680px;
    margin-bottom: 38px;
}

.section-heading.center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
}

.section--navy .section-heading p {
    color: rgba(255, 255, 255, 0.68);
}

.grid-3,
.grid-2,
.grid-4,
.split,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.contact-grid {
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
    gap: 56px;
}

.card,
.info-panel,
.form-panel {
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: none;
}

.card {
    position: relative;
    height: 100%;
    padding: 28px 24px;
    background: transparent;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card::before {
    display: none;
}

.card:hover,
.card:focus-within {
    border-color: rgba(106, 27, 189, 0.18);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(28, 18, 46, 0.06);
    transform: translateY(-2px);
}

.card:hover::before,
.card:focus-within::before {
    display: none;
}

.card p:last-child,
.info-panel p:last-child {
    margin-bottom: 0;
}

.card p {
    color: var(--muted);
}

.icon-box {
    display: inline-grid;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    place-items: center;
    border: 1px solid rgba(238, 232, 245, 0.72);
    border-radius: 14px;
    color: var(--purple);
    background: var(--purple-soft);
    font-size: 19px;
}

.card ul,
.check-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.card li,
.check-list li {
    display: flex;
    gap: 9px;
    margin-bottom: 10px;
    color: var(--muted);
}

.card li i,
.check-list i {
    flex: 0 0 auto;
    color: var(--teal);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat-item {
    padding: 20px 18px;
    text-align: center;
}

.stat-item + .stat-item {
    border-left: 1px solid var(--line);
}

.stat-number {
    display: block;
    color: var(--purple);
    font-size: 24px;
    font-weight: 800;
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.quote-panel {
    padding: 30px;
    border-left: 3px solid var(--purple);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff 0%, #fefcff 100%);
    box-shadow: var(--shadow-sm);
}

.quote-panel p {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
}

.quote-panel span {
    color: var(--muted);
    font-size: 13px;
}

.page-hero {
    position: relative;
    padding: 164px 0 82px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #1c1f3a 0%, var(--navy) 58%, #12323d 100%);
}

.page-hero::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    background: linear-gradient(125deg, transparent 0%, rgba(106, 27, 189, 0.12) 46%, rgba(8, 127, 136, 0.16) 100%);
}

.page-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 90px;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(23, 36, 61, 0.4));
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 760px;
    margin-bottom: 14px;
    font-size: 58px;
}

.page-hero p {
    max-width: 690px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
}

.loan-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    padding: 34px;
    color: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(23, 36, 61, 0.95), rgba(24, 44, 71, 0.92));
    box-shadow: 0 18px 40px rgba(23, 36, 61, 0.1);
}

.loan-highlight h2 {
    margin-bottom: 9px;
    font-size: 32px;
}

.loan-highlight p {
    max-width: 660px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
}

.loan-highlight .value {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border: 1px solid rgba(232, 165, 45, 0.35);
    border-radius: 50%;
    color: var(--gold);
    font-size: 32px;
}

.step {
    position: relative;
    min-height: 164px;
    padding: 4px 0 0 64px;
}

.step-number {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: var(--purple);
    font-weight: 800;
}

.step p {
    margin-bottom: 0;
    color: var(--muted);
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    overflow: hidden;
    border: 1px solid rgba(233, 228, 237, 0.82);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 8px 22px rgba(28, 18, 46, 0.035);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    display: inline-grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #eee8f5;
    border-radius: 50%;
    color: var(--purple);
    content: "+";
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
    transition: transform 180ms ease, background 180ms ease;
}

.faq details[open] summary {
    color: var(--purple-dark);
}

.faq details[open] summary::after {
    color: #fff;
    background: var(--purple);
    content: "−";
    transform: rotate(180deg);
}

.faq details p {
    max-width: 850px;
    margin: 0;
    padding: 0 20px 20px;
    color: var(--muted);
}

.estimate {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    overflow: hidden;
    border: 1px solid rgba(233, 228, 237, 0.86);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.estimate-inputs {
    padding: 34px;
}

.estimate-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    color: #fff;
    background: var(--purple);
}

.range-row {
    margin-bottom: 28px;
}

.range-row:last-child {
    margin-bottom: 0;
}

.range-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 800;
}

.range-value {
    color: var(--purple);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    appearance: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--purple) var(--range-progress, 36%), #e8e2ed var(--range-progress, 36%));
    accent-color: var(--purple);
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    appearance: none;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 0 1px rgba(106, 27, 189, 0.32), 0 4px 10px rgba(106, 27, 189, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 0 1px rgba(106, 27, 189, 0.32), 0 4px 10px rgba(106, 27, 189, 0.2);
}

.estimate-result small {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}

.estimate-total {
    margin: 8px 0 22px;
    font-size: 50px;
    font-weight: 800;
    line-height: 1;
}

.result-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.result-line strong {
    color: #fff;
}

.form-panel {
    padding: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 14px;
    border: 1px solid rgba(233, 228, 237, 0.96);
    border-radius: 16px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    outline: none;
    transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #a29baa;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--purple);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(106, 27, 189, 0.12);
}

.form-note {
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.form-message {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--teal);
    border-radius: 14px;
    color: var(--teal);
    background: var(--teal-soft);
    font-size: 14px;
    font-weight: 700;
}

.form-message.is-visible {
    display: block;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 13px;
    align-items: start;
}

.contact-list i {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 14px;
    color: var(--purple);
    background: var(--purple-soft);
}

.contact-list strong,
.contact-list span {
    display: block;
}

.contact-list strong {
    margin-bottom: 2px;
    font-size: 14px;
}

.contact-list span {
    color: var(--muted);
    font-size: 14px;
}

.team-card {
    padding: 28px;
}

.team-role {
    margin-bottom: 10px;
    color: var(--purple);
    font-size: 13px;
    font-weight: 800;
}

.job-list {
    display: grid;
    gap: 14px;
}

.job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 26px;
}

.job-card p {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: var(--radius-pill);
    color: var(--teal);
    background: var(--teal-soft);
    font-size: 12px;
    font-weight: 800;
}

.map-frame {
    min-height: 330px;
    overflow: hidden;
    border: 1px solid rgba(233, 228, 237, 0.86);
    border-radius: var(--radius);
    background: var(--surface-muted);
    box-shadow: var(--shadow-sm);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 330px;
    border: 0;
}

.footer {
    padding: 72px 0 28px;
    border-top: 1px solid rgba(106, 27, 189, 0.34);
    color: rgba(255, 255, 255, 0.7);
    background: var(--navy);
}

.footer-grid {
    grid-template-columns: 1.35fr 0.75fr 0.85fr 1.15fr;
    padding-bottom: 46px;
}

.footer h3,
.footer h4 {
    color: #fff;
}

.footer h3 {
    margin: 0;
    font-size: 24px;
}

.footer h4 {
    font-size: 14px;
}

.footer p {
    max-width: 330px;
    margin-bottom: 0;
    font-size: 14px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-brand img {
    display: block;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    object-fit: cover;
}

.footer-contact-extra {
    margin-top: 10px !important;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    transition: color 160ms ease, transform 160ms ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-links a.is-muted {
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

.footer-links a.is-muted:hover {
    color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 12px;
}

.footer-bottom p {
    max-width: none;
}

.legal-shell {
    width: min(780px, calc(100% - 40px));
    margin: 0 auto;
    padding: 138px 0 70px;
}

.legal-header,
.legal-intro,
.legal-section {
    border: 1px solid rgba(233, 228, 237, 0.9);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.legal-header {
    margin-bottom: 18px;
    padding: 30px;
}

.legal-header h1 {
    margin-bottom: 8px;
    color: var(--purple);
    font-size: 34px;
}

.legal-header p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.legal-intro,
.legal-section {
    margin-bottom: 14px;
    padding: 30px;
}

.legal-section h2 {
    margin-bottom: 17px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--purple);
    font-size: 23px;
}

.legal-section h3 {
    margin-top: 22px;
    margin-bottom: 7px;
    color: var(--purple-dark);
    font-size: 16px;
}

.legal-section h3:first-of-type {
    margin-top: 5px;
}

.legal-shell p,
.legal-shell li {
    color: #3d3946;
    font-size: 15px;
}

.legal-shell p {
    margin-bottom: 13px;
}

.legal-shell p:last-child {
    margin-bottom: 0;
}

.legal-shell ul {
    margin: 8px 0 16px;
    padding-left: 20px;
}

.legal-shell li {
    margin-bottom: 7px;
}

.legal-shell a {
    word-break: break-word;
}

.legal-contact {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-contact li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 13px 14px;
    border: 1px solid #eee8f5;
    border-radius: 14px;
    background: #faf8fc;
}

.legal-contact .label {
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-contact .value {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

.legal-note {
    margin-top: 14px !important;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted) !important;
    background: #f5f5f6;
    font-size: 13px !important;
}

.legal-footer {
    padding: 12px 0 0;
    color: #888;
    font-size: 12px;
    text-align: center;
}

.delete-page {
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(106, 27, 189, 0.055), rgba(8, 127, 136, 0.06)),
        var(--paper);
}

.delete-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.delete-card {
    display: grid;
    grid-template-columns: 0.86fr 1fr;
    width: min(960px, 100%);
    overflow: hidden;
    border: 1px solid rgba(233, 228, 237, 0.9);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 26px 74px rgba(28, 18, 46, 0.11);
}

.delete-panel {
    padding: 38px;
}

.delete-panel-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 580px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(23, 36, 61, 0.94), rgba(76, 17, 143, 0.84)),
        var(--navy);
}

.delete-brand {
    align-self: flex-start;
}

.delete-panel-brand h1 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 58px;
}

.delete-panel-brand p {
    max-width: 420px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.74);
}

.delete-panel-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.warn {
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    color: #9a3412;
    background: #fff7ed;
    font-size: 14px;
    line-height: 1.55;
}

.delete-panel-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.otp-label {
    margin-top: 18px;
}

.phone-input-row {
    display: flex;
    min-height: 56px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: border 160ms ease, box-shadow 160ms ease;
}

.phone-input-row:focus-within {
    border-color: rgba(106, 27, 189, 0.48);
    box-shadow: 0 0 0 3px rgba(106, 27, 189, 0.1);
}

.phone-prefix {
    display: grid;
    min-width: 74px;
    place-items: center;
    border-right: 1px solid var(--line);
    color: var(--purple);
    background: var(--purple-soft);
    font-weight: 800;
}

.phone-input-row input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 0;
    color: var(--ink);
    background: #fff;
    font: inherit;
    outline: none;
}

.delete-send-btn,
.delete-submit-btn,
.delete-secondary-btn {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: var(--radius-pill);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.delete-send-btn {
    border: 1px solid #eee8f5;
    color: var(--purple);
    background: var(--purple-soft);
}

.delete-submit-btn {
    margin-top: 6px;
    border: 0;
    color: #fff;
    background: var(--purple);
    box-shadow: 0 10px 22px rgba(106, 27, 189, 0.2);
}

.delete-secondary-btn {
    margin-top: 10px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
}

.delete-send-btn:hover:not(:disabled),
.delete-submit-btn:hover:not(:disabled),
.delete-secondary-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.delete-send-btn:disabled,
.delete-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.verification-section {
    display: none;
    margin-top: 18px;
}

.verification-section.active {
    display: block;
    animation: reveal-up 220ms ease both;
}

.otp-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.otp-input {
    width: 100%;
    min-height: 54px;
    padding: 10px 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: border 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.otp-input:focus,
.otp-input.filled {
    border-color: rgba(106, 27, 189, 0.48);
    background: #fbf8ff;
    box-shadow: 0 0 0 3px rgba(106, 27, 189, 0.1);
}

.timer-text {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
}

.alert {
    display: block;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
}

.alert.hidden {
    display: none;
}

.alert-error {
    border: 1px solid #fecaca;
    color: #b91c1c;
    background: #fef2f2;
}

.alert-success {
    display: none;
    padding: 30px 10px 18px;
    text-align: center;
}

.alert-success.active {
    display: block;
    animation: reveal-up 220ms ease both;
}

.success-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 20px;
    color: var(--teal);
    background: #eaf8f1;
    font-size: 32px;
    font-weight: 900;
}

.alert-success h3 {
    margin-bottom: 8px;
}

.alert-success p {
    max-width: 340px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
}

.delete-footnote {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.js-enabled [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1080px) {
    .site-links a {
        padding-right: 9px;
        padding-left: 9px;
    }

    .hero-layout {
        gap: 44px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.9fr 1fr;
    }
}

@media (max-width: 980px) {
    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 38px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 96px;
    }

    .hero-banner {
        width: min(560px, 100%);
        justify-self: end;
    }

    .app-image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .delete-card {
        grid-template-columns: 1fr;
    }

    .delete-panel-brand {
        min-height: auto;
        gap: 58px;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 64px;
    }

    .container,
    .nav-container {
        width: min(100% - 28px, 640px);
    }

    body,
    button,
    input,
    select,
    textarea {
        font-size: 15px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 20px;
    }

    .site-header {
        min-height: var(--header-height);
        padding: 10px 0;
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .brand-copy small {
        font-size: 8px;
    }

    .privacy-page .site-header {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-links {
        position: fixed;
        top: calc(var(--header-height) + 8px);
        right: 14px;
        left: 14px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        max-height: calc(100vh - var(--header-height) - 24px);
        overflow: auto;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow-lg);
    }

    .site-links.is-open {
        display: flex;
        animation: reveal-up 160ms ease both;
    }

    .site-links a,
    .site-header.is-scrolled .site-links a {
        color: var(--ink);
    }

    .site-links a::after {
        display: none;
    }

    .site-links a:hover,
    .site-links a.is-active,
    .site-header.is-scrolled .site-links a:hover,
    .site-header.is-scrolled .site-links a.is-active {
        color: var(--purple);
        background: var(--purple-soft);
    }

    .nav-cta {
        margin: 4px 0 0;
        color: #fff !important;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 130px 0 64px;
    }

    .hero-layout {
        gap: 34px;
        padding-top: 0;
    }

    .hero-content h1 {
        margin-bottom: 18px;
    }

    .hero-lead {
        margin-bottom: 24px;
        font-size: 17px;
    }

    .hero-proof {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-top: 30px;
    }

    .hero-banner {
        width: 100%;
    }

    .section {
        padding: 68px 0;
    }

    .grid-3,
    .grid-2,
    .grid-4,
    .split,
    .contact-grid,
    .estimate {
        grid-template-columns: 1fr;
    }

    .split {
        gap: 30px;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading p {
        font-size: 16px;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .stat-item + .stat-item {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .page-hero {
        padding: 124px 0 64px;
    }

    .page-hero::before {
        width: 72%;
        opacity: 0.72;
    }

    .page-hero h1 {
        font-size: 42px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .loan-highlight {
        grid-template-columns: 1fr;
        padding: 26px;
    }

    .loan-highlight .value {
        width: 58px;
        height: 58px;
        font-size: 26px;
    }

    .app-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .estimate-inputs,
    .estimate-result,
    .form-panel,
    .legal-header,
    .legal-intro,
    .legal-section {
        padding: 22px;
    }

    .estimate-total {
        font-size: 42px;
    }

    .privacy-page .legal-shell {
        width: calc(100% - 16px);
        padding: 8px 0 28px;
    }

    .privacy-page .legal-header,
    .privacy-page .legal-intro,
    .privacy-page .legal-section {
        padding: 16px;
        margin-bottom: 8px;
    }

    .privacy-page .legal-header h1 {
        font-size: 26px;
    }

    .privacy-page .legal-footer {
        display: none;
    }

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

    .field.full {
        grid-column: auto;
    }

    .job-card {
        grid-template-columns: 1fr;
    }

    .job-card .button {
        justify-self: start;
    }

    .footer {
        padding-top: 56px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
    }

    .footer-grid > div:first-child,
    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .delete-shell {
        padding: 14px 8px;
    }

    .delete-panel {
        padding: 22px 16px;
    }

    .delete-panel-brand {
        gap: 36px;
    }

    .delete-panel-brand h1 {
        font-size: 38px;
    }

    .phone-input-row {
        min-height: 52px;
    }

    .otp-row {
        gap: 6px;
    }

    .otp-input {
        min-height: 48px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
