:root {
    color-scheme: light;
    --ink: #080808;
    --body: #363636;
    --muted: #5a5a5a;
    --line: #d8d8d8;
    --purple: #7a3dff;
    --pink: #ed52cb;
    --blue: #3b89ff;
    --orange: #ff6b00;
    --green: #00d722;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.6 Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.welcome-page { min-height: 100vh; min-height: 100dvh; }
.welcome-shell { width: min(1480px, 100%); min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 32px clamp(24px, 4.5vw, 72px) 48px; display: flex; flex-direction: column; }
.welcome-shell[hidden], .client-workflow-frame[hidden], .fullscreen-control[hidden], .fullscreen-control svg[hidden] { display: none; }
.client-workflow-frame { position: fixed; z-index: 5; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

.welcome-header { min-height: 52px; padding-right: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.welcome-brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 50px; height: 50px; flex: none; border: 1px solid var(--line); border-radius: 9999px; display: grid; place-items: center; overflow: hidden; background: #fff; font-size: 14px; font-weight: 600; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.welcome-brand__text { display: flex; flex-direction: column; }
.welcome-brand__text strong { font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.welcome-brand__text span { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.welcome-header__label { margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-align: right; text-transform: uppercase; }

.welcome-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(44px, 7vw, 120px); }
.welcome-card { min-width: 0; padding: 70px 0; }
.government-name { margin: 0 0 22px; font-size: 15px; font-weight: 500; letter-spacing: 1.5px; line-height: 1.3; text-transform: uppercase; }
.welcome-card h1 { max-width: 700px; margin: 0; font-size: clamp(52px, 6vw, 80px); font-weight: 600; letter-spacing: -.01em; line-height: 1.04; }
.welcome-instruction { max-width: 560px; margin: 28px 0 32px; color: var(--body); font-size: clamp(18px, 1.65vw, 22px); line-height: 1.55; }
.button--start { min-height: 52px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; background: var(--ink); color: #fff; font: 500 16px/1.4 Inter, Arial, sans-serif; text-decoration: none; transition: background-color .15s, transform .15s; }
.button--start:hover { background: #222; transform: translateY(-1px); }
.button--start:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.button--start span { font-size: 22px; line-height: 1; }
.welcome-footnote { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.welcome-steps { width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.welcome-step { min-height: 160px; grid-column: span 2; padding: 20px; border-radius: 8px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; line-height: 1.2; }
.welcome-step:nth-child(4), .welcome-step:nth-child(5) { grid-column: span 3; }
.welcome-step span { font-size: 13px; font-weight: 500; }
.welcome-step strong { max-width: 10ch; font-size: clamp(19px, 2vw, 27px); font-weight: 500; letter-spacing: -.02em; }
.welcome-step--purple { background: var(--purple); }
.welcome-step--pink { background: var(--pink); color: var(--ink); }
.welcome-step--blue { background: var(--blue); color: var(--ink); }
.welcome-step--orange { background: var(--orange); color: var(--ink); }
.welcome-step--green { background: var(--green); color: var(--ink); }

.fullscreen-control { position: fixed; z-index: 10; top: 32px; right: clamp(24px, 4.5vw, 72px); width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; background: #fff; color: var(--ink); cursor: pointer; }
.fullscreen-control:hover { border-color: var(--ink); background: #f7f7f7; }
.fullscreen-control:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.fullscreen-control svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: square; }

@media (max-width: 1050px) {
    .welcome-layout { gap: 36px; }
    .welcome-card h1 { font-size: clamp(48px, 5.4vw, 64px); }
    .welcome-step { min-height: 130px; padding: 16px; }
}
@media (max-width: 800px) {
    .welcome-shell { max-width: 640px; padding: 24px 20px 48px; }
    .welcome-layout { grid-template-columns: 1fr; gap: 24px; align-content: start; }
    .welcome-card { padding: 68px 0 8px; }
    .welcome-card h1 { font-size: clamp(48px, 8vw, 64px); }
    .welcome-instruction { margin: 22px 0 26px; }
    .welcome-steps { max-width: none; }
    .welcome-step { min-height: 104px; }
    .fullscreen-control { top: 24px; right: 20px; }
}
@media (max-width: 479px) {
    .welcome-shell { padding: 20px 16px 40px; }
    .welcome-header { padding-right: 58px; }
    .welcome-header__label { display: none; }
    .brand-logo { width: 44px; height: 44px; }
    .welcome-card { padding-top: 48px; }
    .government-name { margin-bottom: 16px; font-size: 12px; }
    .welcome-card h1 { font-size: clamp(42px, 11vw, 54px); }
    .welcome-instruction { font-size: 17px; }
    .button--start { width: 100%; }
    .welcome-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .welcome-step, .welcome-step:nth-child(4), .welcome-step:nth-child(5) { grid-column: auto; min-height: 100px; padding: 12px; }
    .welcome-step:last-child { grid-column: span 2; }
    .welcome-step strong { font-size: 18px; }
    .fullscreen-control { top: 20px; right: 16px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
