/* TenderMate landing page.
   Same visual language as the app: an ink-green rail, cream ledger paper,
   serif headings, thin rules and status stamps. No web fonts, no images, no
   JavaScript — the page opens correctly from a folder on disk. */

:root {
  --rail: #17352a;
  --rail-deep: #0f2519;
  --rail-ink: #e7eee8;
  --rail-mute: #9db3a5;
  --paper: #f4f6f1;
  --paper-warm: #faf8f2;
  --card: #fffdf8;
  --ink: #1b2620;
  --mute: #55645a;
  --faint: #5f6d63;
  --line: #d9e0d5;
  --line-strong: #b9c6b8;
  --green: #1f6b4b;
  --green-soft: #e2efe6;
  --amber: #8a5a06;
  --amber-soft: #f8eeda;
  --red: #9d3626;
  --red-soft: #f7e5e0;
  --grey: #5f6a5c;
  --grey-soft: #eceee8;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: Consolas, "Cascadia Mono", "SF Mono", monospace;
  --max: 1180px;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(23, 53, 42, 0.028) 0,
    rgba(23, 53, 42, 0.028) 1px,
    transparent 1px,
    transparent 34px
  );
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rail);
  color: var(--rail-ink);
  padding: 10px 16px;
  z-index: 20;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 5px;
  background: var(--rail);
  color: var(--rail-ink);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.mark-small {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 13px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.01em;
}

.brand-sub {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--mute);
}

.site-nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.btn:hover {
  border-color: var(--rail);
  background: rgba(23, 53, 42, 0.05);
}

.btn-primary {
  background: var(--rail);
  border-color: var(--rail);
  color: var(--rail-ink);
}

.btn-primary:hover {
  background: var(--rail-deep);
  border-color: var(--rail-deep);
  transform: translateY(-1px);
}

.btn-small {
  padding: 9px 14px;
  font-size: 13px;
}

.btn-large {
  padding: 15px 24px;
  font-size: 15.5px;
}

.link-quiet {
  color: var(--mute);
  font-size: 14.5px;
  text-decoration-color: var(--line-strong);
}

.link-quiet:hover {
  color: var(--ink);
}

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 20em;
}

.section-lede {
  margin-top: 18px;
  max-width: 40em;
  color: var(--mute);
  font-size: 1.03rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 32px;
}

.section-alt {
  max-width: none;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-left: max(32px, calc((100% - var(--max)) / 2 + 32px));
  padding-right: max(32px, calc((100% - var(--max)) / 2 + 32px));
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 32px 72px;
}

h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 12.5em;
}

.lede {
  margin-top: 24px;
  max-width: 34em;
  color: var(--mute);
  font-size: 1.09rem;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-meta {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 35em;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.7;
}

.hero-meta strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- docket mock ---------- */

.docket {
  display: flex;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(23, 53, 42, 0.08), 0 18px 40px rgba(23, 53, 42, 0.1);
  overflow: hidden;
  font-size: 12.5px;
}

.docket-rail {
  flex: 0 0 118px;
  background: var(--rail);
  color: var(--rail-mute);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.docket-mark {
  font-family: var(--serif);
  color: var(--rail-ink);
  font-size: 15px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.docket-nav {
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.docket-nav-on {
  color: var(--rail-ink);
  border-left: 2px solid #7fb394;
  padding-left: 8px;
  margin-left: -10px;
}

.docket-page {
  flex: 1;
  min-width: 0;
  padding: 20px 20px 22px;
}

.docket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.docket-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.docket-title {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
  margin-top: 4px;
  max-width: 15em;
}

.docket-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.docket-facts dt {
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

.docket-facts dd {
  font-size: 11.5px;
  line-height: 1.35;
  margin-top: 3px;
}

.docket-list {
  list-style: none;
  padding: 8px 0 0;
}

.docket-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.docket-list li span:nth-child(2) {
  flex: 1;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 7px;
}

.dot-green {
  background: var(--green);
}
.dot-amber {
  background: var(--amber);
}
.dot-red {
  background: var(--red);
}
.dot-grey {
  background: var(--grey);
}

.stamp {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-1.5deg);
}

.stamp-small {
  font-size: 9px;
  padding: 2px 5px;
}

.stamp-green {
  color: var(--green);
  background: var(--green-soft);
}
.stamp-amber {
  color: var(--amber);
  background: var(--amber-soft);
}
.stamp-red {
  color: var(--red);
  background: var(--red-soft);
}
.stamp-grey {
  color: var(--grey);
  background: var(--grey-soft);
}

.docket-quote {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--paper);
  border-left: 2px solid var(--green);
}

.docket-quote blockquote {
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.45;
  font-style: italic;
}

.docket-quote figcaption {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* ---------- strip ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip > div {
  padding: 28px 32px;
  border-right: 1px solid var(--line);
}

.strip > div:last-child {
  border-right: none;
}

.strip-figure {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: var(--rail);
}

.strip-label {
  display: block;
  margin-top: 10px;
  max-width: 24em;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--card);
  padding: 28px 26px 30px;
}

.card h3 {
  font-size: 1.24rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.card p {
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps li {
  display: flex;
  gap: 22px;
  background: var(--card);
  padding: 30px 28px 34px;
}

.step-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding-top: 4px;
}

.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.steps p {
  color: var(--mute);
  font-size: 14.5px;
}

/* ---------- limits ---------- */

.limits {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}

.limits li {
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.6;
}

.limits strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 3px;
}

.limits li:last-child {
  border-bottom: 1px solid var(--line);
}

/* ---------- download ---------- */

.download {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  width: calc(100% - 48px);
  max-width: var(--max);
  margin: 84px auto;
  padding: 56px 52px;
  background: var(--rail);
  color: var(--rail-ink);
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(23, 53, 42, 0.22);
}

.download .eyebrow {
  color: var(--rail-mute);
}

.download h2 {
  color: #fbfdf9;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
}

.download p {
  color: #c8d7cb;
  font-size: 15px;
  max-width: 34em;
  margin-top: 16px;
}

.download code {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.88em;
  color: #eef6ee;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.download .btn-primary {
  background: var(--rail-ink);
  border-color: var(--rail-ink);
  color: var(--rail-deep);
}

.download .btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.download .link-quiet {
  color: #c8d7cb;
  text-decoration-color: #4d6d5b;
}

.download .link-quiet:hover {
  color: #ffffff;
}

.fineprint {
  font-size: 12.5px !important;
  line-height: 1.6;
  color: var(--rail-mute) !important;
  border-top: 1px solid #2a4a3c;
  padding-top: 18px;
  margin-top: 26px !important;
}

.fineprint a {
  color: #eaf2ea;
  text-decoration-color: #4d6d5b;
}

/* ---------- the Windows warning ---------- */

.trust {
  padding-top: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
}

.trust-step {
  display: flex;
  gap: 20px;
  background: var(--card);
  padding: 28px 26px 30px;
}

.trust-step h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.trust-step p {
  color: var(--mute);
  font-size: 14.5px;
}

.trust-foot {
  margin-top: 20px;
  max-width: 62em;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.65;
}

.download-spec {
  border-left: 1px solid #2a4a3c;
  padding-left: 44px;
}

.download-spec h3 {
  color: #fbfdf9;
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.download-spec dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #2a4a3c;
  font-size: 13.5px;
}

.download-spec dt {
  color: var(--rail-mute);
}

.download-spec dd {
  color: #eaf2ea;
  text-align: right;
}

.spec-note {
  font-size: 12.5px !important;
  line-height: 1.65;
  color: var(--rail-mute) !important;
  margin-top: 18px !important;
}

/* ---------- faq ---------- */

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

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

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--ink);
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 16px;
  color: var(--faint);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding: 0 0 20px;
  max-width: 44em;
  color: var(--mute);
  font-size: 14.5px;
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 80px 24px;
  text-align: center;
}

.notfound h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.notfound p {
  max-width: 32em;
  margin: 0 auto 28px;
  color: var(--mute);
  font-size: 1.02rem;
}

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

.site-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 32px 56px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: start;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-name {
  font-family: var(--serif);
  font-size: 17px;
}

.foot-note {
  color: var(--faint);
  font-size: 12.5px;
}

.foot-links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  color: var(--mute);
}

.foot-links a {
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot-legal {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 56px;
  }

  .docket {
    max-width: 560px;
  }

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

  .download {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 44px 40px;
    margin: 64px 24px;
  }

  .download-spec {
    border-left: none;
    border-top: 1px solid #2a4a3c;
    padding-left: 0;
    padding-top: 32px;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .section-alt {
    padding-left: 32px;
    padding-right: 32px;
  }

  .strip {
    grid-template-columns: 1fr;
  }

  .strip > div {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 22px 32px;
  }

  .strip > div:last-child {
    border-bottom: none;
  }

  .steps,
  .limits {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .limits {
    gap: 0;
  }

  .limits li:last-child {
    border-bottom: none;
  }

  .download {
    margin: 64px 20px;
    padding: 36px 28px;
    width: auto;
  }
}

@media (max-width: 620px) {
  .site-head,
  .hero,
  .section,
  .site-foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand-sub {
    display: none;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero {
    padding-bottom: 52px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .docket-rail {
    display: none;
  }

  .docket-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .docket-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .docket-facts dd {
    margin-top: 0;
    text-align: right;
  }

  .foot-links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .download-spec dl > div {
    flex-direction: column;
    gap: 2px;
  }

  .download-spec dd {
    text-align: left;
  }
}

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

  .btn {
    transition: none;
  }
}
