/* PatchSmith landing — self-contained page styles (platform landing pattern:
 * dark ground, per-tool accent — cyan, Tool::COLORS['patchsmith'] — no build
 * step). Class vocabulary is shared with rider-smith.css and
 * stage-plot-generator.css; only the accent, the console cards and the
 * "What has been tested" block below are tool-specific. */
:root {
    --bg: #08080a; --bg-2: #0d0e10; --card: #121316; --line: #23242a;
    --tx: #f1ede4; --tx-2: #9a958a; --tx-3: #6c685f;
    --ac: #5ec9d6; --ac-dim: rgba(94, 201, 214, .12); --ac-line: rgba(94, 201, 214, .35);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--tx); font-family: var(--sans); line-height: 1.6; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.rv { animation: rv .7s ease both; }
@keyframes rv { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv { animation: none; } }

.eyebrow { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); font-weight: 700; }
.eyebrow b { color: var(--tx); }

.hero { padding: 84px 0 60px; background: radial-gradient(900px 420px at 60% -10%, rgba(94, 201, 214, .08), transparent 60%), var(--bg); }
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 5.4vw, 56px); line-height: 1.12; margin: 14px 0 16px; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--ac); }
.hero .sub { color: var(--tx-2); font-size: 17px; max-width: 62ch; }
.hero .price-line { margin-top: 12px; color: var(--tx); font-size: 15px; font-weight: 700; }
/* Coming soon, above the fold at every width (the RiderSmith pattern). */
.hero .soon-note { display: inline-block; margin: 0 0 16px; padding: 8px 14px; border: 1px solid var(--ac-line); border-radius: 10px; background: var(--ac-dim); color: var(--tx); font-size: 14.5px; line-height: 1.45; }
.hero .soon-note b { color: var(--ac); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 10px; padding: 12px 20px; }
.btn-pri { background: var(--ac); color: #061214; }
.btn-pri:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line); color: var(--tx); }
.btn-ghost:hover { border-color: var(--ac); color: var(--ac); }
.trust { display: flex; gap: 20px; flex-wrap: wrap; color: var(--tx-2); font-size: 13.5px; }
.dot, .trust .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); margin-right: 7px; }

.sec { padding: 74px 0; }
.sec-head { max-width: 660px; margin-bottom: 40px; }
.sec-head.ctr { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .t { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 36px); font-weight: 600; margin-top: 10px; line-height: 1.2; }
.sec-head .lead { color: var(--tx-2); margin-top: 10px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step .no { font-family: var(--mono); color: var(--ac); font-size: 14px; }
.step .ln { height: 1px; background: var(--line); margin: 12px 0; }
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--tx-2); font-size: 14px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.feat h3 { font-size: 16px; margin-bottom: 8px; color: var(--ac); }
.feat p { color: var(--tx-2); font-size: 14px; }

/* Console files: one card per desk family — what lands, what does not. */
.desk-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.desks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.desk { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.desk h3 { font-size: 17px; color: var(--ac); }
.desk .kind { color: var(--tx-3); font-size: 12px; font-family: var(--mono); margin-top: 2px; }
.desk ul { margin: 12px 0 0; padding-left: 18px; color: var(--tx-2); font-size: 14px; }
.desk li + li { margin-top: 6px; }
.desk .not { color: var(--tx); font-size: 13.5px; margin-top: 12px; }
.desk-note { color: var(--tx-2); font-size: 14px; margin-top: 20px; max-width: 72ch; }
.desk-note b { color: var(--tx); }

/* What has been tested — dated, per desk; Tim edits $tested in the blade. */
.tested { margin-top: 34px; background: var(--card); border: 1px solid var(--ac-line); border-radius: 12px; padding: 22px 24px; }
.tested h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.tested-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 14px; }
.tested h4 { font-size: 14.5px; color: var(--tx); }
.tested .status { color: var(--ac); font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.tested ul { margin: 10px 0 0; padding-left: 18px; color: var(--tx-2); font-size: 13.5px; }
.tested li + li { margin-top: 6px; }

/* Free plan vs full version (config/free-tier.php) — only rendered while the plan is on. */
.plans { margin: 60px auto 0; max-width: 860px; }
.plans-head { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; text-align: center; }
.plans-lead { color: var(--tx-2); text-align: center; margin-top: 8px; }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.plan--full { border-color: var(--ac-line); }
.plan h3 { font-size: 17px; }
.plan .plan-sub { color: var(--ac); font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.plan ul { margin: 12px 0 0; padding-left: 18px; color: var(--tx-2); font-size: 14px; }
.plan li + li { margin-top: 6px; }

.price { margin: 60px auto 0; max-width: 560px; background: linear-gradient(180deg, var(--ac-dim), transparent), var(--card); border: 1px solid var(--ac-line); border-radius: 16px; padding: 34px; text-align: center; }
.price .amt { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1.15; }
.price .amt small { display: inline-block; font-size: 15px; line-height: 1.4; color: var(--tx-2); font-family: var(--sans); font-weight: 600; }
.price p { color: var(--tx-2); font-size: 14.5px; max-width: 46ch; margin: 8px auto 0; }
.price .cta { justify-content: center; margin-bottom: 0; }

.faqs { display: grid; gap: 10px; max-width: 760px; }
.faqs details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.faqs summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.faqs p { color: var(--tx-2); font-size: 14px; margin-top: 8px; }

.final { margin-top: 70px; background: linear-gradient(180deg, var(--ac-dim), transparent), var(--card); border: 1px solid var(--ac-line); border-radius: 16px; padding: 44px 34px; text-align: center; }
.final h2 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); margin: 10px 0; }
.final p { color: var(--tx-2); max-width: 56ch; margin: 0 auto; }
.final .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 40px 0 50px; background: var(--bg-2); }
footer .wm { text-decoration: none; }
footer .nm { font-family: var(--serif); font-size: 20px; color: var(--tx); }
footer .nm b { color: var(--ac); }
footer .priv { color: var(--tx-3); font-size: 13px; margin-top: 8px; }
footer .fl { display: flex; gap: 18px; flex-wrap: wrap; margin: 22px 0; }
footer .fl a { color: var(--tx-2); text-decoration: none; font-size: 13.5px; }
footer .fl a:hover { color: var(--ac); }
footer .cr { color: var(--tx-3); font-size: 12.5px; }
footer .cr a { text-decoration: none; }
footer .tm { color: var(--tx-3); font-size: 12.5px; margin-top: 6px; }

@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .desks, .tested-grid, .plans-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hero { padding-top: 56px; }
    .steps { grid-template-columns: 1fr; }
}

/* THEMES:BEGIN — light + high contrast (docs/themes-plan.md; generated shape, edit freely) ═════
   hc = black/white, accent lifted, every boundary >=3:1, no dimmed text.
   Light = Light v1 (docs/design/light-v1/README.md): the page's tokens on the --sl-* system —
   neutral page, white bands and cards on shadow.1, ink text; the tool shows up as its own
   light trio (body[data-sl-tool] → --tool-ink for small accent text, --tool-fill for dots and
   edges, --tool-tint for washes), never as panel paint; the primary CTA is the honey button. */
html[data-pf-theme="hc"]:not([data-pf-theme-locked]){
    --bg: #000; --bg-2: #000; --card: #000; --line: #8c8c8c;
    --tx: #fff; --tx-2: #e6e6e6; --tx-3: #ccc;
    --ac: #7fd8e3; --ac-dim: rgba(127, 216, 227, .12); --ac-line: #7fd8e3;
    color-scheme: dark;
}
html[data-pf-theme="hc"]:not([data-pf-theme-locked]) .btn-pri { background: var(--ac); color: #000; }
html[data-pf-theme="hc"]:not([data-pf-theme-locked]) .btn-pri:hover { filter: none; box-shadow: 0 0 0 2px #fff; }
html[data-pf-theme="hc"]:not([data-pf-theme-locked]) .btn-ghost { border-color: #b3b3b3; }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) .hero { background: var(--bg); }
html[data-pf-theme="hc"]:not([data-pf-theme-locked]) .hero { background: var(--bg); }
html[data-pf-theme="hc"]:not([data-pf-theme-locked]) :is(.final, .price) { background: var(--card); }
html[data-pf-theme="hc"]:not([data-pf-theme-locked]) footer .fl a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
html[data-pf-theme="hc"]:not([data-pf-theme-locked]) footer { border-top-color: var(--line); }
html[data-pf-theme="hc"]:not([data-pf-theme-locked]) :is(a, button, summary):focus-visible { outline: 3px solid var(--ac); outline-offset: 2px; }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) body{
    --bg: var(--sl-surface-page); --bg-2: var(--sl-surface-panel); --card: var(--sl-surface-panel); --line: var(--sl-line-default);
    --tx: var(--sl-ink-primary); --tx-2: var(--sl-ink-secondary); --tx-3: var(--sl-ink-faint);
    --ac: var(--tool-ink); --ac-dim: var(--tool-tint); --ac-line: var(--tool-fill);
    color-scheme: light;
}
html[data-pf-theme="light"]:not([data-pf-theme-locked]) :is(.hero, .final, .price) { background: var(--bg); }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) :is(.final, .price) { background: var(--card); border-color: var(--sl-line-default); box-shadow: var(--sl-shadow-1); }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) :is(.feat, .desk, .tested, .plan, .price, .faqs details, .final) { box-shadow: var(--sl-shadow-1); }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) .btn-pri { background: var(--sl-accent-fill); color: var(--sl-ink-primary); border: 1px solid var(--sl-accent-line); box-shadow: var(--sl-shadow-1); }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) .btn-pri:hover { background: var(--sl-accent-fill-hover); filter: none; box-shadow: 0 2px 4px rgba(24,24,29,.08); }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) .btn-pri:active { background: var(--sl-accent-fill-press); box-shadow: inset 0 1px 2px rgba(24,24,29,.20); }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) .btn-ghost { background: var(--sl-surface-panel); border: 1px solid var(--sl-line-control); color: var(--sl-ink-primary); box-shadow: var(--sl-shadow-1); }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) .btn-ghost:hover { background: var(--sl-surface-plot); border-color: var(--sl-line-strong); }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) .dot { background: var(--tool-fill); }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) footer .fl a { text-decoration: underline; text-decoration-color: var(--sl-line-control); text-underline-offset: 3px; }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) :is(a, button, summary):focus-visible { outline: 2px solid var(--sl-focus-ring); outline-offset: 2px; }
html[data-pf-theme="light"]:not([data-pf-theme-locked]) .btn-pri:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sl-ink-primary); }
/* theme switcher in the footer: dresses itself from this page's tokens */
.lp-theme { display: flex; justify-content: center; padding: 26px 22px 0; }
.lp-theme .pf-theme { --sw-bg: var(--card); --sw-line: var(--line); --sw-text: var(--tx); --sw-muted: var(--tx-2); --sw-acc: var(--ac); --sw-wash: var(--ac-dim); --sw-focus: var(--ac); }
/* THEMES:END */

/* The product stage in the hero (x-product-stage, css/product-media.css). */
.psm-stage { --pm-accent: var(--ac); margin-top: 46px; max-width: 900px; }
