/* BriefPlot website: one stylesheet, system fonts only, no external resources. */

:root {
  --navy: #1e3a5f;
  --navy-dark: #152b47;
  --teal: #2b7389;
  --green: #2f9e6e;
  --amber: #a7681a;
  --slate: #6f86a6;
  --ink: #1f2933;
  --text: #3e4c59;
  --muted: #616e7c;
  --line: #e4e7eb;
  --line-strong: #cbd2d9;
  --surface: #f5f7fa;
  --tint: #edf2f8;
  --focus: #2563eb;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 12px 32px rgb(16 24 40 / 8%);
  --container: 72rem;
  --narrow: 46rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  color: var(--navy);
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
}

h3 {
  font-size: 1.125rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

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

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

strong {
  color: var(--ink);
  font-weight: 650;
}

code {
  padding: 0.08em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container.narrow {
  max-width: calc(var(--narrow) + 4rem);
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.brand-mark {
  flex: none;
  width: 28px;
  height: 28px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.975rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--navy);
}

.site-nav a[aria-current="page"] {
  background: var(--tint);
  color: var(--navy);
  font-weight: 650;
}

@media (max-width: 520px) {
  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    justify-content: space-between;
  }

  .site-nav a {
    padding: 0.4rem 0.5rem;
  }
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-primary:hover {
  background: var(--navy-dark);
  color: #fff;
}

.button-secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--navy);
}

.button-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.button-light {
  background: #fff;
  color: var(--navy);
}

.button-light:hover {
  background: var(--tint);
  color: var(--navy);
}

/* Status, not an action: shown until the Marketplace listing is live. */
.button-soon {
  border: 1px dashed #9fb3c8;
  background: var(--tint);
  color: var(--navy);
  cursor: default;
}

.button-soon::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--amber);
}

/* Lists with check marks */

.checks {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.6rem;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 0.36em;
  left: 0.3rem;
  width: 0.38rem;
  height: 0.72rem;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checks-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.checks-inline li {
  margin: 0;
}

/* Hero */

.hero {
  padding-block: 3.5rem 4rem;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .hero {
    padding-block: 5rem 5.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 3.5rem;
  }
}

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

.lead {
  max-width: 38rem;
  color: var(--text);
  font-size: 1.2rem;
}

/* A chart shown like a slide */

.slide-frame {
  margin: 0;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.slide-frame img {
  width: 100%;
  border-radius: 4px;
}

.figure-link {
  display: block;
  border-radius: 4px;
  cursor: zoom-in;
}

.slide-frame figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Sections */

.section {
  padding-block: 4rem;
}

@media (min-width: 960px) {
  .section {
    padding-block: 5.5rem;
  }
}

.section-alt {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  font-size: 1.1rem;
}

.section-head p:last-child {
  margin-bottom: 0;
}

/* Chart types */

.chart-types {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

@media (min-width: 800px) {
  .chart-types {
    grid-template-columns: 1fr 1fr;
  }
}

.type-card {
  padding: 1.75rem 1.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.type-card h3 {
  color: var(--navy);
  font-size: 1.35rem;
}

.chart-figure {
  max-width: 56rem;
  margin-inline: auto;
}

/* Feature cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  background: #fff;
}

.card:nth-child(3n + 2) {
  border-top-color: var(--green);
}

.card:nth-child(3n) {
  border-top-color: var(--teal);
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  margin: 0;
  font-size: 1rem;
}

/* Steps */

.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

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

.steps li {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
}

/* Dark panel */

.panel {
  display: grid;
  align-items: start;
  gap: 1.5rem 3rem;
  padding: 2.25rem;
  border-radius: 14px;
  background: var(--navy);
  color: #dbe4ee;
}

@media (min-width: 900px) {
  .panel {
    grid-template-columns: 1.2fr 1fr;
    padding: 3rem;
  }
}

.panel h2,
.panel strong,
.panel a:not(.button) {
  color: #fff;
}

.panel-note {
  color: #c3d0de;
  font-size: 0.95rem;
}

.panel .checks {
  margin: 0;
}

.panel .checks li {
  color: #fff;
}

.panel .checks li::before {
  border-color: #8fd3b4;
}

/* The blue focus ring would not show on navy. */
.panel :focus-visible {
  outline-color: #fff;
}

/* Pricing */

.pricing-grid {
  display: grid;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.pricing-grid .section-head {
  margin-bottom: 0;
}

.price-card {
  max-width: 34rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.price {
  margin-bottom: 1.25rem;
  color: var(--navy);
  font-size: 2.5rem;
  font-weight: 750;
  line-height: 1;
}

.price-note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Questions */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  color: var(--ink);
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  content: "+" / "";
  color: var(--teal);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
  content: "\2212" / "";
}

.faq details p {
  margin: 0 0 1.1rem;
}

/* Text pages: privacy, terms, support, pro */

.page-head {
  padding-block: 3rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-head h1 {
  margin-bottom: 0.4rem;
}

.page-head .lead {
  margin: 0.75rem 0 0;
}

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

.prose {
  max-width: var(--narrow);
  padding-block: 2.5rem 4rem;
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: 1.45rem;
  scroll-margin-top: 1rem;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose li::marker {
  color: var(--slate);
}

.prose .checks {
  padding-left: 0;
}

.callout {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--navy);
  border-radius: 0 8px 8px 0;
  background: var(--tint);
}

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

.toc {
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc-title {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  columns: 2 14rem;
  column-gap: 2rem;
}

.toc li {
  margin-bottom: 0.3rem;
  break-inside: avoid;
}

.table-wrap {
  margin-bottom: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
}

td ul {
  margin: 0;
  padding-left: 1.1rem;
}

.scopes th:first-child {
  width: 42%;
}

td li:last-child {
  margin-bottom: 0;
}

/* Narrow screens: each table row becomes a block, its first cell on top. */
@media (max-width: 639px) {
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table-wrap tr {
    border-bottom: 1px solid var(--line);
  }

  .table-wrap tr:last-child {
    border-bottom: 0;
  }

  .table-wrap td {
    border-bottom: 0;
  }

  .table-wrap td:first-child {
    background: var(--surface);
  }
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.messages dt {
  margin-top: 1.25rem;
  color: var(--ink);
  font-weight: 650;
}

.messages dd {
  margin: 0.3rem 0 0;
}

.messages samp {
  font-family: inherit;
  font-size: inherit;
}

.feature-pair {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .feature-pair {
    grid-template-columns: 1fr 1fr;
  }
}

/* Not found */

.not-found {
  padding-block: 5rem 6rem;
  text-align: center;
}

.not-found .lead {
  margin-inline: auto;
}

.not-found .actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 1.5rem 2rem;
  padding-block: 2.5rem 1.5rem;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

.footer-brand p {
  max-width: 22rem;
  margin: 0.6rem 0 0;
}

.footer-title {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.footer-nav ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact p {
  margin: 0 0 0.5rem;
}

.footer-nav a,
.footer-contact a {
  color: var(--text);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-legal {
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.footer-legal p {
  margin: 0;
}

/* Print */

@media print {
  .skip-link,
  .site-nav,
  .footer-nav,
  .actions {
    display: none;
  }

  body {
    font-size: 11pt;
  }

  .hero,
  .section {
    padding-block: 1.5rem;
  }

  .panel {
    background: none;
    color: var(--text);
  }

  .panel h2,
  .panel strong,
  .panel .checks li {
    color: var(--ink);
  }

  /* Backgrounds are not printed by default: no white text on white paper. */
  .panel a:not(.button),
  .panel-note {
    color: var(--navy);
  }

  .steps li::before {
    border: 1px solid var(--navy);
    background: none;
    color: var(--navy);
  }
}
