/* Datronome website. One stylesheet, system fonts, no JavaScript, light and dark. */
:root {
  --bg: #ffffff; --soft: #f3f5f9; --card: #ffffff; --ink: #18202c; --muted: #535e6e; --line: #dde2ea;
  --accent: #2f5bea; --accent-ink: #ffffff; --accent-soft: #eaf0ff; --note: #fff8e6; --note-line: #f0d68a;
  --code: #f1f3f7; --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 4px 16px rgba(20, 30, 50, .05);
  --accent-fill: #2f5bea; --field-line: #8792a3; --shot-filter: none;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d; --soft: #181d26; --card: #1b212b; --ink: #e8ecf2; --muted: #a3adbb; --line: #2e3744;
    --accent: #7c9bff; --accent-ink: #0d1220; --accent-soft: #1f2a46; --note: #2a2516; --note-line: #6b5a26;
    --code: #232a35; --shadow: none;
    --accent-fill: #3f63f0; --field-line: #5b6676; --shot-filter: brightness(.85) contrast(1.05);   /* white on #3f63f0: 4.9:1 */
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace; font-size: .88em; }
code { background: var(--code); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: var(--code); padding: 12px 14px; border-radius: 10px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
h1 { font-size: clamp(30px, 5vw, 42px); margin: 8px 0 12px; }
h2 { font-size: 26px; margin: 44px 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 64px; flex: 1 0 auto; width: 100%; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* top bar */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 6px; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; font-size: 16px; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }

/* buttons */
.btn {
  display: inline-block; background: var(--accent-fill); color: #fff; text-decoration: none; font-weight: 600;
  padding: 11px 20px; border-radius: 10px; border: 1px solid var(--accent-fill); font: inherit; font-weight: 600; cursor: pointer; line-height: 1.3;
  transition: background-color .15s, filter .15s, border-color .15s;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); filter: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn.compact { padding: 7px 14px; font-size: 15px; }
.btn.big { padding: 14px 26px; font-size: 18px; }
.btn.disabled { background: var(--soft); border-color: var(--line); color: var(--muted); cursor: default; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }

/* text */
.lead, .prose > h1 + p { font-size: 19px; color: var(--muted); max-width: 760px; margin: 0 0 24px; }
.kicker { font-size: 19px; color: var(--ink); margin: -4px 0 10px; font-weight: 600; }
.small { font-size: 14.5px; color: var(--muted); }
.crumbs { font-size: 14.5px; color: var(--muted); margin: 0; }
.prose { max-width: 820px; }
.prose li { margin: 6px 0; }
.prose > p, .prose li { overflow-wrap: anywhere; }

/* home */
.hero { padding: 28px 0 8px; max-width: 860px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 52px); letter-spacing: -.025em; }
.hero p { font-size: 19.5px; color: var(--muted); }
.hero .small { font-size: 14.5px; }
figure { margin: 24px 0; }
.shot { display: block; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); background: var(--soft); filter: var(--shot-filter); }
.still { filter: none; }      /* the stills have their own dark versions */
picture { display: block; }
/* desktop: the words on the left, the approval screenshot on the right; phones: the picture follows the buttons */
.hero:has(.hero-shot) { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); column-gap: 44px; align-items: start; }
.hero:has(.hero-shot) > * { grid-column: 1; }
.hero:has(.hero-shot) h1 { font-size: clamp(32px, 4.4vw, 46px); }
.hero > .hero-shot { grid-column: 2; grid-row: 1 / span 8; margin: 6px 0 0; }
.hero-shot a { display: block; }
.hero-shot .shot { width: 100%; box-shadow: 0 2px 6px rgba(20, 30, 50, .08), 0 18px 48px rgba(20, 30, 50, .14); }
.hero-shot figcaption { font-size: 14.5px; margin-top: 12px; }
.prose .cards, .prose figure { max-width: none; }
.prose:has(.cards) { max-width: none; }
.prose:has(.cards) > p, .prose:has(.cards) > h2, .prose:has(.cards) > h1 { max-width: 820px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 16px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.card p { margin: 6px 0 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card:has(h3 a) { position: relative; transition: border-color .15s; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.card:has(h3 a):hover { border-color: var(--accent); }
.card a:not(h3 a), .card video { position: relative; z-index: 1; }
.tile .shot, .tile video { margin: -4px -4px 14px; width: calc(100% + 8px); max-width: none; border-radius: 9px; box-shadow: none; }
.tile img.shot { aspect-ratio: 16 / 8; object-fit: cover; object-position: 40% 50%; height: auto; }
.tile video { display: block; height: auto; background: #000; border: 1px solid var(--line); }

/* notes */
.note { background: var(--note); border: 1px solid var(--note-line); border-radius: 12px; padding: 4px 20px; margin: 20px 0; max-width: 820px; }
.note h3 { margin-top: 14px; }

/* example pages */
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.meta span { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 14.5px; }
.two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.two h2 { margin-top: 20px; }
.steps { padding-left: 22px; }
.steps li { margin: 0 0 16px; }
.steps li > p, .steps li > pre { margin-top: 4px; }
.steps pre { margin: 8px 0 0; font-size: 14px; }
.tag { display: inline-block; font-size: 13px; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 8px; margin-left: 6px; vertical-align: 1px; }
.video video { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.prose .video { max-width: 760px; }
.video figcaption { font-size: 14.5px; color: var(--muted); margin-top: 8px; }

/* docs */
.toc ol { columns: 2; padding-left: 22px; }
.lesson { border-top: 1px solid var(--line); margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; font-size: 15px; }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 6px 0 4px; }
.rel { border-top: 1px solid var(--line); padding-top: 24px; }

/* tables */
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15.5px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { border-bottom: 2px solid var(--line); }
.legal-doc table { font-size: 14.5px; }
.legal-doc td, .legal-doc th { border: 1px solid var(--line); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 28px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.hi { border: 2px solid var(--accent); }
.plan { position: relative; }
.plan .btn { text-align: center; }
.badge { position: absolute; top: -13px; left: 22px; margin: 0; font-size: 13px; font-weight: 600; color: #fff; background: var(--accent-fill); border-radius: 999px; padding: 2px 12px; }
.plans { margin-top: 22px !important; }
.plan h2 { margin: 0; font-size: 22px; }
.price { font-size: 36px; font-weight: 700; margin: 8px 0 0; letter-spacing: -.02em; }
.price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { padding-left: 20px; margin: 14px 0 20px; flex: 1; }
.plan li { margin: 5px 0; }
.plan form { display: flex; flex-direction: column; gap: 8px; }
.plan label { font-size: 15px; }
.plan input[name="org"] { font: inherit; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: 9px; background: var(--bg); color: var(--ink); width: 100%; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin: 4px 0 6px; }
.agree input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.hash code { overflow-wrap: anywhere; white-space: pre-wrap; }

/* home: trust strip, how it works, showcase, questions, closing band */
.trust { list-style: none; padding: 0; margin: 8px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trust li { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 40px; position: relative; font-size: 15.5px; color: var(--muted); }
.trust li b { color: var(--ink); display: block; }
.trust li::before { content: "✓"; position: absolute; left: 14px; top: 11px; color: var(--accent); font-weight: 700; }
.flow { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: none; }
.flow.three { grid-template-columns: repeat(3, 1fr); margin: 18px 0 18px; }
.flow li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; gap: 4px; }
.flow li > b { font-size: 17.5px; }
.flow li > span:last-child { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.flow .num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 24px; color: var(--muted); font-size: 18px; }
.showcase > a { display: block; }
.gallery { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; margin: 16px 0 24px; align-items: start; }
.pic { margin: 0; padding: 14px; }
.pic:first-child { grid-column: 1 / -1; }
.pic .shot { width: 100%; box-shadow: none; }
.pic:first-child .shot { border: 0; border-radius: 8px; }
.pic figcaption { margin-top: 12px; font-size: 15.5px; color: var(--muted); }
.pic figcaption b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.proof { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proof li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 15.5px; background: var(--card); }
.proof li b { display: block; color: var(--ink); font-size: 16.5px; }
.proof li a { display: block; margin-top: 6px; width: fit-content; }
.phone-only { display: none; }
.vs td:nth-child(3), .vs thead th:nth-child(3) { background: var(--accent-soft); }
.faq h2 { margin-top: 56px; }
.qa-item { border-bottom: 1px solid var(--line); padding: 4px 0 10px; }
.qa-item h3 { font-size: 18px; margin: 16px 0 4px; }
.qa-item p { margin: 0 0 6px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--accent); font-weight: 700; }
details[open] > summary::before { content: "–"; }
.file code { font-size: .95em; }
.showcase .shot { width: 100%; }
.showcase figcaption, figure figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.qa { max-width: 820px; border-top: 1px solid var(--line); }
.qa details { padding: 14px 0; }
.qa summary { font-size: 17.5px; }
.qa details p { color: var(--muted); }
.band { background: var(--accent-soft); border-radius: 18px; padding: 30px 28px 18px; margin: 48px 0 0; }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0 0 6px; }
.steps-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; max-width: 820px; }
.steps-box[open] summary { margin-bottom: 8px; }

/* footer */
.foot { background: var(--soft); border-top: 1px solid var(--line); padding: 36px 0 28px; font-size: 15px; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cols div { display: flex; flex-direction: column; gap: 6px; }
.cols a { color: var(--muted); text-decoration: none; }
.cols a:hover { color: var(--accent); }
.fine { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin: 18px 0 0; }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2)::after { content: none; }
  .trust { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .two > div:last-child { order: -1; }
  .hero:has(.hero-shot) { display: block; }
  .hero > .hero-shot { margin: 28px auto 8px; max-width: 520px; }
  .gallery, .proof { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .bar { gap: 6px 14px; padding-top: 10px; }      /* keep the side padding from .wrap (zero here pushed the menu to the screen edge) */
  .bar .btn.compact { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; gap: 18px; overflow-x: auto; padding-bottom: 4px; }
  h2 { font-size: 23px; margin-top: 36px; }
  .lead, .hero p { font-size: 17.5px; }
  .hero .small { font-size: 14.5px; }
  .cards { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .cols { grid-template-columns: 1fr 1fr; }
  .phone-only { display: block; }
  .btn.big { width: 100%; text-align: center; }
  .flow, .flow.three { grid-template-columns: 1fr; }
  .flow li::after { content: none !important; }
  .flow li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; row-gap: 2px; padding: 14px 16px; }
  .flow .num { grid-row: span 2; margin: 0; }
  .band { padding: 22px 18px 12px; }
}

/* nothing may push a phone page sideways: code blocks scroll inside themselves, wide tables scroll in their own box */
.two > *, .steps li, .prose li, .card { min-width: 0; }
.prose table, .legal-doc table { display: block; overflow-x: auto; max-width: 100%; }
pre { max-width: 100%; }
