/* The "Let's talk" pop-up and the top bar's height (kulip#3469, Roderic, 17 Nov). Loaded after styles.css. */

/* Top bar: a slim pill. Its button is the same size as every other button on the page. */
.nav { padding-top: 5px; padding-bottom: 5px; }
.nav-links a { padding: 6px 12px; font-size: 15px; }

/* The pop-up: one soft card over a dimmed, blurred page. */
.talk-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 34px 36px 30px; border: 0; border-radius: 32px; color: var(--ink); background: linear-gradient(165deg, #FFFFFF 0%, #F6F4FF 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 40px 100px rgba(2, 15, 70, .35); overflow: auto; overscroll-behavior: contain; }
.talk-dlg::backdrop { background: rgba(2, 15, 70, .42); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.talk-dlg[open] { animation: talk-in .32s cubic-bezier(.2, .8, .2, 1); }
.talk-dlg[open]::backdrop { animation: talk-fade .32s ease; }
@keyframes talk-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes talk-fade { from { opacity: 0; } to { opacity: 1; } }
.talk-dlg .eyebrow { margin-bottom: 14px; background: #EEE9FF; box-shadow: none; color: #4B36C4; font-size: 14.5px; }
.talk-dlg h2 { font-size: clamp(32px, 4vw, 42px); line-height: 1.08; }
.talk-lead { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; line-height: 1.3; }
.talk-dlg form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; margin-top: 22px; }
.talk-dlg form label { grid-column: 1 / -1; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.talk-dlg form label:nth-of-type(1), .talk-dlg form label:nth-of-type(2) { grid-column: auto; }
.talk-dlg input, .talk-dlg textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.talk-dlg textarea { min-height: 96px; resize: vertical; }
.talk-dlg input:focus-visible, .talk-dlg textarea:focus-visible { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(125, 98, 251, .18); }
.talk-dlg .btn { grid-column: 1 / -1; justify-content: center; margin-top: 4px; }
/* The slide to send, the design system's own (.kp-stc), dressed as it is in the page's first tab. */
.talk-dlg .kp-stc { grid-column: 1 / -1; flex: none; width: 100%; max-width: none; margin-top: 6px; background: rgba(2, 15, 70, .05); box-shadow: none; }
.talk-dlg .kp-stc .track { background: linear-gradient(90deg, #0B62D6 0%, #6A45F0 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.talk-dlg .kp-stc .cdim { background: rgba(255, 255, 255, .18); }
.talk-dlg .kp-stc .clbl { display: block; line-height: 45px; text-align: center; padding: 0 18px 0 54px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .17s ease, padding .36s ease; }
.talk-dlg .kp-stc.ok .clbl { padding: 0 54px 0 18px; background: none; color: #fff; -webkit-text-fill-color: #fff; }
.talk-dlg .kp-stc .thumb { color: #6A45F0; touch-action: none; }
.talk-dlg .kp-stc.ok .thumb { color: #1F9D57; }
.talk-dlg .form-note { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.talk-dlg .hp { position: absolute; left: -9999px; }
.talk-x { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(2, 15, 70, .06); color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.talk-x:hover { background: rgba(2, 15, 70, .12); transform: rotate(90deg); }
.talk-x:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
@media (max-width: 560px) {
  .talk-dlg { padding: 28px 22px 24px; border-radius: 26px; }
  .talk-dlg form { grid-template-columns: 1fr; }
  .talk-dlg form label:nth-of-type(1), .talk-dlg form label:nth-of-type(2) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .talk-dlg[open], .talk-dlg[open]::backdrop { animation: none; } }

/* The closing section (Roderic, 17 Nov): the logo high, the line, the button lower, and the facts as three quiet
   columns under a rule, in place of two loose sentences. "From Europe." is the punchline, so it gets the gradient. */
.close .wrap { display: flex; flex-direction: column; align-items: center; }
.close img { margin-bottom: clamp(28px, 4vw, 52px); }
.close h2 { line-height: 1.04; }
.close-from { background: linear-gradient(100deg, #7FD2FF, #B9A6FF 60%, #E7B8FF); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.close .btn { margin-top: clamp(30px, 4vw, 48px); }
.close-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 0 clamp(28px, 5vw, 72px); width: min(860px, 100%); margin: clamp(40px, 6vw, 76px) 0 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16); text-align: left; }
.close-meta dt { font-family: var(--label); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.close-meta dd { margin: 8px 0 0; font-size: 17px; line-height: 1.26; color: rgba(255, 255, 255, .92); }
@media (max-width: 700px) { .close-meta { grid-template-columns: 1fr; gap: 20px; text-align: center; } }

/* Mono type is capitals only. The design system sheet loads last and resets this on its status pill, so it is forced. */
.kp-st, .kp-m, .mono { text-transform: uppercase !important; }
/* With reduced motion the three story beats are a list, not a stack. */
@media (prefers-reduced-motion: reduce) { .beat { grid-area: auto; } }

/* Phone QA, 17 Nov: the slide's hold line fits a 390-wide screen. */
@media (max-width: 420px) { .mock.ds .kp-stc .clbl { font-size: 13px; padding-left: 48px; padding-right: 12px; } }

/* The talk page: a send that failed says so. */
.form-err { background: #FDE8E8; color: #9B1C1C; border-radius: 14px; padding: 14px 16px; }
.form-err a { color: inherit; }

/* Roderic's smoke test of the live site, 17 Nov night. */
/* A hover shows the violet ring at once on both cards of the pair, not only once the card has been played. */
.pc.is-lit, .pc:hover { box-shadow: 0 0 0 2px var(--violet), 0 18px 44px rgba(125, 98, 251, .24); transition-duration: .18s; }
@media (max-width: 900px) {
  /* The line and the two buttons under the hero stay above the tulip's flying tiles. */
  .hero-foot { position: relative; z-index: 2; }
  /* The story's text sits on its own soft card, so loose tiles never cover it; the wide white glow is not needed. */
  .beats { padding: 18px 18px 6px; border-radius: 24px; background: rgba(244, 246, 251, .93); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 18px 44px rgba(2, 15, 70, .1); }
  .beats::before { display: none; }
  .beat h2 { font-size: clamp(40px, 11vw, 64px); }
}
/* Between a tablet and a wide laptop the ten hero cards are smaller and pulled to the edges, so none covers another. */
@media (min-width: 901px) and (max-width: 1240px) {
  .stage li { scale: .8; }
  .cast li:nth-child(odd) { left: 1.5%; } .cast li:nth-child(even) { left: 15.5%; }
  .outs li:nth-child(odd) { right: 1.5%; } .outs li:nth-child(even) { right: 15.5%; }
  .cast li:nth-child(2), .outs li:nth-child(2) { translate: 0 40px; }
  .cast li:nth-child(3), .cast li:nth-child(5), .outs li:nth-child(3), .outs li:nth-child(5) { translate: none; }
}

/* Typography pass, 17 Nov. No word left alone on a line: headings balance their lines, running text avoids a short last line. */
h1, h2, h3, .lede, .how-line, .beat h2, .sq, .sa p, .member b, .pc b, .panel-copy h3, .close h2, .talk-dlg h2 { text-wrap: balance; }
p, li, dd, blockquote, .beat p, .panel-copy p, .member p, .hw p, .how-foot, .talk-lead, .source { text-wrap: pretty; }
/* The small notes under a section carry a little colour and a line, so they read as notes and not as leftovers. */
.pricing small, .hint, .stc-note, .now-cap, .source { color: #4B3FC9; }
.pricing small { display: inline-block; margin-top: 12px; padding: 6px 14px; border: 1px solid rgba(125, 98, 251, .4); border-radius: 999px; background: rgba(125, 98, 251, .06); }
.source, .hint, .stc-note { padding-left: 12px; border-left: 2px solid rgba(125, 98, 251, .55); }
.now-cap { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid rgba(125, 98, 251, .35); }

/* Desktop QA, 17 Nov: the hero fits a laptop-height window. Between 901 and 1240 wide the cards already shrink. */
@media (min-width: 1241px) and (max-height: 960px) {
  .hero { padding-top: 112px; }
  .stage { height: clamp(470px, calc(100vh - 336px), 652px); margin-top: 28px; }
  .stage li { scale: .86; transform-origin: 50% 0; }
}
@media (min-width: 1241px) and (max-height: 800px) {
  .hero { padding-top: 96px; }
  .hero h1 { font-size: clamp(44px, 4.6vw, 62px); }
  .stage { margin-top: 18px; }
  .stage li { scale: .74; }
}

/* The apps section: copy on the left, three rows of the design system's grey app icons on the right that slide
   across as the page scrolls. It stops on screen like the other sections. */
.apps-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.apps-copy h2 { font-size: clamp(38px, 4.2vw, 60px); }
.apps-lede { margin-top: 18px; max-width: 560px; font-size: 19px; color: var(--ink-2); }
.apps-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.apps-points li { display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.apps-points b { font-family: var(--label); font-weight: 600; font-size: 14.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.apps-points span { font-size: 17px; color: var(--ink); }
.apps-stage { display: grid; gap: 16px; padding: 18px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.apps-row { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; width: max-content; will-change: transform; }
.apps-row li { flex: none; width: 112px; height: 112px; display: grid; place-items: center; border-radius: 30px; background: rgba(255, 255, 255, .82); box-shadow: 0 0 0 1px #fff, 0 14px 32px rgba(2, 15, 70, .08); }
.apps-row img { width: 72px; height: 72px; object-fit: contain; }
.apps-r2 { margin-left: -64px; }
@media (max-width: 900px) {
  .apps-grid { grid-template-columns: 1fr; }
  .apps-points li { grid-template-columns: 1fr; gap: 2px; }
  .apps-row li { width: 84px; height: 84px; border-radius: 24px; } .apps-row img { width: 54px; height: 54px; }
  .apps-r3 { display: none; }
}
/* The footer's logo and its line sit together in the middle. */
.foot-in { flex-direction: column; justify-content: center; gap: 10px; text-align: center; }
.foot img { margin: 0; }
/* The FAQ pop-up: the same card as Let's talk, with a list that opens one answer at a time by tap. */
.faq-dlg { width: min(720px, calc(100vw - 32px)); }
.faq-list { margin-top: 18px; display: grid; gap: 8px; }
.faq-list details { border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative; font-weight: 600; font-size: 17px; line-height: 1.2; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; font-size: 22px; font-weight: 400; color: var(--violet); transition: rotate .2s ease; }
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 16px; }
.faq-list p { margin: 0; padding: 0 16px 16px; color: var(--ink-2); font-size: 16.5px; line-height: 1.38; }
.foot a { text-underline-offset: 3px; }

/* One icon in colour at a time: the colour image fades in over the grey one, and the tile lifts a little. */
.apps-row li { position: relative; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.apps-row .apps-c { position: absolute; inset: 0; margin: auto; opacity: 0; transition: opacity .5s var(--ease); }
.apps-row li.is-live { transform: translateY(-5px) scale(1.06); box-shadow: 0 0 0 1px #fff, 0 20px 44px rgba(74, 80, 240, .22); }
.apps-row li.is-live .apps-c { opacity: 1; }
.apps-row li.is-live img:not(.apps-c) { opacity: 0; transition: opacity .5s var(--ease); }
