/* pinifera.com. Layout: the landing is the product's own shell turned into a page. Mist ground, a top line of slips,
   then white slips that show real Pinifera surfaces (Home, a thread, Decision, Pulse) instead of illustrations.
   Every colour and component comes from pinifera.css; this block only places them. */
:root { --page: 1180px; --ease: cubic-bezier(.2,.9,.25,1) }
html { scroll-behavior: smooth; scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)) }
body { margin: 0; background: var(--sky1); color: var(--ink) }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--sky1) }
a { color: inherit }
[hidden] { display: none !important }
.wrap { max-width: var(--page); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.skip { position: absolute; left: -9999px } .skip:focus { left: 16px; top: 16px; z-index: 40 }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden }

/* Top line of slips */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding-block: 16px; background: color-mix(in srgb, var(--sky1) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px) }
.top .wrap { display: flex; align-items: center; gap: 12px }
.mark { width: 19px; height: 22px; fill: currentColor; flex: none }
.links { display: flex; gap: 2px; height: 44px; padding: 4px; margin-left: auto; align-items: center }
.links a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--radius-12); font-weight: 600; font-size: 13.5px; color: var(--ink2); text-decoration: none }
.links a:hover { background: var(--paper2); color: var(--ink) }
.top .acts { display: flex; gap: 8px; margin-left: 0 }
.slipbtn { height: 44px; padding: 0 16px; border-radius: var(--radius-16); background: var(--paper); color: var(--ink); box-shadow: var(--shadow) }
.slipbtn:hover { background: var(--paper2) }
.top .pf-btn.lg { height: 44px; border-radius: var(--radius-16); box-shadow: var(--shadow) }

/* Type used only here: the page headline and section titles */
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance }
.h-hero { font-size: clamp(46px, 6.6vw, 88px); line-height: .94; font-weight: 700; letter-spacing: -.038em }
.h-hero .hl { background: linear-gradient(transparent 64%, var(--sap-soft) 64%, var(--sap-soft) 92%, transparent 92%); padding: 0 .04em }
.h-sec { font-size: clamp(32px, 4vw, 50px); line-height: 1.02; font-weight: 700; letter-spacing: -.03em }
.lede { margin: 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ink2); max-width: 36em }
.lede b { color: var(--ink); font-weight: 600 }
.pf-btn.lg { height: 48px; padding: 0 20px; font-size: 15px; border-radius: var(--radius-14) }
.pf-btn .pf-ic { width: 18px; height: 18px }
.note { font: 500 12.5px/1.4 var(--font-mono); color: var(--ink3) }

/* Hero: words on the ground, a Home slip beside them */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(24px, 5vw, 64px) clamp(48px, 7vw, 96px) }
.hero-copy { display: grid; gap: 24px; align-content: center; min-width: 0 }
.hero-copy .cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }
.hero-copy .who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink2) }
.hero-copy .who .pf-faces .pf-av { --s: 34px; background: var(--paper) }
.stage { position: relative; min-width: 0 }
.home { padding: 22px 22px 14px; display: grid; gap: 14px }
.home > header { display: flex; align-items: baseline; gap: 10px }
.home > header h2 { flex: 1; font: 700 24px/1.1 var(--font-display); letter-spacing: -.025em }
.home .pf-pulse .word { font-size: 26px }
.home .pf-label { margin-top: 6px }
.ws-list { display: grid }
.ws-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; border-bottom: 1px solid var(--line) }
.ws-row:last-child { border-bottom: 0 }
.ws-row .pf-av { --s: 34px; margin-top: 10px }
.ws-row .pf-ws { border-bottom: 0; cursor: default }
.ws-row .pf-ws:hover b { text-decoration: none }
.home { padding-bottom: 26px }
.float-shelf { position: absolute; left: clamp(-72px, -5vw, -24px); bottom: 0; width: 300px; padding: 12px 16px 8px; transform: translateY(calc(100% - 22px)) rotate(-2deg) }
.float-shelf .item { padding: 4px 0 }
.float-shelf .item small { display: inline; margin-left: 6px }
.stage { margin-bottom: 72px }
.float-shelf .wk { margin-top: 0 }
.flyoff { animation: fly .45s var(--ease) forwards }
@keyframes fly { to { opacity: 0; transform: translate(40px, -30px) rotate(6deg) } }
.answered-line { display: flex; align-items: center; gap: 8px }
.answered-line .pf-ic { width: 18px; height: 18px; color: var(--needle) }

/* Sections */
.sec { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line) }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px) }
.pf-ask p, .pf-msg .x { max-width: 60ch }
.pf-ask h3 { margin: 0; font: 700 17px/1.25 var(--font-display); letter-spacing: -.01em; text-wrap: balance }
/* Kind labels: the system's kicker, raised from 10.5px to 11px on this page so it stays legible on phones */
.pf-kicker { font-size: 11px }
.sec-head p { margin: 0; color: var(--ink2); font-size: 16.5px; line-height: 1.55; max-width: 62ch }

/* How it works: one thread, one Pulse */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; overflow: hidden }
.thread { display: grid; gap: 18px; align-content: start; padding: 26px 28px 28px; min-width: 0 }
.side { display: grid; gap: 16px; align-content: start; padding: 26px 24px; border-left: 1px solid var(--line); background: var(--paper) }
.side .pf-pulse .word { font-size: 28px }
.side .pf-pulse .cause { font-size: 14px }
.demo .pf-msg.agent .who .pf-av, .demo .pf-ask .pf-av { --s: 28px }
.demo .pf-cp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.demo .pf-cp li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 14px }
.demo .pf-cp li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sap); transform: translateY(-1px) }
.demo .pf-cp li small { font: 500 11.5px var(--font-mono); color: var(--ink3); white-space: nowrap }
.demo .work { display: grid; border: 1px solid var(--line); border-radius: var(--radius-14); padding: 0 14px }
.arrive { animation: arrive .32s var(--ease) }
@keyframes arrive { from { opacity: 0; transform: translateY(8px) } }
.pill-swap { animation: arrive .32s var(--ease) }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-top: 1px solid var(--line); grid-column: 1 / -1; background: var(--paper) }
.controls .pf-seg { flex-wrap: wrap }
.controls .note { margin-left: auto }
.demo-cap { margin: 14px 2px 0; font-size: 14px; color: var(--ink2); min-height: 1.5em }

/* Mind */
.mind { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center }
.mind-copy { display: grid; gap: 18px; align-content: start }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.fact { display: grid; gap: 10px; align-content: start; padding: 16px 18px; background: var(--paper); border-radius: var(--radius-16); box-shadow: var(--shadow) }
.fact q { quotes: none; font: 600 19px/1.28 var(--font-display); letter-spacing: -.012em; text-wrap: balance }
.fact small { font-size: 13px; color: var(--ink2) }
.fact:nth-child(1) { grid-column: 1 / -1; max-width: 420px }
.fact:nth-child(3) { transform: translateY(18px) }

/* Teams */
.teams { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px }
.team { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 16px 16px 14px; background: var(--paper); border-radius: var(--radius-16); box-shadow: var(--shadow) }
.team .ch { width: 56px; height: 63px; margin-bottom: 8px; transition: translate .25s var(--ease) }
.team:hover .ch { translate: 0 -4px }
.team b { font: 700 18px/1.2 var(--font-display); letter-spacing: -.015em }
.team .verb { font-size: 13px; color: var(--ink2) }
.team p { margin: 2px 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink2) }
.team .pf-chip { margin-top: auto }
.team .pf-chip .pf-ic { width: 14px; height: 14px }
.team .pf-chip .on, .team .pf-chip[aria-pressed="true"] .off { display: none }
.team .pf-chip[aria-pressed="true"] .on { display: block }
.teams-note { margin: 16px 2px 0; font-size: 14px; color: var(--ink2) }

/* Join */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden }
.join > div { padding: clamp(22px, 3.4vw, 40px); min-width: 0 }
.join .left { display: grid; gap: 18px; align-content: start }
.join .left p { margin: 0; color: var(--ink2); font-size: 16px }
.join .right { display: grid; gap: 12px; align-content: start; background: var(--paper2) }
.join .right label { font-weight: 600; font-size: 13.5px }
.join .row { display: flex; gap: 8px }
.join .row .pf-field { height: 48px; background: var(--paper); font-size: 15px }
.join .row .pf-btn { height: 48px }
.join .watching { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink2) }
.join .status { margin: 0; font-size: 14px; min-height: 1.4em }
.join .status[data-kind="error"] { color: var(--ember) }
.join .watching .chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--paper); font-size: 12.5px; font-weight: 500; color: var(--ink) }
.join hr { width: 100%; height: 1px; margin: 8px 0; border: 0; background: var(--line) }
.join .alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2) }
.join .alt .pf-btn { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line) }
.join .alt .pf-btn:hover { background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink3) }
.join .pf-trail li { font-size: 15px; padding-bottom: 16px }
.join .pf-trail li:last-child { padding-bottom: 0 }
.fine { font-size: 13px; color: var(--ink2) } .fine a { color: var(--ink2); text-underline-offset: 2px }
.hp { position: absolute; left: -9999px }

/* Questions */
.qs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start }
.qs .left { display: grid; gap: 14px }
.qs .left p { margin: 0; color: var(--ink2); font-size: 16px }
.mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600 }
.faq { padding: 6px 20px }
.faq details { border-bottom: 1px solid var(--line) } .faq details:last-child { border-bottom: 0 }
.faq summary { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; font: 700 17px/1.25 var(--font-display); letter-spacing: -.01em }
.faq summary::-webkit-details-marker { display: none }
.faq summary .pf-ic { margin-left: auto; color: var(--ink3); transition: rotate .2s var(--ease) }
.faq details[open] summary .pf-ic { rotate: 90deg }
.faq details p { margin: 0 0 18px; max-width: 56ch; font-size: 15px; line-height: 1.6; color: var(--ink2) }

/* Footer */
.foot { padding-block: 28px 40px; border-top: 1px solid var(--line) }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px }
.foot .brand { display: inline-flex; align-items: center; gap: 8px; font: 700 16px var(--font-display); letter-spacing: -.02em; text-decoration: none }
.foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px }
.foot nav a { color: var(--ink2); text-decoration: none } .foot nav a:hover { color: var(--ink); text-decoration: underline }

/* Dialog and toast */
dialog.pf-dlg:not([open]) { display: none }
dialog.pf-dlg { border: 0; color: var(--ink); max-height: min(80vh, 720px); overflow: auto }
dialog.pf-dlg::backdrop { background: color-mix(in srgb, #17231F 30%, transparent) }
dialog.pf-dlg[open] { animation: arrive .32s var(--ease) }
.dlg-body { display: grid; gap: 12px; font-size: 15px; line-height: 1.55 }
.dlg-body p { margin: 0 }
.dlg-body .draft { padding: 14px 16px; border-radius: var(--radius-12); background: var(--paper2) }
.dlg-body .draft h3 { font: 700 18px/1.25 var(--font-display); margin: 0 0 6px }
.dlg-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50; transform: translateX(-50%); animation: arrive .32s var(--ease) }

@media (max-width: 1080px) {
  .teams { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .demo { grid-template-columns: minmax(0, 1fr) 300px }
}
@media (max-width: 900px) {
  .links { display: none } .top .acts { margin-left: auto }
  .hero, .mind, .qs, .join, .sec-head { grid-template-columns: minmax(0, 1fr) }
  .float-shelf { position: relative; left: auto; bottom: auto; width: auto; margin: 12px 0 0; transform: none }
  .stage { margin-bottom: 0 }
  .demo { grid-template-columns: minmax(0, 1fr) }
  .side { border-left: 0; border-top: 1px solid var(--line) }
  .thread { padding: 18px 16px } .side { padding: 18px 16px }
  .fact:nth-child(3) { transform: none }
  .foot nav { margin-left: 0 }
}
@media (max-width: 600px) {
  .top { padding-block: 8px }
  .top .slipbtn { display: none }
  .teams { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .facts { grid-template-columns: minmax(0, 1fr) }
  .join .row { flex-direction: column } .join .row .pf-btn { width: 100% }
  .home { padding: 16px 16px 10px }
  .controls .note { margin-left: 0 }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .arrive, .pill-swap, .flyoff, dialog.pf-dlg[open], .toast { animation: none }
  .team .ch, .faq summary .pf-ic { transition: none }
}
