/* FileDock marketing pages. Hand-written, no framework, no web fonts.
   Everything a crawler needs is in the HTML; this file only styles it. */

:root {
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --wash: #f8fafc;
  --accent: #0f766e;
  --max: 64rem;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--body);
  text-decoration: none;
}

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

@media (max-width: 40rem) {
  .site-nav .nav-secondary {
    display: none;
  }
}

/* Hero */

.hero {
  padding: 5rem 0 4rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 1rem 0 0;
  max-width: 46rem;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 40rem;
  font-size: 1.125rem;
  color: var(--body);
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #334155;
}

.btn-secondary {
  color: #334155;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}

.btn-secondary:hover {
  background: var(--wash);
}

.note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Sections */

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

section.band .wrap {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 2.25rem 2.5rem;
  margin-top: 2.25rem;
}

@media (min-width: 40rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .grid-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid p {
  margin: 0.5rem 0 0;
  color: var(--body);
}

ol.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

ol.steps > li::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.prose {
  max-width: 40rem;
  color: var(--body);
}

.prose p {
  margin: 0 0 1rem;
}

.prose .lead {
  font-size: 1.125rem;
}

/* Call to action */

.cta {
  margin: 4rem 0;
  padding: 3rem 2rem;
  border-radius: 1rem;
  background: var(--ink);
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  max-width: 36rem;
  margin: 0.75rem auto 0;
  color: #cbd5e1;
}

.cta .btn {
  margin-top: 2rem;
  background: #fff;
  color: var(--ink);
}

.cta .btn:hover {
  background: var(--line-soft);
}

/* Legal pages */

.legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.legal h1 {
  font-size: 2rem;
  max-width: none;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1rem;
}

.legal p,
.legal address {
  margin: 0.75rem 0 0;
  color: var(--body);
  font-style: normal;
}

.legal a {
  color: var(--body);
}

.callout {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--line);
}

.callout p {
  margin: 0;
}

.back {
  display: inline-block;
  margin-top: 3rem;
  color: var(--body);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--wash);
}

.site-footer .wrap {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.footer-cols {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 40rem) {
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer h2 {
  font-size: 0.875rem;
  font-weight: 600;
}

.site-footer address,
.site-footer ul {
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--body);
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer a {
  color: var(--body);
  text-decoration: none;
}

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

.footer-mail {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.copyright {
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

/* Data flow page: step list, comparison table, status list */

ol.flow {
  counter-reset: flowstep;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

ol.flow > li {
  counter-increment: flowstep;
  position: relative;
  padding: 0 0 2rem 3.25rem;
  border-left: 2px solid var(--line);
  margin-left: 1.1rem;
}

ol.flow > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

ol.flow > li::before {
  content: counter(flowstep);
  position: absolute;
  left: -1.1rem;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

ol.flow h3 {
  margin: 0.25rem 0 0;
}

ol.flow p {
  margin: 0.5rem 0 0;
  color: var(--body);
}

ol.flow .where {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 0.35rem;
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}

.scroll-x {
  overflow-x: auto;
  margin-top: 1.5rem;
}

table.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 34rem;
}

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

table.matrix th {
  font-weight: 600;
  color: var(--ink);
}

table.matrix td {
  color: var(--body);
}

.state {
  font-weight: 600;
}

.state-ok {
  color: #0f766e;
}

.state-open {
  color: #b45309;
}

.asof {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

/* Pricing */

.plans {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 52rem) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.plan {
  padding: 1.75rem;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--line);
}

.plan.featured {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.plan .badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 0.35rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.plan h3 {
  font-size: 1.125rem;
}

.plan .price {
  margin: 0.75rem 0 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan .price small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}

.plan .pitch {
  margin: 0.5rem 0 0;
  color: var(--body);
  font-size: 0.9375rem;
}

.plan ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--body);
}

.plan li {
  padding-left: 1.4rem;
  position: relative;
  margin-top: 0.6rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
}

.plan .btn {
  display: block;
  margin-top: 1.75rem;
  text-align: center;
}

table.matrix td.yes {
  color: var(--accent);
  font-weight: 600;
}

table.matrix td.no {
  color: var(--muted);
}

.vat {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Screen-reader-only text. Present in the markup for crawlers and assistive
   technology, invisible on screen where an icon carries the meaning. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: -0.25rem;
}

.icon-yes {
  color: var(--accent);
}

.icon-no {
  color: #cbd5e1;
}

.price-year {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.plan .save {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 0.3rem;
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Billing toggle. Hidden until the script enables it, so a visitor without
   JavaScript never sees a control that does nothing: they get both prices
   spelled out instead. */
.billing[hidden] {
  display: none;
}

.billing {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.25rem;
  border-radius: 0.65rem;
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--line);
}

.billing button {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--body);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.billing button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}

.billing .hint {
  margin-left: 0.4rem;
  color: #047857;
  font-size: 0.8125rem;
  font-weight: 600;
}
