/* Jasco Dialer info site. Colours match the dialer itself. */
:root {
  --navy:    #101F3A;
  --blue:    #006EE1;
  --blue-50: #EEF5FF;
  --green:   #12A150;
  --red:     #C41E24;
  --text:    #1B2333;
  --muted:   #5A6273;
  --line:    #E3E7EE;
  --bg:      #FFFFFF;
  --bg-alt:  #F6F8FB;
  --radius:  10px;
  --wrap:    1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: 1.5rem; margin-top: 1.8em; }
h3 { font-size: 1.1rem; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .05em .35em;
  overflow-wrap: anywhere;
}

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

/* Header */
.site-header { background: var(--navy); 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-weight: 700; font-size: 1.1rem; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #C9D3E6; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .95rem; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, #17305A 100%); color: #DCE4F2; padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.15rem; color: #DCE4F2; max-width: 34em; }
.hero-shots { display: flex; gap: 14px; justify-content: center; }
.hero-shots img { width: 46%; max-width: 230px; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.hero-shots img:last-child { margin-top: 36px; }

.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; font-size: .98rem; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #005BC0; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue-50); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 46em; margin-bottom: 28px; }
section > .wrap > h2:first-child { margin-top: 0; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.card h3 .ico { width: 34px; height: 34px; border-radius: 8px; background: var(--blue-50); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.card h3 .ico svg { width: 18px; height: 18px; }
.card ul { padding-left: 1.1em; margin: 0; color: var(--muted); }
.card li { margin-bottom: .35em; }

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; counter-reset: step; }
.flow div { position: relative; padding: 18px 18px 18px 60px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.flow div::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow strong { display: block; color: var(--navy); }
.flow span { color: var(--muted); font-size: .95rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--line); border-radius: 12px; margin: 0 auto; max-width: 260px; width: 100%; }
.shots figcaption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 10px; }

.cta { background: var(--navy); color: #DCE4F2; border-radius: 14px; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 .3em; }
.cta p { margin: 0; }

/* Document pages (setup, specification, legal) */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.page-head p { color: var(--muted); margin: 0; }
.doc { padding: 36px 0 64px; }
.doc .wrap { max-width: 860px; }
.doc ol > li, .doc ul > li { margin-bottom: .45em; }
.meta { color: var(--muted); font-size: .92rem; }

.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; }
.toc strong { display: block; margin-bottom: 6px; color: var(--navy); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
.toc li { margin: 0 0 .25em; break-inside: avoid; }

.step { border-left: 4px solid var(--blue); padding: 4px 0 4px 18px; margin: 0 0 26px; }
.step h3 { margin-top: 0; }

.note { background: var(--blue-50); border: 1px solid #CFE2FB; border-radius: 8px; padding: 12px 16px; margin: 0 0 1em; }
.warn { background: #FFF6E5; border: 1px solid #F6D79A; border-radius: 8px; padding: 12px 16px; margin: 0 0 1em; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); color: var(--navy); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--navy); width: 30%; }

.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Footer */
.site-footer { background: var(--navy); color: #AEB9CE; font-size: .92rem; padding: 32px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #DCE4F2; text-decoration: none; margin-right: 16px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }
.fine { margin-top: 8px !important; font-size: .82rem; color: #8E9AB3; max-width: 46em; }

.notfound { text-align: center; padding: 96px 0; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 48px; }
  .toc ol { columns: 1; }
  td:first-child { width: auto; }
}

/* Print: the specification doubles as the downloadable PDF. */
@media print {
  .site-header, .site-footer, .doc-actions, .skip, .toc { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .page-head { background: none; border: 0; padding: 0 0 12pt; }
  .doc { padding: 0; }
  .doc .wrap, .page-head .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  h2, h3 { break-after: avoid; }
  .table-wrap { border: 0; overflow: visible; }
  table, tr { break-inside: avoid; }
  th { background: #EEE !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 16mm 14mm; }
}

/* Small layout modifiers (no inline styles: the CSP forbids them). */
.btns-flush { margin-top: 0; }
.btns-center { justify-content: center; }
.doc-actions-top { margin: 0 0 24px; }

/* Document pages: title block as narrow as the text under it. */
.page-head .wrap { max-width: 860px; }
/* Six feature cards: three per row on desktop. */
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
