@font-face { font-family: "Saira Condensed"; font-weight: 600; font-display: swap; src: url("/assets/fonts/SairaCondensed-600.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 700; font-display: swap; src: url("/assets/fonts/SairaCondensed-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/SourceSans3.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/SourceSans3-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/JetBrainsMono-500.woff2") format("woff2"); }

:root {
  --steel: #14324F;
  --steel-deep: #0D2338;
  --pipe: #3B6A93;
  --seam: #9FB0BE;
  --conduit: #DCE3E8;
  --mark: #F05A3E;
  --mark-text: #C7381D;
  --pipe-green: #2E4A3A;
  --lumber: #4A3826;

  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --text: #14202B;
  --muted: #4E5F6E;
  --line: #D3DCE3;
  --link: #1F5582;

  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1622;
    --surface: #12212F;
    --text: #E6ECF1;
    --muted: #A3B2BF;
    --line: #22364A;
    --link: #8DBCE6;
    --mark-text: #FF7A5E;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; color: #000; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--steel); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 26px/1 var(--display); letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--mark); font-weight: 700; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: #D6E2EC; text-decoration: none; font-weight: 600; font-size: 16px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--mark); }

/* Hero */
.hero { background: var(--steel); color: #fff; padding: 56px 0 0; overflow: hidden; }
.hero h1 { font: 700 clamp(40px, 7vw, 76px)/1.02 var(--display); margin: 0 0 18px; letter-spacing: .005em; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--mark); }
.hero p.lede { font-size: clamp(18px, 2.2vw, 22px); color: #D6E2EC; max-width: 40ch; margin: 0 0 28px; }
.eyebrow { font: 600 15px/1 var(--display); letter-spacing: .32em; text-transform: uppercase; color: var(--mark); margin: 0 0 14px; }
.hero-app { display: flex; gap: 24px; align-items: center; margin-bottom: 18px; }
.hero-app img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }

/* The pipe: a run of conduit with layout marks */
.pipe { position: relative; height: 92px; margin-top: 44px; }
.pipe::before { content: ""; position: absolute; left: -20px; right: -20px; top: 38px; height: 30px; background: linear-gradient(180deg, #4C7DA8 0%, var(--pipe) 45%, #2F587C 100%); border-top: 2px solid #6E98BD; }
.pipe::after { content: ""; position: absolute; left: -20px; right: -20px; top: 51px; height: 2px; background: var(--seam); opacity: .5; }
.pipe .m { position: absolute; top: 24px; width: 4px; height: 58px; background: var(--mark); z-index: 1; }
.pipe .m span { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font: 500 13px/1 var(--mono); color: #F7B6A8; white-space: nowrap; }

/* Store buttons */
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 6px 18px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.45); color: #fff; text-decoration: none; line-height: 1.15; }
.store small { font-size: 12px; color: #B9C8D5; }
.store strong { font: 700 20px/1.1 var(--display); letter-spacing: .02em; }
.store[aria-disabled="true"] { opacity: .8; cursor: default; }
.soon { font-size: 15px; color: #B9C8D5; }

/* Sections */
main section { padding: 64px 0; }
main section + section { border-top: 1px solid var(--line); }
h2 { font: 700 clamp(30px, 4vw, 42px)/1.1 var(--display); margin: 0 0 12px; letter-spacing: .005em; }
h3 { font: 600 24px/1.2 var(--display); margin: 0 0 8px; letter-spacing: .01em; }
.section-lede { color: var(--muted); max-width: 60ch; margin: 0 0 32px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card p { margin: 0; color: var(--muted); }
.card .tick { display: block; width: 28px; height: 4px; background: var(--mark); margin-bottom: 16px; }

.apps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.app-card { display: flex; flex-direction: column; gap: 14px; border-radius: 16px; padding: 24px; color: #fff; text-decoration: none; min-height: 210px; }
.app-card .tile { width: 64px; height: 64px; border-radius: 15px; }
.app-card .tile.blank { border: 2px dashed rgba(255,255,255,.4); }
.app-card h3 { margin: 0; font-size: 28px; }
.app-card p { margin: 0; color: rgba(255,255,255,.82); }
.app-card .status { margin-top: auto; font: 600 14px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--mark); }
.app-card.later .status { color: rgba(255,255,255,.6); }
a.app-card:hover h3 { text-decoration: underline; text-decoration-color: var(--mark); }
.bg-steel { background: var(--steel); }
.bg-green { background: var(--pipe-green); }
.bg-lumber { background: var(--lumber); }

/* Free vs Pro */
.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tier h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tier .price { font: 500 18px/1 var(--mono); color: var(--mark-text); }
.tier ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.tier li { margin: 4px 0; }

/* Example result */
.example { font-family: var(--mono); font-size: 15px; background: var(--steel-deep); color: #DDE7EF; border-radius: 14px; padding: 20px 22px; overflow-x: auto; line-height: 1.7; }
.example .k { color: #8FA6BA; }
.example .v { color: #fff; }
.example .r { color: var(--mark); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.contact { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--mark); border-radius: 12px; padding: 24px; }
.contact p { margin: 0 0 8px; }
.contact .email { font: 500 20px/1.3 var(--mono); }

/* Legal pages */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.doc h1 { font: 700 clamp(36px, 5vw, 52px)/1.05 var(--display); margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 30px; margin-top: 40px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 8px; }
.doc th { font-weight: 700; }
.doc .table-scroll { overflow-x: auto; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--mark); border-radius: 10px; padding: 16px 20px; margin: 20px 0; }

/* Footer */
.site-footer { background: var(--steel-deep); color: #A9BBCB; padding: 36px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #D6E2EC; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding-top: 40px; }
  .hero-app img { width: 72px; height: 72px; border-radius: 17px; }
  main section { padding: 48px 0; }
  .site-nav { gap: 14px; }
}
.example .k + .v, .example .r + .v { margin-left: .6em; }
.example .v + .k { margin-left: 1.6em; }
