/* ==========================================================================
   Avanta Growth — public design system (home.php, auth.php)
   Plain CSS, no build step. Tokens first, then base, components, pages.
   ========================================================================== */

:root {
    --navy-950: #060d20;
    --navy-900: #0b1b3a;
    --navy-800: #11264d;
    --navy-700: #1a3566;
    --blue-600: #1f56e0;
    --blue-500: #3a6ff2;
    --blue-300: #93b2ff;
    --blue-100: #e3ebff;
    --blue-50:  #f3f6ff;

    --ink:   #0b1b3a;
    --ink-2: #3a4763;
    --ink-3: #5f6b85;
    --line:  #e2e7f1;
    --line-2:#cfd7e6;
    --bg:    #f7f9fc;
    --surface: #ffffff;

    --success: #0f7a55;
    --success-bg: #e9f7f1;
    --danger: #b42318;
    --danger-bg: #fdeceb;
    --warning: #9a5b00;

    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(11, 27, 58, .06);
    --shadow-md: 0 4px 12px -2px rgba(11, 27, 58, .08), 0 2px 4px rgba(11, 27, 58, .04);
    --shadow-lg: 0 24px 48px -16px rgba(11, 27, 58, .22), 0 8px 16px -8px rgba(11, 27, 58, .10);

    --focus: 0 0 0 3px rgba(58, 111, 242, .35);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --gutter: 16px;
    --container: 1200px;
}

@media (min-width: 640px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* -------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; flex: none; }
.icon--lg { width: 24px; height: 24px; flex: none; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }

/* -------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px;
    border-radius: var(--r-md); border: 1px solid transparent;
    font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -.005em;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled { opacity: .65; cursor: not-allowed; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 1px 2px rgba(11,27,58,.2), inset 0 1px 0 rgba(255,255,255,.12); }
.btn--primary:hover:not(:disabled) { background: #1a4bc7; }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover:not(:disabled) { background: var(--navy-800); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--secondary:hover:not(:disabled) { border-color: var(--ink-3); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover:not(:disabled) { background: var(--blue-50); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover:not(:disabled) { background: var(--blue-100); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn--outline-light:hover:not(:disabled) { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn .icon { transition: transform .18s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

/* -------------------------------------------------------------- brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.brand__tag { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__tag { color: rgba(255,255,255,.6); }

.lumora { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.lumora__word {
    font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px;
    color: var(--ink);
}
.lumora__word::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--blue-500); vertical-align: 1px; box-shadow: 0 0 0 3px rgba(58,111,242,.18); }
.lumora--light { color: rgba(255,255,255,.6); }
.lumora--light .lumora__word { color: #fff; }

/* -------------------------------------------------------------- navigation */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(11,27,58,.02); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__links { display: none; align-items: center; gap: 4px; }
.nav__links a { color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); }
.nav__links a:hover { color: var(--ink); background: var(--blue-50); text-decoration: none; }
.nav__actions { display: none; align-items: center; gap: 8px; }
.nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--r-md);
    border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.nav__toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-open { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }

.nav__panel {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 12px var(--gutter) 20px;
}
.nav.is-open .nav__panel { display: block; }
.nav__panel a.nav__panel-link { display: block; padding: 14px 4px; font-size: 17px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav__panel a.nav__panel-link:hover { text-decoration: none; color: var(--blue-600); }
.nav__panel-actions { display: grid; gap: 10px; margin-top: 18px; }

@media (min-width: 960px) {
    .nav__links, .nav__actions { display: flex; }
    .nav__toggle, .nav__panel, .nav.is-open .nav__panel { display: none; }
}

/* -------------------------------------------------------------- shared section bits */
.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section--tint { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--navy-900); color: rgba(255,255,255,.75); }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--blue-600);
}
.section--dark .eyebrow { color: var(--blue-300); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { font-size: clamp(30px, 5vw, 46px); margin-top: 14px; }
.section__head p { margin-top: 16px; font-size: 17px; color: var(--ink-3); }
.section--dark .section__head p { color: rgba(255,255,255,.7); }

/* -------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 72px; }
@media (min-width: 768px) { .hero { padding: 80px 0 112px; } }
.hero::before {
    content: ""; position: absolute; inset: -20% -10% auto -10%; height: 720px; z-index: -1;
    background:
        radial-gradient(600px 320px at 78% 30%, rgba(58,111,242,.14), transparent 70%),
        radial-gradient(520px 300px at 10% 10%, rgba(147,178,255,.18), transparent 70%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    opacity: .55;
}
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.02fr 1fr; gap: 64px; } }

.hero__badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.hero__badge-dot { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font-weight: 600; font-size: 12px; }
.hero h1 {
    margin-top: 22px;
    font-size: clamp(40px, 7.2vw, 72px);
    line-height: 1.02; letter-spacing: -.035em; font-weight: 650;
}
.hero h1 .serif { color: var(--blue-600); font-size: 1.06em; }
.hero__lead { margin-top: 22px; font-size: clamp(17px, 2.2vw, 19px); color: var(--ink-3); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__ctas .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero__ctas .btn { flex: 0 0 auto; } }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .icon { width: 16px; height: 16px; color: var(--success); }

/* -------------------------------------------------------------- product mockup (illustrative) */
.mock { position: relative; }
.mock__window {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock__url { flex: 1; text-align: center; font-size: 12px; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; max-width: 260px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .mock__body { grid-template-columns: 148px 1fr; } }
.mock__side { display: none; padding: 16px 12px; border-right: 1px solid var(--line); background: #fbfcfe; }
@media (min-width: 560px) { .mock__side { display: block; } }
.mock__side-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.mock__side-item .icon { width: 15px; height: 15px; }
.mock__side-item.is-active { background: var(--blue-50); color: var(--blue-600); }
.mock__main { padding: 18px; }
.mock__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock__title { font-size: 15px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.mock__sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill--success { background: var(--success-bg); color: var(--success); }
.pill--blue { background: var(--blue-50); color: var(--blue-600); }
.pill--muted { background: var(--bg); color: var(--ink-3); border: 1px solid var(--line); }
.mock__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mock__field { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.mock__field small { display: block; font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.mock__field span { display: block; font-size: 13px; color: var(--ink); font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__list { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mock__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 13px; border-top: 1px solid var(--line); }
.mock__row:first-child { border-top: 0; }
.mock__row-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.mock__row-icon .icon { width: 16px; height: 16px; }
.mock__row-text { flex: 1; min-width: 0; }
.mock__row-text b { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock__row-text small { color: var(--ink-3); font-size: 11.5px; }
.mock__float {
    position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
    padding: 12px 14px; display: none; align-items: center; gap: 12px; font-size: 13px;
}
.mock__float .mock__row-icon { background: var(--success-bg); color: var(--success); }
.mock__float b { display: block; color: var(--ink); font-weight: 600; }
.mock__float small { color: var(--ink-3); font-size: 12px; }
@media (min-width: 1024px) {
    .mock__float { display: flex; }
    .mock__float--a { left: -40px; bottom: -6px; }
}
.mock__caption { margin-top: 14px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* -------------------------------------------------------------- feature cards */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.card__icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100);
}
.card h3 { font-size: 18px; margin-top: 20px; letter-spacing: -.01em; }
.card p { margin-top: 8px; color: var(--ink-3); font-size: 15px; }

/* -------------------------------------------------------------- documents */
.docs { display: grid; gap: 20px; }
@media (min-width: 900px) { .docs { grid-template-columns: repeat(3, 1fr); } }
.doc {
    position: relative; display: flex; flex-direction: column;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-xl); padding: 28px;
}
.doc__paper {
    position: relative; height: 150px; margin-bottom: 24px; border-radius: 12px;
    background: #fff; padding: 18px 20px; overflow: hidden;
    box-shadow: 0 18px 30px -18px rgba(0,0,0,.6);
}
.doc__paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(transparent, #fff); }
.doc__paper-title { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); }
.doc__paper-line { height: 7px; border-radius: 4px; background: #e8ecf4; margin-top: 10px; }
.doc__paper-line:nth-child(2) { width: 82%; margin-top: 14px; }
.doc__paper-line:nth-child(3) { width: 64%; }
.doc__paper-line:nth-child(4) { width: 90%; }
.doc__paper-line:nth-child(5) { width: 48%; }
.doc__stamp {
    position: absolute; right: 16px; top: 46px; width: 64px; height: 64px; border-radius: 50%;
    border: 2px solid rgba(31,86,224,.5); color: rgba(31,86,224,.7); display: grid; place-items: center;
    font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center; line-height: 1.2;
    transform: rotate(-12deg);
}
.doc__tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-300); }
.doc h3 { font-size: 22px; margin-top: 8px; }
.doc p { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.7); }
.doc__meta { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc__meta span { font-size: 12.5px; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; }

/* -------------------------------------------------------------- steps */
.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.step__num {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: var(--navy-900); color: #fff; font-weight: 650; font-size: 15px;
}
.step h3 { font-size: 18px; margin-top: 20px; }
.step p { margin-top: 8px; font-size: 15px; color: var(--ink-3); }
.step__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 600; }

/* -------------------------------------------------------------- split / trust */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.split h2 { font-size: clamp(30px, 5vw, 44px); margin-top: 14px; }
.split__lead { margin-top: 16px; font-size: 17px; color: var(--ink-3); }
.checklist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.checklist li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.checklist__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.checklist b { display: block; color: var(--ink); font-weight: 600; }
.checklist span { display: block; font-size: 15px; color: var(--ink-3); margin-top: 2px; }

.panel { background: var(--navy-900); border-radius: var(--r-xl); padding: 28px; color: rgba(255,255,255,.75); position: relative; overflow: hidden; }
@media (min-width: 640px) { .panel { padding: 40px; } }
.panel::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(58,111,242,.45), transparent); }
.panel > * { position: relative; }
.panel h3 { color: #fff; font-size: 22px; }
.panel p { margin-top: 8px; font-size: 15px; }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: -2px; width: 2px; background: rgba(255,255,255,.14); }
.timeline li:last-child::before { display: none; }
.timeline__dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--blue-300); background: var(--navy-900); }
.timeline li.is-done .timeline__dot { background: var(--blue-500); border-color: var(--blue-500); }
.timeline b { color: #fff; font-weight: 600; display: block; font-size: 15px; }
.timeline small { font-size: 13.5px; color: rgba(255,255,255,.65); }

/* -------------------------------------------------------------- services */
.services { display: grid; gap: 16px; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.service__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service h3 { font-size: 17px; margin-top: 16px; }
.service p { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }
.service__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.service__meta b { color: var(--ink); font-weight: 650; }
.service__meta span { color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.service__meta + * { margin-top: 0; }
.service--feature { background: var(--blue-50); border-color: var(--blue-100); }
.services__note { margin-top: 24px; font-size: 14px; color: var(--ink-3); text-align: center; }

/* -------------------------------------------------------------- pricing */
.pricing { display: grid; gap: 16px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 860px) { .pricing { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; } }
.price { position: relative; display: flex; flex-direction: column; padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); }
.price--featured { border: 2px solid var(--blue-600); box-shadow: var(--shadow-lg); }
.price__flag { position: absolute; top: -13px; left: 28px; background: var(--blue-600); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.price h3 { font-size: 17px; }
.price__amount { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.price__amount b { font-size: 44px; color: var(--ink); font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.price__amount span { color: var(--ink-3); font-size: 15px; }
.price__unit { margin-top: 8px; font-size: 14px; color: var(--ink-3); min-height: 22px; }
.price ul { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li .icon { width: 18px; height: 18px; color: var(--blue-600); margin-top: 3px; }
.price .btn { margin-top: auto; }
.pricing__note { margin: 28px auto 0; max-width: 720px; text-align: center; font-size: 14px; color: var(--ink-3); }

/* -------------------------------------------------------------- CTA band */
.cta {
    position: relative; overflow: hidden; border-radius: 28px; padding: 48px 24px; text-align: center;
    background: var(--navy-900); color: rgba(255,255,255,.75);
}
@media (min-width: 768px) { .cta { padding: 80px 48px; } }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -10%, rgba(58,111,242,.5), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(30px, 5vw, 48px); max-width: 760px; margin: 0 auto; }
.cta p { margin: 16px auto 0; max-width: 560px; font-size: 17px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* -------------------------------------------------------------- footer */
.footer { background: var(--navy-950); color: rgba(255,255,255,.65); padding: 64px 0 28px; font-size: 14.5px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; max-width: 360px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .footer__brand { grid-column: auto; } }
.footer__about { margin: 18px 0 20px; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer__col h3 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.footer__col a { color: rgba(255,255,255,.7); overflow-wrap: anywhere; }
.footer__col a:hover { color: #fff; }
.footer__muted { color: rgba(255,255,255,.5); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.5); }

/* -------------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Auth page
   ========================================================================== */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; background: var(--bg); }
@media (min-width: 1024px) { .auth { grid-template-columns: minmax(420px, 5fr) 7fr; } }

.auth__aside {
    display: none; position: relative; overflow: hidden;
    background: var(--navy-900); color: rgba(255,255,255,.72); padding: 40px 48px;
}
@media (min-width: 1024px) { .auth__aside { display: flex; flex-direction: column; } }
.auth__aside::before { content: ""; position: absolute; width: 640px; height: 640px; left: -220px; bottom: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(58,111,242,.4), transparent); }
.auth__aside::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.auth__aside > * { position: relative; z-index: 1; }
.auth__aside-body { margin: auto 0; padding: 48px 0; max-width: 440px; }
.auth__aside h2 { color: #fff; font-size: 40px; line-height: 1.08; letter-spacing: -.03em; }
.auth__aside h2 .serif { color: var(--blue-300); }
.auth__aside p { margin-top: 16px; font-size: 16px; }
.auth__aside .checklist b { color: #fff; }
.auth__aside .checklist span { color: rgba(255,255,255,.65); }
.auth__aside .checklist__icon { background: rgba(255,255,255,.08); color: var(--blue-300); }
.auth__aside-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }

.auth__main { display: flex; flex-direction: column; min-width: 0; }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--gutter); }
@media (min-width: 1024px) { .auth__top .brand { visibility: hidden; } }
.auth__back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-3); font-weight: 500; padding: 8px 10px; border-radius: var(--r-sm); }
.auth__back:hover { color: var(--ink); background: #fff; text-decoration: none; }
.auth__back .icon { transform: rotate(180deg); width: 16px; height: 16px; }
.auth__center { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 8px var(--gutter) 48px; }
@media (min-width: 640px) { .auth__center { align-items: center; padding-top: 24px; } }
.auth__card {
    width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
    box-shadow: var(--shadow-md); padding: 24px;
}
@media (min-width: 640px) { .auth__card { padding: 40px; } }
.auth__foot { padding: 0 var(--gutter) 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; color: var(--ink-3); }

.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.tabs__btn {
    min-height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
    font-size: 15px; font-weight: 600; color: var(--ink-3); transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.tabs__btn:focus-visible { outline: none; box-shadow: var(--focus); }

.auth__heading { margin: 28px 0 24px; }
.auth__heading h1 { font-size: 28px; letter-spacing: -.025em; }
.auth__heading p { margin-top: 6px; color: var(--ink-3); font-size: 15px; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 520px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.label { font-size: 14px; font-weight: 600; color: var(--ink); }
.label small { font-weight: 400; color: var(--ink-3); }
.input {
    width: 100%; min-height: 48px; padding: 12px 14px;
    font: inherit; font-size: 16px; color: var(--ink);
    background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
    -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 84px; resize: vertical; }
.input::placeholder { color: #9aa4b8; }
.input:hover { border-color: #b4bfd3; }
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180,35,24,.2); }
.input.is-valid { border-color: var(--success); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap__btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px;
    background: transparent; color: var(--ink-3); cursor: pointer;
}
.input-wrap__btn:hover { color: var(--ink); background: var(--bg); }
.input-wrap__btn:focus-visible { outline: none; box-shadow: var(--focus); }
.input-wrap__btn .icon-hide { display: none; }
.input-wrap__btn[aria-pressed="true"] .icon-show { display: none; }
.input-wrap__btn[aria-pressed="true"] .icon-hide { display: block; }

.hint { font-size: 13px; color: var(--ink-3); min-height: 0; display: flex; align-items: center; gap: 6px; }
.hint:empty { display: none; }
.hint--error { color: var(--danger); }
.hint--success { color: var(--success); }
.hint .icon { width: 15px; height: 15px; }

.strength { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 2px; }
.strength span { height: 4px; border-radius: 4px; background: var(--line); transition: background-color .2s var(--ease); }
.strength[data-level="1"] span:nth-child(1) { background: var(--danger); }
.strength[data-level="2"] span:nth-child(-n+2) { background: #d98a00; }
.strength[data-level="3"] span { background: var(--success); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding: 0; margin: 0; }
.choice legend { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.choice__opt { position: relative; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__card {
    display: flex; flex-direction: column; gap: 8px; padding: 14px; height: 100%;
    border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease);
}
.choice__card .icon { color: var(--ink-3); }
.choice__card b { font-size: 15px; color: var(--ink); font-weight: 600; }
.choice__card small { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.choice__opt input:checked + .choice__card { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 1px var(--blue-600); }
.choice__opt input:checked + .choice__card .icon { color: var(--blue-600); }
.choice__opt input:focus-visible + .choice__card { box-shadow: var(--focus), 0 0 0 1px var(--blue-600); }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-600); cursor: pointer; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 1.5; }
.alert .icon { width: 18px; height: 18px; margin-top: 1px; }
.alert--error { background: var(--danger-bg); color: var(--danger); }
.alert--success { background: var(--success-bg); color: var(--success); }
.alert[hidden] { display: none; }

.form__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.form__switch { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--blue-600); font-weight: 600; cursor: pointer; font-size: inherit; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.divider { height: 1px; background: var(--line); margin: 4px 0; }

.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel-hidden[hidden] { display: none; }

/* -------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .reveal { opacity: 1; transform: none; }
}
