/* ==========================================================================
   BNBUP — Styles
   Palette driven by logo: teal-slate background, warm off-white foreground.
   Mobile-first, custom-property-driven for easy theming later.
   ========================================================================== */

:root {
    --brand-900: #1f3c49;
    --brand-850: #284a59;      /* header background — darker than logo plate */
    --brand-800: #355b6c;
    --brand-700: #437085;      /* official logo background */
    --brand-600: #5a869b;
    --brand-500: #7ca5b9;
    --brand-100: #e3ebef;
    --brand-50:  #f2f6f8;

    --ivory:      #ECEBE7;     /* brand ivory from logo pack */
    --accent:     #f4a261;     /* warm CTA accent */
    --accent-hover: #ea8f45;

    --ink-900: #14242c;
    --ink-700: #2d434e;
    --ink-500: #5a6e78;
    --ink-300: #a7b4bb;

    --bg:        #ffffff;
    --bg-soft:   #f6f8f9;
    --bg-panel:  #ffffff;

    --card-border: #e3e9ec;
    --card-shadow: 0 1px 2px rgba(20, 36, 44, 0.04), 0 12px 32px -12px rgba(20, 36, 44, 0.08);
    --card-shadow-lg: 0 2px 4px rgba(20, 36, 44, 0.05), 0 24px 56px -18px rgba(20, 36, 44, 0.18);

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --container: 1160px;
    --header-height: 160px;
    --logo-size: 128px;

    --transition: 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- reset-ish ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink-900);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-800); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    color: var(--ink-900);
    letter-spacing: -0.012em;
    line-height: 1.15;
}
h1 { font-size: clamp(1.7rem, 3vw + 0.85rem, 2.85rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 2.2vw + 0.9rem, 2.4rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-700); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
    background: var(--brand-700);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(63, 111, 133, 0.5);
}
.btn-primary:hover { background: var(--brand-800); color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--ink-900);
    border-color: #d5dfe4;
}
.btn-ghost:hover { background: var(--brand-50); }

.btn-accent {
    background: var(--accent);
    color: #1a1a1a;
}
.btn-accent:hover { background: var(--accent-hover); color: #1a1a1a; }

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--brand-850);
    color: var(--ivory);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ivory);
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo {
    width: var(--logo-size);
    height: var(--logo-size);
    display: block;
    border-radius: 14px;
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.35);
}
.brand-logo-footer {
    width: 100px;
    height: 100px;
    border-radius: 10px;
}
.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}
.main-nav a {
    color: rgba(236, 235, 231, 0.82);
    font-weight: 500;
    font-size: 0.96rem;
    position: relative;
    padding: 4px 0;
}
.main-nav a:hover { color: var(--ivory); }
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--ivory);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
    border-radius: 2px;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* On the dark header, flip the primary CTA to an ivory-on-dark pill */
.site-header .btn-primary {
    background: var(--ivory);
    color: var(--brand-900);
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.35);
}
.site-header .btn-primary:hover {
    background: #ffffff;
    color: var(--brand-900);
}

/* lang switcher */
.lang-switch { position: relative; }
.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--ivory);
    font-weight: 600;
    font-size: 0.88rem;
}
.lang-current:hover { background: rgba(255, 255, 255, 0.16); }
.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #fff;
    border-radius: 3px;
    color: var(--brand-800);
    letter-spacing: 0;
    border: 1px solid rgba(0,0,0,0.06);
}
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 6px;
    min-width: 180px;
    list-style: none;
    margin: 0;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    z-index: 100;
}
.lang-switch.open .lang-menu {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--ink-900);
    font-weight: 500;
    font-size: 0.94rem;
}
.lang-menu li a:hover { background: var(--brand-50); }
.lang-menu li[aria-selected="true"] a { background: var(--brand-100); color: var(--brand-800); }

/* mobile nav toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    padding: 0;
    position: relative;
}
.nav-toggle span {
    display: block;
    position: absolute;
    left: 8px; right: 8px;
    height: 2px;
    background: var(--ivory);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 120px);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(63, 111, 133, 0.18), transparent 50%),
        radial-gradient(circle at 100% 20%, rgba(63, 111, 133, 0.10), transparent 55%),
        linear-gradient(180deg, #f3f6f8 0%, #ffffff 65%);
    z-index: -1;
}
.hero-inner {
    display: grid;
    gap: clamp(40px, 5vw, 72px);
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    min-width: 0;
}
.hero-inner > * { min-width: 0; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-700);
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-100);
    margin-bottom: 18px;
}
.eyebrow-light {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

.hero-title {
    margin-bottom: 20px;
    background: linear-gradient(160deg, var(--ink-900) 40%, var(--brand-700) 110%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subtitle {
    font-size: clamp(0.94rem, 0.35vw + 0.86rem, 1.04rem);
    color: var(--ink-700);
    max-width: 58ch;
    line-height: 1.55;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 24px;
}

.hero-badges {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    color: var(--ink-700);
    font-size: 0.95rem;
}
.hero-badges li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero-badges svg { color: var(--brand-700); }

/* hero visual — carousel */
.hero-visual {
    position: relative;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
}
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    min-width: 0;
}
.hero-carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow-lg);
    background: #ffffff;
    border: 1px solid var(--card-border);
    width: 100%;
    max-width: 100%;
}
.hero-carousel-track {
    display: flex;
    transition: transform 520ms cubic-bezier(0.45, 0.05, 0.2, 1);
    will-change: transform;
}
.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 30px 26px 26px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* reason slide */
.hero-slide-reason {
    background: linear-gradient(155deg, #ffffff 0%, var(--brand-50) 100%);
    justify-content: center;
    gap: 14px;
}
.hero-slide-tag {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--brand-700);
    background: rgba(67, 112, 133, 0.11);
    padding: 6px 12px;
    border-radius: 999px;
}
.hero-slide-title {
    font-size: clamp(1.2rem, 1.1vw + 0.9rem, 1.5rem);
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.22;
    margin: 0;
    letter-spacing: -0.012em;
}
.hero-slide-desc {
    color: var(--ink-700);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}

/* chat slide */
.hero-slide-chat {
    gap: 8px;
    background: #ffffff;
}
.hero-slide-label {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.78rem;
    color: var(--brand-800);
    font-weight: 600;
    padding: 4px 11px;
    background: var(--brand-100);
    border-radius: 999px;
    margin-bottom: 10px;
}
.hero-slide-chat-stream {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.chat-line {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.4;
}
.chat-line strong {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.75;
    text-transform: uppercase;
}
.chat-in  { background: var(--brand-50); border-top-left-radius: 4px; max-width: 88%; color: var(--ink-900); }
.chat-out { background: var(--brand-700); color: #ffffff; align-self: flex-end; border-top-right-radius: 4px; max-width: 88%; margin-left: auto; }
.chat-out strong { color: rgba(255, 255, 255, 0.9); }
.chat-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--ink-500);
    margin-top: auto;
    padding: 6px 0 0;
}
.pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #35b97f;
    box-shadow: 0 0 0 rgba(53, 185, 127, 0.5);
    animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(53, 185, 127, 0.5); }
    100% { box-shadow: 0 0 0 10px rgba(53, 185, 127, 0); }
}

/* controls */
.hero-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}
.hero-carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    color: var(--ink-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), color var(--transition);
    padding: 0;
}
.hero-carousel-arrow:hover {
    border-color: var(--brand-700);
    color: var(--brand-700);
    transform: scale(1.06);
}
.hero-carousel-arrow:active { transform: scale(0.98); }
.hero-carousel-dots {
    display: flex;
    gap: 7px;
    align-items: center;
}
.hero-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: var(--ink-300);
    cursor: pointer;
    transition: width var(--transition), background var(--transition);
}
.hero-carousel-dot:hover { background: var(--ink-500); }
.hero-carousel-dot.is-active {
    background: var(--brand-700);
    width: 24px;
}

/* ---------- trust strip ---------- */

.trust {
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 36px 0;
    background: var(--bg-soft);
}
.section-kicker {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
}
.trust-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.trust-stat {
    display: block;
    font-size: clamp(1.6rem, 2vw + 0.8rem, 2.2rem);
    font-weight: 800;
    color: var(--brand-800);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.trust-label {
    display: block;
    color: var(--ink-500);
    font-size: 0.92rem;
    margin-top: 4px;
}

/* ---------- generic section ---------- */

.section { padding: clamp(60px, 6vw, 96px) 0; }
.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}
.section-head p { font-size: 1.05rem; color: var(--ink-500); }

/* ---------- features ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 26px 24px 24px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
    border-color: #d8e1e5;
}
.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-100);
    color: var(--brand-800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { margin: 0; color: var(--ink-500); font-size: 0.96rem; }

/* ---------- how it works ---------- */

.how { background: var(--bg-soft); }
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: stepc;
}
.step {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--brand-700);
    background: var(--brand-100);
    padding: 6px 10px;
    border-radius: 8px;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-500); font-size: 0.94rem; }

/* ---------- pricing ---------- */

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}
.price-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.price-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
    border-color: #c8d3d9;
}
.price-card header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.price-region {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-700);
}
.price-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price-big {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink-900);
    line-height: 1;
}
.price-period { color: var(--ink-500); font-size: 0.95rem; }
.price-currency { font-size: 0.85rem; color: var(--ink-500); }

.price-card-includes {
    background: var(--brand-800);
    color: #fff;
    border-color: var(--brand-800);
}
.price-card-includes h3 { color: #fff; margin-bottom: 12px; font-size: 1.1rem; }
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.check-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.5;
}
.check-list svg { flex-shrink: 0; margin-top: 3px; color: #8fd3b5; }
.price-card-includes .check-list li { color: rgba(255,255,255,0.95); }
.price-note {
    text-align: center;
    margin-top: 22px;
    color: var(--ink-500);
    font-size: 0.93rem;
}

/* Two-card layout when only the region-local price card is rendered */
.price-grid-single {
    grid-template-columns: 0.9fr 1.1fr;
    max-width: 860px;
    margin: 0 auto;
}
.price-card-featured {
    position: relative;
    border-color: var(--brand-700);
    box-shadow: 0 10px 30px -18px rgba(67, 112, 133, 0.6);
}
.price-card-featured::before {
    content: attr(data-badge);
}
.price-region-switch {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--ink-500);
}
.price-region-switch a {
    color: var(--brand-700);
    font-weight: 600;
    border-bottom: 1px dashed rgba(67, 112, 133, 0.4);
    padding-bottom: 1px;
}
.price-region-switch a:hover {
    color: var(--brand-800);
    border-bottom-color: var(--brand-800);
}

@media (max-width: 900px) {
    .price-grid-single { grid-template-columns: 1fr; max-width: 480px; }
}

/* ---------- for companies ---------- */

.companies {
    background: linear-gradient(160deg, var(--brand-800) 0%, var(--brand-900) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.companies::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}
.companies-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
}
.companies h2 { color: #fff; max-width: 18ch; }
.companies-sub { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 54ch; margin-bottom: 24px; }
.companies-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    background: rgba(255,255,255,0.06);
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.12);
}
.companies-bullets li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255,255,255,0.95);
    font-size: 0.98rem;
}
.companies-bullets svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ---------- FAQ ---------- */

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-item[open] {
    border-color: #c8d3d9;
    box-shadow: var(--card-shadow);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: var(--ink-900);
    font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
    color: var(--brand-700);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
    padding: 0 24px 20px;
    color: var(--ink-700);
    font-size: 0.97rem;
    line-height: 1.65;
}

/* ---------- contact ---------- */

.contact { background: var(--bg-soft); }
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.contact-sub { color: var(--ink-500); margin-bottom: 18px; max-width: 40ch; }
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.contact-info li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-700);
    font-weight: 500;
}
.contact-info svg { color: var(--brand-700); }

.contact-form {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    gap: 18px;
    box-shadow: var(--card-shadow);
}
.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--ink-700);
}
.contact-form label.full { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink-900);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-700);
    box-shadow: 0 0 0 4px rgba(63, 111, 133, 0.12);
}
.form-consent { font-size: 0.8rem; color: var(--ink-500); margin: 0; }

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
}
.alert-success { background: #e2f6eb; color: #186a3b; border: 1px solid #bfe4cd; }
.alert-error   { background: #fde3e3; color: #8f2020; border: 1px solid #f1bcbc; }

/* ---------- footer ---------- */

.site-footer {
    background: var(--brand-900);
    color: rgba(255,255,255,0.85);
    padding-top: 56px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-tagline { color: rgba(255,255,255,0.7); margin-top: 12px; max-width: 36ch; }
.footer-col h4 {
    color: #fff;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-col a[aria-current="true"] { color: #fff; font-weight: 600; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
}
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}
.footer-small-links { display: flex; gap: 18px; }
.footer-small-links a { color: rgba(255,255,255,0.7); }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
    :root {
        --header-height: 120px;
        --logo-size: 90px;
    }
    .brand-logo { border-radius: 12px; }
    .brand-logo-footer { width: 80px; height: 80px; }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { min-height: 0; margin-top: 24px; }
    .hero-carousel { max-width: 100%; margin: 0 auto; }

    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .price-grid { grid-template-columns: 1fr; }
    .companies-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    :root {
        --header-height: 104px;
        --logo-size: 72px;
    }
    .brand-logo { border-radius: 10px; }
    .brand-logo-footer { width: 64px; height: 64px; }

    /* Hero carousel: tighter, shorter, denser on phones */
    .hero-slide {
        min-height: 260px;
        padding: 22px 20px 20px;
    }
    .hero-slide-reason { gap: 10px; }
    .hero-slide-title {
        font-size: 1.06rem;
        line-height: 1.28;
    }
    .hero-slide-desc {
        font-size: 0.92rem;
        line-height: 1.5;
    }
    .hero-slide-tag,
    .hero-slide-label {
        font-size: 0.64rem;
        letter-spacing: 0.12em;
        padding: 4px 10px;
        margin-bottom: 6px;
    }
    .chat-line {
        font-size: 0.88rem;
        padding: 9px 12px;
        margin-bottom: 6px;
        border-radius: 12px;
    }
    .chat-line strong { font-size: 0.64rem; }
    .chat-status { font-size: 0.72rem; padding-top: 4px; }
    .hero-carousel-viewport { border-radius: 18px; }
    .hero-carousel-controls { gap: 10px; margin-top: 12px; }
    .hero-carousel-arrow { width: 32px; height: 32px; }
    .hero-carousel-dot { width: 7px; height: 7px; }
    .hero-carousel-dot.is-active { width: 20px; }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--brand-850);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 32px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        z-index: 30;
    }
    .main-nav.open { transform: none; }
    .main-nav a {
        width: 100%;
        padding: 16px 4px;
        font-size: 1.1rem;
        color: var(--ivory);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .main-nav a::after { display: none; }

    .nav-toggle { display: inline-block; }
    .hide-on-mobile { display: none !important; }

    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .hero-ctas .btn { flex: 1; }
    .hero-card { padding: 18px; }
}

@media (max-width: 480px) {
    :root {
        --header-height: 88px;
        --logo-size: 56px;
    }
    .brand-logo-footer { width: 52px; height: 52px; }

    /* Tighter container gutters so the carousel card doesn't crowd the edges */
    .container { padding: 0 16px; }

    /* Hero carousel on the smallest phones: tightest form */
    .hero-slide {
        min-height: 240px;
        padding: 18px 16px 14px;
    }
    .hero-slide-title { font-size: 1rem; line-height: 1.25; }
    .hero-slide-desc  { font-size: 0.88rem; line-height: 1.5; }
    .chat-line {
        font-size: 0.84rem;
        padding: 8px 11px;
        border-radius: 11px;
    }
    .chat-in, .chat-out { max-width: 92%; }
    .hero-carousel-viewport { border-radius: 14px; }
    .hero-carousel-controls { margin-top: 10px; }
    .hero-carousel-arrow { width: 30px; height: 30px; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .brand-name { display: none; }
    h1 { font-size: 1.55rem; }
}

/* ==========================================================================
   Corporate pages (About + Jobs)
   ========================================================================== */

.corp-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 10vw, 120px) 0 clamp(72px, 9vw, 110px);
    background: linear-gradient(180deg, var(--brand-850) 0%, var(--brand-900) 100%);
    color: var(--ivory);
    text-align: center;
}
.corp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(67, 112, 133, 0.25), transparent 60%);
    pointer-events: none;
}
.corp-hero-inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
}
.corp-hero .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ivory);
    margin-bottom: 22px;
}
.corp-hero-title {
    font-size: clamp(1.9rem, 3.5vw + 0.8rem, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ivory);
    margin: 0 0 18px;
    line-height: 1.12;
    background: linear-gradient(160deg, #ffffff 35%, var(--brand-500) 110%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.corp-hero-subtitle {
    font-size: clamp(0.98rem, 0.4vw + 0.9rem, 1.12rem);
    color: rgba(236, 235, 231, 0.85);
    max-width: 62ch;
    margin: 0 auto;
    line-height: 1.6;
}

.corp-label {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-700);
    margin-bottom: 14px;
}

/* ---------- About: story ---------- */

.corp-story { background: #fff; }
.corp-story-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.corp-story-intro h2 {
    font-size: clamp(1.4rem, 1.2vw + 1rem, 1.8rem);
    line-height: 1.25;
    margin: 0;
}
.corp-story-body p {
    font-size: 1.04rem;
    line-height: 1.75;
    color: var(--ink-700);
    margin: 0 0 1.1em;
}
.corp-story-body p:first-child::first-letter {
    float: left;
    font-size: 3rem;
    line-height: 0.9;
    font-weight: 800;
    color: var(--brand-700);
    padding-right: 8px;
    padding-top: 4px;
}

/* ---------- Shared strategy band (About + Jobs) ---------- */

.corp-strategy {
    background: #ffffff;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}
.corp-strategy-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.corp-strategy-head .corp-label { margin-bottom: 10px; }
.corp-strategy-lead {
    font-size: clamp(0.95rem, 0.4vw + 0.82rem, 1.08rem);
    font-weight: 700;
    color: var(--brand-700);
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    text-transform: none;
}
.corp-strategy-head h2 {
    font-size: clamp(1.6rem, 1.6vw + 1rem, 2.3rem);
    margin: 0 0 18px;
    line-height: 1.2;
}
.corp-strategy-body {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--ink-700);
    margin: 0 0 1em;
}

.corp-pillars {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}
.corp-pillars li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 18px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    background: linear-gradient(160deg, #ffffff 0%, var(--brand-50) 160%);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.corp-pillars li:hover {
    border-color: var(--brand-500);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}
.corp-pillar-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--brand-100);
    color: var(--brand-800);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}
.corp-pillars h3 {
    font-size: 1.02rem;
    margin: 0 0 4px;
    color: var(--ink-900);
}
.corp-pillars p {
    margin: 0;
    color: var(--ink-500);
    font-size: 0.94rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .corp-strategy-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- About: team + stats ---------- */

.corp-team {
    background: var(--bg-soft);
}
.corp-team-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}
.corp-team-head h2 {
    font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
    margin-bottom: 12px;
}
.corp-team-head p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--ink-700);
}
.corp-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.corp-stats li {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.corp-stats li:hover {
    transform: translateY(-2px);
    border-color: var(--brand-500);
    box-shadow: var(--card-shadow);
}
.corp-stat-num {
    display: block;
    font-size: clamp(1.8rem, 1.6vw + 1rem, 2.4rem);
    font-weight: 800;
    color: var(--brand-800);
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.corp-stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-500);
    margin-top: 6px;
    line-height: 1.35;
}

/* ---------- About: values ---------- */

.corp-values { background: #fff; }
.corp-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.corp-value-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 30px 28px 24px;
    position: relative;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.corp-value-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-500);
    box-shadow: var(--card-shadow);
}
.corp-value-num {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--brand-700);
    background: var(--brand-100);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.corp-value-card h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
    color: var(--ink-900);
}
.corp-value-card p {
    margin: 0;
    color: var(--ink-500);
    font-size: 0.96rem;
    line-height: 1.6;
}

/* ---------- About: leader / founder spotlight ---------- */

.corp-leader {
    background: #ffffff;
    border-top: 1px solid var(--card-border);
}
.corp-leader-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(24px, 4vw, 44px);
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
}
.corp-leader-photo-wrap {
    position: relative;
    flex-shrink: 0;
}
.corp-leader-photo-wrap::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--brand-500) 0%, var(--brand-800) 100%);
    z-index: -1;
    opacity: 0.18;
}
.corp-leader-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 55%;
    box-shadow: 0 10px 24px -12px rgba(20, 36, 44, 0.35);
    border: 3px solid #ffffff;
    display: block;
}
.corp-leader-body h2 {
    font-size: clamp(1.5rem, 1.3vw + 1rem, 1.85rem);
    margin: 2px 0 4px;
}
.corp-leader-role {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--brand-700);
    margin: 0 0 14px;
    letter-spacing: -0.005em;
}
.corp-leader-body p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--ink-700);
    margin: 0 0 0.9em;
}
.corp-leader-meta {
    list-style: none;
    padding: 14px 0 0;
    margin: 8px 0 0;
    border-top: 1px solid var(--card-border);
    display: grid;
    gap: 6px;
}
.corp-leader-meta li {
    font-size: 0.9rem;
    color: var(--ink-500);
    line-height: 1.5;
}
.corp-leader-meta strong {
    color: var(--ink-900);
    font-weight: 700;
}

@media (max-width: 560px) {
    .corp-leader-inner { grid-template-columns: 1fr; justify-items: start; gap: 18px; }
    .corp-leader-photo { width: 112px; height: 112px; }
}

/* ---------- About: CTA band ---------- */

.corp-cta {
    background: linear-gradient(160deg, var(--brand-800) 0%, var(--brand-900) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.corp-cta::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
}
.corp-cta-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
    position: relative;
}
.corp-cta h2 { color: #fff; font-size: clamp(1.4rem, 1.2vw + 1rem, 1.9rem); margin-bottom: 10px; }
.corp-cta p  { color: rgba(255, 255, 255, 0.8); margin: 0; }
.corp-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.corp-cta .btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
}
.corp-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #ffffff; }

/* ---------- Jobs page ---------- */

.corp-hero-jobs {
    background: linear-gradient(180deg, var(--brand-850) 0%, var(--brand-900) 100%);
}

.jobs-why { background: var(--bg-soft); }
.jobs-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.jobs-why-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 26px 24px 22px;
    transition: transform var(--transition), border-color var(--transition);
}
.jobs-why-card:hover { transform: translateY(-2px); border-color: var(--brand-500); }
.jobs-why-num {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--brand-700);
    background: var(--brand-100);
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.jobs-why-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.jobs-why-card p  { margin: 0; color: var(--ink-500); font-size: 0.95rem; line-height: 1.55; }

.jobs-roles { background: #fff; }
.jobs-roles-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.jobs-roles-inner h2 { margin-bottom: 14px; }
.jobs-roles-inner p { font-size: 1.04rem; line-height: 1.7; color: var(--ink-700); }

/* --- Jobs apply form --- */

.jobs-apply { background: var(--bg-soft); }
.jobs-apply-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.jobs-apply-intro h2 {
    font-size: clamp(1.6rem, 1.6vw + 1rem, 2.1rem);
    margin-bottom: 12px;
}
.jobs-apply-intro p {
    font-size: 1.02rem;
    color: var(--ink-700);
    line-height: 1.65;
}

.jobs-form {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--card-shadow);
    display: grid;
    gap: 18px;
}
.jobs-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--ink-700);
}
.jobs-form label.full { grid-column: 1 / -1; }
.jobs-form input:not([type=file]),
.jobs-form select,
.jobs-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink-900);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.jobs-form input:focus,
.jobs-form select:focus,
.jobs-form textarea:focus {
    outline: none;
    border-color: var(--brand-700);
    box-shadow: 0 0 0 4px rgba(67, 112, 133, 0.12);
}

.jobs-file-field {
    padding: 16px;
    border: 1.5px dashed var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--brand-50);
    transition: border-color var(--transition), background var(--transition);
}
.jobs-file-field:hover { border-color: var(--brand-500); background: #ffffff; }
.jobs-file-field input[type=file] {
    padding: 6px 0;
    font-size: 0.95rem;
    cursor: pointer;
    background: transparent;
    border: none;
}
.jobs-file-field input[type=file]::file-selector-button {
    font-family: inherit;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--brand-700);
    background: #fff;
    color: var(--brand-700);
    cursor: pointer;
    margin-right: 14px;
    transition: background var(--transition), color var(--transition);
}
.jobs-file-field input[type=file]::file-selector-button:hover {
    background: var(--brand-700);
    color: #fff;
}
.field-hint {
    font-size: 0.82rem;
    color: var(--ink-500);
    margin-top: 2px;
}

/* Languages fieldset */
.jobs-languages {
    grid-column: 1 / -1;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 18px 18px 12px;
    background: #fdfdfd;
    margin: 0;
}
.jobs-languages legend {
    padding: 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-900);
}
.jobs-languages-hint {
    margin: -4px 0 14px;
    font-size: 0.86rem;
    color: var(--ink-500);
}
.lang-rows {
    display: grid;
    gap: 10px;
}
.lang-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}
.lang-row select {
    padding: 10px 12px;
    font-size: 0.96rem;
}
.lang-row-remove {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.lang-row-remove:hover {
    color: #c53333;
    border-color: #e07272;
    background: #fff7f7;
}
.lang-rows .lang-row:first-child:last-child .lang-row-remove {
    visibility: hidden; /* can't remove the only row */
}
.jobs-add-lang {
    margin-top: 12px;
    background: transparent;
    border: 1px dashed var(--brand-500);
    color: var(--brand-700);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}
.jobs-add-lang:hover {
    background: var(--brand-50);
    border-color: var(--brand-700);
    border-style: solid;
}

/* ---------- Corporate pages: responsive ---------- */

@media (max-width: 900px) {
    .corp-story-grid       { grid-template-columns: 1fr; gap: 24px; }
    .corp-stats            { grid-template-columns: repeat(2, 1fr); }
    .corp-cta-inner        { grid-template-columns: 1fr; text-align: left; }
    .corp-cta-actions      { justify-content: flex-start; }
    .jobs-apply-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .corp-stats            { grid-template-columns: 1fr 1fr; }
    .lang-row              { grid-template-columns: 1fr 1fr; }
    .lang-row-remove       { grid-column: 1 / -1; width: 100%; height: 34px; }
    .jobs-form             { padding: 22px; }
}

/* ---------- footer: Made in Europe ---------- */

.footer-made-in-europe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
    font-weight: 500;
}
.footer-eu-flag {
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Active nav link (for About/Careers subpages) */
.main-nav a[aria-current="page"] {
    color: var(--ivory);
}
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ==========================================================================
   Role pill + role picker + role banner
   ========================================================================== */

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--ivory);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background var(--transition);
}
.role-pill:hover { background: rgba(255, 255, 255, 0.16); }
.role-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #888;
    flex-shrink: 0;
}
.role-pill-dot-host    { background: #8fd3b5; }
.role-pill-dot-agency  { background: #f4c56b; }
.role-pill-dot-seeker  { background: #a8c8f0; }

.role-picker {
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(15, 28, 35, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 280ms ease;
    overflow-y: auto;
}
.role-picker[hidden] { display: none; }
.role-picker.visible { opacity: 1; }

.role-picker-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 30px 26px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.4);
    transform: translateY(18px);
    transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.role-picker.visible .role-picker-card { transform: none; }
.role-picker-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: transparent;
    border: none;
    color: var(--ink-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}
.role-picker-close:hover { background: var(--brand-50); color: var(--ink-900); }

.role-picker-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--ink-900);
    text-align: center;
}
.role-picker-sub {
    margin: 0 0 22px;
    color: var(--ink-500);
    font-size: 0.95rem;
    text-align: center;
}
.role-picker-list {
    display: grid;
    gap: 10px;
}
.role-picker-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--ink-900);
    background: #fff;
    transition: all 160ms;
}
.role-picker-option:hover {
    border-color: var(--brand-700);
    background: var(--brand-50);
    transform: translateX(2px);
}
.role-picker-option.is-current {
    border-color: var(--brand-700);
    background: var(--brand-50);
}
.role-picker-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-100);
    color: var(--brand-800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.role-picker-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.role-picker-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
}
.role-picker-text span {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--ink-500);
    line-height: 1.45;
}
.role-picker-arrow {
    color: var(--brand-600);
    opacity: 0.5;
    flex-shrink: 0;
    transition: all var(--transition);
}
.role-picker-option:hover .role-picker-arrow {
    opacity: 1;
    transform: translateX(2px);
}
.role-picker-skip {
    display: block;
    margin: 18px auto 0;
    background: none;
    border: none;
    color: var(--ink-500);
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 6px 12px;
}
.role-picker-skip:hover { color: var(--ink-900); }

body.role-picker-open { overflow: hidden; }

/* Role banner — shown between hero and the rest for non-default roles */
.role-banner {
    background: linear-gradient(160deg, var(--brand-800) 0%, var(--brand-900) 100%);
    color: #ffffff;
    padding: 38px 0;
    position: relative;
    overflow: hidden;
}
.role-banner::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}
.role-banner-inner {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}
.role-banner-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.role-banner h2 {
    color: #ffffff;
    font-size: clamp(1.2rem, 1.2vw + 0.9rem, 1.7rem);
    margin: 0 0 6px;
    line-height: 1.2;
}
.role-banner p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 56ch;
}
.role-banner .btn-primary {
    background: #ffffff;
    color: var(--brand-900);
    border-color: #ffffff;
}
.role-banner .btn-primary:hover {
    background: var(--brand-50);
    color: var(--brand-900);
}

@media (max-width: 560px) {
    .role-picker-card { padding: 30px 20px 22px; border-radius: 20px; }
    .role-picker-option { padding: 13px 12px; gap: 12px; }
    .role-picker-icon { width: 36px; height: 36px; }
    .role-picker-text strong { font-size: 0.95rem; }
    .role-picker-text span { font-size: 0.82rem; }

    .role-pill-label { display: none; } /* shrink to a dot on narrow screens */
    .role-pill { padding: 7px 9px; }

    .role-banner-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   /select-language — full-page language + role picker
   ========================================================================== */

body.select-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(160deg, var(--brand-850) 0%, var(--brand-900) 100%);
    color: var(--ivory);
    overflow-x: hidden;
}

.select-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 64px) 20px;
    overflow: hidden;
    isolation: isolate;
}

/* drifting icon background */
.select-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.select-bg::before {
    /* soft radial highlight so the content column has better contrast */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.35) 0%, transparent 70%),
        radial-gradient(circle at 100% 0%, rgba(67, 112, 133, 0.25), transparent 55%);
    z-index: 1;
}
.select-icon {
    position: absolute;
    left: -80px;
    display: inline-flex;
    color: var(--ivory);
    opacity: 0;
    animation-name: iconDrift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}
.select-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
@keyframes iconDrift {
    0%   { transform: translateX(0)                          rotate(var(--icon-rot, 0)); opacity: 0; }
    8%   { opacity: 0.4; }
    92%  { opacity: 0.35; }
    100% { transform: translateX(calc(100vw + 160px))        rotate(calc(var(--icon-rot, 0) + 20deg)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .select-icon { display: none; }
}

/* centred content column */
.select-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 840px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.select-logo {
    display: inline-block;
    transition: transform var(--transition);
}
.select-logo:hover { transform: translateY(-2px); }
.select-logo img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

/* reuse of the rotating welcome, but larger on the full page */
.select-welcome {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4em;
    width: 100%;
    font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}
.select-welcome span {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: select-welcome-rotate 16s infinite ease-in-out;
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.select-welcome span:nth-child(1) { animation-delay:  0s; }
.select-welcome span:nth-child(2) { animation-delay:  2s; }
.select-welcome span:nth-child(3) { animation-delay:  4s; }
.select-welcome span:nth-child(4) { animation-delay:  6s; }
.select-welcome span:nth-child(5) { animation-delay:  8s; }
.select-welcome span:nth-child(6) { animation-delay: 10s; }
.select-welcome span:nth-child(7) { animation-delay: 12s; }
.select-welcome span:nth-child(8) { animation-delay: 14s; }
@keyframes select-welcome-rotate {
    0%   { opacity: 0; transform: translateY(10px); filter: blur(3px); }
    2%   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
    10%  { opacity: 1; transform: translateY(0);    filter: blur(0);   }
    12.5%{ opacity: 0; transform: translateY(-10px); filter: blur(3px); }
    100% { opacity: 0; transform: translateY(-10px); filter: blur(3px); }
}
@media (prefers-reduced-motion: reduce) {
    .select-welcome span { animation: none; }
    .select-welcome span:first-child { opacity: 1; transform: none; filter: none; }
}

.select-step { width: 100%; }
.select-step-title {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(236, 235, 231, 0.7);
    margin: 0 0 14px;
}

/* language grid */
.select-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
}
.select-lang-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: var(--ivory);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 160ms ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.select-lang-tile:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    color: var(--ivory);
}
.select-lang-tile.is-active {
    background: var(--ivory);
    color: var(--brand-900);
    border-color: var(--ivory);
}
.select-lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #ffffff;
    color: var(--brand-800);
    border-radius: 3px;
    flex-shrink: 0;
}

/* role grid */
.select-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}
.select-role-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 20px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    color: var(--ink-900);
    text-decoration: none;
    text-align: left;
    transition: all 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.45);
}
.select-role-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
    color: var(--ink-900);
}
.select-role-tile.is-current {
    border-color: var(--brand-700);
    box-shadow: 0 0 0 3px rgba(67, 112, 133, 0.3), 0 12px 32px -18px rgba(0, 0, 0, 0.45);
}
.select-role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-100);
    color: var(--brand-800);
    margin-bottom: 4px;
}
.select-role-tile strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
    line-height: 1.3;
}
.select-role-desc {
    font-size: 0.88rem;
    color: var(--ink-500);
    line-height: 1.5;
}

.select-foot {
    margin: 10px 0 0;
    color: rgba(236, 235, 231, 0.55);
    font-size: 0.85rem;
}

@media (max-width: 560px) {
    .select-welcome { font-size: clamp(1.4rem, 7vw, 2.1rem); }
    .select-lang-grid { grid-template-columns: repeat(2, 1fr); }
    .select-role-grid { grid-template-columns: 1fr; }
    .select-role-tile { padding: 18px 16px 16px; }
}

/* ==========================================================================
   English-only notice modal (About + Careers)
   ========================================================================== */

.en-only-notice {
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(15, 28, 35, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 280ms ease;
    overflow-y: auto;
}
.en-only-notice.visible { opacity: 1; }
.en-only-notice-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 34px 30px 28px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.4);
    text-align: center;
    transform: translateY(18px);
    transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.en-only-notice.visible .en-only-notice-card { transform: none; }
.en-only-notice-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: var(--brand-100);
    color: var(--brand-800);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.en-only-notice h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--ink-900);
}
.en-only-notice p {
    color: var(--ink-700);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0 0 22px;
}
body.en-only-open { overflow: hidden; }

/* ---------- first-visit language picker ---------- */

.lang-picker {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 28, 35, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 280ms ease;
    overflow-y: auto;
}
.lang-picker[hidden] { display: none; }
.lang-picker.visible { opacity: 1; }

.lang-picker-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 28px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.4);
    transform: translateY(18px);
    transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
    text-align: center;
}
.lang-picker.visible .lang-picker-card { transform: none; }

.lang-picker-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    display: block;
    margin: 0 auto 18px;
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.3);
}

.lang-picker-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--ink-900);
}

/* Rotating multilingual "Welcome" — each span fades in/out in turn.
   Cycle: 14s, 7 languages, 2s each (0.3s fade, 1.4s hold, 0.3s fade).
*/
.lang-picker-welcome {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2em;
    margin: 10px 0 14px;
    font-size: clamp(1.3rem, 1.2vw + 1rem, 1.6rem);
    font-weight: 800;
    color: var(--brand-700);
    letter-spacing: -0.015em;
}
.lang-picker-welcome span {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(8px);
    animation: welcome-rotate 14s infinite ease-in-out;
    white-space: nowrap;
}
.lang-picker-welcome span:nth-child(1) { animation-delay:  0s; }
.lang-picker-welcome span:nth-child(2) { animation-delay:  2s; }
.lang-picker-welcome span:nth-child(3) { animation-delay:  4s; }
.lang-picker-welcome span:nth-child(4) { animation-delay:  6s; }
.lang-picker-welcome span:nth-child(5) { animation-delay:  8s; }
.lang-picker-welcome span:nth-child(6) { animation-delay: 10s; }
.lang-picker-welcome span:nth-child(7) { animation-delay: 12s; }

@keyframes welcome-rotate {
    0%   { opacity: 0; transform: translateY(8px);   filter: blur(2px); }
    2%   { opacity: 1; transform: translateY(0);     filter: blur(0);   }
    12%  { opacity: 1; transform: translateY(0);     filter: blur(0);   }
    14%  { opacity: 0; transform: translateY(-8px);  filter: blur(2px); }
    100% { opacity: 0; transform: translateY(-8px);  filter: blur(2px); }
}

@media (prefers-reduced-motion: reduce) {
    .lang-picker-welcome span { animation: none; }
    .lang-picker-welcome span:first-child { opacity: 1; transform: none; filter: none; }
}
.lang-picker-prompt {
    margin: 0 0 22px;
    color: var(--ink-500);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.lang-picker-list {
    display: grid;
    gap: 10px;
    text-align: left;
}
.lang-picker-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--ink-900);
    font-weight: 600;
    font-size: 1.02rem;
    transition: all 160ms ease;
    background: #ffffff;
}
.lang-picker-list a:hover {
    border-color: var(--brand-700);
    background: var(--brand-50);
    transform: translateX(2px);
}
.lang-picker-list a[data-preferred="true"] {
    border-color: var(--brand-700);
    background: var(--brand-50);
    box-shadow: 0 0 0 3px rgba(67, 112, 133, 0.15);
}
.lang-picker-list .lang-flag {
    width: 32px;
    height: 22px;
    font-size: 0.86rem;
    color: var(--brand-800);
}
.lang-picker-name { flex: 1; }
.lang-picker-arrow {
    color: var(--brand-600);
    opacity: 0.5;
    transition: opacity 160ms ease, transform 160ms ease;
}
.lang-picker-list a:hover .lang-picker-arrow,
.lang-picker-list a[data-preferred="true"] .lang-picker-arrow {
    opacity: 1;
    transform: translateX(2px);
}

body.lang-picker-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .lang-picker-card { padding: 26px 20px 22px; border-radius: 20px; }
    .lang-picker-title { font-size: 1.2rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
