/* The public marketing pages: top navigation and the "What we offer" page. Colours and type come from app.css. */

/* ---- Top navigation ---- */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgb(245 246 244 / .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav-in { max-width: 1180px; margin: 0 auto; padding: 14px clamp(16px, 5vw, 56px); display: flex; align-items: center; gap: 28px; }
.site-nav .brand { color: var(--ink); }
.site-links { display: flex; gap: 4px; margin-right: auto; }
.site-links a, .site-login { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.site-links a:hover, .site-login:hover { background: rgb(28 35 33 / .06); }
.site-links a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }
.site-acts { display: flex; align-items: center; gap: 6px; }
.site-menu { display: none; position: relative; }
.site-menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary span, .site-menu summary span::before, .site-menu summary span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
.site-menu summary span::before, .site-menu summary span::after { content: ""; position: absolute; left: 0; }
.site-menu summary span::before { top: -6px; }
.site-menu summary span::after { top: 6px; }
.site-menu[open] summary span { background: transparent; }
.site-menu[open] summary span::before { transform: translateY(6px) rotate(45deg); }
.site-menu[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }
.site-menu-pop { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: grid; gap: 2px; box-shadow: 0 18px 40px -18px rgb(28 35 33 / .35); }
.site-menu-pop a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.site-menu-pop a:not(.btn):hover, .site-menu-pop a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); }
.site-menu-pop .btn { margin-top: 6px; }
@media (max-width: 860px) {
  .site-links, .site-acts { display: none; }
  .site-menu { display: block; margin-left: auto; }
}

/* ---- Shared page pieces ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding-left: clamp(16px, 5vw, 56px); padding-right: clamp(16px, 5vw, 56px); }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.site-foot { border-top: 1px solid var(--line); margin-top: 24px; }
.site-foot .wrap { padding-top: 24px; padding-bottom: 24px; color: var(--muted); font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- What we offer ---- */
.o-hero { padding-top: 56px; padding-bottom: 8px; text-align: center; }
.o-hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.03; letter-spacing: -.015em; margin-top: 10px; }
.o-hero h1 em { font-style: normal; color: var(--brand); }
.o-hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 40em; margin: 18px auto 0; }

/* The animation sits straight on the page: transparent canvas, no frame */
.o-stage { position: relative; margin-top: 8px; }
.o-canvas { position: relative; width: 100%; aspect-ratio: 16 / 9; }
/* Anything that crosses the frame's edge melts into the page instead of being cut off */
.o-canvas canvas { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%); mask-composite: intersect; }
.o-canvas canvas { display: block; width: 100%; height: 100%; }
.o-canvas .o-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.o-tag { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; transform: translate(-50%, -100%); white-space: nowrap; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 10px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px -12px rgb(28 35 33 / .45); display: flex; align-items: center; gap: 7px; opacity: 0; transition: opacity .35s; }
.o-tag.on { opacity: 1; }
.o-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.o-tag.warn i { background: var(--marigold); }
.o-tag.gold { border-color: var(--marigold); }
.o-tag.gold i { background: var(--marigold); }
.o-caption { display: grid; justify-items: center; text-align: center; gap: 6px; min-height: 92px; margin-top: -8px; }
.o-caption h2 { font-size: clamp(22px, 3vw, 30px); transition: opacity .4s, transform .4s; }
.o-caption p { color: var(--muted); max-width: 36em; font-size: 17px; transition: opacity .4s .05s, transform .4s .05s; }
.o-caption.swap h2, .o-caption.swap p { opacity: 0; transform: translateY(6px); }
.o-chapters { display: flex; justify-content: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.o-chapters button { position: relative; overflow: hidden; border: 0; background: rgb(28 35 33 / .08); border-radius: 999px; height: 30px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.o-chapters button span { position: relative; z-index: 1; }
.o-chapters button i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--brand-tint); }
.o-chapters button.on { color: var(--brand); }
.o-chapters button:hover { color: var(--ink); }
.o-playpause { margin-left: 4px; }
@media (max-width: 760px) {
  .o-canvas { aspect-ratio: 1 / 1; }
  .o-tag { font-size: 12px; padding: 4px 10px 4px 8px; }
  .o-chapters button { padding: 0 10px; }
  .o-chapters button span { font-size: 12px; }
}

/* Offer sections */
.o-section { padding-top: 88px; }
.o-head { display: grid; gap: 10px; max-width: 46em; }
.o-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.01em; }
.o-head p { color: var(--muted); font-size: 18px; }
.o-head .o-price { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 18px; }
.o-head .o-price span { color: var(--muted); font-family: var(--font-body); font-weight: 500; font-size: 15px; }
.o-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 28px; }
.o-feat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.o-feat h3 { font-size: 18px; }
.o-feat p { color: var(--muted); font-size: 15px; }
.o-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 4px; }
.o-ic.gold { background: #fbf0dc; color: #9a5b00; }
.o-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The promises band */
.o-band { margin-top: 88px; background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 980px) { .o-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .o-band { grid-template-columns: 1fr; } }
.o-band h3 { font-size: 19px; color: #fff; }
.o-band p { color: #cfd8d5; font-size: 15px; margin-top: 6px; }
.o-band .o-big { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--marigold); line-height: 1; margin-bottom: 8px; }

/* Pricing */
.o-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; max-width: 900px; margin-left: auto; margin-right: auto; }
.o-plan { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.o-plan.best { border-color: var(--brand); box-shadow: 0 24px 50px -30px rgb(13 110 99 / .55); }
.o-plan .o-flag { position: absolute; top: -13px; left: 28px; background: var(--marigold); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
.o-plan h3 { font-size: 22px; }
.o-plan .o-for { color: var(--muted); font-size: 15px; margin-top: -8px; }
.o-amt { display: flex; align-items: baseline; gap: 6px; }
.o-amt strong { font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -.02em; }
.o-amt span { color: var(--muted); }
.o-save { font-size: 14px; color: var(--ok); font-weight: 600; margin-top: -6px; }
.o-plan ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.o-plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; }
.o-plan li::before { content: ""; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230d6e63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.o-plan li.plus { font-weight: 700; }
.o-plan li.plus::before { background-color: #fbf0dc; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5.5v9M5.5 10h9' fill='none' stroke='%239a5b00' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.o-plan .btn { margin-top: 8px; min-height: 48px; font-size: 16px; }
.o-plan .o-small { color: var(--muted); font-size: 13px; text-align: center; margin-top: -4px; }
.o-fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }
@media (max-width: 760px) { .o-plans { grid-template-columns: 1fr; } }

/* Comparison table */
.o-compare { margin-top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.o-compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.o-compare th, .o-compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.o-compare thead th { font-family: var(--font-display); font-size: 16px; background: var(--bg); position: sticky; top: 0; }
.o-compare th:not(:first-child), .o-compare td:not(:first-child) { text-align: center; width: 22%; }
.o-compare th { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 15px; }
.o-compare tbody th { font-weight: 500; background: none; white-space: normal; }
.o-compare td { white-space: normal; }
.o-compare tr.grp th { background: var(--brand-tint); color: var(--brand-deep); font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.o-compare tr:last-child th, .o-compare tr:last-child td { border-bottom: 0; }
.o-yes, .o-no { display: inline-block; width: 22px; height: 22px; vertical-align: middle; }
.o-yes { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='11' fill='%230d6e63'/%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.o-no { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8' stroke='%23b5bfbb' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.o-compare .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) {
  .o-compare th, .o-compare td { padding: 11px 10px; font-size: 14px; }
  .o-compare thead th { font-size: 13px; }
}

/* FAQ and closing call */
.o-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 32px; margin-top: 28px; }
.o-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.o-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.o-faq summary::-webkit-details-marker { display: none; }
.o-faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; transition: transform .2s; }
.o-faq details[open] summary::after { transform: rotate(45deg); }
.o-faq p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.o-cta { margin: 96px 0 64px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.o-cta h2 { font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -.01em; }
.o-cta p { color: var(--muted); font-size: 18px; }
.o-cta .row { justify-content: center; margin-top: 6px; }
.o-cta .btn { min-height: 50px; padding: 0 22px; font-size: 16px; }

/* ---- The live demo's guide (demo.passthepad.com/demo) ---- */
.d-hero h1 em { font-style: normal; color: var(--brand); }
.d-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.d-person { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 10px; align-content: start; }
.d-person h2 { font-size: 22px; }
.d-person p { color: var(--muted); font-size: 15px; margin: 0; }
.d-person .d-cred { font-size: 13px; overflow-wrap: anywhere; }
.d-badge { justify-self: start; background: var(--brand-tint); color: var(--brand-deep); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; }
.d-badge.gold { background: #fbf0dc; color: #9a5b00; }
.d-inline { display: inline; margin: 0; }
.d-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; background: #fbf0dc; border-radius: 16px; padding: 18px 20px; font-size: 15px; }
.d-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; position: sticky; top: 64px; z-index: 5; padding-top: 10px; padding-bottom: 10px; background: rgb(245 246 244 / .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.d-toc a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 13px; font-weight: 600; }
.d-toc a span { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.d-toc a:hover { border-color: var(--brand); }
.d-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 72px; scroll-margin-top: 110px; }
.d-sec.d-single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.d-sec.d-api { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.d-text { display: grid; gap: 14px; align-content: start; }
.d-text h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em; }
.d-text > p { color: var(--muted); font-size: 17px; margin: 0; }
.d-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); }
.d-device { display: grid; justify-items: center; }
.d-tablet { width: min(100%, 560px); aspect-ratio: 4 / 3; background: var(--ink); border-radius: 28px; padding: 16px; box-shadow: 0 30px 60px -30px rgb(28 35 33 / .5); }
.d-tablet iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; background: #fff; }
.d-embed iframe { display: block; margin: 0 auto; background: var(--surface); border-radius: 16px !important; box-shadow: 0 20px 40px -28px rgb(28 35 33 / .45); }
.d-links { display: flex; flex-wrap: wrap; gap: 8px; }
.d-link { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; }
.d-link:hover { border-color: var(--brand); }
.clip { margin-top: 6px; }
.clip-canvas { width: 100%; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.clip-canvas canvas { display: block; width: 100%; height: 100%; }
.clip-caption { text-align: center; color: var(--muted); font-size: 15px; font-weight: 600; min-height: 1.5em; margin: 4px 0 0; }
#import .clip { align-self: center; }
/* API console */
.d-console { background: var(--ink); color: #e6ece9; border-radius: 18px; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.d-console > * { min-width: 0; }
.d-console-row select { max-width: 100%; }
.d-console select, .d-console input, .d-console textarea { font: 14px/1.4 ui-monospace, Menlo, monospace; background: #26302d; color: #fff; border: 1px solid #3a4743; border-radius: 9px; padding: 9px 10px; min-width: 0; }
.d-console-key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.d-console-key code { color: var(--marigold); }
.d-console-row { display: flex; gap: 8px; align-items: center; }
.d-console-row select:first-child:only-child { width: 100%; }
.d-console-row input { flex: 1; }
.d-base { font: 14px ui-monospace, Menlo, monospace; color: #9fb0ab; }
.d-curl { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; color: #9fd0c6; background: #151b19; border-radius: 9px; padding: 10px 12px; }
.d-console-out { display: grid; gap: 6px; }
.d-console-out .ok { color: #7fd6a8; font-weight: 700; }
.d-console-out .bad { color: #ff9b8f; font-weight: 700; }
.d-console-out .note { color: #9fb0ab; }
.d-console-out pre { margin: 0; max-height: 360px; overflow: auto; font-size: 12.5px; background: #151b19; border-radius: 9px; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.d-console-out pre:empty { display: none; }
/* Webhook log */
.d-hooks { display: grid; gap: 8px; }
.d-hook { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.d-hook.fresh { border-color: var(--marigold); animation: d-flash 1.4s ease-out; }
@keyframes d-flash { from { background: #fbf0dc; } to { background: var(--surface); } }
.d-hook summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.d-hook summary::-webkit-details-marker { display: none; }
.d-hook summary .note { margin-left: auto; }
.d-hook-sig { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; }
.d-hook-sig.ok { background: var(--ok); }
.d-hook-sig.bad { background: var(--bad); }
.d-hook pre { margin: 10px 0 0; font-size: 12.5px; max-height: 300px; overflow: auto; background: var(--bg); border-radius: 8px; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .d-sec, .d-sec.d-api { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .d-toc { top: 60px; flex-wrap: nowrap; overflow-x: auto; }
  .d-toc a { flex: none; }
}

/* Prompts for AI agents (developers page and the demo) */
.ag { display: grid; gap: 10px; }
.ag-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ag-item summary { cursor: pointer; list-style: none; display: grid; gap: 2px; }
.ag-item summary::-webkit-details-marker { display: none; }
.ag-item summary strong { font-size: 16px; }
.ag-item summary span { color: var(--muted); font-size: 14px; }
.ag-item summary strong::after { content: " +"; color: var(--brand); }
.ag-item[open] summary strong::after { content: " −"; }
.ag-body { display: grid; gap: 10px; margin-top: 12px; justify-items: start; }
.ag-prompt { margin: 0; width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 14px/1.55 ui-monospace, Menlo, monospace; max-height: 340px; overflow: auto; }
