/* ReorderBrief marketing site — system fonts only, no external assets. */

:root {
  --bg: #f6f3ee;
  --bg-accent: #e8efe9;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e4ddd3;
  --brand: #0a3d32;
  --brand-hover: #072e26;
  --brand-soft: #dce8e3;
  --focus: #0a3d32;
  --danger: #8a1f11;
  --max: 68rem;
  --content: 42rem;
  --space: 1.25rem;
  --radius: 0.75rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, "Times New Roman", Times, serif;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 0.4rem 0.4rem;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  color: var(--brand);
}

.logo-mark {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}

.btn:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
}

.btn-secondary:hover {
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.btn-lg {
  padding: 0.8rem 1.3rem;
  font-size: 1rem;
}

/* Hero */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lede,
.hero .lede {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.1rem;
}

.hero-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.math-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.math-table th,
.math-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.math-table th {
  color: var(--muted);
  font-weight: 500;
  width: 62%;
}

.math-table td {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 600;
}

.math-table tr:last-child th,
.math-table tr:last-child td {
  border-bottom: 0;
  padding-top: 0.7rem;
}

.math-caption {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2,
.article-body h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-intro {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.step h3,
.feature h3,
.plan h3,
.help-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.step p,
.feature p,
.help-card p {
  margin: 0;
  color: var(--muted);
}

.features {
  display: grid;
  gap: 1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

/* Pricing */

.billing-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.billing-toggle {
  position: relative;
  display: inline-flex;
  margin: 0 0 1.5rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.billing-toggle label {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

#pricing:has(#billing-monthly:checked) .billing-toggle label[for="billing-monthly"],
#pricing:has(#billing-yearly:checked) .billing-toggle label[for="billing-yearly"] {
  background: var(--brand);
  color: #fff;
}

#pricing:has(#billing-monthly:focus-visible) .billing-toggle label[for="billing-monthly"],
#pricing:has(#billing-yearly:focus-visible) .billing-toggle label[for="billing-yearly"] {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.plans {
  display: grid;
  gap: 1rem;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.1rem);
  padding: 1.35rem 1.3rem 1.4rem;
}

.plan-growth {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.plan-tag {
  display: inline-block;
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price {
  margin: 0.15rem 0 0.2rem;
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price small {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.price-yearly {
  display: none;
}

#pricing:has(#billing-yearly:checked) .price-monthly,
#pricing:has(#billing-yearly:checked) .equiv-yearly {
  display: none;
}

#pricing:has(#billing-yearly:checked) .price-yearly,
#pricing:has(#billing-yearly:checked) .equiv-monthly {
  display: block;
}

.equiv {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.equiv-monthly {
  display: none;
}

.plan ul {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.25rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.55rem;
  height: 0.28rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.save-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */

.faq {
  display: grid;
  gap: 0.65rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style-position: outside;
}

.faq details p {
  margin: 0.7rem 0 0.25rem;
  color: var(--muted);
}

/* Help index */

.help-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
}

.help-card:hover {
  border-color: var(--brand);
  color: inherit;
}

.help-card h2 {
  color: var(--ink);
}

.help-card:hover h2 {
  color: var(--brand);
}

/* Articles */

.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.crumbs {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--muted);
}

.article-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: 3.5rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
}

.toc li {
  margin: 0.25rem 0;
}

.article-body h2 {
  margin-top: 2.25rem;
}

.article-body h3 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.15rem;
}

.article-body p,
.article-body li {
  color: var(--ink);
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.formula,
.example {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 1.2rem;
}

.formula {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.example h3 {
  margin-top: 0;
}

.cta-box {
  margin-top: 2.25rem;
  padding: 1.2rem 1.3rem;
  background: var(--bg-accent);
  border-radius: var(--radius);
}

.cta-box p:last-child {
  margin-bottom: 0;
}

.related {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* 404 */

.not-found {
  padding: 4rem 0 5rem;
  text-align: left;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.15rem;
  margin: 0 0 1rem;
}

.footer-nav a {
  color: var(--ink);
}

.legal {
  margin: 0 0 0.5rem;
  max-width: 46rem;
}

/* Responsive */

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: center;
  }

  .article-layout {
    grid-template-columns: 15rem 1fr;
    align-items: start;
  }

  .toc {
    position: sticky;
    top: 5rem;
  }
}

@media (max-width: 639px) {
  .site-header .wrap {
    flex-wrap: wrap;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .site-header {
    backdrop-filter: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .hero-actions,
  .cta-box .btn,
  .billing-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .article-layout {
    display: block;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-bottom {
  padding-bottom: 3.5rem;
}

.draft-banner {
  background: #f3efe4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
}

.draft-banner p:last-child {
  margin-bottom: 0;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}

.legal-doc th,
.legal-doc td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.legal-doc th {
  background: var(--bg-accent);
  font-weight: 650;
}
