/* MerchUI
   ---------------------------------------------------------------
   The system borrows from the thing these tools measure: fixed width
   stock, marked off in inches. Rules carry tick marks, teal is used
   for measurement rather than decoration, and the page is paper
   rather than screen-dark.
   --------------------------------------------------------------- */

:root {
  --paper:  #f6f7f8;
  --white:  #ffffff;
  --ink:    #17202b;
  --ink-2:  #0d1620;
  --teal:   #12bfa8;
  --teal-d: #0b8676;
  --amber:  #9a6512;
  --green:  #0d7a4f;
  --muted:  #5d6875;
  --rule:   #dee3e6;
  --rule-2: #edf0f2;

  --measure: 64ch;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(23, 32, 43, 0.04);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-underline-offset: 3px; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

img, svg { max-width: 100%; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink);
        color: #fff; padding: 10px 16px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }

/* --------------------------------------------------------------- */

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(52px, 8vw, 96px) 0; }
.section--tight { padding: clamp(34px, 5vw, 60px) 0; }
.section--white { background: var(--white); border-block: 1px solid var(--rule); }

.ruler {
  height: 20px;
  border-top: 1px solid var(--rule);
  background-image: linear-gradient(to right, var(--teal) 1px, transparent 1px);
  background-size: 24px 7px;
  background-repeat: repeat-x;
}

/* ---------------------------------------------------------------
   Masthead
   --------------------------------------------------------------- */

.masthead { background: var(--white); border-bottom: 1px solid var(--rule);
            position: sticky; top: 0; z-index: 20; }

.masthead-inner { display: flex; align-items: center; gap: 20px;
                  min-height: 68px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
         font-size: 19px; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }

.brand svg { display: block; flex: none; }

.nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); font-size: 15.5px; }

.nav a { color: var(--muted); text-decoration: none; padding: 4px 0;
         border-bottom: 2px solid transparent; }

.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); border-bottom-color: var(--teal); }

.nav .nav-cta {
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 15px;
  font-weight: 600;
}

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

.nav-toggle { display: none; align-items: center; gap: 9px; background: none;
              border: 1px solid var(--rule); border-radius: 6px; padding: 8px 13px;
              font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after { display: block; width: 16px; height: 2px;
                          background: var(--ink); content: ""; }

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after  { position: absolute; top: 5px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column;
         align-items: stretch; gap: 0; padding-bottom: 10px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0 12px 10px; border-bottom: 1px solid var(--rule-2);
           border-left: 2px solid transparent; }
  .nav a.is-active { border-bottom-color: var(--rule-2); border-left-color: var(--teal); }
  .nav .nav-cta { border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0;
                  padding: 12px 0 12px 10px; }
}

/* ---------------------------------------------------------------
   Type
   --------------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }

h1 { font-size: clamp(34px, 5.4vw, 58px); }
h2 { font-size: clamp(26px, 3.3vw, 37px); }
h3 { font-size: 19px; letter-spacing: -0.012em; line-height: 1.32; }
h4 { font-size: 16px; letter-spacing: -0.01em; }

p { margin: 0 0 1em; max-width: var(--measure); }

.lede { font-size: clamp(18px, 1.85vw, 21px); color: var(--muted); line-height: 1.52; }
.small { font-size: 14.5px; color: var(--muted); }
.eyebrow { font-size: 14px; color: var(--teal-d); font-weight: 600; margin: 0 0 10px; }

.section-head { margin-bottom: clamp(26px, 4vw, 44px); }
.section-head p { margin-top: 12px; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; background: var(--ink); color: var(--white);
  border-radius: 7px; font-size: 16px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--ink-2); }

.btn--quiet { background: var(--white); color: var(--ink); border-color: var(--rule); }
.btn--quiet:hover { background: var(--white); border-color: var(--ink); }

.btn--onDark { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.btn--onDark:hover { background: #14d3ba; border-color: #14d3ba; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.btn--ghost:hover { background: transparent; border-color: #fff; }

/* ---------------------------------------------------------------
   Figures
   --------------------------------------------------------------- */

.figure { margin: 0; border-radius: var(--radius); overflow: hidden;
          border: 1px solid var(--rule); background: var(--white); box-shadow: var(--shadow); }

.figure img { display: block; width: 100%; height: auto; }

/* Until artwork exists, the slot reads as a quiet panel rather than
   a broken image. */
.figure--empty {
  aspect-ratio: 3 / 2;
  background:
    repeating-linear-gradient(135deg, var(--rule-2) 0 12px, var(--white) 12px 24px);
}

.figure--wide { aspect-ratio: 16 / 9; }
.figure--tall { aspect-ratio: 4 / 5; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.hero { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 5vw, 58px);
        align-items: center; padding: clamp(38px, 6vw, 82px) 0 clamp(44px, 7vw, 84px); }

@media (min-width: 940px) { .hero { grid-template-columns: 1.05fr 1fr; } }

.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 26px; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px;
              font-size: 14.5px; color: var(--muted); }

.hero-proof span { position: relative; padding-left: 18px; }

.hero-proof span::before { content: ""; position: absolute; left: 0; top: 11px;
                           width: 10px; height: 2px; background: var(--teal); }

/* ---------------------------------------------------------------
   Sheet illustration
   --------------------------------------------------------------- */

.sheet { background: var(--white); border: 1px solid var(--rule);
         border-radius: var(--radius); padding: 18px 18px 14px; margin: 0;
         box-shadow: var(--shadow); }

.sheet svg { width: 100%; height: auto; display: block; }

.readout { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px;
           padding-top: 12px; border-top: 1px solid var(--rule);
           font-size: 14px; color: var(--muted); }

.readout b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------
   Grids
   --------------------------------------------------------------- */

.grid { display: grid; gap: clamp(24px, 3.6vw, 42px); grid-template-columns: 1fr; }

@media (min-width: 700px) {
  .grid--two { grid-template-columns: repeat(2, 1fr); }
  .grid--three { grid-template-columns: repeat(2, 1fr); }
}

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

.item { padding-left: 16px; border-left: 2px solid var(--teal); }
.item h3 { margin-bottom: 6px; }
.item p { margin: 0; color: var(--muted); font-size: 16px; }

/* A real sequence, so it is numbered. */
.steps { counter-reset: step; display: grid; gap: 26px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { counter-increment: step; }
.step h3 { margin: 10px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

.step::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600;
}

/* ---------------------------------------------------------------
   Pillars
   --------------------------------------------------------------- */

.pillars { display: grid; gap: 20px; grid-template-columns: 1fr; }

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

.pillar { background: var(--white); border: 1px solid var(--rule);
          border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
          display: flex; flex-direction: column; }

.pillar h3 { margin-bottom: 8px; font-size: 21px; }
.pillar p { color: var(--muted); font-size: 16px; }
.pillar .pillar-link { margin-top: auto; padding-top: 12px; font-weight: 600;
                       font-size: 15.5px; text-decoration: none; color: var(--teal-d); }
.pillar .pillar-link:hover { text-decoration: underline; }

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

.tool-list { display: grid; gap: 20px; }

.tool {
  display: grid; gap: 22px;
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: clamp(20px, 2.6vw, 28px);
  align-items: start; box-shadow: var(--shadow);
}

@media (min-width: 900px) { .tool { grid-template-columns: 260px 1fr 190px; } }

.tool-media { display: grid; gap: 12px; }
.tool-for { font-size: 14px; color: var(--muted); }
.tool h3 { font-size: 22px; margin: 8px 0 8px; }
.tool-body p { margin: 0 0 12px; color: var(--muted); }

.ticks { list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.ticks li { position: relative; padding: 5px 0 5px 20px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 14px;
                    width: 10px; height: 2px; background: var(--teal); }

.badge { display: inline-block; font-size: 12.5px; font-weight: 600;
         border-radius: 999px; padding: 3px 11px; border: 1px solid; }

.badge--live     { color: var(--green);  border-color: rgba(13,122,79,0.35);  background: rgba(13,122,79,0.08); }
.badge--review   { color: var(--teal-d); border-color: rgba(11,134,118,0.38); background: rgba(18,191,168,0.10); }
.badge--building { color: var(--amber);  border-color: rgba(154,101,18,0.32); background: rgba(154,101,18,0.08); }
.badge--planned  { color: var(--muted);  border-color: var(--rule);           background: var(--paper); }

/* ---------------------------------------------------------------
   Alternating feature rows
   --------------------------------------------------------------- */

.row { display: grid; grid-template-columns: 1fr; gap: clamp(26px, 4vw, 52px);
       align-items: center; padding: clamp(34px, 5vw, 56px) 0; }

@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; }
  .row--flip .row-text { order: 2; }
}

.row + .row { border-top: 1px solid var(--rule); }
.row-text h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 12px; }

/* ---------------------------------------------------------------
   Pricing
   --------------------------------------------------------------- */

.plans { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, 1fr); } }

.plan { background: var(--white); border: 1px solid var(--rule);
        border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

.plan--lead { border-color: var(--ink); }

.plan .price { display: flex; align-items: baseline; gap: 7px; margin: 12px 0 18px; }
.plan .amount { font-size: 42px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }

.plan ul { margin: 0; padding: 0; list-style: none; font-size: 16px; }
.plan li { padding: 7px 0 7px 22px; position: relative; color: var(--muted); }
.plan li::before { content: ""; position: absolute; left: 0; top: 16px;
                   width: 10px; height: 2px; background: var(--teal); }

/* ---------------------------------------------------------------
   Tables
   --------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 15.5px;
        background: var(--white); border: 1px solid var(--rule);
        border-radius: var(--radius); overflow: hidden; }

th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule-2);
         vertical-align: top; }

th { font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
td:first-child, th:first-child { color: var(--ink); }

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

.faq { border-top: 1px solid var(--rule); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--rule); }

.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 17px;
               list-style: none; display: flex; justify-content: space-between;
               gap: 16px; align-items: baseline; }

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-d); font-weight: 600; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }

/* ---------------------------------------------------------------
   Docs
   --------------------------------------------------------------- */

.docs { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: 1fr; align-items: start; }

@media (min-width: 960px) {
  .docs { grid-template-columns: 230px 1fr; }
  .docs-nav { position: sticky; top: 92px; }
}

.docs-nav ul { list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.docs-nav li { border-left: 2px solid var(--rule); }
.docs-nav a { display: block; padding: 8px 0 8px 14px; color: var(--muted); text-decoration: none; }
.docs-nav a:hover { color: var(--ink); }

.doc-body h2 { font-size: 25px; margin: 46px 0 12px; scroll-margin-top: 92px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin: 26px 0 8px; }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body ul, .doc-body ol { padding-left: 22px; max-width: var(--measure); }
.doc-body li { margin-bottom: 8px; }
.doc-body strong { color: var(--ink); }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
       font-size: 0.9em; background: var(--rule-2); border-radius: 4px;
       padding: 2px 6px; color: var(--ink); }

.callout { border-left: 3px solid var(--teal); background: var(--white);
           padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0;
           margin: 22px 0; max-width: var(--measure); }

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

/* ---------------------------------------------------------------
   Prose
   --------------------------------------------------------------- */

.prose { max-width: 70ch; }
.prose h2 { margin: 42px 0 12px; font-size: 24px; }
.prose h2:first-of-type { margin-top: 30px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; color: var(--muted); }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); }
.updated { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* ---------------------------------------------------------------
   Closing call to action
   --------------------------------------------------------------- */

.cta { background: var(--ink); color: #cfd8e0; padding: clamp(44px, 6vw, 72px) 0; }

.cta-inner { display: grid; gap: 26px; align-items: center; }
@media (min-width: 880px) { .cta-inner { grid-template-columns: 1.3fr 1fr; } }

.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { margin: 0; max-width: 52ch; }

@media (min-width: 880px) { .cta .actions { justify-content: flex-end; } }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.footer { background: var(--ink-2); color: #a9b4c0;
          padding: clamp(44px, 6vw, 66px) 0 34px; font-size: 15px;
          border-top: 1px solid rgba(255,255,255,0.08); }

.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-wordmark { font-weight: 700; font-size: 19px; color: #fff; letter-spacing: -0.02em; }
.tagline { color: var(--teal); margin: 4px 0 12px; }
.footer-note { color: #83909d; font-size: 14.5px; max-width: 36ch; margin: 0; }

.footer-heading { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 10px; letter-spacing: 0; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; }

.footer-bottom { margin-top: 36px; padding-top: 20px;
                 border-top: 1px solid rgba(255,255,255,0.12);
                 display: flex; flex-wrap: wrap; gap: 8px 20px;
                 justify-content: space-between; color: #83909d; }

/* ---------------------------------------------------------------
   Error page
   --------------------------------------------------------------- */

.error-page { padding: clamp(60px, 12vw, 130px) 0; }
.error-code { font-size: 15px; color: var(--teal-d); font-weight: 600; margin-bottom: 10px; }
