/* The product pages (tools/products.py), laid out like Arrowsterr's platform pages: a centered hero with the app drawn
   in HTML, the tools it works with, the old way and the Claritia way, four features each beside a small part of the
   app, how it works, templates, and the dark close. Static: nothing to click but links. Tokens come from site.css. */

.pd-hero { padding: 112px var(--frame-pad) 0; text-align: center; }
.pd-hero .eyebrow { margin: 0 auto; }
.pd-hero h1 { max-width: 860px; margin: 24px auto 0; font-size: clamp(42px, 5vw, 64px); line-height: 1.02; font-weight: 500; letter-spacing: -.042em; color: var(--ink); text-wrap: balance; }
.pd-hero .sub { max-width: 600px; margin: 22px auto 0; }
.pd-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.pd-note { margin-top: 14px; font-size: 13px; color: var(--meta); }

/* The app, drawn */
.pd-app { max-width: 1120px; margin: 56px auto 0; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-rest), 0 40px 80px -40px rgba(8, 60, 40, .25); text-align: left; }
.pd-app__bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.pd-app__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.pd-app__bar span { margin-left: 10px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 12px; color: var(--meta); }
.pd-app__body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 420px; }
.pd-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--surface-3); }
.pd-side__ws { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.pd-side__ws svg { width: 22px; height: 22px; }
.pd-side a, .pd-side span.pd-nav { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--body); }
.pd-side .is-on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-chip); }
.pd-side svg { width: 15px; height: 15px; }
.pd-side .pd-nav--end { margin-top: auto; }
.pd-main { display: flex; flex-direction: column; min-width: 0; }
.pd-main__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 52px; padding: 8px 20px; border-bottom: 1px solid var(--line); }
.pd-main__head b { font-size: 15px; font-weight: 500; color: var(--ink); }
.pd-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.pd-tabs span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500; color: var(--meta); }
.pd-tabs span.is-on { background: var(--surface-2); color: var(--ink); }
.pd-tabs em { font-style: normal; color: var(--faint); }
.pd-main__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pd-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: var(--btn); color: #fff; font-size: 12.5px; font-weight: 500; }
.pd-main__in { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 22px; background: var(--surface-3); }
.pd-main__in--one { grid-template-columns: minmax(0, 1fr); }

/* Small parts of the app */
.pd-card { min-width: 0; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-rest); text-align: left; }
.pd-card__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--ink); }
.pd-card__h small { font-size: 12px; font-weight: 400; color: var(--meta); }
.pd-card .fcard { max-width: none; padding: 0; box-shadow: none; background: none; }
.pd-card .rules, .pd-card .flow { max-width: none; }
.pd-card .rule { box-shadow: 0 0 0 1px var(--line); }
.pd-rows { display: flex; flex-direction: column; }
.pd-rows > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 44px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.pd-rows > div:first-child { border-top: 0; }
.pd-rows .grow { flex: 1; min-width: 120px; }
.pd-rows small { display: block; font-size: 12px; color: var(--meta); }
.pd-rows b { font-weight: 500; color: var(--ink); }
.pd-rows img { display: inline-block; width: 18px; height: 18px; border-radius: 4px; vertical-align: -4px; }
.pd-rows .grow img { margin-right: 6px; }
.pd-num { font-variant-numeric: tabular-nums; color: var(--meta); }
.pd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pd-stat { padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-rest); }
.pd-stat small { display: block; font-size: 12px; color: var(--meta); }
.pd-stat b { display: block; margin-top: 4px; font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pd-cal { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.pd-cal .cal7 { margin-top: 0; }
.pd-times { display: flex; flex-direction: column; gap: 6px; }
.pd-times b { font-size: 12.5px; font-weight: 500; color: var(--text); }
.pd-times span { display: grid; place-items: center; height: 32px; border-radius: var(--r-sm); box-shadow: var(--sh-input); font-size: 12.5px; color: var(--text); }
.pd-times span.on { background: var(--green-strong); color: #fff; box-shadow: none; }
.pd-bars { display: flex; flex-direction: column; gap: 12px; }
.pd-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.pd-bar i { display: block; height: 8px; overflow: hidden; border-radius: var(--r-pill); background: var(--surface-2); }
.pd-bar i::before { content: ""; display: block; width: var(--w); height: 100%; border-radius: var(--r-pill); background: var(--green); }
.pd-bar span:last-child { text-align: right; color: var(--meta); font-variant-numeric: tabular-nums; }
.pd-log { display: flex; flex-direction: column; gap: 9px; }
.pd-log div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text); }
.pd-log svg { width: 15px; height: 15px; flex: none; color: var(--green); }
.pd-sw { display: flex; gap: 6px; }
.pd-sw i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.pd-code { overflow-wrap: anywhere; padding: 12px 14px; border-radius: var(--r-md); background: var(--dark); color: #e8e8e3; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.pd-field { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r-sm); box-shadow: var(--sh-input); font-size: 13px; color: var(--text); }
.pd-field span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pd-label { display: block; margin: 12px 0 6px; font-size: 12px; font-weight: 500; color: var(--meta); }
.pd-label:first-child { margin-top: 0; }
.person .av { line-height: 1; }

/* Works with */
.pd-logos { padding: 72px var(--frame-pad) 8px; text-align: center; }
.pd-logos p { font-size: 13px; color: var(--meta); }
.pd-logos ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.pd-logos li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 8px; border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sh-chip); font-size: 13.5px; font-weight: 500; color: var(--text); }
.pd-logos img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }

/* Sections */
.pd-sec { padding: 120px var(--frame-pad) 48px; }
.pd-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 680px; }
.pd-head .h2 { text-wrap: balance; }
.pd-head .sub { margin: 0; }

/* The old way and the Claritia way */
.pd-then { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 56px; }
.pd-then h3 { font-size: 15px; font-weight: 500; color: var(--meta); }
.pd-chain { display: flex; flex-direction: column; margin-top: 18px; }
.pd-chain > div { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 16px; border-radius: var(--r-lg); font-size: 15px; color: var(--text); }
.pd-chain > div svg, .pd-chain > div img { width: 18px; height: 18px; flex: none; }
.pd-chain > i { align-self: flex-start; width: 2px; height: 22px; margin-left: 24px; }
.pd-chain--old > div { background: var(--surface-2); color: var(--body); }
.pd-chain--old > div svg { color: var(--faint); }
.pd-chain--old > i { width: 0; border-left: 2px dashed var(--line-strong); }
.pd-chain--old > div small { margin-left: auto; font-size: 12.5px; color: var(--tag-orange-ink); }
.pd-chain--new > div { background: var(--surface); box-shadow: var(--sh-rest); }
.pd-chain--new > div svg { color: var(--green); }
.pd-chain--new > i { background: var(--green); }
.pd-chain--new > div small { margin-left: auto; font-size: 12.5px; color: var(--green-ink); }

/* Features */
.pd-feats { display: flex; flex-direction: column; gap: 96px; margin-top: 72px; }
.pd-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.pd-feat--flip > :first-child { order: 2; }
.pd-feat__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; max-width: 500px; }
.pd-feat__text h3 { font-size: 34px; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.pd-feat__text p { font-size: 17px; line-height: 26px; color: var(--body); text-wrap: pretty; }
.pd-feat__text .tag { height: 22px; }

/* How it works */
.pd-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 72px; margin-top: 64px; }
.pd-steps { display: flex; flex-direction: column; }
.pd-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.pd-steps li:first-child { border-top: 0; padding-top: 0; }
.pd-steps b { font-size: 13px; font-weight: 500; color: var(--green-ink); font-variant-numeric: tabular-nums; line-height: 26px; }
.pd-steps h3 { font-size: 19px; line-height: 26px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.pd-steps p { grid-column: 2; font-size: 15px; line-height: 23px; color: var(--body); }

/* Templates */
.pd-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; margin-top: 56px; }
.pd-tpl { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-tpl .tp { height: 220px; border-bottom: 0; border-radius: var(--r-xl); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); transition: transform var(--fast) var(--ease); }
.pd-tpl:hover .tp { transform: translateY(-3px); }
.pd-tpl b { font-size: 16px; font-weight: 500; color: var(--ink); }
.pd-tpl span.pd-meta { margin-top: -8px; font-size: 13px; color: var(--meta); }
.pd-more { display: flex; justify-content: center; margin-top: 48px; }

/* The index */
.pd-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; margin-top: 64px; text-align: left; }
.pd-trio a { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid var(--ink); }
.pd-trio a:hover h2 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.pd-trio b { font-size: 13px; font-weight: 500; color: var(--meta); }
.pd-trio h2 { font-size: 32px; line-height: 1.05; font-weight: 500; letter-spacing: -.03em; color: var(--ink); }
.pd-trio p { font-size: 16px; line-height: 24px; color: var(--body); }
.pd-trio em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 14px; font-weight: 500; color: var(--green-ink); }

@media (max-width: 1100px) {
  .pd-feat, .pd-how { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pd-feat--flip > :first-child { order: 0; }
  .pd-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pd-hero { padding-top: 96px; }
  .pd-sec { padding-top: 88px; }
  .pd-app__body { grid-template-columns: minmax(0, 1fr); }
  .pd-side { display: none; }
  .pd-main__in, .pd-then, .pd-cal, .pd-trio { grid-template-columns: minmax(0, 1fr); }
  .pd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pd-feats { gap: 64px; }
  .pd-feat__text h3 { font-size: 28px; }
  .pd-shelf { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .pd-stats { grid-template-columns: minmax(0, 1fr); } .pd-bar { grid-template-columns: 90px minmax(0, 1fr) 40px; } }
