/* =====================================================================
   Public website. Loaded after paper.css; no framework, no web fonts.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--pp-font); font-size: 16px; line-height: 1.6; color: var(--pp-ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0 0 14px; }
a { color: var(--pp-pen); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--pp-pen); outline-offset: 2px; border-radius: 4px; }
.wrap { width: calc(100% - 32px); max-width: 1120px; margin: 0 auto; }
.wrap-narrow { max-width: 820px; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--pp-action); color: #fff; border-radius: 6px; }
.skip:focus { left: 8px; }
.text-muted { color: var(--pp-ink-3); }
[id] { scroll-margin-top: 80px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--pp-edge-strong); border-radius: 9px; font: 650 15.5px/1.2 var(--pp-font); cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-solid { background: var(--pp-action); border-color: var(--pp-action); color: #fff; box-shadow: 0 4px 12px rgba(36,86,198,.25); }
.btn-solid:hover { background: var(--pp-action-dark); border-color: var(--pp-action-dark); box-shadow: 0 8px 18px rgba(36,86,198,.3); }
.btn-line { background: var(--pp-sheet); color: var(--pp-ink); }
.btn-line:hover { background: var(--pp-hover); }
.btn-sm { min-height: 40px; padding: 0 15px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--pp-edge); }
.site-nav-row { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--pp-ink); }
.site-brand:hover { text-decoration: none; }
.site-menu { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-links { display: flex; gap: 4px; margin-left: 12px; }
.site-links a { padding: 8px 12px; border-radius: 7px; color: var(--pp-ink-2); font-size: 14.5px; font-weight: 600; }
.site-links a:hover { background: var(--pp-hover); color: var(--pp-ink); text-decoration: none; }
.site-actions { display: flex; gap: 10px; }
.site-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1.5px solid var(--pp-edge-strong); border-radius: 9px; background: var(--pp-sheet); color: var(--pp-ink); font-size: 19px; cursor: pointer; align-items: center; justify-content: center; padding: 0; }

@media (max-width: 860px) {
  .site-nav-row { gap: 12px; }
  .site-burger { display: inline-flex; }
  .site-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px 18px; background: var(--pp-sheet); border-bottom: 1px solid var(--pp-edge); box-shadow: var(--pp-shadow-lift); max-height: calc(100vh - 66px); overflow-y: auto; }
  .site-nav.is-open .site-menu { display: flex; }
  .site-links { flex-direction: column; margin: 0; }
  .site-links a { padding: 12px; font-size: 16px; border-bottom: 1px solid var(--pp-rule); border-radius: 0; }
  .site-actions { flex-direction: column; }
  .site-actions .btn { min-height: 48px; font-size: 15.5px; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 60px; align-items: center; }
.hero-copy { padding-left: 24px; border-left: 2px solid var(--pp-margin); }
.eyebrow { display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 3px; background: var(--pp-note-blue); font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; box-shadow: 0 6px 10px -8px rgba(66,52,18,.5); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 20px; }
.hero h1 span { display: block; }
.hero h1 span.pp-mark { display: inline; }
.hero-lead { font-size: 18.5px; color: var(--pp-ink-2); max-width: 500px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 24px 0 0; padding: 0; font-size: 14px; color: var(--pp-ink-2); }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .ico { color: var(--pp-green); stroke-width: 2.6; }

.hero-stage { min-width: 0; width: 100%; max-width: 480px; justify-self: center; }
.hero-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.hero-tabs button { border: 1.5px solid var(--pp-edge-strong); border-radius: 999px; background: var(--pp-sheet); padding: 7px 15px; font: 650 13px/1.3 var(--pp-font); color: var(--pp-ink-2); cursor: pointer; }
.hero-tabs button:hover { background: var(--pp-hover); }
.hero-tabs button.is-on { background: var(--pp-action); border-color: var(--pp-action); color: #fff; }
.hero-board { position: relative; padding: 14px 18px 30px; }

/* Fixed row heights: nothing here may change size while the text types in. */
.hero-mock { padding: 24px 24px 18px; transform: rotate(.5deg); }
.hero-mock-head { display: flex; align-items: center; gap: 10px; height: 36px; margin-bottom: 14px; border-bottom: 2px solid var(--pp-rule); padding-bottom: 12px; }
.hero-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pp-margin); flex: none; }
.hero-mock-title { font-weight: 750; font-size: 15px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-field { height: 62px; margin-bottom: 12px; }
.mock-field-label { height: 16px; margin-bottom: 6px; font-size: 11.5px; line-height: 16px; font-weight: 700; color: var(--pp-ink-3); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; }
.mock-input { display: flex; align-items: center; height: 40px; padding: 0 12px; border: 1.5px solid var(--pp-edge-strong); border-radius: 7px; background: #fff; font-size: 14px; overflow: hidden; white-space: nowrap; }
.mock-typed.typing::after { content: ""; display: inline-block; width: 2px; height: 15px; margin-left: 2px; background: var(--pp-ink); vertical-align: middle; }
.mock-submit { display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 4px; border-radius: 8px; background: var(--pp-action); color: #fff; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; transition: transform .12s; }
.mock-submit.pressed { transform: scale(.97); }
.hero-pipeline { display: flex; gap: 8px; height: 36px; margin-top: 14px; }
.pipe-step { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 4px; border: 1px dashed var(--pp-edge-strong); border-radius: 6px; color: var(--pp-ink-3); font-size: 11.5px; line-height: 1.2; font-weight: 650; text-align: center; transition: background .25s, color .25s; }
.pipe-step.active { background: var(--pp-note-green); border-style: solid; border-color: transparent; color: var(--pp-ink); }

/* Sticky notes that pop up after a "submit"; they float, so they take no room. */
.hero-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; min-width: 150px; max-width: 62%; padding: 9px 14px 9px 12px; border-radius: 4px; background: var(--pp-note-yellow); box-shadow: 0 2px 3px rgba(66,52,18,.14), 0 14px 22px -10px rgba(66,52,18,.45); opacity: 0; transform: translateY(8px) rotate(0deg); transition: opacity .35s, transform .35s; }
.hero-note .ico { font-size: 20px; }
.hero-note strong { display: block; font-size: 11px; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase; color: var(--pp-ink-2); }
.hero-note span { display: block; font-size: 13.5px; line-height: 1.35; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-note-lead { top: 22px; right: -6px; }
.hero-note-source { left: -4px; bottom: 0; background: var(--pp-note-pink); }
.hero-note-lead.show { opacity: 1; transform: rotate(3deg); }
.hero-note-source.show { opacity: 1; transform: rotate(-3deg); }

.works { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 44px; padding: 20px 0 22px; border-top: 2px dashed var(--pp-edge-strong); }
.works-label { font-size: 12px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--pp-ink-3); }
.works ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.works li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 650; color: var(--pp-ink-2); }
.works .ico { font-size: 18px; color: var(--pp-pen); }

@media (max-width: 900px) {
  .hero { padding-top: 34px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-copy { padding-left: 14px; }
  .hero-mock { transform: none; }
  .works { margin-top: 30px; }
}
@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; }
  .hero-lead { font-size: 16.5px; }
  .hero-board { padding: 12px 0 32px; }
  .hero-mock { padding: 20px 14px 14px; }
  .hero-note-lead { right: 2px; top: 16px; min-width: 0; }
  .hero-note-source { left: 2px; }
  .hero-pipeline { height: 52px; }
  .pipe-step { flex-direction: column; gap: 2px; font-size: 10.5px; }
  .works ul { gap: 8px 16px; }
  .works li { font-size: 13.5px; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-sheet { background-color: var(--pp-sheet); border-top: 1px solid var(--pp-edge); border-bottom: 1px solid var(--pp-edge); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
.section-head p { color: var(--pp-ink-2); margin: 0; }
@media (max-width: 560px) { .section { padding: 46px 0; } .section-head { margin-bottom: 28px; } }

/* ---------- How it works ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.flow-card { position: relative; display: flex; flex-direction: column; padding: 16px 16px 18px; }
.flow-card h3 { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 17px; }
.flow-card p { margin: 0; font-size: 14px; color: var(--pp-ink-2); }
.flow-no { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--pp-action); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.flow-card:not(:last-child)::after { content: ""; position: absolute; top: 78px; right: -26px; width: 24px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12' fill='none' stroke='%238a97b5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 8c6-6 13-6 20-1M17 2l4 5-6 2'/%3E%3C/svg%3E") no-repeat; }
.art { height: 128px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: var(--pp-note-yellow); overflow: hidden; }
.art-blue { background: var(--pp-note-blue); }
.art-pink { background: var(--pp-note-pink); }
.art-green { background: var(--pp-note-green); }
.art-line { width: 80%; height: 18px; border-radius: 4px; background: #fff; border: 1.5px solid rgba(29,38,56,.35); }
.art-btn { width: 80%; height: 20px; border-radius: 4px; background: var(--pp-action); }
.art-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(29,38,56,.35); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.art-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.art-code b { width: 28px; height: 36px; border-radius: 5px; background: #fff; border: 1.5px solid rgba(29,38,56,.35); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.art-icon { width: 38px; height: 38px; border-radius: 9px; background: #fff; border: 1.5px solid rgba(29,38,56,.35); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.art-bars { display: flex; align-items: flex-end; gap: 7px; height: 42px; }
.art-bars i { width: 16px; background: var(--pp-action); border-radius: 3px 3px 0 0; }
@media (max-width: 980px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow-card:not(:last-child)::after { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Features ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -14px 0 32px; }
.chips a { padding: 7px 14px; border: 1.5px solid var(--pp-edge-strong); border-radius: 999px; background: var(--pp-paper); color: var(--pp-ink); font-size: 13.5px; font-weight: 650; }
.chips a:hover { background: var(--pp-hover); text-decoration: none; }
.group { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding: 30px 0; border-top: 2px dashed var(--pp-edge); }
.group:first-of-type { border-top: 0; padding-top: 0; }
.group-head h3 { font-size: 21px; margin-bottom: 6px; }
.group-head p { color: var(--pp-ink-2); font-size: 14.5px; margin: 0; }
.group-icon { width: 52px; height: 52px; margin-bottom: 14px; border-radius: 4px; background: var(--pp-note-yellow); display: flex; align-items: center; justify-content: center; font-size: 24px; transform: rotate(-3deg); box-shadow: 0 8px 14px -9px rgba(66,52,18,.55); }
.group:nth-of-type(4n+2) .group-icon { background: var(--pp-note-blue); }
.group:nth-of-type(4n+3) .group-icon { background: var(--pp-note-pink); }
.group:nth-of-type(4n+4) .group-icon { background: var(--pp-note-green); }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; align-content: start; }
.item { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--pp-edge); border-radius: 8px; background: var(--pp-paper); }
.item > .ico { font-size: 20px; margin-top: 2px; color: var(--pp-pen); }
.item h4 { margin: 0 0 3px; font-size: 15px; }
.item p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--pp-ink-2); }
@media (max-width: 800px) { .group { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 26px 0; } .group-head { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; } .group-icon { grid-row: span 2; margin: 0; } .group-head h3 { align-self: end; } }
@media (max-width: 560px) { .items { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Use cases ---------- */
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; }
.use { position: relative; padding: 20px 16px 16px; border-radius: 4px; background: var(--pp-note-yellow); box-shadow: 0 1px 1px rgba(66,52,18,.12), 0 12px 18px -12px rgba(66,52,18,.5); }
.use:nth-child(4n+2) { background: var(--pp-note-blue); }
.use:nth-child(4n+3) { background: var(--pp-note-pink); }
.use:nth-child(4n+4) { background: var(--pp-note-green); }
.use::before { content: ""; position: absolute; top: -7px; left: 50%; width: 56px; height: 15px; transform: translateX(-50%) rotate(-2deg); background: rgba(255,255,255,.65); box-shadow: 0 1px 2px rgba(66,52,18,.12); }
.use h3 { font-size: 15.5px; margin-bottom: 8px; }
.use ul { list-style: none; margin: 0; padding: 0; font-size: 13.2px; line-height: 1.45; color: var(--pp-ink-2); }
.use li { padding: 4px 0; border-top: 1px solid rgba(29,38,56,.12); }
@media (max-width: 520px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } .use { padding: 16px 11px 12px; } .use h3 { font-size: 14px; } .use ul { font-size: 12.2px; } }

/* ---------- Pricing ---------- */
.switch { display: flex; justify-content: center; margin: -12px 0 32px; }
.switch-inner { display: inline-flex; padding: 4px; border: 1.5px solid var(--pp-edge-strong); border-radius: 999px; background: var(--pp-sheet); }
.switch button { border: 0; border-radius: 999px; background: none; padding: 9px 18px; font: 700 14px var(--pp-font); color: var(--pp-ink-2); cursor: pointer; }
.switch button.is-on { background: var(--pp-action); color: #fff; }
.plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.plan { flex: 1 1 260px; max-width: 340px; display: flex; flex-direction: column; padding: 28px 24px 24px; }
.plan.is-featured { border: 2px solid var(--pp-action); box-shadow: var(--pp-shadow-lift); }
.plan h3 { font-size: 19px; }
.plan-flag { align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: 3px; background: var(--pp-yellow); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.price { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.price small { font-size: 15px; font-weight: 500; color: var(--pp-ink-3); }
.price-note { min-height: 24px; margin: 2px 0 14px; font-size: 13.5px; color: var(--pp-ink-3); }
.plan ul { flex: 1; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--pp-rule); }
.plan li .ico { color: var(--pp-green); stroke-width: 2.6; margin-top: 4px; }
[data-yearly] { display: none; }
.show-yearly [data-yearly] { display: inline; }
.show-yearly [data-monthly] { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { margin-bottom: 12px; border: 1px solid var(--pp-edge-strong); border-radius: 8px; background: var(--pp-sheet); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; font-weight: 500; color: var(--pp-pen); }
.faq details[open] summary { background: var(--pp-hover); border-radius: 7px 7px 0 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 14px 18px 18px; color: var(--pp-ink-2); font-size: 15px; }

/* ---------- Closing call ---------- */
.closing { max-width: 760px; margin: 0 auto; padding: 38px 24px; text-align: center; border-radius: 12px; background: var(--pp-note-blue); border: 1px solid #cfe0fb; }
.closing h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.closing p { color: var(--pp-ink-2); }
.closing .btn { margin-top: 6px; }
@media (max-width: 480px) { .closing .btn { width: 100%; } }

/* ---------- Information pages ---------- */
.doc-hero { padding: 48px 0 26px; }
.doc-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.doc-hero p { margin: 0; color: var(--pp-ink-2); }
.doc { padding: 34px 38px; margin-bottom: 8px; }
.doc h2 { margin-top: 30px; font-size: 1.25rem; }
.doc h2:first-child, .doc .lead:first-child + h2 { margin-top: 0; }
.doc .lead { font-size: 18px; }
.doc .lead + h2 { margin-top: 30px; }
.doc p, .doc li { color: var(--pp-ink-2); line-height: 1.75; overflow-wrap: anywhere; }
.doc li { margin-bottom: 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; }
@media (max-width: 560px) { .doc { padding: 22px 18px; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--pp-sheet); border-top: 1px solid var(--pp-edge); color: var(--pp-ink-2); font-size: 14.5px; }
.site-footer a { color: var(--pp-ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 48px 0 32px; }
.footer-grid h2 { margin-bottom: 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-ink-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-about p { max-width: 360px; margin: 14px 0 0; }
.footer-line { display: flex; gap: 10px; overflow-wrap: anywhere; }
.footer-line .ico { margin-top: 4px; }
.footer-bottom { padding: 16px 0; border-top: 1px dashed var(--pp-edge-strong); font-size: 13px; color: var(--pp-ink-3); }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mock-submit, .hero-note { transition: none; }
}
