/* ============================================================
 * welcome.css  -  the first page (welcome.html): a cordial hero + a swipeable slider of roles.
 * Loads after tiko-ui.css and partner.css. Mobile first (320-412px), then tablet (centred ~520px column) and a two-pane hero >= 900px.
 * Plain CSS (no min()/clamp()), every var() has a fallback. The slider is CSS scroll-snap, so it scrolls and snaps without JS;
 * welcome.js-in-page only adds the dots, arrows, selected state, CTA and memory.
 * The role theme (accent) is a class on .wl-page: th-mob | th-sp | th-tp | th-rt | th-team.
 * ============================================================ */
body.wl { background: #4A1556; overflow-x: hidden; }
.wl-page { min-height: 100vh; min-height: 100dvh; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; overflow-x: hidden;
    --wl-accent: #702082; --wl-accent-dark: #4A1556; --wl-soft: #F3E8FA; }
.wl-page.th-mob  { --wl-accent: #702082; --wl-accent-dark: #4A1556; --wl-soft: #F3E8FA; }
.wl-page.th-sp   { --wl-accent: #0f766e; --wl-accent-dark: #0b5a54; --wl-soft: #e2f5f1; }
.wl-page.th-tp   { --wl-accent: #3730a3; --wl-accent-dark: #272280; --wl-soft: #e9e7fb; }
.wl-page.th-rt   { --wl-accent: #a83d1a; --wl-accent-dark: #8a2f12; --wl-soft: #fdeee8; }
.wl-page.th-team { --wl-accent: #4A1556; --wl-accent-dark: #2d0c34; --wl-soft: #f3eef6; }

/* ----- hero ----- */
.wl-hero { position: relative; overflow: hidden; color: #fff; background: #702082; background: linear-gradient(160deg, #8a2ca0 0%, #702082 48%, #4A1556 100%);
    padding: 12px 20px 56px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); -webkit-flex: 0 0 auto; flex: 0 0 auto; }
.wl-hero:before { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -90px; top: -90px; background: rgba(255,255,255,.1); }
.wl-hero:after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; left: -60px; bottom: -40px; background: rgba(245,184,0,.2); }
.wl-hero-in { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }
.wl-top { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 48px; }
.wl-brand { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; font-weight: 800; font-size: 16px; color: #fff; min-width: 0; }
.wl-mark { width: 36px; height: 36px; border-radius: 11px; margin-right: 10px; background: #fff; display: block; -webkit-flex-shrink: 0; flex-shrink: 0; }
.wl-hero .pg-lang { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.96); color: #2d0c34; max-width: 52%; }
.wl-art { display: block; width: 168px; height: 76px; margin: 14px 0 0; }
.wl-hero h1 { margin: 10px 0 6px; font-size: 32px; line-height: 1.12; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.wl-hero p { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; color: #fff; opacity: .96; max-width: 30em; }

/* ----- sheet (lower half: slider, CTA, footer) ----- */
.wl-sheet { position: relative; z-index: 2; -webkit-flex: 1 1 auto; flex: 1 1 auto; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
    margin-top: -28px; background: #faf7fb; border-radius: 28px 28px 0 0; padding-top: 18px; box-shadow: 0 -8px 24px rgba(45,12,52,.18); }
.wl-chiprow, .wl-actions, .wl-foot { width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; }
.wl-sheet, .wl-sheet-in, .wl-slider { min-width: 0; }
.wl-sheet-in { width: 100%; max-width: none; margin: 0 auto; -webkit-flex: 1 1 auto; flex: 1 1 auto; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
.wl-chiprow { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; padding: 0 20px 10px; min-height: 40px; }
.wl-chip { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wl-accent-dark, #4A1556); }
.wl-chip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--wl-accent, #702082); margin-right: 8px; }
.wl-count { -webkit-flex-shrink: 0; flex-shrink: 0; margin-left: 10px; font-size: 12px; font-weight: 700; color: #4b5563; }

/* ----- the slider ----- */
.wl-slider { position: relative; }
.wl-track { display: -webkit-box; display: -webkit-flex; display: flex; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    -ms-scroll-snap-type: x mandatory; -webkit-scroll-snap-type: x mandatory; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding: 6px 0 14px; touch-action: pan-x pan-y; }
.wl-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.wl-track:before, .wl-track:after { content: ''; -webkit-flex: 0 0 auto; flex: 0 0 auto; width: calc((100% - 76vw) / 2 - 6px); }
.wl-card {
    position: relative; -webkit-flex: 0 0 auto; flex: 0 0 auto; width: 76vw; margin: 0 6px; padding: 22px 16px 18px; min-height: 196px; text-align: left; text-decoration: none; color: #1f2937;
    background: #fff; border: 2px solid #ece4f0; border-bottom: 5px solid #dcc9e3; border-radius: 26px; box-shadow: 0 4px 14px rgba(112,32,130,.08);
    -webkit-scroll-snap-align: center; scroll-snap-align: center; scroll-snap-stop: always; display: block; cursor: pointer;
    opacity: .72; -webkit-transform: scale(.94); transform: scale(.94); -webkit-transition: opacity .25s, -webkit-transform .25s, border-color .25s; transition: opacity .25s, transform .25s, border-color .25s;
}
.wl-card.is-on { opacity: 1; -webkit-transform: scale(1); transform: scale(1); border-color: var(--wl-accent, #702082); box-shadow: 0 8px 22px rgba(112,32,130,.16); }
.wl-card:focus { outline: 3px solid #f5b800; outline-offset: 2px; }
.wl-ic { width: 60px; height: 60px; border-radius: 20px; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; font-size: 32px; color: #fff; margin: 0 0 14px; box-shadow: 0 3px 0 rgba(0,0,0,.14); }
.wl-ic.ic-team { background: #4A1556; }
.wl-name { display: block; font-size: 20px; line-height: 1.2; font-weight: 800; color: #2d0c34; overflow-wrap: anywhere; }
.wl-sub { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; font-weight: 600; color: #4b5563; overflow-wrap: anywhere; }
.wl-last { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; background: #fef3c7; color: #92400e; border-radius: 99px; padding: 4px 10px; }

/* arrows + dots (below the cards: easy to reach with a thumb) */
.wl-nav { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; padding: 0 12px; }
.wl-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #dcc9e3; background: #fff; color: var(--wl-accent-dark, #4A1556); font-size: 20px; cursor: pointer; padding: 0; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; -webkit-flex-shrink: 0; flex-shrink: 0; font-family: inherit; }
.wl-arrow:focus { outline: 3px solid #f5b800; outline-offset: 2px; }
.wl-arrow:active { background: var(--wl-soft, #F3E8FA); }
.wl-arrow[aria-disabled="true"] { opacity: .35; cursor: default; }
.wl-dots { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 4px; min-width: 0; }
.wl-dot { width: 22px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; -webkit-appearance: none; appearance: none; }
.wl-dot:before { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #cdbdd5; -webkit-transition: width .2s, margin .2s, background .2s; transition: width .2s, margin .2s, background .2s; }
.wl-dot.is-on:before { width: 20px; margin-left: -10px; border-radius: 99px; background: var(--wl-accent, #702082); }

/* the primary action */
.wl-actions { padding: 14px 20px 6px; margin-top: auto; }
.wl-cta { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; text-align: center; width: 100%; min-height: 56px; padding: 12px 22px; border-radius: 99px; text-decoration: none; cursor: pointer;
    font: 800 17px/1.25 'Plus Jakarta Sans', 'Noto Sans Ethiopic', sans-serif; color: #fff; background: var(--wl-accent, #702082); box-shadow: 0 5px 0 var(--wl-accent-dark, #4A1556); overflow-wrap: anywhere; }
body.pg .wl-cta { color: #fff; }
body.pg a.wl-card { color: #1f2937; }
body.pg .wl-links a, body.pg .wl-links button { color: #4b5563; }
.wl-cta i { margin-left: 10px; font-size: 20px; -webkit-flex-shrink: 0; flex-shrink: 0; }
.wl-cta:active { -webkit-transform: translateY(4px); transform: translateY(4px); box-shadow: 0 1px 0 var(--wl-accent-dark, #4A1556); }
.wl-cta:focus { outline: 3px solid #f5b800; outline-offset: 3px; }

/* footer */
.wl-foot { text-align: center; padding: 6px 20px 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.wl-links { margin: 0; font-size: 13px; font-weight: 700; color: #4b5563; }
.wl-links a, .wl-links button { display: inline-block; min-height: 44px; padding: 12px 10px; color: #4b5563; font: 700 13px/20px 'Plus Jakarta Sans', 'Noto Sans Ethiopic', sans-serif; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.wl-links a:focus, .wl-links button:focus { outline: 3px solid #f5b800; outline-offset: 0; }
.wl-help { margin: 0 0 6px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 2px dashed #dcc9e3; font-size: 13px; line-height: 1.5; font-weight: 600; color: #374151; text-align: left; }

/* a gentle entrance (never hides content if animations are off / unsupported) */
@-webkit-keyframes wlup { from { opacity: 0; -webkit-transform: translateY(14px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes wlup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wl-in { -webkit-animation: wlup .6s ease-out both; animation: wlup .6s ease-out both; }
.wl-in.d1 { -webkit-animation-delay: .08s; animation-delay: .08s; }
.wl-in.d2 { -webkit-animation-delay: .16s; animation-delay: .16s; }
.wl-in.d3 { -webkit-animation-delay: .26s; animation-delay: .26s; }
.wl-in.d4 { -webkit-animation-delay: .36s; animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
    .wl-in { -webkit-animation: none; animation: none; }
    .wl-card, .wl-dot:before, .wl-cta, .wl-arrow { -webkit-transition: none; transition: none; }
}

/* 11 dots + 2 arrows must fit on a 320px phone */
@media (max-width: 399px) { .wl-dot { width: 18px; } .wl-nav { padding: 0 8px; } }
/* small phones */
@media (max-width: 359px) {
    .wl-hero h1 { font-size: 28px; }
    .wl-hero p { font-size: 15px; }
    .wl-cta { font-size: 16px; padding: 12px 16px; }
    .wl-art { display: none; }
}
@media (max-height: 640px) { .wl-art { display: none; } .wl-hero { padding-bottom: 46px; } }

/* wider phones / tablets: fixed card width, centred column */
@media (min-width: 420px) {
    .wl-card { width: 300px; }
    .wl-track:before, .wl-track:after { width: calc((100% - 300px) / 2 - 6px); }
}
@media (min-width: 600px) {
    .wl-hero { padding-bottom: 64px; }
    .wl-hero h1 { font-size: 38px; }
    .wl-sheet { padding-top: 24px; }
}

/* desktop: two panes, the welcome on the left, the roles on the right */
@media (min-width: 900px) {
    body.wl { background: #faf7fb; }
    .wl-page { -webkit-flex-direction: row; flex-direction: row; }
    .wl-hero { -webkit-flex: 0 0 46%; flex: 0 0 46%; padding: 24px 48px; padding-top: calc(24px + env(safe-area-inset-top, 0px)); display: -webkit-box; display: -webkit-flex; display: flex; }
    .wl-hero-in { margin: 0 auto 0 0; max-width: 460px; width: 100%; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; }
    .wl-hero-mid { -webkit-box-flex: 1; -webkit-flex: 1 1 auto; flex: 1 1 auto; display: -webkit-box; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-justify-content: center; justify-content: center; }
    .wl-hero h1 { font-size: 46px; }
    .wl-hero p { font-size: 18px; }
    .wl-art { width: 240px; height: 108px; display: block; }
    .wl-hero .pg-lang { max-width: none; }
    .wl-sheet { -webkit-flex: 1 1 0; flex: 1 1 0; min-width: 0; margin-top: 0; border-radius: 0; box-shadow: none; padding-top: 0; -webkit-justify-content: center; justify-content: center; }
    .wl-sheet-in { -webkit-flex: 0 1 auto; flex: 0 1 auto; margin: 0 auto; padding: 32px 0 8px; }
    .wl-actions { margin-top: 0; }
}
