/* Concourse slides: the live demo card with its country toggle, the placeholder figures, and the brand on dark tiles. */

/* Slide 6: one card holding the real app. Its header carries the country toggle (a filter on what the frame
   shows), the frame takes the rest of the height, and a veil covers it while it loads or when it is not running. */
.app-card { display: flex; flex-direction: column; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--c-r-panel); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(33,28,24,.45); }
.app-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--c-s3); height: 64px; padding: 0 var(--c-s3); background: var(--c-asphalt); color: var(--c-paper); }
.app-live { display: inline-flex; align-items: center; gap: 12px; font-family: var(--c-f-mono) !important; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; color: rgba(247,246,241,.72); }
.app-live i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-faint); }
.app-card[data-state="live"] .app-live i { background: var(--c-marking); box-shadow: 0 0 0 4px rgba(168,196,224,.2); }
.app-card[data-state="down"] .app-live i { background: var(--c-red); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(247,246,241,.08); border: 1px solid rgba(247,246,241,.14); }
.seg button { height: 40px; padding: 0 22px; border: 0; border-radius: 7px; background: transparent; color: rgba(247,246,241,.75); font: 600 19px var(--c-f-ui); cursor: pointer; }
.seg button:hover { color: var(--c-paper); background: rgba(247,246,241,.08); }
.seg button.on { background: var(--c-paper); color: var(--c-ink); }
.app-frame { position: relative; flex: 1; min-height: 0; background: var(--c-paper); border: 0; border-radius: 0; box-shadow: none; }
.app-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--c-paper); }
.app-veil { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: var(--c-s5); background: var(--c-paper); }
.app-card[data-state="idle"] .app-loading, .app-card[data-state="loading"] .app-loading, .app-card[data-state="down"] .app-down { display: flex; }
.app-veil b { font-family: var(--c-f-display) !important; font-size: 40px; color: var(--c-ink); letter-spacing: -.01em; }
.app-veil span { font-size: 24px; color: var(--c-ink-2); }
.app-veil code { font-family: var(--c-f-mono); font-size: 22px; background: var(--c-bar); border: 1px solid var(--c-line); border-radius: 6px; padding: 2px 8px; }
.app-veil small { font-size: 19px; color: var(--c-muted); }
.app-retry { height: 48px; padding: 0 28px; border: 0; border-radius: var(--c-r-control); background: var(--c-asphalt); color: var(--c-paper); font: 600 20px var(--c-f-ui); cursor: pointer; }
.app-retry:hover { background: var(--c-ink); }
.spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--c-line); border-top-color: var(--c-gold); animation: hSpin 1s linear infinite; }
@keyframes hSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }


/* Light grounds: gold, not marking yellow, for lines and edges; yellow lights only the one thing that matters */
.path::before { background: var(--c-line-2); }
.p-step strong { border-left-color: var(--c-gold); }
.promises span { border-left-color: var(--c-gold); }
.m-card:nth-child(even) { border-top-color: var(--c-asphalt); }
.m-card em { border-left-color: var(--c-gold); }
.h-step:last-child i { background: var(--c-marking); color: var(--c-ink); }

/* Dark tiles carry the on-dark wordmark: the sign-on tile, the drawer, the close */
.ol-sign-in .ol-lockup .wm { height: 30px; }
#ns-drawer header img.ol-dwm { height: 30px; }
.ol-close-brand .wm { height: 72px; }
.f-mid img { width: 300px; }
.desk-only .desk-wm { filter: none !important; }

/* Slide 5: the cards line up with their heading and share the column height evenly */
.flow3 .f-in ul, .flow3 .f-out ul { padding: 0; margin: 0; grid-template-rows: repeat(4, 1fr) !important; }
.flow3 > div.f-in { padding-right: 56px; }

/* Slide 8: the decision step's number on marking yellow (the runtime's two-layer background resolves to nothing here) */
.path .p-step.gate .p-n { background: var(--c-marking); border: 4px solid var(--c-marking); color: var(--c-ink); }
/* Slide 4: every "in the demo" box the same height, whatever its length */
.how4 .h-step em { min-height: calc(2 * 1.3em + 32px); box-sizing: border-box; display: flex; align-items: center; line-height: 1.3; }
.app-status { font-style: normal; color: var(--c-paper); }
.app-card[data-state="live"] .app-status { color: var(--c-marking); }

/* Slide 7: the ten areas of an HR brief, five a row, each opening its part of the demo. One height for every card. */
.areas { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); gap: var(--c-s2); }
.slide .area { border-radius: var(--c-r-card) !important; height: auto; min-height: 0; }
.area { display: grid; grid-template-rows: auto auto auto 1fr auto; align-content: stretch; gap: 8px; text-align: left; padding: var(--c-s3); background: var(--c-card); border: 1px solid var(--c-line); border-top: 5px solid var(--c-ink); border-radius: var(--c-r-card); box-shadow: var(--c-shadow-card); cursor: pointer; font: inherit; color: var(--c-ink); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.area:hover { border-color: var(--c-gold); border-top-color: var(--c-mustard); box-shadow: var(--c-shadow-pop); }
.area:focus-visible { outline: 3px solid var(--c-mustard); outline-offset: 2px; }
.area .a-n { font-family: var(--c-f-mono) !important; font-size: 16px; letter-spacing: .1em; color: var(--c-muted); }
.area b { font-family: var(--c-f-display) !important; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; }
.area em { font-style: normal; font-family: var(--c-f-mono) !important; font-size: 18px; color: var(--c-mustard); }
.area .a-tour { font-size: 17px; font-weight: 700; color: var(--c-ink); background: var(--c-cream); border-radius: 8px; padding: 6px 10px; justify-self: start; }
.area small { font-size: 24px; line-height: 1.4; color: var(--c-ink-2); align-self: start; }

/* Slide 4: each step shows the screen it names, as Concourse drew it in the demo, filling the card's middle */
.how4 .h-step { padding-top: var(--c-s4); }
.how4 .h-step i { width: 72px; height: 72px; font-size: 36px; }
.how4 .h-step b { font-size: 38px; margin-top: 0; white-space: nowrap; }
.how4 .h-step span { font-size: 24px; }
.how4 .h-shot { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: left top; border-radius: 10px; border: 1px solid var(--c-line); box-shadow: var(--c-shadow-card); }
/* Slide 8: titles stay on one line */
.means .m-card b { font-size: 34px; white-space: nowrap; }
/* Slide 9: the step words a little larger, so each card fills its height */
.path .p-step b { font-size: 44px; } .path .p-step span { font-size: 29px; line-height: 1.4; } .path .p-step strong { font-size: 22px; }
/* Slide 9: the five steps take their own height and the three promises share the rest, so no band is left empty */
#start .path .p-step small { font-size: 21px; line-height: 1.35; color: var(--c-mustard); font-weight: 700; margin-top: var(--c-s2); }

/* Slide 7: what the demo shows in each area, so every card is full and honest */
.area .a-shows { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; align-self: start; }
.area .a-shows li { font-size: 21px; line-height: 1.3; color: var(--c-ink-2); padding-left: 18px; position: relative; }
.area .a-shows li::before { content: ''; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-gold); }
/* Slide 8: one column a card, the figure across the bottom; no quoted kicker */
.means .m-card { grid-template-columns: 1fr !important; grid-template-rows: auto auto 1fr auto !important; align-content: stretch; }
.means .m-card b, .means .m-card span, .means .m-card em, .means .m-card .m-n { grid-column: 1 !important; grid-row: auto !important; }
.means .m-card em { align-self: end; font-size: 30px; }
/* Slide 6 thumbnail and first paint: the demo's first screen, not a spinner */
.app-card[data-state="idle"] .app-loading, .app-card[data-state="loading"] .app-loading { background: #EFEAE2 url("assets/screens/demo-poster.jpg") center / contain no-repeat; }
.app-card[data-state="idle"] .app-loading > *, .app-card[data-state="loading"] .app-loading > * { display: none; }
/* Slide 4: the phone screens sit centred in their card */
.how4 .h-step:nth-child(-n+2) .h-shot { object-position: center top; }
/* Slide 8: each card's content sits as one block in the middle of its card, the figure under it */
.means .m-card { align-content: center !important; grid-template-rows: auto auto auto auto !important; row-gap: 14px; }
.means .m-card em { align-self: start; font-size: 27px; margin-top: 10px; }
.means .m-card span { font-size: 23px; } .means .m-card { padding: 24px 32px !important; }

/* Slide 7: each area's answers from slide 8, under what the demo shows */
.area .a-ans { display: flex; flex-wrap: wrap; gap: 6px 12px; align-self: end; }
.area { grid-template-rows: auto auto auto 1fr auto auto; }

/* Slide 8: the 84 lines. Areas down the left as tabs with counts; the chosen area's lines in a table that scrolls
   inside its card (the slide never scrolls). */
.ll { display: grid; grid-template-columns: 400px 1fr; gap: var(--c-s3); min-height: 0; }
.ll-tabs { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.ll-tabs button { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-card); color: var(--c-ink-2); font: 600 21px var(--c-f-ui); text-align: left; cursor: pointer; }
.ll-tabs button em { font-style: normal; font-family: var(--c-f-mono) !important; font-size: 17px; color: var(--c-muted); background: var(--c-bar); border-radius: 6px; padding: 2px 8px; }
.ll-tabs button:hover { border-color: var(--c-gold); color: var(--c-ink); }
.ll-tabs button.on { background: var(--c-asphalt); border-color: var(--c-asphalt); color: var(--c-paper); }
.ll-tabs button.on em { background: rgba(247,246,241,.16); color: var(--c-paper); }
.ll-tabs button:focus-visible { outline: 3px solid var(--c-mustard); outline-offset: 2px; }
.ll-card { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--c-r-card); box-shadow: var(--c-shadow-card); }
.ll-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--c-line); }
.ll-head b { font-family: var(--c-f-display) !important; font-size: 30px; letter-spacing: -.01em; white-space: nowrap; }
.ll-key, .area .a-ans { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.ll-key { gap: 8px 18px; }
.ll-k { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; color: var(--c-ink-2); white-space: nowrap; }
.area .a-ans .ll-k { font-size: 15px; gap: 6px; }
.ll-k i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.ll-shown i { background: var(--c-mustard); } .ll-in i { background: var(--c-green); } .ll-via i { background: var(--c-gold); } .ll-p2 i { background: var(--c-faint); }
.ll-scroll { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(62,106,150,.35) transparent; }
.ll-scroll::-webkit-scrollbar { width: 8px; } .ll-scroll::-webkit-scrollbar-thumb { background: rgba(62,106,150,.35); border-radius: 8px; } .ll-scroll::-webkit-scrollbar-track { background: transparent; }
.ll-table { width: 100%; border-collapse: collapse; }
.ll-table th { position: sticky; top: 0; z-index: 1; background: var(--c-bar); text-align: left; font: 600 17px var(--c-f-ui); color: var(--c-muted); padding: 10px 20px; border-bottom: 1px solid var(--c-line); }
.ll-table td { padding: 11px 20px; border-bottom: 1px solid var(--c-line); font-size: 20px; line-height: 1.32; color: var(--c-ink); vertical-align: top; }
.ll-table td:first-child { width: 44%; }
.ll-table td:nth-child(2) { width: 220px; white-space: nowrap; }
.ll-s { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 16px; font-weight: 700; }
.ll-s.ll-shown { background: var(--c-mustard); color: var(--c-paper); }
.ll-s.ll-in { background: var(--c-green-bg); color: var(--c-green); }
.ll-s.ll-via { background: var(--c-cream); color: var(--c-mustard); }
.ll-s.ll-p2 { background: var(--c-bar); color: var(--c-muted); }
.ll-go { display: inline-block; margin: 0 12px 2px 0; padding: 3px 10px; border: 1px solid var(--c-gold); border-radius: 8px; background: var(--c-card); color: var(--c-mustard); font: 700 16px var(--c-f-ui); cursor: pointer; white-space: nowrap; }
.ll-go:hover { background: var(--c-cream); }
.ll-go.part { border-style: dashed; }
.ll-note { font-size: 17px; color: var(--c-ink-2); }

/* The security slide: eight answers, four a row, one height each */
.sec { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: var(--c-s2); }
.sec-t { display: flex; flex-direction: column; gap: 12px; padding: var(--c-s3); background: var(--c-card); border: 1px solid var(--c-line); border-top: 5px solid var(--c-ink); border-radius: var(--c-r-card); box-shadow: var(--c-shadow-card); }
.sec-t:nth-child(even) { border-top-color: var(--c-gold); }
.sec-t i { font-style: normal; font-family: var(--c-f-mono) !important; font-size: 18px; color: var(--c-muted); letter-spacing: .1em; }
.sec-t b { font-family: var(--c-f-display) !important; font-size: 31px; line-height: 1.15; letter-spacing: -.01em; }
.sec-t span { font-size: 23px; line-height: 1.4; color: var(--c-ink-2); }
.area .a-ans { justify-content: flex-start; gap: 4px 12px; }
.area .a-ans .ll-k { font-size: 15px; }
/* Slide 11: "From you" sits straight above "You get", the pair at the foot of each step (no empty band between) */
#start .path .p-step small { margin-top: auto; }
#start .path .p-step strong { margin-top: 0; }
/* Security slide: each answer's words fill its tile, set a little larger and centred in the height */
.sec-t { justify-content: center; }
.sec-t b { font-size: 34px; } .sec-t span { font-size: 26px; line-height: 1.45; }
/* Slide 10: every card's content starts at the same height, so the numbered badges line up across each row */
.means .m-card { align-content: start !important; padding-top: 36px !important; }
/* Slide 9: every tile's number at the same height (content from the top) */
.sec-t { justify-content: flex-start; }
/* Slide 11: the steps take the height their words need and the promises share the rest, so no step has an empty band */
#start .path { flex: none !important; }
#start .promises { flex: 1; min-height: 0; }
#start .promises span { display: flex; flex-direction: column; justify-content: center; }
.sec-t b { font-size: 31px; white-space: nowrap; }
#start .promises span { font-size: 26px; line-height: 1.4; padding: 24px 32px; }
#start .promises b { font-size: 32px; margin-bottom: 8px; }
