/*
 * TenderRecord site. Same palette as the app: paper, ink, evergreen.
 * System fonts only (no third-party requests): a serif for headlines, sans for text.
 */
:root {
  --paper: #f7f6f2;
  --paper-2: #efede6;
  --card: #ffffff;
  --line: #dedbd2;
  --ink: #16181d;
  --ink-2: #4a4e58;
  --ink-3: #6c707b;
  --accent: #0f6e56;
  --accent-2: #0b5643;
  --accent-soft: #dcefe7;
  --serif: 'Iowan Old Style', 'Charter', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'SF Mono', ui-monospace, Menlo, Consolas, 'Liberation Mono', monospace;
  --radius: 10px;
  --bar: 64px; /* top bar height */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121417;
    --paper-2: #181b1f;
    --card: #1b1e23;
    --line: #2c3037;
    --ink: #eceae4;
    --ink-2: #b9bcc4;
    --ink-3: #8d919b;
    --accent: #3fb893;
    --accent-2: #62c9a7;
    --accent-soft: #163a30;
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}
a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}
.narrow {
  max-width: 760px;
}
.center {
  text-align: center;
}
.small {
  font-size: 14px;
}
.muted {
  color: var(--ink-3);
}
.mono {
  font-family: var(--mono);
  font-size: 0.86em;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(38px, 5.6vw, 60px);
}
h2 {
  font-size: clamp(28px, 3.6vw, 38px);
}
h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
p {
  margin: 0 0 14px;
}
.lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 640px;
}
.center .lead {
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 6px;
}
.skip:focus {
  left: 8px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 16px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn-small {
  padding: 8px 14px;
  font-size: 14px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-2);
}
@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #0b1512;
  }
}
.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: var(--paper-2);
}
.link-quiet {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.link-quiet:hover {
  color: var(--ink);
  text-decoration: underline;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 14px;
}
.cta-row.center {
  justify-content: center;
}

/* ---------------- top bar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--bar);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font: 700 12px/1 var(--sans);
}
.brand-name {
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.tm {
  margin-left: 1px;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: super;
  line-height: 0;
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Tablet and phone: a Book a demo button stays in the bar, the rest is in the menu. */
.topbar-cta {
  display: none;
}

/* menu (works without JavaScript) */
.menu {
  display: none;
  position: relative;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 0 11px;
  border-radius: 8px;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* the three lines turn into a close mark while the menu is open */
.menu[open] summary span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu[open] summary span:nth-child(2) {
  opacity: 0;
}
.menu[open] summary span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.menu-panel {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 52px;
  width: 320px;
  max-height: calc(100vh - var(--bar) - 16px);
  max-height: calc(100dvh - var(--bar) - 16px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 8px;
  display: grid;
}
.menu-panel > a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 17px;
  text-decoration: none;
}
.menu-panel > a:not(.btn):hover {
  background: var(--paper-2);
}
.menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.menu-panel .btn {
  min-height: 48px;
}
.menu-panel > .btn {
  margin-top: 8px;
}
.menu-panel .btn-primary:hover {
  background: var(--accent-2);
}

@media (max-width: 900px) {
  .nav,
  .topbar-actions {
    display: none;
  }
  .topbar-inner {
    gap: 12px;
  }
  .topbar-cta {
    display: inline-flex;
    margin-left: auto;
  }
  .menu {
    display: block;
  }
}
/* very narrow phones: only the brand and the menu fit */
@media (max-width: 369px) {
  .topbar-cta {
    display: none;
  }
  .menu {
    margin-left: auto;
  }
}
/* phones: the menu opens as a full-width sheet under the bar, with the page dimmed behind it */
@media (max-width: 599px) {
  :root {
    --bar: 58px;
  }
  .menu[open]::before {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    top: var(--bar);
    height: 100vh;
    background: rgba(10, 12, 14, 0.35);
  }
  /* The bar's blur makes it the frame for fixed elements, so top: var(--bar) is just below it. */
  .menu-panel {
    position: fixed;
    top: var(--bar);
    left: 0;
    right: 0;
    width: auto;
    border-width: 0 0 1px;
    border-radius: 0 0 14px 14px;
    padding: 6px max(20px, env(safe-area-inset-right)) 20px max(20px, env(safe-area-inset-left));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  }
  .menu-panel > a:not(.btn) {
    padding: 0 2px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .menu-panel > a:not(.btn):hover {
    background: none;
  }
  .menu-actions {
    margin-top: 16px;
  }
}

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

.hero {
  padding: 72px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.motto {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-3);
}
@media (max-width: 900px) {
  .hero {
    padding: 44px 0 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* sample record card */
.record {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(22, 24, 29, 0.08);
  overflow: hidden;
}
.record-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.record-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.record-body {
  margin: 0;
  padding: 10px 18px;
  font-size: 14px;
}
.record-body > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.record-body > div:last-child {
  border-bottom: 0;
}
.record-body dt {
  color: var(--ink-3);
}
.record-body dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.record-foot {
  margin: 0;
  padding: 11px 18px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font: 600 13px/1 var(--sans);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------- sections ---------------- */

.section {
  padding: 84px 0;
}
.section-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band {
  padding: 64px 0;
  background: var(--ink);
  color: var(--paper);
}
.band p {
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  font-size: 18px;
}
@media (max-width: 700px) {
  .section {
    padding: 60px 0;
  }
}

.steps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step p {
  color: var(--ink-2);
  font-size: 15.5px;
  margin: 0;
}
.step-n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  font: 700 14px/1 var(--sans);
  margin-bottom: 14px;
}
@media (max-width: 980px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p {
  color: var(--ink-2);
  font-size: 15.5px;
  margin: 0;
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  .cards-3 .card:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card {
    padding: 20px;
  }
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: start;
}
.two-col p {
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.source-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.source-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
}
.source-list li:first-child {
  grid-column: 1 / -1;
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 600;
}
.source-list li:last-child {
  color: var(--ink-3);
}
/* the "product names belong to their owners" line under the list */
.two-col + .small {
  margin-top: 28px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.checks li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 4px;
  height: 8px;
  border: solid var(--accent-2);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------------- pricing ---------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.plan-highlight {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.plan-badge {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 3px 10px;
  font: 600 12px/1.4 var(--sans);
}
.plan-name {
  margin-bottom: 2px;
}
.plan-users {
  color: var(--ink-3);
  font-size: 15px;
}
.plan-price {
  margin: 8px 0 2px;
}
.plan-amount {
  font: 600 30px/1.1 var(--serif);
}
.plan-contact {
  font-size: 24px;
}
.plan-per,
.plan-annual {
  color: var(--ink-3);
  font-size: 14px;
}
.plan-cta {
  margin-top: auto;
}
/* Buttons line up at the bottom of every plan card. */
.plan .plan-cta {
  margin-top: auto;
}
.plan > :nth-last-child(2) {
  margin-bottom: 18px;
}
.included {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.included .checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 14px;
}
@media (max-width: 980px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .plans,
  .included .checks {
    grid-template-columns: 1fr;
  }
}

/* ---------------- FAQ ---------------- */

.faq {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 14px;
  font: 400 24px/1 var(--sans);
  color: var(--ink-3);
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  color: var(--ink-2);
  padding-bottom: 8px;
}

/* ---------------- closing CTA + footer ---------------- */

.cta-band {
  background: var(--accent-soft);
  border-top: 1px solid var(--line);
}
.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
}
.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------------- simple pages (privacy, 404) ---------------- */

.page {
  padding: 64px 0 80px;
}
.page h1 {
  font-size: clamp(32px, 4.4vw, 44px);
}
.page h2 {
  font-size: 24px;
  margin-top: 36px;
}
.page p,
.page li {
  color: var(--ink-2);
}
.topbar-actions.keep {
  display: flex !important;
}
.brand-center {
  justify-content: center;
  margin-bottom: 28px;
}

/* ---------------- phones ---------------- */

@media (max-width: 600px) {
  .band {
    padding: 52px 0;
  }
  .band p {
    font-size: 17px;
  }
  .steps {
    gap: 14px;
    margin-top: 28px;
  }
  /* number and title side by side, text below: shorter cards */
  .step {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 20px;
  }
  .step-n,
  .step h3 {
    margin: 0;
  }
  .step p {
    grid-column: 1 / -1;
    margin-top: 10px;
  }
  .cards {
    margin-top: 28px;
  }
  .faq summary {
    font-size: 16.5px;
    padding: 16px 36px 16px 0;
  }
  .faq summary::after {
    top: 12px;
  }
  .included {
    padding: 20px;
  }
  /* footer links become a two-column list with room for a thumb */
  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .footer-links a {
    padding: 10px 0;
  }
  .footer-links a[data-link='contact'] {
    grid-column: 1 / -1;
    order: 1; /* the long email address goes last, on its own line */
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .lead {
    font-size: 18px;
  }
  /* the two buttons share the row evenly and are easy to hit */
  .cta-row .btn {
    flex: 1 1 0;
    min-height: 48px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .record-head,
  .record-body,
  .record-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
  .record-body {
    font-size: 13.5px;
  }
  .record-body > div {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
  }
  .source-list {
    gap: 8px;
  }
  .source-list li {
    padding: 10px 12px;
    font-size: 14px;
  }
}
