/* Cloud UniFi site stylesheet. One file, no build step.
   Order: fonts, tokens, base, components, header, sections (in page order), footer,
   tablet header (< 960px), phone layout (< 760px, per the phone artboard), touch, reduced motion. */

/* ---------- Fonts ---------- */

/* Inter 4.1 variable (roman), self-hosted from the rsms/inter release; licence in /fonts/OFL.txt. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
}

/* Arial scaled to Inter's metrics, so text does not move when Inter swaps in. */
@font-face {
  font-family: "Inter fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  --ink: #1E0E62;          /* brand, headings, primary buttons */
  --body: #4C5A6B;         /* body grey */
  --hairline: #E6E7EF;
  --tint: #F6F5FC;         /* shaded sections */
  --surface: #F7F8FC;      /* panel bars, phone UISP band */
  --link-hover: #4F3DF5;
  --status: #0B5C36;
  --status-bg: #E4F5EA;
  --white: #FFFFFF;
  --nav-ink: #3A3560;      /* nav links */
  --control: #C9CCDB;      /* outline button border */
  --caption: #5B6478;      /* figure caption */
  --on-ink-muted: #D9D5F2; /* secondary text and links on --ink (11.4:1) */
  --on-ink-line: rgba(217, 213, 242, 0.24); /* rules on --ink */
  --on-ink-fill: rgba(255, 255, 255, 0.12); /* initials avatar on --ink */

  --font: "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: 24px;
  --tap: 44px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-card: 12px;
  --radius-lg: 14px;
  --shadow-panel: 0 30px 70px -44px rgba(30, 14, 98, 0.45);

  --h1: clamp(40px, 4.9vw, 64px);
  --h2: clamp(28px, 3vw, 40px);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--white);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
h1, h2, h3 { font-weight: 700; }
img, svg { display: block; max-width: 100%; }

/* Component lists only; prose lists (guides) keep their bullets. */
.nav-list, .menu-list, .hero-points, .facts-list, .benefit-list, .feature-grid,
.plans, .plan-includes ul, .guide-list, .footer-col ul { padding: 0; list-style: none; }
img { height: auto; }

a { color: var(--ink); text-underline-offset: 0.2em; }
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Components ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--link-hover); border-color: var(--link-hover); color: var(--white); }
.btn-outline { background: var(--white); border-color: var(--control); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--link-hover); }
.btn-lg { min-height: 52px; padding: 14px 26px; border-radius: var(--radius); font-size: 16px; }
.btn-md { padding: 11px 20px; border-radius: var(--radius); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
  text-underline-offset: 5px;
}

.section-title {
  font-size: var(--h2);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.lede { color: var(--body); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: 48px;
}
.section-head .section-title { flex: 1 1 420px; max-width: 600px; }
.section-head .lede { flex: 1 1 320px; max-width: 420px; }

/* Two columns: a heading side and a content side (why, portal, questions). */
.split { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.split-side { flex: 1 1 300px; max-width: 380px; }
.split-main { flex: 999 1 520px; min-width: 0; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--hairline);
  background: var(--white);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 12px 26px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  margin-right: auto;
}
.brand img { width: auto; height: 34px; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 26px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 7px;        /* hit area at least 44px wide, without moving the text */
  margin: 0 -7px;
  color: var(--nav-ink);
  text-decoration: none;
}
.nav-list a:hover { color: var(--link-hover); }

.header-cta { font-size: 14.5px; }

/* Phone and tablet menu: a <details>, so it opens without JavaScript. Hidden on wide screens. */
.menu { display: none; }
.menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--control);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { border-color: var(--ink); }
.menu-icon-close { display: none; }
.menu[open] .menu-icon-open { display: none; }
.menu[open] .menu-icon-close { display: block; }

.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 4px var(--gutter) 12px;
  border-bottom: 1px solid var(--hairline);
  background: var(--white);
  box-shadow: 0 24px 40px -28px rgba(30, 14, 98, 0.35);
}
.menu-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.menu-list li:last-child a { border-bottom: 0; }
.menu-list a:hover { color: var(--link-hover); }

/* ---------- Hero ---------- */

.hero { background: var(--tint); }

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 64px;
  padding-top: 88px;
  padding-bottom: 96px;
}

.hero-copy {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-eyebrow { font-size: 14px; font-weight: 500; color: var(--body); }

.hero-title {
  font-size: var(--h1);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero-lede {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 6px;
}
.hero-actions .text-link { padding: 0 4px; font-size: 15.5px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 14px;
  color: var(--body);
}

.hero-figure { flex: 1 1 440px; min-width: 0; }
.hero-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--caption);
  text-align: right;
}

/* The client portal, drawn in HTML with sample data. */
.panel {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-panel);
}

.panel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.panel-title { font-size: 14px; font-weight: 600; }
.panel-host { font-size: 13px; color: var(--body); }

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 22px 24px;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.panel-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.panel-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--body);
}
.badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--status-bg);
  color: var(--status);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.panel-open {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
}
.panel-tabs span { padding: 8px 0 10px; }
.panel-tabs .is-current {
  margin-bottom: -1px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.panel-stats dt, .panel-inform dt { font-size: 13px; color: var(--body); }
.panel-stats dd { font-size: 16px; font-weight: 600; }

.meter {
  display: block;
  max-width: 150px;
  height: 4px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--hairline);
}
.meter-fill { display: block; width: 74%; height: 4px; border-radius: 2px; background: var(--ink); }

.panel-inform { padding-top: 16px; border-top: 1px solid var(--hairline); }
.panel-inform dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.panel-inform code { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.panel-copy { font-size: 13px; font-weight: 600; color: var(--link-hover); }

/* ---------- Facts strip ---------- */

.facts { border-bottom: 1px solid var(--hairline); }
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fact { padding: 28px 24px 28px 0; }
.fact:last-child { padding-right: 0; }
.fact-title {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.fact-text { display: block; font-size: 14.5px; color: var(--body); }

/* ---------- Benefits ---------- */

.benefits-inner { padding-top: 96px; padding-bottom: 88px; }

.benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.benefit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.benefit h3 { font-size: 17px; line-height: 1.4; }
.benefit p { font-size: 15px; color: var(--body); }

/* ---------- The console you already know ---------- */

.console {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
/* DOM order is heading, image, text, list (the phone order). Desktop puts the image in its own column. */
.console-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-top: 88px;
  padding-bottom: 88px;
}
.console-figure { margin: 0; min-width: 0; }
.console-shot {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.console-shot img { display: block; max-width: 100%; height: auto; }
.console-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--caption);
}
.console-text { color: var(--body); }
.console-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--hairline); }
.console-list li {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  font-weight: 500;
}
@media (min-width: 900px) {
  .console-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 64px;
  }
  .console-figure { grid-column: 1; grid-row: 1 / 6; align-self: center; }
  .console-title { grid-column: 2; grid-row: 2; }
  .console-text { grid-column: 2; grid-row: 3; }
  .console-list { grid-column: 2; grid-row: 4; }
}

/* ---------- Why the cloud ---------- */

.why-inner { padding-top: 96px; padding-bottom: 40px; }
.rows { border-top: 1px solid var(--hairline); }
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.row h3 { flex: 0 0 220px; font-size: 16px; line-height: 1.6; }
.row p { flex: 1 1 300px; min-width: 0; color: var(--body); }

/* ---------- Client portal ---------- */

.portal-inner { padding-top: 56px; padding-bottom: 96px; }
.portal-side { display: flex; flex-direction: column; gap: 16px; }
.portal-side .btn { align-self: flex-start; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 40px;
}
.feature-grid h3 { margin-bottom: 4px; font-size: 16px; line-height: 1.5; }
.feature-grid p { font-size: 15px; color: var(--body); }

/* ---------- Pricing (UniFi and UISP) ---------- */

.pricing {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--tint);
}
.pricing-inner, .uisp-inner { padding-top: 96px; padding-bottom: 96px; }

.pricing-head { gap: 12px 40px; margin-bottom: 32px; }
.pricing-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.pricing-terms { font-size: 15px; color: var(--body); }

/* Monthly / annual: two radios drawn as a segmented control. */
.interval {
  display: inline-flex;
  min-inline-size: 0;
  padding: 0;
  border: 1px solid var(--control);
  border-radius: var(--radius-sm);
  background: var(--white);
  visibility: hidden; /* the toggle does nothing without JS; the space stays reserved */
}
.js .interval { visibility: visible; }
.interval input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.interval label {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 18px;
  color: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.interval label:first-of-type { border-radius: 7px 0 0 7px; }
.interval label:last-of-type { border-radius: 0 7px 7px 0; }
.interval label:hover { color: var(--ink); }
.interval input:checked + label { background: var(--ink); color: var(--white); }
.interval input:focus-visible + label { outline: 2px solid var(--link-hover); outline-offset: 2px; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); /* five across from about 1000px */
  gap: 14px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--white);
}
.plan-featured { padding: 23px; border: 2px solid var(--ink); }

/* Card order: name, price, devices, detail, Subscribe. The name and detail share one wrapper
   so the phone row can show "P15 · 1 custom domain" on one line. */
.plan-meta { display: contents; }
.plan-detail { order: 1; }
.plan::after { content: ""; order: 1; flex: 1 0 12px; }
.plan-cta { order: 2; }

.plan-name { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--body); }
.plan-cost { display: flex; flex-direction: column; }
.plan-price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  min-width: 6ch; /* a floor for short values so the swap does not jitter; NOT sized to the longest value ("CA$3,360", 8 chars): 8ch is wider than the text and overflows five-across cards and squeezes the phone rows */
  font-variant-numeric: tabular-nums;
}
.plan-period { font-size: 13px; color: var(--body); }
/* Five cards across: an 8-character price such as "CA$2,400" must fit the card's content box, which is only ~125px
   wide at 760-1024px. The size scales with the viewport and tops out at 35px. */
@media (min-width: 760px) { .plan-price { font-size: clamp(25px, 2.5vw, 35px); } }
.plan-devices { font-size: 15px; font-weight: 600; }
.plan-detail { font-size: 14px; color: var(--body); }

.plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 11px 12px;
  border: 1px solid var(--control);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.plan-cta:hover { border-color: var(--ink); color: var(--link-hover); }
.plan-featured .plan-cta { border-color: var(--ink); background: var(--ink); color: var(--white); }
.plan-featured .plan-cta:hover { border-color: var(--link-hover); background: var(--link-hover); color: var(--white); }

.price-note { margin-top: 14px; font-size: 14px; color: var(--body); }

.plan-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--body);
}
.plan-includes-title { font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--ink); }
.plan-includes ul { display: flex; flex-wrap: wrap; gap: 6px 28px; }

.pricing-more { margin-top: 14px; font-size: 15px; color: var(--body); }
.pricing-more a { font-weight: 600; }

.uisp-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 40px;
}

/* ---------- Customer reviews ---------- */

/* The homepage band, rendered by reviews/render.js renderHomeBlock between the reviews markers.
   One pick: a single wide quote (.reviews-band-single). Two to four: a two-column grid (.reviews-band-grid),
   one column on phones. Text and links are white or --on-ink-muted on --ink (at least 11:1). */
.reviews-band { background: var(--ink); color: var(--white); }
.reviews-band a { color: var(--white); text-underline-offset: 0.2em; }
.reviews-band a:hover { color: var(--white); text-decoration-thickness: 2px; }
.reviews-band :focus-visible { outline-color: var(--white); }

.reviews-band-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 96px;
  padding-bottom: 96px;
}
.reviews-band-single .reviews-band-inner { max-width: 900px; gap: 20px; }

.reviews-band-list { display: grid; gap: 48px 64px; padding: 0; list-style: none; }
.reviews-band-grid .reviews-band-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reviews-band-grid .reviews-band-item { padding-top: 28px; border-top: 1px solid var(--on-ink-line); }

.reviews-band .review-quote { display: flex; flex-direction: column; gap: 22px; height: 100%; }
.reviews-band .review-quote-text {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.reviews-band-single .review-quote-text {
  font-size: clamp(21px, 2.3vw, 29px);
  line-height: 1.42;
  letter-spacing: -0.015em;
}
.reviews-band .review-quote-text p + p { margin-top: 0.6em; }
.reviews-band .review-quote-text p:first-child::before { content: "\201C"; }
.reviews-band .review-quote-text p:last-child::after { content: "\201D"; }

.reviews-band .review-cite {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  font-size: 14.5px;
  line-height: 1.5;
}
.reviews-band .review-photo,
.reviews-band .review-avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; }
.reviews-band .review-photo { object-fit: cover; }
.reviews-band .review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--on-ink-fill);
  font-size: 16px;
  font-weight: 700;
}
.reviews-band .review-who { min-width: 0; }
.reviews-band .review-name { font-size: 15px; font-weight: 700; }
.reviews-band .review-meta { color: var(--on-ink-muted); overflow-wrap: anywhere; }
/* Inline text links are exempt from the 44px target rule; 4px keeps the hit areas of adjacent lines from overlapping. */
.reviews-band .review-meta a { padding: 4px 6px; margin: 0 -6px; color: inherit; }
.reviews-band .review-meta a:hover { color: var(--white); }

.reviews-band-more { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-size: 15px; }
.reviews-band-more a { display: inline-flex; align-items: center; min-height: var(--tap); }
.reviews-band-more a:first-child { color: var(--on-ink-muted); }
.reviews-band-more a:first-child:hover { color: var(--white); }
.reviews-band-more .review-all { font-weight: 600; }

/* The /reviews/ page (reviews/render.js renderReviewsPage). Its article layout is guides/guides.css. */
.reviews-page .reviews-list { margin: 28px 0 8px; }
.reviews-page .review-card {
  margin: 0 0 16px;
  padding: 22px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--white);
}
.reviews-page .review-head { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; }
.reviews-page .review-photo,
.reviews-page .review-avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; }
.reviews-page .review-photo { object-fit: cover; }
.reviews-page .review-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}
.reviews-page .review-who { min-width: 0; }
.reviews-page .review-who p { margin: 0; }
.reviews-page .review-name { color: var(--ink); font-weight: 700; line-height: 1.45; }
.reviews-page .review-meta { color: var(--body); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.reviews-page .review-meta a { padding: 4px 6px; margin: 0 -6px; }
.reviews-page .review-linkedin { font-weight: 600; }
.reviews-page .review-body { color: var(--ink); }
.reviews-page .review-body p { margin: 0 0 12px; }
.reviews-page .review-body p:last-child { margin-bottom: 0; }
.reviews-page .review-disclosure { margin: 12px 0 0; font-size: 14.5px; }
.reviews-page .review-reply {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--tint);
  font-size: 15.5px;
}
.reviews-page .review-reply p { margin: 0 0 8px; }
.reviews-page .review-reply p:last-child { margin-bottom: 0; }
.reviews-page .review-reply-title { color: var(--ink); font-weight: 700; }
.reviews-page .reviews-empty { margin: 28px 0 8px; font-size: 17px; }
.reviews-page .reviews-leave {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--ink);
}
.reviews-page .reviews-policy { margin-top: 48px; border-top: 1px solid var(--hairline); }
.reviews-page .reviews-policy h2 { margin-top: 36px; }
.reviews-page .reviews-policy li { margin: 10px 0; }

/* ---------- Guides ---------- */

.guides-inner { padding-top: 96px; padding-bottom: 56px; }
.guides-head { gap: 12px 40px; margin-bottom: 36px; }

.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 40px;
  border-top: 1px solid var(--hairline);
}
.guide-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}
.guide-text { display: flex; flex-direction: column; gap: 4px; }
.guide-title { font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.guide-desc { font-size: 15px; color: var(--body); }
.guide-chevron { display: none; flex: 0 0 auto; }

/* ---------- Common questions ---------- */

.faq-inner { padding-top: 56px; padding-bottom: 96px; }
.faq-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.qa-list { border-top: 1px solid var(--hairline); }
.qa { padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.qa h3 { margin-bottom: 6px; font-size: 17px; line-height: 1.4; }
.qa p { color: var(--body); }

/* ---------- Contact ---------- */

.contact { border-top: 1px solid var(--hairline); background: var(--tint); }
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 80px;
  padding-bottom: 80px;
}
.contact-copy { flex: 1 1 420px; min-width: 0; }
.contact-copy .section-title { margin-bottom: 8px; }
.contact-copy p { font-size: 17px; color: var(--body); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.contact-note { flex: 0 0 100%; margin: 0; font-size: 15px; color: var(--body); }

.contact-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  background: var(--white);
  color: var(--body);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.contact-dialog[open] { display: flex; flex-direction: column; }
.contact-dialog::backdrop { background: rgba(30, 14, 98, 0.45); }
.contact-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 14px 4px 24px; }
.contact-dialog-head h2 { margin: 0; font-size: 22px; line-height: 1.3; color: var(--ink); }
.contact-dialog-close {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 44px; height: 44px;
  padding: 0; background: none; border: 0; border-radius: 8px; color: var(--ink); cursor: pointer;
}
.contact-dialog-close:hover { background: var(--tint); }
.contact-dialog iframe { display: block; width: 100%; padding: 0; height: min(600px, calc(100dvh - 140px)); min-height: 0; border: 0; }
.contact-dialog-fallback { flex: none; margin: 0; padding: 8px 24px 14px; font-size: 14px; color: var(--body); }
@media (prefers-reduced-motion: no-preference) {
  .contact-dialog[open] { animation: contact-dialog-in 160ms ease-out; }
  @keyframes contact-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--hairline); }

.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 64px;
  padding-top: 56px;
  padding-bottom: 28px;
}
.footer-brand {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
}
.footer-brand img { align-self: flex-start; width: auto; height: 32px; } /* not stretched across the column */
.footer-brand p { font-size: 14.5px; color: var(--body); }

.footer-nav {
  display: grid;
  flex: 999 1 480px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px 32px;
  min-width: 0;
  font-size: 14.5px;
}
.footer-heading { margin-bottom: 6px; font-weight: 700; font-size: 14.5px; line-height: 1.6; }
.footer-col ul { display: flex; flex-direction: column; gap: 2px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-width: var(--tap);
  padding: 5px 0;
  color: var(--body);
  text-decoration: none;
}
.footer-col a:hover { color: var(--link-hover); }

.footer-legal {
  padding-top: 20px;
  padding-bottom: 36px;
  font-size: 13.5px;
  color: var(--body);
}

/* ---------- Tablet: the nav no longer fits on one line ---------- */

@media (max-width: 959.98px) {
  .nav-desktop { display: none; }
  .menu { display: block; }
  .header-bar { gap: 6px; }
}

/* ---------- Phone (per the phone artboard) ---------- */

@media (max-width: 759.98px) {
  :root { --gutter: 16px; --h2: 28px; }

  body { line-height: 1.55; }

  /* Pricing moves up to directly after the benefits; everything else keeps document order. */
  main { display: flex; flex-direction: column; }
  main > .hero, main > .facts, main > .benefits { order: -2; }
  main > .pricing { order: -1; }

  .btn-lg { width: 100%; }

  .section-head { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 26px; }
  .section-head .section-title, .section-head .lede { flex: none; max-width: none; }
  .section-title { line-height: 1.12; }
  .split { flex-direction: column; gap: 20px; }
  .split-side, .split-main { flex: none; max-width: none; }

  /* Header */
  .header-bar { padding-top: 10px; padding-bottom: 10px; }
  .brand img { height: 28px; }
  .header-cta { padding: 0 14px; }

  /* Hero */
  .hero-inner { gap: 32px; padding-top: 40px; padding-bottom: 44px; }
  .hero-copy { flex-basis: 100%; gap: 18px; }
  .hero-title { font-size: 38px; line-height: 1.05; }
  .hero-lede { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 4px; }
  .hero-actions .text-link { justify-content: center; }
  .hero-points { gap: 4px 16px; font-size: 13.5px; }
  .hero-figure { flex-basis: 100%; }
  .hero-figure figcaption { text-align: left; }

  .panel { border-radius: var(--radius-card); box-shadow: 0 24px 50px -36px rgba(30, 14, 98, 0.45); }
  .panel-bar { padding: 11px 16px; }
  .panel-body { gap: 14px; padding: 16px; }
  .panel-id { gap: 5px; }
  .panel-name { font-size: 18px; }
  .panel-status { font-size: 13.5px; }
  .badge { padding: 2px 9px; font-size: 12px; }
  .panel-open, .panel-tabs, .panel-inform, .meter { display: none; }
  .panel-stats { gap: 14px 16px; padding-top: 14px; border-top: 1px solid var(--hairline); }
  .panel-stats dt { font-size: 12.5px; }
  .panel-stats dd { font-size: 15px; }

  /* Facts: two by two */
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; padding-right: 0; }
  .fact, .fact:last-child { padding: 18px 16px; }
  .fact:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .fact-title { font-size: 19px; }
  .fact-text { font-size: 13.5px; }

  /* Benefits: one list */
  .benefits-inner { padding-top: 52px; padding-bottom: 44px; }
  .benefit-list { display: block; border-top: 2px solid var(--ink); }
  .benefit { gap: 3px; padding: 16px 0; border-top: 0; border-bottom: 1px solid var(--hairline); }
  .benefit h3 { font-size: 16.5px; }

  /* Why */
  .why-inner { padding-top: 48px; padding-bottom: 48px; }
  .row { display: block; padding: 16px 0; }
  .row h3 { margin-bottom: 3px; font-size: 16.5px; line-height: 1.4; }
  .row p { font-size: 15px; }

  /* Portal */
  .portal-inner { padding-top: 4px; padding-bottom: 48px; }
  .portal-side .btn { align-self: stretch; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 8px; }

  /* Pricing: compact rows in one card */
  .pricing-inner, .uisp-inner { padding-top: 48px; padding-bottom: 48px; }
  .pricing-head { margin-bottom: 22px; }
  .pricing-aside { align-items: flex-start; gap: 14px; }
  .pricing-terms { font-size: 14.5px; }

  /* Rows share one column grid (subgrid): the price column is as wide as the widest price in the
     table, at least 68px, so the columns line up whatever the amount or currency. */
  .plans {
    display: grid;
    grid-template-columns: minmax(68px, max-content) minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    background: var(--white);
  }
  .plan, .plan-featured {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 84px minmax(0, 1fr) auto; /* without subgrid support */
    grid-template-columns: subgrid;
    grid-template-areas:
      "cost devices cta"
      "cost meta    cta";
    align-items: center;
    gap: 0 12px;
    padding: 14px 14px 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
  }
  .plan:last-child { border-bottom: 0; }
  .plan-featured { box-shadow: inset 3px 0 0 var(--ink); }
  .plan::after { display: none; }

  .plan-cost { grid-area: cost; }
  .plan-devices { grid-area: devices; align-self: end; font-size: 15px; font-weight: 700; }
  .plan-meta { display: block; grid-area: meta; align-self: start; font-size: 13px; line-height: 1.45; color: var(--body); }
  .plan-name, .plan-detail { display: inline; font-size: 13px; font-weight: 400; color: var(--body); }
  .plan-detail::before { content: "\00B7"; content: "\00B7" / ""; margin-right: 0.35em; }
  .plan-cta { grid-area: cta; padding: 0 14px; font-size: 14px; }
  .plan-price { font-size: 24px; }
  .plan-period { font-size: 12px; line-height: 1.3; }

  .price-note { font-size: 13.5px; }
  .plan-includes { margin-top: 18px; }
  .plan-includes, .plan-includes ul { gap: 4px 18px; }
  .pricing-more { margin-top: 12px; font-size: 14.5px; }

  .uisp { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--surface); }
  .uisp-inner { padding-top: 44px; padding-bottom: 44px; }
  .uisp-intro { gap: 14px; margin-bottom: 18px; }
  .uisp-intro .section-title, .contact .section-title { font-size: 26px; }
  .uisp-intro .lede { font-size: 15.5px; }

  /* Customer reviews: the band stacks to one column; review cards tighten */
  .reviews-band-inner { gap: 24px; padding-top: 52px; padding-bottom: 52px; }
  .reviews-band-grid .reviews-band-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .reviews-band-grid .reviews-band-item { padding-top: 24px; }
  .reviews-band .review-quote { gap: 18px; }
  .reviews-band .review-quote-text { font-size: 17px; }
  .reviews-band-single .review-quote-text { font-size: 20px; letter-spacing: -0.01em; }
  .reviews-page .review-card { padding: 18px 16px; }
  .reviews-page .review-head { gap: 12px; }
  .reviews-page .review-photo,
  .reviews-page .review-avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 16px; }

  /* Guides: a list with chevrons */
  .guides-inner { padding-top: 52px; padding-bottom: 36px; }
  .guides-head { margin-bottom: 18px; }
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .guide-list a { min-height: 52px; padding: 12px 0; }
  .guide-title { font-size: 15.5px; font-weight: 600; }
  .guide-desc { font-size: 14.5px; }
  .guide-chevron { display: block; }

  /* Questions: the help-centre link moves below the list */
  .faq-inner { padding-top: 20px; padding-bottom: 48px; }
  .faq-side { display: contents; }
  .qa-list { order: 1; }
  .faq-more { order: 2; margin-top: -6px; }
  .qa { padding: 16px 0; }
  .qa h3 { margin-bottom: 4px; font-size: 16px; }
  .qa p { font-size: 15px; }

  /* Contact */
  .contact-inner { flex-direction: column; align-items: stretch; gap: 18px; padding-top: 44px; padding-bottom: 44px; }
  .contact-copy { flex: none; }
  .contact-copy p { font-size: 16px; }
  .contact-actions { flex-direction: column; gap: 12px; }
  .contact-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .contact-dialog-head { padding-left: 16px; }
  .contact-dialog-fallback { padding-left: 16px; padding-right: 16px; }
  .contact-dialog iframe { height: min(600px, calc(100dvh - 130px)); }

  /* Footer */
  .footer-main { flex-direction: column; gap: 22px; padding-top: 36px; padding-bottom: 12px; }
  .footer-brand { flex: none; }
  .footer-brand img { height: 28px; }
  .footer-nav { flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; font-size: 15px; }
  .footer-col ul { gap: 0; }
  .footer-col a { min-height: var(--tap); }
  .footer-legal { padding-top: 12px; padding-bottom: 32px; font-size: 13px; }
}

/* Very narrow phones: the Subscribe button drops to its own full-width line so the detail text keeps its column. */
@media (max-width: 380px) { .plan-price { font-size: 21px; } } /* 8-char prices ("CA$2,400") would squeeze the devices column */
@media (max-width: 340px) {
  .plan, .plan-featured {
    grid-template-areas:
      "cost devices devices"
      "cost meta    meta"
      "cta  cta     cta";
    row-gap: 10px;
  }
  .plan-cta { justify-self: stretch; min-height: var(--tap); }
}

/* Touch screens at any width: footer links get full-size targets too. */
@media (pointer: coarse) {
  .footer-col a { min-height: var(--tap); }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
