/* pedestel.com — Pedestel and its products (Dev Journal, Blueprint Graph Builder)
 *
 * Direction: a documentation product should look like excellent documentation.
 * Printed technical reference rather than dark SaaS landing page — paper ground,
 * serif headings, hairline rules, generous measure, one restrained ink accent.
 *
 * Constraints this sheet holds to (Impeccable detector, zero findings):
 *   - every text/background pair clears WCAG AA 4.5:1, verified numerically
 *   - no thick one-sided accent borders ("side tab")
 *   - no bordered container whose children sit flush against the boundary
 *   - uppercase only on short labels, never on running text
 *   - no nested cards; grouping is done with rules and space
 */

:root {
  --paper:   #fbfaf7;
  --band:    #f2efe9;
  --ink:     #1a1815;   /* 16.97:1 on paper */
  --soft:    #54504a;   /*  7.67:1 on paper */
  --faint:   #6b665e;   /*  5.46:1 on paper */
  --rule:    #ddd8cd;
  --rule-strong: #c6bfb1;
  --accent:  #14356b;   /* 11.49:1 on paper; white on it is 11.99:1 */
  --accent-hover: #0d2650;
  --amber:   #c98a2e;   /* decorative only, never behind text */

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 1120px;
}

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100% }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
    text-decoration-thickness: 1px; text-decoration-color: var(--rule-strong) }
a:hover { text-decoration-color: currentColor }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 28px }

/* ---------------------------------------------------------------- masthead */

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
header.site .wrap { display: flex; align-items: baseline; gap: 28px; padding-top: 22px; padding-bottom: 20px }

.brand {
  display: inline-flex; align-items: baseline; gap: 11px;
  font: 600 20px/1 var(--serif); letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none }
.mark {
  font: 600 12px/1 var(--mono); letter-spacing: .08em;
  color: var(--faint); border: 1px solid var(--rule-strong);
  border-radius: 3px; padding: 4px 6px;
}

nav.top { margin-left: auto; display: flex; gap: 26px; flex-wrap: wrap; font-size: 15.5px }
nav.top a { color: var(--soft); text-decoration: none }
nav.top a:hover { color: var(--ink) }
nav.top a.on { color: var(--ink); font-weight: 600 }

/* -------------------------------------------------------------------- hero */

.hero { padding: 84px 0 68px; border-bottom: 1px solid var(--rule) }

.eyebrow {
  display: block; margin-bottom: 26px;
  font: 15px/1 var(--mono); color: var(--faint);
}

.hero h1 {
  margin: 0 0 26px;
  font: 400 58px/1.08 var(--serif);
  font-size: clamp(38px, 6vw, 62px);
  letter-spacing: -.022em;
  max-width: 17ch;
}

.hero .lede {
  margin: 0 0 36px; max-width: 62ch;
  font-size: 21px; font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.6; color: var(--soft);
}

.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 4px;
  font: 600 16px/1.2 var(--sans); text-decoration: none;
  border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #fff }
.btn.primary:hover { background: var(--accent-hover) }
.btn.ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent }
.btn.ghost:hover { border-color: var(--ink) }

/* ---------------------------------------------------------------- sections */

section { padding: 72px 0; border-bottom: 1px solid var(--rule) }

section h2 {
  margin: 0 0 14px;
  font: 400 34px/1.2 var(--serif);
  font-size: clamp(25px, 3.1vw, 34px);
  letter-spacing: -.016em;
}
section .sub { margin: 0 0 40px; max-width: 68ch; color: var(--soft); font-size: 17.5px }

/* Feature list — numbered ruled rows. Deliberately not cards: no boxes to nest,
   and the numbering does the grouping work a border would otherwise do. */
.grid {
  display: grid; gap: 0 56px;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  counter-reset: feat;
  border-top: 1px solid var(--rule);
}
.card {
  counter-increment: feat;
  padding: 26px 0 24px 46px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.card::before {
  content: counter(feat, decimal-leading-zero);
  position: absolute; left: 0; top: 29px;
  font: 600 13px/1 var(--mono); color: var(--amber);
}
.card h3 { margin: 0 0 7px; font: 600 17.5px/1.35 var(--sans); letter-spacing: -.005em }
.card p { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.6 }

/* Pull quote — rules above and below rather than a coloured side tab. */
.callout {
  margin: 42px 0;
  padding: 26px 0 28px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  max-width: 74ch;
}
.callout p { margin: 0; color: var(--soft); font-size: 17.5px }
.callout p + p { margin-top: 11px }
.callout strong { color: var(--ink) }
.callout p:first-child strong { font: 600 19px/1.4 var(--sans) }

/* Checklists */
ul.checks { list-style: none; margin: 0; padding: 0; max-width: 76ch }
ul.checks li {
  padding: 15px 0 15px 26px; position: relative;
  border-bottom: 1px solid var(--rule);
  color: var(--soft); line-height: 1.62;
}
ul.checks li:first-child { border-top: 1px solid var(--rule) }
ul.checks li::before {
  content: ""; position: absolute; left: 2px; top: 1.52em;
  width: 10px; height: 1px; background: var(--amber);
}
ul.checks li strong { color: var(--ink) }

/* Tables — hairlines carry the structure, so there is no wrapper box for text
   to sit flush against. The scroll container has no border or background. */
.tablewrap { overflow-x: auto; max-width: 74ch }
table { width: 100%; border-collapse: collapse; font-size: 16px }
th, td { text-align: left; padding: 12px 20px 12px 0; border-bottom: 1px solid var(--rule) }
thead th {
  font: 600 13px/1.4 var(--sans); color: var(--faint);
  border-bottom: 1px solid var(--rule-strong);
}
td { color: var(--soft) }
td strong, th strong { color: var(--ink) }

code { font: .88em/1.5 var(--mono); background: var(--band); padding: 2px 6px; border-radius: 3px }
pre {
  background: var(--band); border: 1px solid var(--rule); border-radius: 4px;
  padding: 20px 22px; overflow-x: auto; font: 14.5px/1.7 var(--mono); color: var(--ink);
}
pre code { background: none; padding: 0; font-size: inherit }

/* ------------------------------------------------------------------- docs */

.doc { padding: 54px 0 96px }
.doc .wrap { max-width: 820px }

.doc h1 { margin: 0 0 10px; font: 400 42px/1.15 var(--serif);
  font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -.02em }
.doc .sub { margin: 0 0 26px; color: var(--soft); font-size: 17.5px }

.doc h2 {
  margin: 52px 0 14px; padding-top: 22px;
  border-top: 1px solid var(--rule);
  font: 400 27px/1.25 var(--serif); letter-spacing: -.015em;
  scroll-margin-top: 24px;
}
.doc h3 { margin: 34px 0 10px; font: 600 18px/1.4 var(--sans); scroll-margin-top: 24px }
.doc h4 { margin: 24px 0 8px; font: 600 16px/1.4 var(--sans); color: var(--soft) }
.doc p, .doc li { color: var(--ink) }
.doc p { max-width: 74ch }
.doc li { margin: 6px 0; max-width: 72ch }

.doc blockquote {
  margin: 26px 0; padding: 18px 0 18px 22px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  color: var(--soft);
}
.doc blockquote p { margin: 0; color: var(--soft) }
.doc blockquote p + p { margin-top: 9px }

.doc table { display: block; overflow-x: auto; white-space: nowrap; margin: 20px 0 }
.doc table td, .doc table th { white-space: normal }
.doc hr { border: none; border-top: 1px solid var(--rule); margin: 44px 0 }

.doc .toc {
  margin: 30px 0 48px; padding: 24px 0 8px;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.doc .toc > ul { padding-left: 0 }
.doc .toc ul { list-style: none; padding-left: 20px; margin: 0 }
.doc .toc li { margin: 5px 0; font-size: 15.5px; max-width: none }
.doc .toc > ul > li > a { color: var(--ink) }

.langbar { display: flex; gap: 20px; margin: 0 0 30px; flex-wrap: wrap; font-size: 15.5px }
.langbar a { color: var(--soft); text-decoration: none }
.langbar a:hover { color: var(--ink) }
.langbar a.on { color: var(--ink); font-weight: 600 }

/* ---------------------------------------------------------------- support */

.contact {
  margin: 28px 0 40px; padding: 26px 0 28px;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.contact h2 { margin: 0 0 8px; padding-top: 0; border-top: none; font: 600 18px/1.4 var(--sans) }
.contact .addr { margin: 0 0 16px; font: 20px/1.5 var(--mono) }
.meta { display: grid; gap: 8px; color: var(--soft); font-size: 15.5px; max-width: 72ch }

/* A block that already closes with a rule must not be followed by another one;
   two hairlines with a gap between them read as an empty band. */
.contact + h2, .doc .toc + h2 { border-top: none; padding-top: 0; margin-top: 38px }

/* --------------------------------------------------------------- products */

/* Product-level navigation; reuses .langbar and sits above the page title. */
.subnav { margin-bottom: 34px; font-size: 15px }
.hero .subnav { margin-top: -40px; margin-bottom: 52px }

/* Product list — ruled rows like the feature list, opened by the same heavy rule
   as the callout and contact blocks. No boxes, so nothing sits flush to a border. */
.products { border-top: 2px solid var(--ink) }
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 48px;
  align-items: center; padding: 34px 0 32px; border-bottom: 1px solid var(--rule);
}
.product h3 { margin: 14px 0 10px; font: 400 30px/1.2 var(--serif); letter-spacing: -.015em }
.product h3 a { color: var(--ink); text-decoration: none }
.product h3 a:hover { text-decoration: underline; text-decoration-color: var(--rule-strong) }
.product .tag { margin: 0 0 12px; max-width: 66ch; color: var(--soft) }
.product .facts { margin: 0; font: 14px/1.6 var(--mono); color: var(--faint) }
.status {
  display: inline-block; font: 600 12px/1 var(--mono); letter-spacing: .04em;
  color: var(--faint); border: 1px solid var(--rule-strong); border-radius: 3px; padding: 4px 7px;
}
.doc .wrap.wide { max-width: var(--measure) }

/* Pricing: billing-period switch and one ruled row per plan (amounts come from Paddle). */
.billing { display: inline-flex; gap: 0; margin: 0 0 30px; padding: 0; border: 1px solid var(--rule-strong); border-radius: 4px }
.billing legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.billing label { position: relative; padding: 10px 20px; font: 600 15px/1.2 var(--sans); color: var(--soft); cursor: pointer }
.billing label + label { border-left: 1px solid var(--rule-strong) }
.billing input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer }
.billing label:has(input:checked) { background: var(--accent); color: #fff }
.billing label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px }
.tiers { border-top: 2px solid var(--ink) }
.tier {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 56px;
  align-items: center; padding: 30px 0 28px; border-bottom: 1px solid var(--rule);
}
.tier h3 { margin: 0 0 6px; font: 400 28px/1.2 var(--serif); letter-spacing: -.015em }
.tier .tag { margin: 0 0 14px; color: var(--soft) }
.tier ul.checks li:first-child { border-top: none }
.tier ul.checks li { padding-top: 9px; padding-bottom: 9px; border-bottom: none }
.tier .buy { text-align: right }
.tier .amount { margin: 0 0 14px; font: 400 40px/1.1 var(--serif); letter-spacing: -.02em }
.tier .amount .per { display: block; margin-top: 6px; font: 15px/1.4 var(--sans); color: var(--faint) }
@media (max-width: 720px) {
  .tier { grid-template-columns: 1fr }
  .tier .buy { text-align: left }
}

/* Buttons used as <button> (checkout) must match the link buttons. */
button.btn { cursor: pointer }
.btn[disabled], .btn[disabled]:hover { background: var(--band); color: var(--faint); border-color: var(--rule-strong); cursor: default }
[hidden] { display: none !important }
.hero .soon { margin: 22px 0 0; font-size: 16px }

/* License key form and display */
.keyform { margin: 22px 0 18px; padding: 20px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule) }
.keyform label { display: block; margin-bottom: 10px; font: 600 15px/1.4 var(--sans) }
.keyform .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center }
.keyform input {
  flex: 1 1 280px; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 4px;
  background: #fff; color: var(--ink); font: 15px/1.4 var(--mono);
}
.keyform input:focus { outline: 2px solid var(--accent); outline-offset: 1px }
.keyform code { flex: 1 1 280px; font-size: 15px; padding: 10px 12px; word-break: break-all }
#status { color: var(--soft) }
#status.err { color: #9b2c1f }   /* 7.25:1 on paper */

@media (max-width: 720px) {
  .product { grid-template-columns: 1fr }
  .hero .subnav { margin-top: -20px; margin-bottom: 36px }
}

/* ----------------------------------------------------------------- footer */

footer.site { padding: 42px 0 64px; color: var(--faint); font-size: 15.5px }
footer.site .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: baseline }
footer.site nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap }
footer.site a { color: var(--soft); text-decoration: none }
footer.site a:hover { color: var(--ink); text-decoration: underline }

/* ------------------------------------------------------------------ small */

@media (max-width: 720px) {
  body { font-size: 16.5px }
  .wrap { padding: 0 20px }
  header.site .wrap { flex-wrap: wrap; gap: 14px }
  nav.top { margin-left: 0; width: 100%; gap: 20px }
  .hero { padding: 56px 0 48px }
  section { padding: 52px 0 }
  .grid { gap: 0 }
  .card { padding-left: 40px }
  footer.site nav { margin-left: 0; width: 100% }
}
