:root {
  --navy: #12325b;
  --navy-dark: #0c2440;
  --teal: #0f7d73;
  --teal-light: #e3f1ef;
  --ink: #17202b;
  --text: #3d4855;
  --muted: #6b7684;
  --line: #e2e6eb;
  --bg: #ffffff;
  --bg-alt: #f5f6f4;
  --high: #b42318;
  --high-bg: #fdecea;
  --medium: #8a5a00;
  --medium-bg: #fdf3dc;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --radius: 8px;
  --container: 1120px;
}

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

html { scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: .9em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary { background: #fff; color: var(--ink); border-color: #c9d0d8; }
.btn-secondary:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-light); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name {
  display: flex; flex-direction: column;
  font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -.01em;
}
.brand-name small {
  font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { padding: 9px 16px; font-size: 15px; }

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; margin-right: -8px;
  color: var(--ink); cursor: pointer;
}

/* Hero */
.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.kicker { font-size: 15px; font-weight: 600; color: var(--teal); margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.02em; margin-bottom: 22px; }
.lead { font-size: 19px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.note { font-size: 15px; color: var(--muted); max-width: 30em; }

.screen {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 32, 43, .04), 0 8px 24px rgba(23, 32, 43, .06);
  overflow: hidden;
}
.screen-bar {
  display: flex; justify-content: space-between;
  padding: 12px 18px; font-size: 14px; font-weight: 600; color: #fff; background: var(--navy);
}
.screen-bar .mono { font-weight: 400; opacity: .75; }
.screen-body { padding: 18px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.summary div { padding: 12px 14px; font-size: 13px; color: var(--muted); }
.summary div + div { border-left: 1px solid var(--line); }
.summary .mono { display: block; font-size: 22px; color: var(--ink); font-weight: 500; }
.summary .flag .mono { color: var(--high); }
.queue { list-style: none; margin: 0; padding: 0; }
.queue li {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: start;
  padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px;
}
.pid { color: var(--ink); font-weight: 500; }
.why { color: var(--text); line-height: 1.45; }
.level {
  font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
  background: var(--medium-bg); color: var(--medium);
}
.level.high { background: var(--high-bg); color: var(--high); }
.screen figcaption { padding: 10px 18px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-alt); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.015em; margin-bottom: 20px; max-width: 22em; }
.section-head { max-width: 46em; margin-bottom: 48px; }
.section-head p { font-size: 18px; }

/* Problem */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; }
.two-col h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.bridge {
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 20px; color: var(--ink); max-width: 40em;
}

/* Devices */
.device-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.device-photo {
  display: flex; align-items: center; justify-content: center;
  height: 240px; margin-bottom: 20px; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.device-photo img { max-height: 190px; width: auto; object-fit: contain; }
.device-photo--plain { color: #9aa3ae; background: var(--bg-alt); }
.device h3 { font-size: 20px; margin-bottom: 4px; }
.device-spec { font-size: 15px; color: var(--teal); font-weight: 500; margin-bottom: 10px; }
.device p:last-child { font-size: 16px; }

/* Steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { border-top: 2px solid var(--navy); padding-top: 20px; }
.step-no { display: block; color: var(--teal); margin-bottom: 8px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { font-size: 16px; }

/* Tabs */
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 36px; overflow-x: auto; }
.tab-list button {
  font: inherit; font-size: 16px; font-weight: 500; color: var(--muted);
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 12px 16px; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
}
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.tab-panel[hidden] { display: none; }
.panel-text h3 { font-size: 24px; margin-bottom: 14px; }

.example {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; background: var(--bg-alt); font-size: 15.5px;
}
.example-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.example strong { color: var(--ink); }
.chat .msg { background: #fff; border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 12px 14px; max-width: 88%; }
.chat .msg-user { margin-left: auto; background: var(--navy); color: #fff; border-color: var(--navy); border-radius: 12px 12px 4px 12px; }
.soap dl { display: grid; grid-template-columns: 28px 1fr; gap: 10px 12px; margin: 0; }
.soap dt { font-family: var(--mono); font-weight: 500; color: var(--navy); }
.soap dd { margin: 0; }
.example-foot { margin-top: 16px; font-size: 13px; color: var(--muted); }

.assurance {
  margin-top: 56px; padding: 32px;
  border: 1px solid #b9dcd7; border-top: 4px solid var(--teal); border-radius: var(--radius);
  background: var(--teal-light);
}
.assurance h3 { font-size: 22px; margin-bottom: 20px; }
.assurance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.assurance li { font-size: 16px; color: var(--text); }
.assurance strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Applications */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.app { background: #fff; padding: 28px; display: flex; flex-direction: column; }
.app h3 { font-size: 20px; margin-bottom: 10px; }
.app p { font-size: 16px; }
.platform { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 13px; }

/* App screens */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 8px 0 12px; }
.phone-fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.phone-fig figcaption { margin-top: 20px; font-size: 15px; max-width: 300px; text-align: center; }
.phone-fig figcaption strong { color: var(--ink); }
.phones-note { text-align: center; font-size: 13px; color: var(--muted); margin: 20px 0 56px; }

.phone {
  width: 280px; height: 590px; padding: 10px;
  background: #1b1f24; border-radius: 42px;
  box-shadow: 0 0 0 1px #3a4048 inset, 0 20px 40px rgba(23, 32, 43, .18);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  font-size: 12px; line-height: 1.35; color: var(--ink);
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px 6px; border-radius: 32px 32px 0 0; background: #f4f6f8;
  font-weight: 600; font-size: 12px;
}
.phone-icons { display: flex; gap: 4px; align-items: flex-end; }
.phone-icons i { display: block; width: 4px; background: var(--ink); border-radius: 1px; }
.phone-icons i:nth-child(1) { height: 5px; }
.phone-icons i:nth-child(2) { height: 8px; }
.phone-icons i:nth-child(3) { height: 11px; }
.app-screen { flex: 1; background: #f4f6f8; padding: 6px 14px 12px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.app-hello { display: block; font-size: 11px; color: var(--muted); }
.app-title { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.avatar, .bell {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 11px; font-weight: 600;
}
.avatar-alert { background: var(--high); }
.bell { background: var(--high); font-size: 12px; }

.tile { background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid #e6e9ed; }
.tile-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); font-weight: 500; }
.tile-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.tile-value.sm { font-size: 19px; }
.tile-value small { font-size: 12px; font-weight: 500; color: var(--muted); }
.tile-meta { font-size: 10.5px; color: var(--muted); }
.tile-legend { display: flex; justify-content: space-between; margin-top: 2px; }
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile-row .pill { margin-top: 6px; display: inline-block; }
.tile-line { display: flex; justify-content: space-between; align-items: center; }
.tile-label { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.trend-down { font-size: 11px; color: var(--teal); font-weight: 600; }
.spark { width: 100%; height: 44px; margin-top: 6px; display: block; }
.chart { width: 100%; height: 110px; margin: 8px 0 2px; display: block; }
.limit-key { color: var(--high); }

.pill { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.pill.ok { background: var(--teal-light); color: var(--teal); }
.pill.warn { background: var(--medium-bg); color: var(--medium); }
.pill.high { background: var(--high-bg); color: var(--high); }

.reminder { display: flex; gap: 10px; align-items: flex-start; background: var(--navy); color: #d5deea; border-radius: 14px; padding: 10px 12px; font-size: 10.5px; }
.reminder strong { display: block; color: #fff; font-size: 12px; }
.reminder-dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd4c4; margin-top: 4px; flex: none; }

.segment { display: grid; grid-template-columns: 1fr 1fr; background: #e5e9ee; border-radius: 10px; padding: 3px; font-size: 11px; font-weight: 600; text-align: center; }
.segment span { padding: 6px 4px; border-radius: 8px; color: var(--muted); }
.segment .on { background: #fff; color: var(--high); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.list-label { margin: 4px 0 0; font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plist li {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e6e9ed; border-left: 4px solid transparent; border-radius: 10px; padding: 8px 10px;
}
.plist .alert-high { border-left-color: var(--high); }
.plist .alert-med { border-left-color: #d99a00; }
.pname { font-weight: 600; font-size: 12px; }
.pname small, .pval small { display: block; font-weight: 400; font-size: 10px; color: var(--muted); }
.pval { text-align: right; font-weight: 700; font-size: 12px; white-space: nowrap; }
.alert-high .pval { color: var(--high); }
.alert-med .pval { color: var(--medium); }
.plist-ok li { opacity: .75; }
.plist-ok .pval { font-weight: 500; color: var(--text); }

.limits { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; margin: 8px 0 0; font-size: 12px; }
.limits dt { color: var(--muted); }
.limits dd { margin: 0; font-weight: 600; text-align: right; }
.edit { color: var(--teal); font-weight: 600; }
.quote { margin: 6px 0 0; font-size: 12px; color: var(--text); }
.app-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.app-btn { text-align: center; padding: 9px 4px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; font-size: 11.5px; }
.app-btn-ghost { background: #fff; color: var(--navy); border: 1px solid #cdd5df; }

.tabbar {
  display: flex; justify-content: space-around; padding: 9px 8px 14px;
  border-top: 1px solid #e3e7ec; border-radius: 0 0 32px 32px;
  font-size: 10px; color: var(--muted); background: #fff;
}
.tabbar .on { color: var(--navy); font-weight: 700; }

/* Team */
.team { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.team strong { color: var(--ink); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts strong { display: block; margin-bottom: 4px; }

/* Contact */
.contact { background: var(--navy); color: #d5deea; }
.contact h2 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.contact-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.contact-inner p { font-size: 18px; max-width: 32em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contact-mail { flex-basis: 100%; color: #fff; margin-top: 6px; }

/* Footer */
.site-footer { padding: 40px 0 32px; font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer-legal p { margin: 0; }

/* Cookie notice */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 50;
  max-width: 420px; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 32px rgba(23, 32, 43, .14);
  font-size: 15px; line-height: 1.5;
}
.cookie-banner strong { display: block; color: var(--ink); margin-bottom: 4px; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-actions .btn { flex: 1; padding: 9px 16px; font-size: 15px; cursor: pointer; font-family: inherit; }

/* Privacy page */
.doc { max-width: 720px; padding: 64px 24px 96px; }
.doc h1 { font-size: 36px; margin-bottom: 8px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

/* Responsive */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-cta { margin-top: 16px; text-align: center; }

  .hero-grid, .tab-panel, .team, .contact-inner, .two-col { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .two-col, .tab-panel, .team { gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .device-list { grid-template-columns: 1fr 1fr; }
  .apps { grid-template-columns: 1fr; }
  .assurance ul { grid-template-columns: 1fr; }
  .phones {
    display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -24px; padding: 4px 24px 12px;
  }
  .phone-fig { flex: 0 0 auto; scroll-snap-align: center; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 64px; }
  .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .steps, .device-list { grid-template-columns: 1fr; }
  .device-photo { height: 200px; }
  .queue li { grid-template-columns: 48px 1fr; }
  .queue .level { grid-column: 2; justify-self: start; }
  .nav { padding: 8px 16px 20px; }
  .assurance { padding: 24px 20px; }
  .phones { margin: 0 -16px; padding: 4px 16px 12px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .tab-list button { padding: 10px; font-size: 15px; }
}
