/* Staging v3d (the notes on v3c, 17 Nov 22:20) */

/* the small call to action at the bottom of tool pages (replaces "Bring one workflow" band, the AI box and the inline CTA) */
.cta-small { border-top: 1px solid var(--kline); }
.cta-small .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: clamp(28px, 3.4vw, 48px); }
.cta-small p { margin: 0; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; max-width: 30ch; }
.cta-small .row { gap: 10px; }

/* the journey's tool names open the tool's page in a new tab */
a.j3tool { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; }
a.j3tool i { font-style: normal; font-size: 0.85em; opacity: 0.7; }
a.j3tool:hover { text-decoration: underline; text-underline-offset: 4px; }
.jcard a.learn { white-space: normal; }

/* proof cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.pcard { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--kline); border-radius: 14px; overflow: hidden; min-width: 0; }
.pcard .pimg { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0d1112; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .5s ease; }
.pcard:hover .pimg img { transform: scale(1.03); }
.pcard .pbody { display: grid; gap: 10px; align-content: start; padding: clamp(18px, 1.8vw, 26px); }
.pcard .kick { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: rgba(17, 17, 17, .6); }
.pcard h3 { margin: 0; font-size: clamp(21px, 1.7vw, 26px); line-height: 1.15; font-weight: 500; }
.pcard p { margin: 0; line-height: 1.45; color: rgba(17, 17, 17, .78); overflow-wrap: anywhere; }
.pcard p b { color: var(--ink); font-weight: 600; }
.pcard .textlink { margin-top: 6px; font-size: 17px; }

/* Field Notes in every footer */
footer.site .fnotes { display: grid; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--wline); }
footer.site .fhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
footer.site .fhead a { color: var(--accent); }
footer.site .flist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 28px; padding-bottom: 24px; }
footer.site .flist a { display: grid; gap: 4px; }
footer.site .flist a span { font-size: 14px; color: var(--w60); }
footer.site .flist a b { font-weight: 500; color: var(--white); line-height: 1.25; }

/* v3d pages: the first section after a page head */
.after-head { padding-top: clamp(28px, 3.4vw, 56px) !important; }
.after-head + .after-head { padding-top: 0 !important; }

/* search and AI-answer layer (seo.py, 18 Nov): the H1 under the product label, the one-line statement, a compact FAQ */
.prodhead h1.sub, .prodhead p.sub { margin: 0; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); font-size: clamp(24px, 3vw, 44px); line-height: 1.15; }
.prodhead h1.sub::after, .prodhead p.sub::after { content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0; border-radius: 2px; background: var(--accent, #2fb98a); }
.prodhead .stmt { margin: 0; max-width: 44em; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; color: var(--ink-2); }
.faq { padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 56px); }
.faq .wrap { padding-left: var(--edge); padding-right: var(--edge-r); }
.faq h2 { margin: 0 0 clamp(14px, 1.6vw, 22px); font-size: clamp(22px, 2vw, 30px); font-weight: 500; }
.faq-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px clamp(24px, 3vw, 44px); }
.faq-i { border-top: 1px solid var(--kline); padding-top: 12px; }
.faq-i h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; font-weight: 600; }
.faq-i p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* comparison guides (guides2.py) */
.guide { padding: clamp(28px, 3.4vw, 56px) 0 clamp(40px, 5vw, 80px); }
.guide .wrap > h2 { margin: clamp(28px, 3vw, 44px) 0 10px; font-size: clamp(22px, 2vw, 30px); font-weight: 500; }
.guide .wrap > p { margin: 0 0 12px; max-width: 44em; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.gtable { overflow-x: auto; border-top: 1px solid var(--kline); -webkit-overflow-scrolling: touch; }
.gtable table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.gtable th, .gtable td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--kline); }
.gtable thead th { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.gtable tbody th { font-weight: 600; }
.guide .gnote { font-size: 14px !important; margin-top: 10px !important; }

/* who it's for, how it works, how it compares (seo_blocks.py) */
.tblock { padding: clamp(36px, 4.4vw, 64px) 0 0; }
.tblock .upd { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
.tb-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px clamp(28px, 4vw, 64px); }
.tblock h2 { margin: 0 0 10px; font-size: clamp(22px, 2vw, 30px); font-weight: 500; }
.tblock .wrap > h2 { margin-top: clamp(28px, 3vw, 44px); }
.tblock p, .tblock li { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.tblock p { margin: 0 0 10px; max-width: 44em; }
.tblock ol, .tblock ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.tblock .tb-t { min-width: 0; }
.tblock .gnote { font-size: 14px; margin-top: 10px; }
.tb-links { margin-top: 18px !important; }
.tb-links { display: grid; gap: 8px; justify-items: start; }

/* the summary under each page head (summaries.py) */
.prodhead .sum { list-style: none; margin: 2px auto 0; padding: 0; display: grid; gap: 7px; max-width: 38em; text-align: left; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.45; color: var(--ink-2); }
.prodhead .sum li { position: relative; padding-left: 18px; }
.prodhead .sum li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prodhead .for { margin: 0; font-size: 15px; color: var(--ink-2); }
.prodhead .for b { font-weight: 600; color: var(--ink); }

/* 18 Nov 14:20: the hero and "follow one project" films looked zoomed in and soft. Show the whole frame, side panels
   included, instead of cropping it to fill the screen (cropping magnified the middle of the film). */
.hero3b .hero-film { background: #000; }
.hero3b .hero-film video { object-fit: contain; object-position: 50% 42%; }
.hero3b .pin::after { display: none; }
@media (max-width: 760px) {
  .hero3b .hero-film video { object-position: 50% 24%; }
  .j3stage { aspect-ratio: 16 / 10; }
  .j3v { top: -4%; height: 108%; }
}

/* Field Notes with their images (18 Nov 14:20) */
.fngrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.fngrid a { display: grid; align-content: start; gap: 8px; color: var(--ink); text-decoration: none; }
.fngrid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #e4e7e6; display: block; margin-bottom: 6px; }
.fngrid .g { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.fngrid .k { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; line-height: 1.25; }
.fngrid .v { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.fngrid a:hover .k { text-decoration: underline; }

/* comparison tables: Matechi's row first and highlighted (18 Nov 15:45) */
.gtable tr.us th, .gtable tr.us td { background: rgba(47, 185, 138, 0.12); }
.gtable tr.us th { box-shadow: inset 4px 0 0 var(--accent, #2fb98a); padding-left: 14px; }
.gtable tbody th { padding-left: 14px; }
.tblock .gnote + p { margin-top: clamp(20px, 2.4vw, 32px); }
footer.site .flist img.fthumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; background: #1b1f22; }

/* the hero on a phone (18 Nov 16:30): the film fills the top of the screen at 1x and pans across its panels as you
   scroll (motion.js "phone" keys); the text sits below it on black */
@media (max-width: 760px) {
  .hero3b .hero-film { inset: 0 0 auto 0; height: 50%; }
  .hero3b .hero-film::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000); }
}

/* "On the platform" (18 Nov 16:30): its films start right under the label, not mid-screen below an empty band */
@media (min-width: 761px) { .jstage .pin { align-content: start; align-items: start; padding-top: 84px; } }
@media (max-width: 760px) { .hero3b .hero-film::after { display: none; } }
/* phone: "One project, every tool" frame is 16:10 now (18 Nov 14:20), so its progress dots sit just inside its bottom edge,
   clear of the bar's buttons (18 Nov 17:20: overlapping boxes on a phone) */
@media (max-width: 760px) { .j3dots { top: calc(64px + min(62.5vw, 56svh) - 22px); } }

/* phone pass in Safari and Chrome (18 Nov ~23:15: "weird gaps", "things hidden by other things"): the hero film box is
   exactly the frame's shape under the header, and the words start right under it, with no black band between them */
@media (max-width: 760px) {
  .hero3b .hero-film { inset: 64px 0 auto 0; height: calc(100vw * 966 / 1920); }
  .hero3b .void { top: calc(64px + 100vw * 966 / 1920 + 14px); bottom: auto; padding-top: 0; align-content: start; }
  .hero3b .void::before { display: none; }
  .hero3b .vp { align-self: start; }
}
/* phone: the progress dots sit under the frame, on the bar, not over the film's own caption line; the caption makes room */
@media (max-width: 760px) {
  .j3dots { top: calc(64px + min(62.5vw, 56svh) + 10px); }
  .j3bar { padding-top: 36px; }
}
/* phone, Safari: the product film card had its height from aspect-ratio, which Safari's grid sized short, so the card ran
   over the label and step count under it; an explicit height keeps the row and the card the same */
@media (max-width: 760px) {
  .framed .card.is-framed, .mr2 .card { aspect-ratio: auto; height: min(calc((100vw - var(--edge) - var(--edge-r)) / 1.21), calc(100svh - 400px)); }
}
/* Connect (phone pass 18 Nov): native dropdowns drew dark in Safari; light ones with their own arrow, a quiet consent tick,
   and the hidden field for bots */
.intake select { -webkit-appearance: none; appearance: none; color-scheme: light; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
.intake .tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.intake .tick input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #111; }
.intake .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.intake .formmsg.ok { color: #0f6b4f; } .intake .formmsg.err { color: #b3261e; }
/* phone hero: the frame and its words sit together in the middle of the screen, not stuck to the top over a black half */
@media (max-width: 760px) {
  .hero3b .hero-film { top: max(64px, calc(50svh - 100vw * 966 / 3840 - 110px)); }
  .hero3b .void { top: calc(max(64px, calc(50svh - 100vw * 966 / 3840 - 110px)) + 100vw * 966 / 1920 + 14px); }
}

/* pins that fit the screen (fitpins.js, 19 Nov): measuring, a smaller film, or no pin at all on a screen too short */
.pin-measure *, .pin-measure *::before, .pin-measure *::after { transition: none !important; }
.pin-measure .jcard, .pin-measure .j3bar, .pin-measure .bexits, .pin-measure .j3exits { transform: none !important; }
.jstage.pin-tight .jmain .jv { height: var(--fit-media); aspect-ratio: auto; }
.framed.pin-tight .card, .framed.pin-tight .card.is-framed { height: var(--fit-media) !important; aspect-ratio: auto !important; }
@media (max-width: 760px) {
  .j3.pin-tight .j3stage { height: var(--fit-media); aspect-ratio: auto; max-height: none; }
  .j3.pin-tight .j3dots { top: calc(64px + var(--fit-media) + 10px); }
}
.unpinned { height: auto !important; }
.unpinned > .pin { position: relative !important; height: auto !important; padding-bottom: 48px; }
.jstage.unpinned .jside { gap: 32px; }
.jstage.unpinned .jcard { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; }
.jstage.unpinned .jcard .beat { color: #fff; }
.jstage.unpinned .jcard .beat.fig { color: var(--accent); }
.jstage.unpinned .jmain .jv { opacity: 0; }
.jstage.unpinned .jslide:first-child .jv { opacity: 1; }
.jstage.unpinned .jchips, .jstage.unpinned .bar { display: none; }
.j3.unpinned .j3bars { position: relative; height: auto; }
.j3.unpinned .j3bar { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.j3.unpinned .j3exits { opacity: 1; transform: none; pointer-events: auto; }
.j3.unpinned .j3dots, .j3.unpinned .j3skip, .j3.unpinned [data-j3-next], .j3.unpinned .j3all { display: none; }
.framed.unpinned .bexits { opacity: 1; transform: none; pointer-events: auto; }
.framed.unpinned .j3skip, .framed.unpinned [data-j3-next] { display: none; }
/* the walkthrough window on phones: sized to the small viewport (Safari's bars showing), with a smaller floor on short
   screens, so the step text and Back / Next stay inside the pinned window (pin check, 19 Nov: 320x568 was 34 px over) */
@media (max-width: 760px) { .wk-pin .wk-view { height: max(220px, calc(100svh - 380px)); } }
@media (max-width: 760px) and (max-height: 699px) { .wk-pin .wk-view { height: max(150px, calc(100svh - 410px)); } }
/* the pin fit (fitpins.js) for the walkthroughs and the header film */
.wk-track.pin-tight .wk-pin .wk-view { height: var(--fit-media) !important; }
.unpinned > .wk-pin { position: relative !important; height: auto !important; }
.wk-track.unpinned .wk-top a[data-wk-skip], .wk-track.unpinned [data-wk-skip] { display: none; }
@media (max-width: 760px) {
  .hero3b.pin-tight .hero-film { height: var(--fit-media); }
  .hero3b.pin-tight .void { top: calc(max(64px, calc(50svh - 100vw * 966 / 3840 - 110px)) + var(--fit-media) + 14px); }
}
.hero3b.pin-short .scrollcue { display: none; }
