/* ==== logo ==== */
/* TalentDEV logo: the mark plus the word mark ">TalentDEV_" as text in Open Sans, so the underscore can blink like a
   cursor. The mark can also stand alone (<svg class="logo-mark">, for example in the maker panel). */
.logo { display: inline-flex; align-items: center; gap: .45em; font: 400 1.35rem/1 var(--brand-font); letter-spacing: -.01em; text-decoration: none; color: var(--logo-main); }
.logo-mark { width: 1.75em; height: auto; flex: none; }
.logo-l { fill: var(--logo-l); }
.logo-d { fill: var(--logo-main); }
.logo-word { display: inline-flex; align-items: baseline; }
.logo-gt { font-weight: 800; margin-right: .08em; }
.logo-t, .logo-cur { color: var(--logo-l); }
.logo-b, .logo-cur { font-weight: 800; }
.logo-cur { margin-left: .04em; animation: logo-blink 1.1s steps(1) infinite; }
@keyframes logo-blink { 50% { opacity: 0; } }
@media (max-width: 36em) { .logo { font-size: 1.15rem; } }
@media (prefers-reduced-motion: reduce) { .logo-cur { animation: none; } }

/* ==== button ==== */
/* Buttons. Orange (.btn-primary) is for what makes someone buy, download or open something; the outlined button
   (.btn-line) for everything next to it. Both rise two pixels on hover and the arrow moves along. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: 0 1.3rem; border: 0; border-radius: var(--r-btn); font: 600 1rem/1 var(--body); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
/* White text on this orange has too little contrast; the text is dark */
.btn-primary { background: var(--cta); color: var(--on-cta); }
.btn-line { background: none; border: 1.5px solid var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
/* A small round button inside a demo (play, stop) */
.btn-mini { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 1.1rem; border: 0; border-radius: 99px; background: var(--btn); color: var(--on-btn); font-size: .92rem; font-weight: 600; transition: transform .3s var(--ease); }
.btn-mini:hover { transform: translateY(-1px); }
.btn-text { font-weight: 600; text-underline-offset: 4px; }
/* A row of buttons that wraps on a narrow screen */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn-mini:hover, .btn:hover .btn-arrow { transform: none; } }

/* ==== header ==== */
/* Header: solid, no blur, sticks to the top. Logo, the name of the product, a menu, the main button and the language
   link. The menu shows from 960 px; on a phone there is deliberately no button, only the language link. */
.header { position: sticky; top: 0; z-index: 20; overflow: clip; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--text); }
.header-in { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.header-product { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 1rem; border-left: 1px solid var(--line-strong); font-weight: 600; text-decoration: none; color: var(--text); }
.header-nav { display: none; gap: 1.6rem; margin-left: auto; font-weight: 500; }
.header-nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.header-nav a:hover { color: var(--text); }
.header-cta { margin-left: auto; min-height: 42px; transition: transform .5s var(--ease), visibility .5s, box-shadow .3s var(--ease); }
/* While the main button of the page is in view, the one in the header waits under the edge of the header. Once you
   scroll past it, it rises into place. It keeps its place, so the menu does not move. (header.js sets .header-away.) */
.header-away .header-cta { visibility: hidden; transform: translateY(170%); pointer-events: none; }
.header-lang { margin-left: 0; padding: .1rem .45rem; border: 1px solid var(--line); border-radius: 4px; font-size: .85rem; text-decoration: none; color: var(--muted); }
/* Without a button the language link goes to the right */
.header-product + .header-lang, .header-nav + .header-lang { margin-left: auto; }
@media (min-width: 60em) { .header-nav { display: flex; } .header-cta { margin-left: 0; } }
@media (max-width: 36em) { .header-cta { display: none; } .header-lang { margin-left: auto; } }
/* Only for the example: room to scroll under the header */
.header-demo { min-height: 12rem; padding: 2rem 0; color: var(--muted); }

/* ==== footer ==== */
/* Footer: the logo, one row of links that wraps, and a small line with the legal details. */
.footer { padding: 2.5rem 0 2rem; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: .92rem; }
.footer-in { display: grid; gap: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { margin: 0; font-size: .82rem; }

/* ==== statement ==== */
/* Statement: just type. A heading, one large sentence or two, and a quiet line under it. For a promise such as privacy. */
.statement-title { max-width: 20ch; }
.statement-big { max-width: 52rem; margin: 0 0 1.25rem; font: 500 clamp(1.25rem, 2.3vw, 1.65rem)/1.4 var(--body); }
.statement-aside { max-width: 40rem; margin: 0; color: var(--muted); }

/* ==== ways ==== */
/* Ways of working: four steps without boxes, each a large numeral under a line. On a wide screen the lines start
   level and each step sinks a little further than the one before while you scroll (--ways-p from 0 to 1, set by
   element.js). The room under the list is kept, so nothing below it moves. */
:root { --ways-drop: 1.75rem; }
.ways { --ways-p: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; align-items: start; margin: 2rem 0 0; padding: 0; list-style: none; }
.ways-item { margin: 0; padding-top: 1.1rem; border-top: 2px solid var(--accent-large); transition: border-color .3s var(--ease); }
.ways-nr { display: block; margin-bottom: .6rem; font: 700 3.4rem/1 var(--display); letter-spacing: -.03em; color: var(--accent-large); font-variant-numeric: tabular-nums; transition: transform .3s var(--ease), color .3s var(--ease); }
.ways-title { margin: 0 0 .35rem; font: 700 1.3rem/1.2 var(--display); }
.ways-text { margin: 0; font-size: .98rem; color: var(--muted); }
/* Hover is small and in Steel Blue; orange stays for buttons */
.ways-item:hover { border-top-color: var(--hover-tint); }
.ways-item:hover .ways-nr { transform: translateY(-3px); color: var(--hover-tint); }
@media (min-width: 60.01em) {
  .ways { padding-bottom: calc(3 * var(--ways-drop)); }
  .ways-item { --ways-i: 0; transform: translateY(calc(var(--ways-p) *var(--ways-i) * var(--ways-drop))); transition: transform .2s linear, border-color .3s var(--ease); }
  .ways-item:nth-child(2) { --ways-i: 1; }
  .ways-item:nth-child(3) { --ways-i: 2; }
  .ways-item:nth-child(4) { --ways-i: 3; }
}
@media (max-width: 60em) { .ways { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 43.99em) {
  .ways { grid-template-columns: 1fr; gap: 1.75rem; }
  .ways-item { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: .5rem; }
  .ways-nr { grid-row: 1 / span 2; font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) { .ways-item, .ways-item:hover .ways-nr { transform: none; } }

/* ==== maker ==== */
/* Maker: a tinted panel with the mark of TalentDEV and a few lines on who makes this. On hover a thin line in Steel Blue
   around it and the mark rises a few pixels. */
.maker { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding: 2rem; border-radius: var(--r-panel); background: var(--hl-bg); transition: box-shadow .3s var(--ease); }
.maker .logo-mark { width: 5.5rem; transition: transform .3s var(--ease); }
.maker-text p { max-width: 40rem; margin: 0; }
.maker-link { display: inline-block; margin-top: 1rem; }
.maker:hover { box-shadow: inset 0 0 0 1.5px var(--hover-tint); }
.maker:hover .logo-mark { transform: translateY(-3px); }
@media (max-width: 43.99em) { .maker { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; } .maker .logo-mark { width: 4rem; } }
@media (prefers-reduced-motion: reduce) { .maker:hover .logo-mark { transform: none; } }

/* ==== mac-window ==== */
/* A Mac window around a picture or video: a bar with the three dots and the name of the app, the picture under it.
   For a video use <video class="mac-media" ...> in place of the image. */
.mac { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--win-line); border-radius: 12px; background: var(--mac-bg); box-shadow: var(--win-shadow); }
:root { --mac-bg: #dfe1ea; }
.mac-bar { display: flex; align-items: center; gap: .45rem; padding: .6rem .9rem; border-bottom: 1px solid var(--win-line); background: var(--win-bar); font: 600 .78rem var(--body); color: var(--win-muted); }
.mac-dot { width: .7rem; height: .7rem; border-radius: 50%; background: #ff5f57; }
.mac-dot:nth-child(2) { background: #febc2e; }
.mac-dot:nth-child(3) { background: #28c840; }
/* The title stands in the middle of the window, not of the space after the dots */
.mac-title { margin-inline: auto; padding-right: 2.5rem; }
.mac-media { display: block; width: 100%; height: auto; }
/* Only for the example: a window of a reasonable width */
.mac-demo .mac { max-width: 44rem; }

/* ==== app-tile ==== */
/* App tile: one wide tile per app in Night Blue. Left the name, the promise, the button and three facts; right the
   window of the app, running off the edge, with a printed page in front. The button is the link and covers the whole
   tile. Narrower than 704 px the picture drops below the text, so the button stays in view on a phone. */
:root { --tile-bg: var(--brand-gradient); --tile-radius: var(--r-panel); }
.tile-list { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.tile { position: relative; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin: 0; border-radius: var(--tile-radius); background: var(--tile-bg); color: var(--on-dark); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -24px rgba(38, 38, 60, .45); }
.tile-text { display: flex; flex-direction: column; padding: 2rem 2.25rem 2rem 2rem; }
.tile-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.tile-icon { flex: none; width: 60px; height: 60px; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .12)); }
.tile-name { margin: 0; font: 700 1.2rem/1.15 var(--display); letter-spacing: 0; }
.tile-sub { margin: 0; font-size: .88rem; color: var(--on-dark-muted); }
.tile-promise { margin: 0 0 .6rem; font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1.08 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.tile-promise em { font-style: normal; color: var(--on-dark-accent); }
.tile-lead { margin: 0 0 1.5rem; color: var(--on-dark-muted); }
.tile-link { align-self: flex-start; margin-bottom: 1.75rem; }
/* Above the pictures, so the whole tile is the link */
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--tile-radius); }
.tile-link:hover { transform: none; box-shadow: none; }
.tile-link:focus-visible { outline-color: var(--on-dark); }
.tile-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 1rem; margin: auto 0 0; padding-top: 1.1rem; border-top: 1px solid var(--on-dark-line); }
.tile-facts dt { margin-bottom: .35rem; font: 600 .78rem/1 var(--body); color: var(--on-dark-faint); }
.tile-facts dd { margin: 0; font: 700 .95rem/1.2 var(--display); }
.tile-facts small { display: block; margin-top: .1rem; font: 400 .75rem/1.3 var(--body); color: var(--on-dark-faint); }
.tile-facts small:empty { display: none; }
.tile-art { position: relative; min-height: 22rem; overflow: hidden; }
/* A faint grid behind the window, fading out towards the text */
.tile-art::before { content: ""; position: absolute; inset: 0; opacity: .6;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 48px);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 70%); mask-image: linear-gradient(100deg, transparent 0%, #000 70%); }
.tile-window { position: absolute; left: 2.25rem; top: 2.25rem; width: 115%; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .65); transition: transform .5s var(--ease); }
.tile-page { position: absolute; left: 1rem; bottom: 1rem; width: 44%; border-radius: 6px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); transition: transform .5s var(--ease); }
.tile:hover .tile-window { transform: translate(-8px, -4px); }
.tile:hover .tile-page { transform: translate(4px, -6px); }
@media (max-width: 43.99em) {
  .tile { grid-template-columns: 1fr; }
  .tile-text { padding: 1.5rem 1.5rem .5rem; }
  .tile-art { min-height: 0; aspect-ratio: 16 / 10; }
  .tile-window { left: 1.25rem; top: 1.25rem; }
  .tile-facts { gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .tile:hover, .tile:hover .tile-window, .tile:hover .tile-page { transform: none; } }

/* ==== contact-flow ==== */
/* Contact flow: answer two or three questions with one tap each; the chosen answers stay above as chips you can tap to
   go back. Then the message appears as a speech balloon (three dots first, then it grows from the corner) and you send
   it yourself by mail or WhatsApp. The site sends nothing. Without script: a plain mail link. */
.flow-in { display: grid; gap: 2rem; }
@media (min-width: 60em) { .flow-in { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; } }
.flow-intro p { max-width: 28rem; margin: 0; }
/* Room on the right for an answer sliding over on hover, so it is never cut off */
.flow { min-height: 33rem; margin: -6px -16px -6px -6px; padding: 6px 16px 6px 6px; overflow: hidden; }
.flow-pane { animation: flow-pane .45s var(--ease) both; }
.flow-from-left { --flow-from: -28px; }
.flow-from-right { --flow-from: 28px; }
@keyframes flow-pane { from { opacity: 0; transform: translateX(var(--flow-from, 0)); } }
.flow-bar { --flow-p: 0; height: 4px; margin-bottom: 1.25rem; overflow: hidden; border-radius: 9px; background: var(--line); }
.flow-bar::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 9px; background: var(--btn); transform: scaleX(max(.04, var(--flow-p))); transform-origin: left; transition: transform .5s var(--ease); }
.flow-chips { display: flex; flex-wrap: wrap; gap: .4rem; min-height: 2.1rem; margin-bottom: 1rem; }
.flow-chip { padding: .3rem .8rem; border: 1px solid var(--line-strong); border-radius: 99px; background: none; font-size: .85rem; font-weight: 600; transition: border-color .2s; }
.flow-chip:hover { border-color: var(--text); }
.flow-chip::after { content: " ×"; opacity: .6; }
.flow-q { margin: 0 0 1rem; font: var(--h-weight) 1.7rem/1.15 var(--display); letter-spacing: var(--h-track); }
.flow-q:focus { outline: none; }
.flow-options { display: grid; grid-auto-rows: 1fr; gap: .5rem; }
.flow-opt { display: grid; align-content: center; gap: .1rem; min-height: 4.6rem; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); text-align: left; transition: transform .3s var(--ease), border-color .25s; }
.flow-opt:hover { border-color: var(--text); transform: translateX(8px); }
.flow-opt small { font-size: .88rem; color: var(--muted); }
.flow-done { margin: 0 0 1.5rem; font-size: .9rem; color: var(--muted); }
/* The message as a white speech balloon: three dots in the bottom corner first, then it grows from that corner */
.flow-letter { display: grid; align-content: end; justify-items: start; margin: 0 0 1rem; }
.flow-balloon { position: relative; max-width: 100%; border-radius: 18px 18px 18px 5px; background: #fff; color: #262626; filter: drop-shadow(0 1px 2px rgba(20, 21, 31, .07)) drop-shadow(0 3px 8px rgba(20, 21, 31, .05)); }
.flow-balloon::after { content: ""; position: absolute; left: -6px; bottom: 0; width: 12px; height: 12px; background: inherit; clip-path: polygon(100% 0, 0 100%, 100% 100%); }
.flow-inner { position: relative; overflow: hidden; transition: width .5s var(--ease), height .5s var(--ease); }
.flow-dots { position: absolute; left: 0; bottom: 0; display: inline-flex; gap: .3rem; padding: .95rem 1.1rem; transition: opacity .2s; }
.flow-dots i { width: .5rem; height: .5rem; border-radius: 50%; background: #5f5f6b; opacity: .4; animation: flow-dot 1s infinite; }
.flow-dots i:nth-child(2) { animation-delay: .15s; }
.flow-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes flow-dot { 30% { opacity: 1; transform: translateY(-3px); } }
.flow-text { position: absolute; left: 0; bottom: 0; padding: .95rem 1.15rem; opacity: 0; transition: opacity .3s .2s; }
.flow-text p { margin: 0 0 .7rem; }
.flow-text p:last-child { margin: 0; }
.flow-shown .flow-dots { opacity: 0; }
.flow-shown .flow-text { opacity: 1; }
/* Once it has grown, the balloon follows its text again, so it keeps fitting when the window changes
   (element.js then also clears the width and height it set while the balloon grew) */
.flow-open .flow-dots { display: none; }
.flow-open .flow-text { position: static; }
/* The caret blinks at the end of the message until it is sent */
.flow-caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; background: var(--brand-orange); vertical-align: -.2em; animation: flow-blink 1.1s steps(1) infinite; }
@keyframes flow-blink { 50% { opacity: 0; } }
.flow-send { display: flex; flex-wrap: wrap; gap: .75rem; }
.flow-ic { flex: none; width: 1.25rem; height: 1.25rem; }
