/* tidymerchant.com. Brand palette from marketing/brand/tidy-merchant-logo.svg: slate, cream, amber.
   Each app card takes its own --accent from site/apps.mjs, the colour of that app's own site. */
:root {
  --slate-950: #141c1f;
  --slate-900: #1b2629;
  --slate-800: #2b3a40;
  --slate-600: #4a5d64;
  --cream: #f4efe6;
  --amber: #f2b33d;
  --amber-ink: #6b4a00;
  --paper: #fbfaf7;
  --tint-soft: #f3efe7;
  --ink: #1a1a1a;
  --muted: #5a6166;
  --line: #e6e3dc;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--slate-800);
}

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

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 14px;
  background: var(--slate-900);
  color: #fff;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.muted {
  color: var(--muted);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(251 250 247 / 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo {
  width: 36px;
  height: 36px;
  flex: none;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

a.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgb(20 28 31 / 0.16);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-dark {
  background: var(--slate-900);
  color: #fff;
}

.btn-amber {
  background: var(--amber);
  color: var(--slate-950);
}

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

.btn-light {
  background: var(--cream);
  color: var(--slate-950);
}

.btn-light img {
  border-radius: 6px;
}

.btn-install {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-soon {
  background: transparent;
  color: var(--muted);
  border: 1px dashed #c9c4b8;
  cursor: default;
  font-weight: 500;
}

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 88% -10%, rgb(242 179 61 / 0.16), transparent 60%),
    linear-gradient(180deg, var(--slate-800), var(--slate-950));
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 92px 24px 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero h1 span + span {
  color: var(--cream);
  opacity: 0.78;
}

.lede {
  margin: 22px 0 32px;
  font-size: 20px;
  color: rgb(244 239 230 / 0.88);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.text-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 15px;
  color: rgb(244 239 230 / 0.72);
}

/* The hero's three app tiles, stacked like the bars of the logo. */
.stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.stack a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--slate-950);
  text-decoration: none;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.28);
  border-left: 6px solid var(--accent);
  transition: transform 0.15s ease;
}

.stack li:nth-child(2) a {
  margin-left: 28px;
}

.stack li:nth-child(3) a {
  margin-left: 56px;
}

.stack a:hover {
  transform: translateX(4px);
}

.stack img {
  border-radius: 10px;
  flex: none;
}

.stack strong {
  display: block;
  font-size: 18px;
}

.stack small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.stack-arrow {
  margin-left: auto;
  color: var(--muted);
  font-weight: 600;
}

/* Sections */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 24px;
}

.tinted {
  max-width: none;
  background: var(--tint-soft);
  padding-left: max(24px, calc((100% - 1112px) / 2));
  padding-right: max(24px, calc((100% - 1112px) / 2));
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 6px;
}

.center {
  text-align: center;
}

.sub {
  color: var(--muted);
  margin: 0 auto;
  max-width: 620px;
}

.small {
  font-size: 15px;
  margin-top: 20px;
}

/* Chooser */
.chooser {
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  max-width: 860px;
  display: grid;
  gap: 14px;
}

.chooser li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 14px 14px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.chooser-problem {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
}

.chooser-answer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
}

.chooser-answer:hover {
  outline: 2px solid var(--accent);
}

.chooser-answer img {
  border-radius: 8px;
  flex: none;
}

/* App cards */
.apps {
  margin-top: 44px;
  display: grid;
  gap: 28px;
}

.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.02);
}

.app:nth-child(even) .app-shot {
  order: 2;
}

.app-shot {
  display: flex;
  align-items: center;
  padding: 32px;
  background: linear-gradient(160deg, var(--accent-soft), #fff);
  border-right: 1px solid var(--line);
}

.app:nth-child(even) .app-shot {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.app-shot img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgb(20 28 31 / 0.14);
}

.app-body {
  padding: 36px 40px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.app-title img {
  border-radius: 12px;
}

.app-title h3 {
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.02em;
}

.app-job {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-headline {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.app-body > p {
  margin: 0 0 14px;
}

.ticks {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  margin: 4px 0;
}

.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.app-facts {
  margin: 0 0 22px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.app-facts div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
}

.app-facts dt {
  font-weight: 600;
  color: var(--muted);
}

.app-facts dd {
  margin: 0;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Principles */
.principles {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.principle {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--slate-900);
  color: var(--amber);
  font-weight: 700;
}

/* Pricing table */
.table-wrap {
  margin: 40px auto 0;
  max-width: 860px;
  overflow-x: auto;
}

.prices {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.prices th,
.prices td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.prices tbody tr:last-child > * {
  border-bottom: 0;
}

.prices thead th {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.prices tbody th a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.prices tbody th img {
  border-radius: 7px;
}

/* FAQ */
.faqs {
  margin: 36px auto 0;
  max-width: 760px;
}

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

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 18px;
  list-style-position: outside;
}

.faq p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Closing call to action */
.cta {
  background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
  color: #fff;
  text-align: center;
  padding: 84px 24px;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
}

.cta p {
  margin: 0 0 28px;
  color: rgb(244 239 230 / 0.82);
}

.cta a:not(.btn) {
  color: var(--amber);
}

.cta-apps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 24px 28px;
  font-size: 15px;
}

.footer-inner {
  max-width: 1112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr;
  gap: 32px;
}

.footer h2 {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 10px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin: 6px 0;
}

.footer-brand p {
  color: var(--muted);
  margin: 10px 0 0;
}

.footer-small {
  max-width: 1112px;
  margin: 36px auto 0;
  color: var(--muted);
  font-size: 13px;
}

/* Privacy and other text pages */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 88px;
}

.prose h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.prose h2 {
  margin: 36px 0 8px;
  font-size: 22px;
}

/* Narrow screens */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 64px 20px 72px;
    gap: 40px;
  }

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

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

  .app .app-shot,
  .app:nth-child(even) .app-shot {
    order: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }
}

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

  .header-inner {
    justify-content: space-between;
    padding: 10px 16px;
  }

  .section {
    padding: 64px 16px;
  }

  .tinted {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stack li:nth-child(n) a {
    margin-left: 0;
  }

  .chooser li {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .app-body {
    padding: 26px 22px;
  }

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

  .prices th,
  .prices td {
    padding: 14px 12px;
    font-size: 15px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Generated by build.mjs from apps.mjs */
.accent-unwind {
  --accent: #0f766e;
  --accent-soft: #e9fbf6;
}
.accent-lever {
  --accent: #1f6158;
  --accent-soft: #ecf7f4;
}
.accent-remit {
  --accent: #224c8c;
  --accent-soft: #eef4fd;
}
