/* Tools Premium - shared legal site styles
   Static only. No Tailwind, no CDN, no external fonts, no JavaScript. */

:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #1b1a17;
  --muted: #6c6862;
  --faint: #8f8a82;
  --rule: #e7e2d8;
  --rule-strong: #d8d1c4;
  --accent: #a8452b;
  --accent-soft: #f4e9e4;
  --measure: 42rem;
  --gutter: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Thin accent rule pinned to the very top of every page. */
body::before {
  content: '';
  display: block;
  height: 3px;
  background-color: var(--accent);
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Masthead */
.masthead {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.brand__mark {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--rule-strong);
  transform: translateY(-3px);
}

.brand__seller {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.masthead h1 {
  margin: 1.25rem 0 0.5rem;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.masthead .lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 34rem;
}

.docmeta {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--faint);
}

.docmeta strong {
  color: var(--muted);
  font-weight: 600;
}

/* Main content */
main {
  padding: 2.5rem 0 4rem;
}

main > .wrap > p:first-child {
  margin-top: 0;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.3125rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  scroll-margin-top: 1.5rem;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

li::marker {
  color: var(--faint);
}

code {
  font-family: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas,
    'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  background-color: var(--accent-soft);
  color: #7c3220;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  word-break: break-word;
}

strong {
  font-weight: 700;
}

/* Numbered disclosure sections on the privacy page */
.numbered {
  counter-reset: clause;
  list-style: none;
  padding: 0;
  margin: 0;
}

.numbered > li {
  counter-increment: clause;
  position: relative;
  padding-left: 3rem;
  margin: 0 0 1.75rem;
}

.numbered > li::before {
  content: counter(clause, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.numbered h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
}

.numbered p {
  margin: 0 0 0.75rem;
}

.numbered p:last-child {
  margin-bottom: 0;
}

/* Placeholder callout for values to fill after deploy */
.fill {
  display: inline-block;
  background-color: #fff6e6;
  border: 1px dashed #d9a441;
  color: #7a5410;
  border-radius: 4px;
  padding: 0 0.35em;
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
}

.note {
  border-left: 3px solid var(--rule-strong);
  background-color: var(--surface);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-size: 1rem;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Hub page link cards */
.cards {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}

.card {
  display: block;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-1px);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.card__arrow {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.card__desc {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Definition list for quick facts */
.facts {
  margin: 2rem 0 0;
  border-top: 1px solid var(--rule);
}

.facts div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.facts dt {
  color: var(--faint);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.facts dd {
  margin: 0;
  color: var(--ink);
}

/* Landing page: top bar */
.sitehead {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.sitehead__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sitehead__nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sitehead__nav a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.sitehead__nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Landing page: hero */
.hero {
  padding: 3.25rem 0 2.75rem;
  border-bottom: 1px solid var(--rule);
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.hero__lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 40rem;
}

.hero__foot {
  display: inline-block;
  margin: 0;
  padding: 0.4rem 0.85rem;
  background-color: var(--accent-soft);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  color: #7c3220;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Landing page: generic section */
.section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.section > .wrap > h2 {
  margin-top: 0;
}

.section__intro {
  color: var(--muted);
  max-width: 40rem;
}

/* Landing page: feature groups */
.features {
  counter-reset: feature;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}

.feature {
  counter-increment: feature;
  position: relative;
  padding-left: 3rem;
  margin: 0 0 1.5rem;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature::before {
  content: counter(feature, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.feature h3 {
  margin: 0 0 0.3rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* Landing page: pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.plan {
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
}

.plan--featured {
  border-color: var(--accent);
}

.plan__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
}

.plan__name {
  font-weight: 700;
  color: var(--ink);
}

.plan__price {
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.plan__note {
  margin: 1.25rem 0 0;
  color: var(--faint);
  font-size: 0.9375rem;
}

/* Brand hub: products */
.products {
  margin-top: 2rem;
}

.product {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
}

.product:first-child {
  border-top: none;
  padding-top: 0;
}

.product:last-child {
  padding-bottom: 0;
}

.product__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.product__name {
  margin: 0;
  font-size: 1.3125rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.product__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-soft);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

.product__summary {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.product__subs {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

.product--pending .product__name {
  color: var(--muted);
}

/* Landing page: seller and payment disclosure */
.disclosure {
  padding: 2rem 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.disclosure p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 40rem;
}

.disclosure p:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  color: var(--faint);
  font-size: 0.875rem;
}

.footer p {
  margin: 0 0 0.5rem;
}

.footer nav {
  margin-bottom: 1rem;
}

.footer nav a {
  color: var(--muted);
  margin-right: 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }

  .masthead {
    padding-top: 2.25rem;
  }

  .masthead h1 {
    font-size: 1.625rem;
  }

  .numbered > li {
    padding-left: 2.25rem;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .sitehead__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero {
    padding: 2.25rem 0 2rem;
  }

  .hero__title {
    font-size: 1.875rem;
    max-width: none;
  }

  .hero__lede {
    font-size: 1.0625rem;
  }

  .feature {
    padding-left: 2.25rem;
  }
}

@media print {
  body::before,
  .footer nav {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
