/* Model — home + separate connection. zaalis logistics.
   Directions: dark, typographical, light sky blue in rare accent,
   no decorative icon (mono numbering + strong titles instead). */

@font-face { font-family: 'Outfit'; font-weight: 300; font-display: swap; src: url('../fonts/outfit-300-latin.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('../fonts/outfit-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('../fonts/outfit-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('../fonts/outfit-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 300; font-display: swap; unicode-range: U+0100-024F; src: url('../fonts/outfit-300-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; unicode-range: U+0100-024F; src: url('../fonts/outfit-400-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; unicode-range: U+0100-024F; src: url('../fonts/outfit-500-latin-ext.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-500-latin.woff2') format('woff2'); }

:root {
    --bg: #07080a;
    --bg-2: #0b0c0f;
    --bg-3: #111317;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f2f4f7;
    --text-2: rgba(242, 244, 247, 0.64);
    --text-3: rgba(242, 244, 247, 0.42);

    /* Light sky blue — replace electric blue #0078d4. */
    --sky: #a9d4f2;
    --sky-hover: #c3e2f8;
    --sky-ink: #071521;
    --sky-soft: rgba(169, 212, 242, 0.10);
    --sky-line: rgba(169, 212, 242, 0.38);

    --danger: #f2a7a0;
    --ok: #a8dcc0;

    --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --gutter: clamp(20px, 5vw, 72px);
    --max: 1240px;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--sky); color: var(--sky-ink); }

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ----------- Tags / buttons ----------- */
.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin: 0;
}
.eyebrow .dot { color: var(--sky); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 22px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.005em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sky); color: var(--sky-ink); }
.btn-primary:hover { background: var(--sky-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.03); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 5px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.spinner {
    width: 15px; height: 15px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-scrolled {
    background: rgba(7, 8, 10, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 64px;
    max-width: none;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.brand img { width: 24px; height: 24px; border-radius: 5px; display: block; }
.brand small { font-weight: 300; color: var(--text-2); }

.nav-links { display: flex; gap: 28px; margin-right: auto; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-actions .text-link { font-size: 14px; color: var(--text-2); }
.nav-actions .text-link:hover { color: var(--text); }

.nav-burger {
    display: none;
    width: 38px; height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.nav-burger span, .nav-burger span::before {
    position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text);
    transition: transform 0.25s var(--ease);
}
.nav-burger span { top: 15px; }
.nav-burger span::before { content: ''; left: 0; right: 0; top: 7px; }
.nav.is-open .nav-burger span { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav-burger span::before { transform: translateY(-7px) rotate(-90deg); }

.nav-sheet { display: none; }

/* Shared compact, centered public navigation. */
.nav-inner { max-width: 1280px; margin-inline: auto; gap: 28px; }
.nav-links { gap: 22px; margin-right: 0; white-space: nowrap; }
.nav-actions { gap: 12px; white-space: nowrap; }
@media (max-width: 1180px) {
    .nav-inner { display: flex; gap: 12px; }
    .nav-links, .nav-actions .text-link { display: none; }
    .nav-burger { display: block; width: 44px; height: 44px; }
    .nav-sheet { display: block; max-height: 0; overflow: hidden; background: var(--bg-2); }
    .nav.is-open .nav-sheet { max-height: 80vh; overflow-y: auto; }
    .nav-sheet a { display: flex; justify-content: space-between; padding: 12px var(--gutter); }
    .sheet-group { padding: 16px var(--gutter) 4px; color: var(--text-3); }
}
@media (max-width: 480px) {
    .brand small { display: none; }
    .nav-actions { gap: 8px; }
    .nav-inner { padding-inline: 12px; }
}

@media (max-width: 960px) {
    .nav-links, .nav-actions .text-link { display: none; }
    .nav-burger { display: block; }
    .nav-actions { gap: 10px; }
    .nav-sheet {
        display: block;
        max-height: 0;
        overflow: hidden;
        background: rgba(7, 8, 10, 0.96);
        transition: max-height 0.4s var(--ease);
    }
    .nav.is-open { background: rgba(7, 8, 10, 0.96); border-bottom-color: var(--line); }
    .nav.is-open .nav-sheet { max-height: 420px; }
    .nav-sheet a {
        display: flex; justify-content: space-between;
        padding: 16px var(--gutter);
        border-top: 1px solid var(--line);
        font-size: 17px;
    }
    .nav-sheet a span { color: var(--text-3); }
}

/* ----------- Hero full screen ------------ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(ellipse 60% 55% at 50% -10%, rgba(169, 212, 242, 0.10), transparent 70%), var(--bg);
}
.rays {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0; transition: opacity 1.4s ease; pointer-events: none;
}
.has-rays .rays { opacity: 1; }
.hero::after {
    /* Fold down to the next section */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: -1; pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    padding: 120px var(--gutter) 140px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
}
.hero-content > * { opacity: 0; animation: rise 1s var(--ease) forwards; }
.hero-content > :nth-child(1) { animation-delay: 0.05s; }
.hero-content > :nth-child(2) { animation-delay: 0.15s; }
.hero-content > :nth-child(3) { animation-delay: 0.3s; }
.hero-content > :nth-child(4) { animation-delay: 0.45s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero h1 {
    font-size: clamp(44px, 8.4vw, 124px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin: 28px 0 28px;
}
.hero h1 .muted { color: var(--text-3); }
.hero p.lead {
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 300;
    line-height: 1.55;
    color: var(--text-2);
    max-width: 620px;
    margin: 0 0 40px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
    position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-3); background: none; border: 0; cursor: pointer;
    transition: opacity 0.3s ease, color 0.2s ease;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue i {
    display: block; width: 1px; height: 34px;
    background: linear-gradient(to bottom, var(--text-3), transparent);
    animation: cue 2.2s ease-in-out infinite;
    transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 13vw, 168px) 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.section--alt { background: var(--bg-2); }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 64px;
    align-items: end;
    margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head h2 {
    grid-column: 1; grid-row: 2;
    font-size: clamp(34px, 4.6vw, 64px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 18px 0 0;
}
.section-head .eyebrow { grid-column: 1 / -1; grid-row: 1; }
.section-head p {
    grid-column: 2; grid-row: 2;
    font-size: clamp(16px, 1.3vw, 19px);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-2);
    margin: 0;
    max-width: 520px;
}
@media (max-width: 860px) {
    .section-head { grid-template-columns: 1fr; }
    .section-head h2 { grid-row: 2; }
    .section-head p { grid-column: 1; grid-row: 3; }
}

/* Netting grid (replaces icon cards) */
.cells {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.cell {
    position: relative;
    padding: 36px 32px 44px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 280px;
    display: flex; flex-direction: column;
    transition: background 0.3s ease;
}
.cell::before {
    content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 1px;
    background: var(--sky); transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.cell:hover { background: rgba(255, 255, 255, 0.018); }
.cell:hover::before { transform: scaleX(1); }
.cell-num { font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.08em; margin-bottom: auto; padding-bottom: 56px; }
.cell h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 14px; }
.cell p { font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--text-2); margin: 0; max-width: 34ch; }
@media (max-width: 960px) { .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .cells { grid-template-columns: 1fr; }
    .cell { min-height: 0; padding: 28px 24px 32px; }
    .cell-num { padding-bottom: 32px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 0 28px 0 0; border-left: 1px solid var(--line); padding-left: 24px; }
.step-num {
    font-size: clamp(56px, 6vw, 88px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(169, 212, 242, 0.55);
    margin-bottom: 40px;
}
.step h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 12px; }
.step p { font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--text-2); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step-num { margin-bottom: 20px; } }

/* Policy banner (security) */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: 32px 32px 8px 0; }
.principle + .principle { padding-left: 32px; border-left: 1px solid var(--line); }
.principle .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); margin: 0 0 18px; }
.principle h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 12px; }
.principle p { font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--text-2); margin: 0; }
@media (max-width: 860px) {
    .principles { grid-template-columns: 1fr; }
    .principle, .principle + .principle { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Tarification */
.pricing-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.segmented {
    display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--bg);
}
.segmented button {
    border: 0; background: transparent; cursor: pointer;
    height: 32px; padding: 0 16px; border-radius: 5px;
    font-size: 13.5px; color: var(--text-2);
    transition: background 0.2s ease, color 0.2s ease;
}
.segmented button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.pricing-note { font-size: 13.5px; color: var(--text-3); margin: 0; min-height: 1.4em; }

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.plan {
    position: relative;
    display: flex; flex-direction: column;
    padding: 32px 30px 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease;
}
.plan:hover { background: rgba(255, 255, 255, 0.018); }
.plan.is-featured { background: linear-gradient(to bottom, var(--sky-soft), transparent 60%); }
.plan.is-featured::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--sky); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.plan-name { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.plan-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); }
.plan-price { font-size: 52px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 15px; font-weight: 300; letter-spacing: 0; color: var(--text-3); margin-left: 4px; }
.plan-price.is-word { font-size: 40px; }
.plan-desc { font-size: 14.5px; font-weight: 300; color: var(--text-2); line-height: 1.5; margin: 10px 0 26px; min-height: 2.9em; }
.plan ul { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.plan li { font-size: 14.5px; font-weight: 300; color: var(--text-2); padding: 11px 0; border-bottom: 1px solid var(--line); }
.plan .btn { margin-top: auto; }
.price-val { display: inline-block; transition: opacity 0.2s ease, transform 0.3s var(--ease); }
.price-val.is-swapping { opacity: 0; transform: translateY(-6px); }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* Resources: editorial list */
.rows { border-top: 1px solid var(--line); }
.row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr) 40px;
    align-items: center;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    transition: padding 0.35s var(--ease), background 0.3s ease;
}
.row .n { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.row h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.row p { font-size: 15px; font-weight: 300; color: var(--text-2); margin: 0; line-height: 1.55; }
.row .go { justify-self: end; font-size: 20px; color: var(--text-3); transition: transform 0.35s var(--ease), color 0.2s ease; }
.row:hover { padding-left: 14px; padding-right: 14px; background: rgba(255, 255, 255, 0.02); }
.row:hover .go { color: var(--sky); transform: translateX(4px); }
@media (max-width: 760px) {
    .row { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 8px 14px; }
    .row p { grid-column: 2; grid-row: 2; }
    .row .go { grid-column: 3; grid-row: 1; }
}

/* Final call */
.closing { text-align: center; padding: clamp(110px, 14vw, 180px) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.closing::before {
    content: ''; position: absolute; left: 50%; top: 0; width: min(900px, 90%); height: 1px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--sky-line), transparent);
}
.closing h2 { font-size: clamp(36px, 5.6vw, 76px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; margin: 22px auto 22px; max-width: 900px; }
.closing p { font-size: 18px; font-weight: 300; color: var(--text-2); margin: 0 auto 40px; max-width: 520px; line-height: 1.55; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: #050607; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid .brand { margin-bottom: 16px; }
.footer-grid p.footer-tag { font-size: 14.5px; font-weight: 300; color: var(--text-2); line-height: 1.6; max-width: 300px; margin: 0; }
.footer h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a, .footer ul button { font-size: 14.5px; color: var(--text-2); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; transition: color 0.2s ease; }
.footer ul a:hover, .footer ul button:hover { color: var(--text); }
.footer-base {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
    font-size: 13px; color: var(--text-3);
}
.footer-base .mono { font-family: var(--mono); font-size: 12px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Legal panel (dialog) */
dialog.legal {
    width: min(640px, calc(100vw - 32px));
    max-height: min(80vh, 720px);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bg-3);
    color: var(--text);
}
dialog.legal::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.legal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.legal-head h3 { margin: 0; font-size: 18px; font-weight: 500; }
.legal-body { padding: 20px 24px 28px; font-size: 14.5px; font-weight: 300; line-height: 1.65; color: var(--text-2); }
.legal-body a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--text-2); font-size: 18px; line-height: 1; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }

/* Scroll Revelation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .hero-content > * { opacity: 1; transform: none; animation: none; transition: none; }
    .scroll-cue i { animation: none; }
}

/* =========================================================
   CONNEXION PAGE
   ========================================================= */
.auth-page { min-height: 100svh; display: flex; flex-direction: column; position: relative; isolation: isolate; overflow-x: hidden; }
.auth-page .rays { opacity: 0; }
.auth-page.has-rays .rays { opacity: 0.75; }
.auth-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse 50% 45% at 50% -8%, rgba(169, 212, 242, 0.09), transparent 70%), var(--bg);
}
.auth-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.auth-top { display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 var(--gutter); }
.auth-top .back { font-size: 14px; color: var(--text-2); display: inline-flex; gap: 8px; align-items: center; }
.auth-top .back:hover { color: var(--text); }

.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px 64px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card.is-wide { max-width: 560px; }

.view { display: none; }
.view.is-active { display: block; animation: rise 0.6s var(--ease); }

.auth-head { margin-bottom: 32px; }
.auth-head :is(h1, h2) { font-size: clamp(30px, 4vw, 38px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; margin: 16px 0 12px; }
.auth-head p { font-size: 15.5px; font-weight: 300; line-height: 1.55; color: var(--text-2); margin: 0; }
.auth-head p strong { color: var(--text); font-weight: 500; }

.btn-sso {
    width: 100%; height: 46px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-strong);
    font-size: 15px; font-weight: 500; cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-sso + .btn-sso { margin-top: 10px; }
.btn-sso:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }
.btn-sso svg { width: 18px; height: 18px; flex-shrink: 0; }

.divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.field { margin-bottom: 18px; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.field .hint { font-size: 12.5px; color: var(--text-3); margin: 8px 0 0; line-height: 1.5; }
.link { font-size: 13.5px; color: var(--sky); background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { color: var(--sky-hover); text-decoration: underline; text-underline-offset: 3px; }
.link-muted { color: var(--text-2); }
.link-muted:hover { color: var(--text); }

.input {
    position: relative;
    display: flex; align-items: center;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.input:focus-within { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(169, 212, 242, 0.16); background: rgba(255, 255, 255, 0.03); }
.input input {
    flex: 1; min-width: 0; height: 100%;
    padding: 0 14px;
    background: transparent; border: 0; outline: 0;
    color: var(--text); font: inherit; font-size: 15px;
}
.input input::placeholder { color: rgba(242, 244, 247, 0.28); }
.input .toggle-pw {
    height: 30px; margin-right: 8px; padding: 0 10px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-3); background: transparent; border: 0; border-radius: 4px; cursor: pointer;
}
.input .toggle-pw:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.field.has-error .input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(242, 167, 160, 0.12); }
.field .error { display: none; font-size: 12.5px; color: var(--danger); margin: 8px 0 0; }
.field.has-error .error { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .row-2 { grid-template-columns: 1fr; gap: 0; } }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text-2); cursor: pointer; margin: 14px 0; }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid var(--line-strong); border-radius: 4px; background: transparent; cursor: pointer; display: grid; place-items: center; transition: background 0.15s ease, border-color 0.15s ease; }
.check input:checked { background: var(--sky); border-color: var(--sky); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--sky-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.check.has-error input { border-color: var(--danger); }

.alert {
    display: none;
    padding: 12px 14px; margin: 0 0 18px;
    border-radius: 6px; border: 1px solid rgba(242, 167, 160, 0.4);
    background: rgba(242, 167, 160, 0.08);
    font-size: 13.5px; line-height: 1.5; color: var(--danger);
}
.alert.is-shown { display: block; }
.alert.is-ok { border-color: rgba(168, 220, 192, 0.4); background: rgba(168, 220, 192, 0.07); color: var(--ok); }

.auth-foot { margin-top: 28px; font-size: 14px; color: var(--text-2); text-align: center; }
.auth-foot .link { font-size: 14px; }

.secure-note {
    margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-3); text-align: center; line-height: 1.7;
}

/* 6-digit code */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.otp input {
    width: 100%; height: 56px; text-align: center;
    font-family: var(--mono); font-size: 22px; color: var(--text);
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line-strong); border-radius: 6px; outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.otp input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(169, 212, 242, 0.16); }
.otp.has-error input { border-color: var(--danger); }
.otp.shake { animation: shake 0.4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Registration steps */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 32px; }
.stepper div { padding-top: 12px; border-top: 2px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); transition: border-color 0.3s ease, color 0.3s ease; }
.stepper div.is-active { border-color: var(--sky); color: var(--text); }
.stepper div.is-done { border-color: rgba(169, 212, 242, 0.4); color: var(--text-2); }
.reg-step { display: none; }
.reg-step.is-active { display: block; animation: rise 0.5s var(--ease); }
.reg-actions { display: flex; gap: 10px; margin-top: 26px; }
.reg-actions .btn-primary { flex: 1; }

.pw-meter { height: 3px; background: var(--line); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--sky); transition: width 0.3s ease, background 0.3s ease; }
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.pw-rules li { font-family: var(--mono); font-size: 11px; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--text-3); transition: color 0.2s ease, border-color 0.2s ease; }
.pw-rules li.ok { color: var(--ok); border-color: rgba(168, 220, 192, 0.35); }

.plan-list { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.plan-opt { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; transition: background 0.2s ease; }
.plan-opt + .plan-opt { border-top: 1px solid var(--line); }
.plan-opt:hover { background: rgba(255, 255, 255, 0.025); }
.plan-opt input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; cursor: pointer; }
.plan-opt input:checked { border-color: var(--sky); }
.plan-opt input:checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.plan-opt:has(input:checked) { background: var(--sky-soft); }
.plan-opt b { display: block; font-size: 15px; font-weight: 500; }
.plan-opt span { display: block; font-size: 13px; font-weight: 300; color: var(--text-2); margin-top: 2px; }
.plan-opt em { font-style: normal; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-opt em small { font-size: 12px; font-weight: 300; color: var(--text-3); }

/* Success */
.done-mark { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--sky-line); display: grid; place-items: center; margin-bottom: 8px; }
.done-mark::after { content: ''; width: 18px; height: 9px; border: 2px solid var(--sky); border-top: 0; border-right: 0; transform: translateY(-2px) rotate(-45deg); }
.progress { height: 2px; background: var(--line); margin: 28px 0 0; overflow: hidden; border-radius: 2px; }
.progress i { display: block; height: 100%; width: 0; background: var(--sky); }
.progress.run i { animation: fill 2.4s var(--ease) forwards; }
@keyframes fill { to { width: 100%; } }

.auth-legal { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 0 20px 28px; font-size: 12.5px; color: var(--text-3); }
.auth-legal a:hover { color: var(--text); }

/* Business Connection (SSO) */
.sso-tag {
    display: inline-grid; place-items: center;
    height: 20px; padding: 0 6px; border-radius: 4px;
    border: 1px solid var(--sky-line); color: var(--sky);
    font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em;
}
.sso-help { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); text-align: center; }

/* Compact language control shared by every public page. */
.language-picker { position: relative; flex-shrink: 0; }
.language-trigger { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-2); background: transparent; font: inherit; font-size: 12px; cursor: pointer; transition: background 180ms ease, border-color 180ms ease; }
.language-trigger:hover, .language-picker.is-open .language-trigger { background: var(--bg-2); border-color: var(--line-strong); }
.language-trigger .chev { transition: transform 200ms var(--ease); }
.language-picker.is-open .chev { transform: rotate(180deg); }
.language-picker button:focus-visible { outline: 2px solid var(--text-2); outline-offset: 3px; }
.language-options { position: absolute; top: calc(100% + 8px); right: 0; width: 148px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-2); box-shadow: 0 12px 32px rgba(0,0,0,.25); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-5px) scale(.97); transform-origin: top right; transition: opacity 180ms ease, transform 200ms var(--ease), visibility 200ms; }
.language-picker.is-open .language-options { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.language-options button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 36px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; transition: background 150ms ease; }
.language-options button:hover, .language-options button[aria-pressed="true"] { background: rgba(255,255,255,.06); color: var(--text); }
.language-options button span { visibility: hidden; }
.language-options button[aria-pressed="true"] span { visibility: visible; }
@media (pointer: coarse) { .language-trigger { min-height: 44px; min-width: 54px; } .language-options button { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .language-trigger, .language-trigger .chev, .language-options, .language-options button { transition: none; } }

/* Legal content keeps its reading width beneath the shared public navigation. */
.legal-content { max-width: 840px; padding-top: 132px; padding-bottom: 48px; }
.legal-content h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.12; }
.legal-content .legal-meta { margin: 15px 0 44px; color: var(--text-2); }
.legal-content section { margin: 32px 0; }
.legal-content h2 { margin-bottom: 14px; font-size: 1.42rem; }
.legal-content p { color: var(--text-2); line-height: 1.7; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Gmail integration permissions, using the public page grid and spacing. */
.gmail-permissions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.gmail-permissions > div { min-height: 170px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gmail-permissions code, .gmail-permissions__label { display: inline-flex; margin-bottom: 20px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--text); background: rgba(255, 255, 255, .03); font-family: var(--mono); font-size: 12px; }
.gmail-permissions p { max-width: 42ch; margin: 0; color: var(--text-2); font-size: 15px; font-weight: 300; line-height: 1.6; }
@media (max-width: 680px) { .gmail-permissions { grid-template-columns: 1fr; } .gmail-permissions > div { min-height: 0; padding: 28px 24px; } }
