/* Auditee landing — theme tokens mirror the app's Tailwind config */
:root {
    color-scheme: light;

    --brand-50:  #effefb;
    --brand-100: #c8fff4;
    --brand-200: #92fee9;
    --brand-300: #53f5da;
    --brand-400: #20e0c6;
    --brand-500: #07c4ad;
    --brand-600: #029e8e;
    --brand-700: #067e73;
    --accent:    #d4983b;

    --surface-50:  #f8fafb;
    --surface-100: #f0f3f5;
    --surface-200: #e2e7eb;
    --surface-300: #c8d1d8;
    --surface-400: #8e9daa;
    --surface-500: #64758b;
    --surface-600: #475569;
    --surface-700: #334155;
    --surface-800: #1e293b;
    --surface-900: #0f172a;
    --surface-950: #020617;

    --font-sans:  'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --nav-h: 4rem;
    --gutter: 1.5rem;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    color: var(--surface-800);
    background: var(--surface-50);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; display: flex; flex-direction: column; }
.panel { flex: 1; display: flex; flex-direction: column; }

/* ---------- Navbar: transparent overlay over the panels ---------- */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
}

.nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Keycloak-style language menu (mirrors welcomeLangMenu in the app) */
.lang-menu { position: relative; }

.lang-button {
    appearance: none;
    background: none;
    border: 0;
    font: inherit;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.15s ease;
}

.lang-button:hover,
.lang-menu.open .lang-button { color: #fff; }

.lang-button:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    padding-top: 0.25rem;   /* keeps hover alive across the gap */
    z-index: 30;
    animation: menuIn 0.15s ease-out;
}

.lang-list {
    list-style: none;
    width: 9rem;
    background: #fff;
    border: 1px solid var(--surface-200);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.lang-list a {
    display: block;
    padding: 0.375rem 0.75rem;
    color: var(--surface-700);
    text-decoration: none;
}

.lang-list a:hover { background: var(--surface-50); }

.lang-list a[aria-current="true"] {
    font-weight: 600;
    color: var(--brand-700);
}

/* ---------- Dark hero: logo + help text ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--surface-900);
    color: #fff;
    padding: calc(var(--nav-h) + 2rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 158, 142, 0.15) 0%, transparent 50%, rgba(2, 158, 142, 0.05) 100%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    background: rgba(7, 196, 173, 0.10);
    filter: blur(64px);
    pointer-events: none;
}

.hero-glow-1 { top: 25%; left: -5rem; width: 20rem; height: 20rem; }
.hero-glow-2 { bottom: 25%; right: 2.5rem; width: 15rem; height: 15rem; }

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
    text-align: center;
}

.hero-logo {
    height: clamp(2.5rem, 5vw, 3.5rem);
    width: auto;
    margin: 0 auto 1.75rem;
    display: block;
}

.hero-lead {
    font-weight: 700;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 auto 0.875rem;
    max-width: 52rem;
}

.hero-detail {
    font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
    line-height: 1.7;
    color: var(--surface-300);
    margin: 0 auto;
    max-width: 56rem;
}

/* ---------- Light section: coming soon ---------- */
.soon {
    flex: 1;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(4rem, 9vw, 6rem) var(--gutter);
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(200, 255, 244, 0.45) 0%, transparent 70%),
        var(--surface-50);
}

.check {
    width: clamp(7rem, 18vw, 9.5rem);
    height: auto;
    margin-bottom: 1.25rem;
    overflow: visible;
}

.check circle {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    animation:
        pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        breathe 3.2s ease-in-out infinite;
    animation-delay:
        calc(0.4s + var(--i) * 90ms),
        calc(2s + var(--i) * 110ms);
}

/* Draw order + original colours/opacities of the Auditee mark */
.check circle:nth-child(1)  { --i: 0;  --o: 1;    fill: var(--brand-700); }
.check circle:nth-child(2)  { --i: 1;  --o: 1;    fill: var(--brand-600); }
.check circle:nth-child(3)  { --i: 2;  --o: 1;    fill: var(--brand-600); }
.check circle:nth-child(4)  { --i: 3;  --o: 0.5;  fill: var(--brand-500); }
.check circle:nth-child(5)  { --i: 4;  --o: 0.25; fill: var(--brand-500); }
.check circle:nth-child(6)  { --i: 5;  --o: 0.6;  fill: var(--accent); }
.check circle:nth-child(7)  { --i: 6;  --o: 1;    fill: var(--brand-600); }
.check circle:nth-child(8)  { --i: 7;  --o: 0.75; fill: var(--accent); }
.check circle:nth-child(9)  { --i: 8;  --o: 1;    fill: var(--brand-600); }
.check circle:nth-child(10) { --i: 9;  --o: 1;    fill: var(--brand-600); }
.check circle:nth-child(11) { --i: 10; --o: 1;    fill: var(--brand-600); }
.check circle:nth-child(12) { --i: 11; --o: 1;    fill: var(--brand-700); }
.check circle:nth-child(13) { --i: 12; --o: 1;    fill: var(--brand-700); }

.soon-title {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--surface-950);
}

.soon-text {
    font-size: 1rem;
    color: var(--surface-500);
    max-width: 30rem;
}

/* ---------- Footer ---------- */
.footer {
    width: 100%;
    padding: 1.25rem var(--gutter);
    border-top: 1px solid var(--surface-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--surface-400);
}

.footer-link {
    color: var(--surface-500);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover { color: var(--brand-600); }

/* ---------- Motion ---------- */
.fade-up { animation: fadeUp 0.7s ease-out both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes menuIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pop {
    from { opacity: 0; transform: scale(0.2); }
    to   { opacity: var(--o, 1); transform: scale(1); }
}

@keyframes breathe {
    0%, 100% { opacity: var(--o, 1); transform: scale(1); }
    50%      { opacity: calc(var(--o, 1) * 0.5); transform: scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
    .check circle { opacity: var(--o, 1); }
}

/* ---------- Responsive ---------- */
/* Desktop: side-by-side like the app's welcome page (dark branding left, light content right) */
@media (min-width: 1024px) {
    .split { display: grid; grid-template-columns: 1fr 1fr; }
    .hero, .soon { padding: calc(var(--nav-h) + 2rem) clamp(2.5rem, 6vw, 6rem) 4rem; }
    .lang-button { color: var(--surface-500); }
    .lang-button:hover,
    .lang-menu.open .lang-button { color: var(--surface-700); }
    .hero-inner { max-width: 34rem; text-align: left; }
    .hero-logo { margin-left: 0; }
    .hero-lead, .hero-detail { margin-left: 0; }
    .hero-lead { font-size: clamp(1.375rem, 1.9vw, 1.75rem); }
    .hero-detail { max-width: 32rem; }
}

@media (max-width: 640px) {
    :root { --gutter: 1.25rem; }
    .footer { flex-direction: column; text-align: center; }
}
