/* sonoranpoint.com — same desert-night palette and type as the product (brand/sp-theme.css). */
:root {
  --night: #071a36; --night-2: #0b2350; --blue: #1663d6; --sky: #2f9bff; --sun: #f7931e; --sun-2: #ffb547;
  --paper: #f4f6fa; --surface: #ffffff; --ink: #0c1b33; --muted: #536380; --line: #dde4ee; --link: #1556bd;
  --display: "Saira", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --chip-ink: var(--blue); --logo-day: block; --logo-night: none; color-scheme: light;
}
/* Dark: follows the device unless someone picked a mode with the switch in the header (theme.js sets data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #07111f; --surface: #0d1b31; --ink: #e8effb; --muted: #9aaccb; --line: #1d3254; --link: #8cc0ff;
    --chip-ink: #8cc0ff; --logo-day: none; --logo-night: block; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #07111f; --surface: #0d1b31; --ink: #e8effb; --muted: #9aaccb; --line: #1d3254; --link: #8cc0ff;
  --chip-ink: #8cc0ff; --logo-day: none; --logo-night: block; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0; }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; background: #fff; color: #000; padding: 8px 12px; z-index: 10; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: 700 16px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--sun); color: #2a1300; }
.btn.primary:hover { background: var(--sun-2); }
.btn.ghost { border-color: rgba(231, 239, 255, .45); color: #fff; }
.btn.ghost:hover { border-color: #fff; }
.btn.line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn.line:hover { border-color: var(--blue); }

/* Header */
.top { position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.top .logo img { width: 168px; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 700; font-size: 15.5px; }
.top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top.dark nav a { color: rgba(231, 239, 255, .9); } .top.dark nav a:hover { color: #fff; }
.top.light { background: var(--surface); border-bottom: 1px solid var(--line); }
.top.light nav a { color: var(--ink); }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.top .logo .day { display: var(--logo-day); } .top .logo .night { display: var(--logo-night); }
.top.dark .logo img { display: block; }
/* Light/dark switch */
.theme-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: inherit; border: 1.5px solid var(--line); }
.theme-btn:hover { border-color: var(--blue); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .sun { display: var(--logo-night); } .theme-btn .moon { display: var(--logo-day); }
.top.light .theme-btn { color: var(--ink); }
.top.dark .theme-btn { color: #fff; border-color: rgba(231, 239, 255, .4); } .top.dark .theme-btn:hover { border-color: #fff; }

/* Hero: night sky over the ridge, with the sun coming up behind it (the one loud moment) */
.hero { position: relative; color: #e7efff; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 55% at 78% 100%, rgba(247, 147, 30, .55), rgba(247, 147, 30, .12) 45%, transparent 70%),
              linear-gradient(180deg, #0c2752 0%, var(--night) 60%, #04112a 100%); }
.hero .ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; z-index: -1; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 130px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 600; color: #fff; }
.hero .lede { color: rgba(231, 239, 255, .82); margin-top: 20px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .shot { border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }

/* Sections */
section.band { padding: 96px 0; }
section.band + section.band { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.split.flip > :first-child { order: 2; }
.split .lede { margin-top: 16px; }
.shot-frame { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 24px 50px -30px rgba(7, 26, 54, .45); background: var(--surface); }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 26px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; counter-increment: step; }
.steps li::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font: 600 19px/1 var(--display); }
.steps b { font-family: var(--display); font-size: 21px; font-weight: 600; }
.steps span { color: var(--muted); }

.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { padding-left: 26px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; margin-top: 36px; }
.facts b { display: block; }
.facts span { color: var(--muted); }

.closing { background: var(--night-2); color: #e7efff; padding: 72px 0; }
.closing .wrap { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.closing h2 { color: #fff; } .closing p { color: rgba(231, 239, 255, .8); margin-top: 10px; } .closing a:not(.btn) { color: #fff; }

footer.foot { padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer.foot .wrap { display: flex; gap: 20px 32px; flex-wrap: wrap; align-items: center; }
footer.foot nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
footer.foot a { color: var(--muted); }

/* Example company tree */
.orgtree { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; font-size: 16px; }
.orgtree figcaption { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.orgtree ul { list-style: none; margin: 0; padding: 0; }
.orgtree ul ul { margin-left: 10px; padding-left: 18px; border-left: 2px solid var(--line); }
.orgtree li { padding: 6px 0 0; position: relative; }
.orgtree ul ul > li::before { content: ""; position: absolute; left: -18px; top: 18px; width: 12px; border-top: 2px solid var(--line); }
.orgtree b { font-family: var(--display); font-weight: 600; font-size: 18px; }
.orgtree span { display: inline-block; margin-left: 8px; font-size: 13.5px; font-weight: 700; color: var(--chip-ink); background: color-mix(in srgb, var(--blue) 10%, transparent); padding: 1px 9px; border-radius: 99px; }
.orgtree small { color: var(--muted); font-size: 14px; margin-left: 8px; }

.uses { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.uses li { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 8px 16px; font-weight: 700; font-size: 15.5px; }

/* Help */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 96px; }
.doc nav.toc { position: sticky; top: 24px; align-self: start; font-size: 15px; }
.doc nav.toc b { display: block; margin: 18px 0 6px; font-family: var(--display); font-size: 17px; }
.doc nav.toc a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; } .doc nav.toc a:hover { color: var(--ink); }
.doc article { max-width: 70ch; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 600; }
.doc h2 { font-size: 30px; margin: 56px 0 6px; padding-top: 8px; }
.doc h3 { font-size: 20px; margin: 30px 0 6px; }
.doc p + p, .doc ol, .doc ul { margin-top: 10px; }
.doc ol, .doc ul { padding-left: 22px; } .doc li + li { margin-top: 4px; }
.doc .note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 8px; padding: 14px 16px; margin-top: 16px; }
kbd, .ui { font-family: var(--body); font-weight: 700; }

/* Try it */
.try-head { padding-top: 48px; padding-bottom: 24px; }
.try-head h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 600; }
.try-head .lede { margin-top: 12px; }
.station-frame { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: block; }
.demo-dash { padding-top: 72px; padding-bottom: 96px; }
.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 64px; padding-bottom: 96px; }
.demo h2 { font-size: 28px; margin-top: 18px; }
.demo p { color: var(--muted); margin-top: 8px; }
.demo .btn { margin-top: 18px; }

/* Contact */
main.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.contact h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 600; }
.contact .lede { margin-top: 14px; }
.cform { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.cform[hidden], .csent[hidden] { display: none; }
.cform label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.cform label small { font-weight: 400; color: var(--muted); }
.cform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform input, .cform select, .cform textarea { font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 11px 12px; width: 100%; }
.cform textarea { resize: vertical; min-height: 140px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.cform .btn { justify-self: start; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cerr { color: #c0392b; font-weight: 700; min-height: 0; } .cerr:empty { display: none; }
:root[data-theme="dark"] .cerr { color: #ff8a7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cerr { color: #ff8a7a; } }
.csent { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 16px; padding: 28px; outline: none; }
.csent h2 { font-size: 30px; }

@media (max-width: 900px) {
  .hero .grid, .split, .demos, .doc, main.contact { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split.flip { grid-template-columns: 1fr; }
  .facts.two { grid-template-columns: 1fr; }
  .hero .grid { padding-bottom: 110px; gap: 36px; }
  .doc nav.toc { position: static; }
  section.band { padding: 64px 0; }
  .station-frame { height: 1500px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top nav { margin-left: 0; width: 100%; gap: 16px; }
  .top .logo img { width: 140px; }
  .cform .row2 { grid-template-columns: 1fr; }
  .cform { padding: 20px; }
}
