/* /sites: the page on the Site's tokens (each with a fallback), and the swap scenes. */

.par-sites {
  --st-bg: var(--bg, #f7f0e1);
  --st-deep: var(--bg-deep, #ede1ca);
  --st-surface: var(--surface, #fffdf8);
  --st-text: var(--text, #211a10);
  --st-soft: #4d4434;
  --st-muted: var(--text-muted, #6e6350);
  --st-border: var(--border, #e9dec7);
  --st-border-strong: var(--border-strong, #d8cbaa);
  --st-ink: var(--accent, #2b231b);
  --st-display: var(--font-display, "Newsreader", Georgia, serif);
  --st-body: var(--font-body, "Geist", -apple-system, sans-serif);
  --st-mono: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  --st-ease: var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
  --st-gutter: var(--gutter, clamp(16px, 5vw, 64px));
  --st-wrap: var(--wrap, 1240px);
  color: var(--st-text);
}
.par-sites img { display: block; max-width: 100%; height: auto; }
.par-sites a { color: inherit; }

.st-hero, .st-sec { max-width: var(--st-wrap); margin: 0 auto; padding-left: var(--st-gutter); padding-right: var(--st-gutter); }
.st-sec { padding-top: 110px; padding-bottom: 20px; }

.st-kicker { font: 13px var(--st-mono); color: var(--st-muted); display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.st-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st-ink); }
.st-h1 { font: 400 62px/1.0 var(--st-display); letter-spacing: -.01em; margin: 0 0 24px; }
.st-h2 { font: 400 56px/1.04 var(--st-display); letter-spacing: -.01em; margin: 0 0 16px; max-width: 980px; }
.st-h1 em, .st-h2 em { font-style: italic; }
.st-h3 { font: 400 24px/1.15 var(--st-display); margin: 0 0 4px; }
.st-answer { font-size: 17px; line-height: 1.55; color: var(--st-soft); max-width: 540px; margin: 0 0 18px; }
.st-lead { font-size: 19px; line-height: 1.5; color: var(--st-soft); max-width: 720px; margin: 0 0 36px; }
.st-sec.st-vibe { padding-top: 64px; }
.st-vibe-line { margin: 0; }
.st-vibe-say { font-size: 19px; line-height: 1.5; color: var(--st-soft); max-width: 720px; margin: 20px 0 0; }
.st-cap { font-size: 13.5px; line-height: 1.5; color: var(--st-muted); margin: 14px 0 0; max-width: 760px; }


.st-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 0; }
.par-sites .st-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--st-ink); color: #fffdf8; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.par-sites .st-btn-light { background: var(--st-bg); color: var(--st-ink); }
.st-link { font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }

.st-phone { border-radius: 34px; border: 8px solid #1d1812; overflow: hidden; background: #1d1812; box-shadow: 0 30px 60px -30px rgba(43, 35, 27, .45); }
.st-shot { border-radius: 18px; overflow: hidden; background: var(--st-surface); box-shadow: 0 30px 60px -30px rgba(43, 35, 27, .45), 0 0 0 1px rgba(43, 35, 27, .06); }
.st-bubble { margin: 0; background: var(--st-surface); border: 1px solid var(--st-border); border-radius: 18px; padding: 14px 18px; font-size: 15.5px; line-height: 1.4; max-width: 400px; }
.st-bubble b { display: block; font: 400 11.5px var(--st-mono); letter-spacing: .04em; color: var(--st-muted); margin-bottom: 4px; }
.st-par { background: var(--st-ink); border-color: var(--st-ink); color: var(--st-bg); }
.st-par b { color: #cbbd9f; }
.st-talk { display: grid; gap: 10px; align-content: center; }

/* 00 hero */
.st-hero { display: grid; grid-template-columns: .92fr 1.08fr; gap: 44px; align-items: center; padding-top: 20px; padding-bottom: 40px; }
.st-hero-fig { margin: 0; }
.st-stack { display: grid; }
.st-stack > img { grid-area: 1 / 1; }

/* Devices: the computer, with the phone in front of it */
.st-devices { position: relative; padding-bottom: 10%; }
.st-desk { width: 84%; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--st-surface); box-shadow: 0 30px 60px -30px rgba(43, 35, 27, .45), 0 0 0 1px rgba(43, 35, 27, .08); }
.st-devices .st-phone { position: absolute; right: 0; bottom: 0; width: 30%; }
.st-talk-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.st-talk-row .st-bubble { max-width: 340px; }
.st-site { margin: 0; }

/* Crayon drawings from the illustration kit: a pale blue panel shorter than the drawing,
   so heads and feet break out of it; the person's real site sits beside the drawing. */
.art { position: relative; isolation: isolate; padding-inline: clamp(8px, 2.4vw, 36px); }
.art::before { content: ""; position: absolute; inset: 15% 0 9%; z-index: -1; background: var(--pil-panel, #d8e5f5); border-radius: var(--pil-panel-r, 32px); }
.art img { display: block; width: 100%; height: auto; }
.st-scene { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.st-scene .st-site { display: grid; gap: 18px; }
.st-scene .st-talk { display: flex; flex-wrap: wrap; gap: 10px; }
.st-scene .st-bubble { max-width: 330px; }
.st-only { margin-top: 72px; }
.st-only .st-said { margin-bottom: 22px; }
.st-sec--tight { padding-top: 40px; }
.par-sites .st-bubble b.pil-ai { display: flex; align-items: center; gap: 6px; }
.par-sites .pil-ai img { display: inline-block; width: 13px; height: auto; }

/* A site in a row: text on the left, the devices on the right */
.st-row { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: center; }
.st-row-text .st-talk { margin: 18px 0 0; }

.st-any { margin-top: 64px; padding: 34px 36px; border: 1px solid var(--st-border-strong); border-radius: 22px; background: var(--st-surface); }
.st-any .st-h3 { font-size: 32px; }
.st-any-lead { font-size: 17px; line-height: 1.5; color: var(--st-soft); margin: 6px 0 22px; max-width: 640px; }
.st-ideas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.st-ideas li { font: italic 400 18px/1.3 var(--st-display); color: var(--st-text); background: var(--st-bg); border: 1px solid var(--st-border); border-radius: 999px; padding: 9px 18px; }

/* How it works: three steps */
.st-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.st-how li { background: var(--st-surface); border: 2.5px solid var(--pil-ink, #1d1a16); border-radius: 22px; box-shadow: 5px 6px 0 var(--pil-ink, #1d1a16); padding: 22px 24px; font: 400 21px/1.3 var(--st-display); }
.st-how b { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: var(--pil-yellow, #f5c63c); border: 2px solid var(--pil-ink, #1d1a16); font: 600 13px/1 var(--st-body); }

/* 05 next, questions, join */
.st-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 90px; }
.st-next a { display: block; background: var(--st-surface); border: 1px solid var(--st-border); border-radius: 16px; padding: 22px; text-decoration: none; }
.st-next b { display: block; font: 400 24px var(--st-display); margin-bottom: 6px; }
.st-next span { color: var(--st-muted); font-size: 14.5px; }
.st-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; }
.st-faq .st-h3 { font-size: 22px; margin-bottom: 6px; }
.st-faq p { margin: 0; color: var(--st-soft); font-size: 15.5px; line-height: 1.5; }
.st-join { margin: 80px 0 110px; background: var(--st-ink); color: var(--st-bg); border-radius: 22px; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.st-join-t { font: 400 32px var(--st-display); margin: 0; }
.st-join-now { font-size: 17px; line-height: 1.5; color: #e4d8c1; max-width: 560px; margin: 0 0 10px; }

/* Swap scenes. No data-stage (no script, reduced motion, the play is over): the final state.
   data-show="k" is hidden before beat k; data-hide="k" is gone from beat k on. */
[data-par-scene="swap"] [data-show],
[data-par-scene="swap"] [data-hide] { transition: opacity .55s var(--st-ease), transform .55s var(--st-ease); }
[data-par-scene="swap"]:not([data-stage]) [data-hide] { opacity: 0; }
[data-stage="0"] [data-show="1"], [data-stage="0"] [data-show="2"], [data-stage="0"] [data-show="3"],
[data-stage="1"] [data-show="2"], [data-stage="1"] [data-show="3"],
[data-stage="2"] [data-show="3"] { opacity: 0; transform: translateY(10px); }
[data-stage="1"] [data-hide="1"], [data-stage="2"] [data-hide="1"], [data-stage="3"] [data-hide="1"],
[data-stage="2"] [data-hide="2"], [data-stage="3"] [data-hide="2"],
[data-stage="3"] [data-hide="3"] { opacity: 0; }
[data-par-scene="swap"] .sw-frame { transform: none; }
/* The first write to beat 0 lands without a fade, so the page never plays backwards. */
[data-par-scene="swap"][data-instant] [data-show], [data-par-scene="swap"][data-instant] [data-hide] { transition: none; }

@media (prefers-reduced-motion: reduce) {
  [data-par-scene="swap"] [data-show], [data-par-scene="swap"] [data-hide] { transition: none; }
}

/* Tablet width: the hero and each site in one column */
@media (max-width: 1000px) {
  .st-hero { grid-template-columns: 1fr; gap: 36px; }
  .st-row { grid-template-columns: 1fr; gap: 28px; }
  .st-scene { grid-template-columns: 1fr; gap: 28px; }
}

/* Why Par: the comparison table from How Par works (section 08), on this page's tokens */
.st-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.42; }
.st-table th, .st-table td { text-align: left; vertical-align: top; padding: 13px 14px; border-top: 1px solid var(--st-border-strong); }
.st-table thead th { font: 400 19px var(--st-display); border-top: 0; padding-bottom: 10px; }
.st-table thead td { border-top: 0; }
.st-table thead th.is-par { background: var(--st-ink); color: #fff8ee; border-radius: 10px 10px 0 0; }
.st-table tbody th { font: 12px/1.45 var(--st-mono); color: var(--st-muted); font-weight: 400; width: 17%; }
.st-table td { color: var(--st-muted); }
.st-table td.is-par { color: var(--st-text); background: rgba(43, 35, 27, .05); width: 24%; }
.st-others { margin: 22px 0 0; font-size: 14px; line-height: 1.55; color: var(--st-soft); max-width: 760px; }
.st-checked { margin: 12px 0 0; font: 11.5px/1.6 var(--st-mono); color: var(--st-muted); }
@media (max-width: 859px) {
  .st-table, .st-table tbody, .st-table tr, .st-table th, .st-table td { display: block; width: auto !important; }
  .st-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .st-table tr { padding: 4px 0 10px; border-top: 1px solid var(--st-border-strong); }
  .st-table tbody th { border-top: 0; padding: 12px 0 4px; font-size: 12px; color: var(--st-text); }
  .st-table td { border-top: 0; padding: 6px 0 6px 132px; position: relative; min-height: 28px; }
  .st-table td::before { content: attr(data-col); position: absolute; left: 0; top: 7px; width: 120px; font: 11px/1.4 var(--st-mono); color: var(--st-muted); }
  .st-table td.is-par { padding: 9px 12px 9px 132px; border-radius: 8px; }
  .st-table td.is-par::before { left: 12px; top: 10px; color: var(--st-ink); }
}
@media (max-width: 419px) {
  .st-table td, .st-table td.is-par { padding: 22px 0 6px; }
  .st-table td.is-par { padding: 24px 12px 9px; }
  .st-table td::before { top: 4px; width: auto; }
  .st-table td.is-par::before { top: 7px; }
}

/* Phone width: one column */
@media (max-width: 760px) {
  .st-h1 { font-size: 42px; }
  .st-h2 { font-size: 36px; }
  .st-h3 { font-size: 22px; }
  .st-lead { font-size: 17px; margin-bottom: 26px; }
  .st-sec.st-vibe { padding-top: 48px; }
  .st-vibe-say { font-size: 17px; }
  .st-sec { padding-top: 72px; }
  .st-hero { gap: 28px; padding-top: 8px; }
  .st-desk { width: 88%; border-radius: 10px; }
  .st-devices .st-phone { width: 36%; border-width: 5px; border-radius: 20px; }
  .st-how, .st-next, .st-faq { grid-template-columns: 1fr; }
  .art { margin-inline: calc(-1 * var(--st-gutter)); padding-inline: 4px; }
  .art::before { border-radius: 0; inset: 14% 0 8%; }
  .st-next { margin-bottom: 60px; }
  .st-any { padding: 26px 22px; }
  .st-any .st-h3 { font-size: 26px; }
  .st-ideas li { font-size: 16px; border-radius: 16px; }
  .st-join { margin-bottom: 72px; padding: 28px; }
  .st-join-t { font-size: 26px; }
  .st-join-now { font-size: 16px; }
}
