/* Ara Connect: marketing page in the ara-pay.com family */
@font-face {
  font-family: "Aptos Narrow";
  src: url("/assets/fonts/Aptos-Narrow-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aptos Narrow";
  src: url("/assets/fonts/Aptos-Narrow-Bold-Italic-sub.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Aptos";
  src: url("/assets/fonts/Aptos.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Surfaces */
  --paper: #fbfaf7;
  --white: #ffffff;
  --blue-50: #eef3fb;
  /* Text */
  --ink: #0a0e1a;
  --text: #343a47;
  --muted: #4c5362;
  /* Blues */
  --blue: #1a519c;
  --blue-700: #0f3370;
  --blue-800: #0a2552;
  /* Borders */
  --border: rgba(15, 51, 112, .14);
  --border-subtle: rgba(15, 51, 112, .08);
  /* Status */
  --green-text: #1b7440;
  --green-bg: #e6f6ec;
  --red: #c63a25;
  --amber-bg: #fff4d8;
  --amber-text: #8a5d00;
  /* Orange */
  --orange: #f4802c;
  --eyebrow: #a84e0b;
  --on-navy: #c3cde0;
  /* Gradients */
  --grad-flag: linear-gradient(108deg, #f4802c 0%, #f89c25 28%, #fbb71d 62%, #ffd316 100%);
  /* Light-background accent: every stop is at least 3:1 on #EEF3FB and cream (large text). */
  --grad-flag-light: linear-gradient(108deg, #c2410c 0%, #d2570b 50%, #d66a0a 100%);
  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(10, 37, 82, .06), 0 1px 2px rgba(10, 37, 82, .04);
  --shadow-lg: 0 18px 40px rgba(10, 37, 82, .12), 0 4px 10px rgba(10, 37, 82, .06);
  --shadow-phone: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 28px 50px -24px rgba(15, 51, 112, .45), 0 10px 20px -12px rgba(10, 14, 26, .25);
  /* Type */
  --font-head: "Aptos Narrow", "Aptos", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Aptos", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Layout */
  --gutter: clamp(16px, 5vw, 64px);
  --header-h: 68px;
  --thumb: 132px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  /* Keeps anchor targets and keyboard focus clear of the sticky header. */
  scroll-padding-top: calc(var(--header-h) + 16px); scroll-padding-bottom: 16px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--font-head); font-weight: 700; letter-spacing: 0; text-wrap: balance; }
p, li { margin: 0; text-wrap: pretty; }
b, strong { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; top: 0; left: 0; margin: 0; padding: 0; border: 0; font-size: 1rem; line-height: 1; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; pointer-events: none; }
/* Keeps a phrase on one line when it fits, but still wraps under user text spacing (WCAG 1.4.12). */
.nowrap { display: inline-block; }
/* Stops a hyphenated word (full-screen) from splitting across lines. */
.nobr { white-space: nowrap; }

.container { width: min(1152px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font: 700 16px/1.2 var(--font-head); text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Shared pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12.5px/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  color: var(--eyebrow); white-space: nowrap;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-flag); box-shadow: 0 0 0 3px rgba(251, 183, 29, .18); flex: none; }

.accent {
  font-style: italic;
  background: var(--grad-flag-light);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .08em; margin-right: -.05em;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent { color: #a84e0b; background: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border: 2px solid transparent; border-radius: 999px;
  background: var(--blue); color: #fff;
  font: 700 16px/1.2 var(--font-head); text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--blue-700); }
.btn .i-dl { width: 18px; height: 18px; flex: none; }
.btn-lg { min-height: 52px; font-size: 17px; }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { background: var(--blue-50); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font: 700 16px/1.2 var(--font-head); color: var(--blue); text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.section { padding: 48px 0; }
.section-head { max-width: 820px; }
.section-head h2, .faq-head h2 { margin-top: 12px; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
.lead { margin-top: 12px; font-size: 18px; color: var(--muted); }

.device {
  position: relative; width: 100%;
  padding: 6px; border-radius: 32px;
  background: linear-gradient(160deg, #273249, #0d1322 55%);
  box-shadow: var(--shadow-phone);
}
.device img { width: 100%; border-radius: 26px; background: #faf6f1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: 0 1 auto; min-width: 0;
  color: var(--ink); text-decoration: none;
  font: 700 20px/1 var(--font-head);
}
.brand img { width: 40px; height: 40px; flex: none; }
.nav { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 28px; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--text); font: 700 16px/1 var(--font-head); text-decoration: none;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-50); }
.btn-nav { margin-left: auto; min-height: 44px; padding: 8px 20px; font-size: 15px; gap: 8px; }
.btn-nav .i-dl { width: 16px; height: 16px; }
.lbl-md, .lbl-sm { display: none; }

.menu { display: none; position: relative; }
.menu summary {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  cursor: pointer; list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu[open] summary { background: var(--blue-50); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: 248px;
  max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; gap: 2px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.menu-panel a {
  display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 12px;
  color: var(--ink); font: 700 16px/1.2 var(--font-head); text-decoration: none;
}
.menu-panel a:hover { background: var(--blue-50); }
.menu-panel .menu-cta { margin-top: 6px; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 999px; background: var(--blue); color: #fff; }
.menu-panel .menu-cta:hover { background: var(--blue-700); }
.menu-cta .i-dl { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #eef3fb 0%, #fbfaf7 100%); padding: 40px 0 36px; }
.hero-grid { display: grid; gap: 40px; }
.hero-copy { min-width: 0; }
.hero h1 { margin-top: 18px; font-size: clamp(44px, 5.6vw, 72px); line-height: 1.05; }
.hero-sub { margin-top: 20px; max-width: 34em; font-size: 18px; color: var(--text); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.next {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font: 700 16px/1.3 var(--font-head); color: var(--ink);
}
.next li { display: inline-flex; align-items: center; gap: 10px; }
.next-num {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--blue); color: #fff; font: 700 13px/1 var(--font-head);
}
.meta {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; font-size: 14px; line-height: 1.5; color: var(--muted);
}
.meta li { white-space: nowrap; }
.meta li:not(:first-child)::before { content: "\00B7"; content: "\00B7" / ""; margin: 0 8px; }

.hero-side { min-width: 0; width: 100%; max-width: 560px; }
.hero-visual { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); align-items: start; }
.state { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.state figcaption { margin-top: 14px; font: 700 15px/1.3 var(--font-head); text-align: center; }
.state-ok figcaption { color: var(--green-text); }
.state-alarm figcaption { color: var(--red); }
.state-chip {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  padding: 5px 12px; border: 1px solid transparent; border-radius: 999px;
  font: 700 14px/1.2 var(--font-head); letter-spacing: .02em;
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.chip-ok { color: var(--green-text); background: var(--green-bg); box-shadow: inset 0 0 0 1px #bfe5cd; }
.chip-alarm { color: #fff; background: var(--red); }
.device-alarm { box-shadow: var(--shadow-phone), 0 0 0 6px rgba(198, 58, 37, .08), 0 26px 60px -22px rgba(198, 58, 37, .55); }
.bell {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; border: 3px solid #fff;
  box-shadow: 0 8px 18px -6px rgba(198, 58, 37, .7);
}
.bell svg { width: 22px; height: 22px; }

.drop { position: relative; align-self: center; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.drop-wire { position: absolute; top: 22px; left: 8px; right: 12px; border-top: 2px dashed #a9bad3; }
.drop-arrow { position: absolute; top: 17.5px; right: 4px; width: 0; height: 0; border-left: 9px solid #a9bad3; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.drop-badge {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--red); border: 2px solid #f1c2b9;
  box-shadow: 0 6px 16px -8px rgba(198, 58, 37, .6);
}
.drop-badge svg { width: 24px; height: 24px; }
.drop-text { font: 700 14px/1.2 var(--font-head); color: var(--red); white-space: nowrap; }

.demo-note { margin-top: 22px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ---------- How it works ---------- */
.how { padding: 52px 0 48px; }
.how-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 32px; }
.how-step { position: relative; min-width: 0; }
.how-panel { border-radius: 20px; padding: 24px; display: flex; justify-content: center; }
.how-panel .device { max-width: 176px; }
.how-num {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: #fff; font: 700 19px/1 var(--font-head);
}
.tone-red .how-num { background: var(--red); }
.tone-blue .how-num { background: var(--blue); }
.tone-green .how-num { background: var(--green-text); }
.how-text h3 { font-size: 20px; line-height: 1.25; }
.how-text p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--text); }

.callout {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 24px; padding: 16px 20px; border-radius: 16px;
  background: var(--amber-bg); color: var(--amber-text); box-shadow: inset 0 0 0 1px rgba(138, 93, 0, .14);
  font-size: 16px; line-height: 1.5;
}
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* ---------- Facts band ---------- */
.facts { background: linear-gradient(180deg, var(--paper), var(--white)); }
.band {
  position: relative; padding: 64px; border-radius: 36px;
  background: var(--blue-700); color: #fff; box-shadow: var(--shadow-lg);
}
.fact-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.fact { min-width: 0; }
.fact-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fbb71d; }
.fact-icon svg { width: 22px; height: 22px; }
.fact h3 { margin-top: 16px; color: #fff; font-size: 18px; line-height: 1.3; }
.fact p { margin-top: 6px; color: var(--on-navy); font-size: 15px; line-height: 1.55; }
.fact b { color: #fff; }
.fact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.band :focus-visible { outline-color: #ffd316; }

/* ---------- Set up ---------- */
.setup { background: var(--white); }
.setup .section-head { max-width: none; }
.setup-grid { display: grid; gap: 48px; align-items: start; }
.setup-steps { list-style: none; margin: 30px 0 0; padding: 0; }
.setup-steps li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding-bottom: 18px; }
.setup-steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; border-radius: 2px; background: #d5dfee;
}
.setup-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue);
  font: 700 18px/1 var(--font-head);
}
.setup-steps h3 { padding-top: 8px; font-size: 20px; line-height: 1.25; }
.setup-steps p { margin-top: 6px; font-size: 16px; line-height: 1.55; }
.setup-thumb { display: none; }
.setup-note { margin-top: 4px; padding-left: 58px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.setup-shot { display: flex; flex-direction: column; align-items: flex-end; }
.setup-shot .device { max-width: 260px; }
.setup-shot figcaption { margin-top: 16px; width: 100%; max-width: 260px; font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center; text-wrap: balance; }

.ready {
  margin-top: 36px; padding: 24px 32px; border-radius: 20px;
  background: var(--paper); border: 1px solid var(--border);
  display: grid; gap: 16px;
}
.ready-title { font-size: 20px; line-height: 1.25; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 32px; }
.checklist li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.3 3 2.9 6-6.2' fill='none' stroke='%231b7440' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ready-note { padding-top: 14px; border-top: 1px solid var(--border-subtle); font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: balance; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; align-items: start; }
.faq-head { max-width: 680px; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.faq summary {
  position: relative; display: flex; align-items: center;
  /* The plus circle is positioned, so it never sets the row height: question text sits 17px from the top in one- and two-line rows. */
  min-height: 56px; padding: 17px 60px 17px 24px;
  font: 700 17px/1.3 var(--font-head); color: var(--ink);
  cursor: pointer; list-style: none; border-radius: 16px; text-wrap: balance;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: calc(50% - 14px); width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%231a519c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 24px 18px; font-size: 16px; line-height: 1.55; color: var(--text); }

/* ---------- Closing ---------- */
.closing { padding: 0 0 48px; }
.closing-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 64px; border-radius: 36px;
  background: var(--blue-700); box-shadow: var(--shadow-lg);
}
.closing-mark { width: 58px; height: 48px; }
.closing h2 { margin-top: 20px; color: #fff; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
.closing .accent { background-image: var(--grad-flag); }
.closing p { margin-top: 14px; color: var(--on-navy); font-size: 18px; }
.closing .btn { margin-top: 30px; }
.closing :focus-visible { outline-color: #ffd316; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-800); color: var(--on-navy); padding: 40px 0 20px; font-size: 15px; line-height: 1.5; }
.footer-grid { display: grid; gap: 32px; }
.footer-name { display: flex; align-items: center; gap: 12px; color: #fff; font: 700 18px/1.2 var(--font-head); }
.footer-name img { width: 35px; height: 29px; }
.footer-brand p:not(.footer-name) { margin-top: 10px; }
.footer-h { color: #fff; font: 700 13px/1.2 var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.footer-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--on-navy); text-decoration: underline; text-decoration-color: rgba(195, 205, 224, .4); }
.footer-links a:hover { color: #fff; text-decoration-color: currentColor; }
.site-footer :focus-visible { outline-color: #ffd316; }
.footer-base {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; font-size: 14px;
}

/* ---------- Motion (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn { transition: background-color .15s ease, transform .15s ease; }
  .btn:hover { transform: translateY(-1px); }
  .faq summary::after { transition: transform .2s ease; }
  .bell::after {
    content: ""; position: absolute; inset: -3px; border-radius: 50%;
    border: 2px solid var(--red); animation: ring 1.8s ease-out 2;
    opacity: 0;
  }
  .bell svg { animation: shake 1.8s ease-in-out 2; transform-origin: 50% 15%; }
  @keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
  @keyframes shake { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-12deg); } 20%, 40% { transform: rotate(12deg); } }
}

/* ---------- Wide layouts ---------- */
@media (min-width: 600px) {
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
  /* Each fact spans icon, heading and text rows; subgrid keeps headings and paragraphs on shared lines. */
  .fact { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
  .fact:nth-child(n+3) { padding-top: 36px; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .hero-side { max-width: 480px; }
}
@media (min-width: 760px) {
  .setup-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 40px; }
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; }
  /* Panel, marker, heading and text rows are shared across the three cards, so text lines up even when a heading wraps. */
  .how-step { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .how-text { display: contents; }
  .tone-red .how-panel { background: linear-gradient(180deg, #fdf3f1, #fae4df); }
  .tone-blue .how-panel { background: linear-gradient(180deg, #f3f7fd, #e5edf9); }
  .tone-green .how-panel { background: linear-gradient(180deg, #f1faf4, #ddf2e5); }
  .how-mark { position: relative; margin-top: 20px; }
  .how-step:not(:last-child) .how-mark::after {
    content: ""; position: absolute; top: 19px; left: 52px; right: -20px; height: 2px; border-radius: 2px;
  }
  .tone-red .how-mark::after { background: linear-gradient(90deg, #c63a25, #9fb3d1); }
  .tone-blue .how-mark::after { background: linear-gradient(90deg, #9fb3d1, #1b7440); }
  .how-text h3 { margin-top: 12px; }
  .callout { margin-top: 16px; }
}
@media (min-width: 960px) {
  .hero { padding: 28px 0; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .hero-side { justify-self: end; }
  /* The bell badge overhangs the alarm phone by 14px; this keeps it on the content edge. */
  .hero-visual { padding-right: 14px; }
  /* Sits lower than on tablet so it stays at least 10px clear of the Disconnected chip at 960. */
  .bell { top: -6px; }
  .setup-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 280px); gap: 64px; justify-content: space-between; }
  .setup-shot { padding-top: 8px; }
  .ready { grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; }
  .ready-note { grid-column: 1 / -1; }
  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; }
  .next { font-size: 15px; column-gap: 20px; }
}
@media (min-width: 960px) and (max-width: 1019px) {
  .next { font-size: 14px; column-gap: 16px; }
}
@media (min-width: 1200px) {
  .fact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
  .fact:nth-child(n+3) { padding-top: 0; }
}

/* ---------- Narrow layouts ---------- */
@media (max-width: 959px) {
  .lbl-lg { display: none; }
  .lbl-md { display: inline; }
  .hero-copy { max-width: 680px; }
}
@media (max-width: 899px) {
  .how-steps { gap: 0; }
  .how-step {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) var(--thumb); grid-template-areas: "mark text thumb";
    column-gap: 18px; align-items: start; padding-bottom: 32px;
  }
  .how-step:not(:last-child)::before {
    content: ""; position: absolute; left: 19px; top: 48px; bottom: 8px; width: 2px; border-radius: 2px; background: #d5dfee;
  }
  .how-mark { grid-area: mark; }
  .how-text { grid-area: text; padding-top: 7px; }
  .how-panel { grid-area: thumb; padding: 0; }
  .how-panel .device { max-width: none; padding: 0; background: none; box-shadow: none; border-radius: 16px; }
  .how-panel img { aspect-ratio: 2 / 3; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); }
  /* 2:3 crops that keep whole UI parts and start below the status bar: step 1 from the X circle to the note under
     the button, step 2 from Waiting for connection to the Check connection button, step 3 from the Connected card
     to the tab bar. */
  .tone-red .how-panel img { object-position: 50% 64%; }
  .tone-blue .how-panel img { object-position: 50% 85.5%; }
  .tone-green .how-panel img { object-position: 50% 100%; }
  .callout { margin-top: 8px; }
}
@media (max-width: 759px) {
  :root { --header-h: 60px; }
  .header-row { gap: 10px; }
  .nav { justify-content: flex-end; gap: 6px; }
  .nav-links { display: none; }
  .menu { display: block; }
  .btn-nav { padding: 0 12px; gap: 6px; }
  .btn-nav .i-dl { width: 14px; height: 14px; }

  /* Set up step 4: text column and thumbnail side by side, constant line width. */
  .setup-steps .has-thumb > div { display: grid; grid-template-columns: minmax(0, 1fr) var(--thumb); grid-template-rows: auto auto 1fr; column-gap: 14px; }
  .has-thumb h3 { grid-column: 1; grid-row: 1; }
  .has-thumb p { grid-column: 1; grid-row: 2; }
  .setup-thumb {
    display: block; grid-column: 2; grid-row: 1 / span 3; width: 100%;
    aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 21%;
    border-radius: 16px; border: 1px solid var(--border); background: #faf6f1;
  }
  .setup-shot { display: none; }

  .footer-list { gap: 12px; }
  .footer-links { gap: 0; }
  .footer-links li:last-child { margin-top: 8px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 599px) {
  :root { --thumb: 104px; }
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .how { padding: 36px 0 44px; }
  .section-head h2, .faq-head h2 { margin-top: 10px; }
  .lead { font-size: 17px; }
  .hero { padding: 24px 0 20px; }
  .hero h1 { margin-top: 14px; line-height: 1.06; }
  .hero-sub { margin-top: 14px; font-size: 16px; line-height: 1.5; }
  .hero-actions { margin-top: 20px; gap: 4px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .text-link { width: 100%; justify-content: center; }
  .next { flex-direction: column; gap: 8px; margin-top: 10px; }
  .meta { margin-top: 10px; }
  .hero-grid { gap: 24px; }
  .hero-side { max-width: none; }
  .hero-visual { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); }
  .state figcaption, .drop-text { display: none; }
  .state-chip { margin-bottom: 12px; padding: 4px 10px; font-size: 13px; }
  .device { padding: 5px; border-radius: 24px; }
  .device img { border-radius: 19px; }
  .device-alarm { box-shadow: var(--shadow-phone), 0 0 0 4px rgba(198, 58, 37, .08), 0 20px 40px -18px rgba(198, 58, 37, .55); }
  /* 8px clear of the Disconnected chip above it, and inside the viewport. */
  .bell { top: -4px; right: 4px; width: 36px; height: 36px; border-width: 2px; }
  .bell svg { width: 18px; height: 18px; }
  .drop-badge { width: 36px; height: 36px; }
  .drop-badge svg { width: 20px; height: 20px; }
  /* The chip plus its margin (about 38px) sits above each phone; the same offset centres the badge on the phone frames. */
  .drop { padding-top: 38px; }
  .drop-wire { top: 55px; left: 0; right: 6px; }
  .drop-arrow { top: 51px; right: 0; border-left-width: 7px; border-top-width: 4.5px; border-bottom-width: 4.5px; }
  .demo-note { margin-top: 14px; }

  /* How it works: number and heading on one row, text below, thumbnail on the right. */
  .how-step {
    grid-template-columns: 32px 10px minmax(0, 1fr) 14px var(--thumb);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "mark . head . thumb" "body body body . thumb" ". . . . thumb";
    column-gap: 0; padding-bottom: 28px;
  }
  .how-step:not(:last-child)::before { content: none; }
  .how-text { display: contents; }
  .how-mark { grid-area: mark; }
  .how-num { width: 32px; height: 32px; font-size: 16px; }
  .how-text h3 { grid-area: head; padding-top: 5px; font-size: 18px; }
  .how-text p { grid-area: body; margin-top: 8px; font-size: 15px; }
  .callout { font-size: 15px; padding: 12px 16px; }

  .band { padding: 28px 22px; border-radius: 24px; }
  .fact-grid { gap: 18px; }
  .fact { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; }
  .fact-icon { grid-column: 1; grid-row: 1 / span 2; }
  /* 8px top padding centres the first heading line on the 40px icon; the gap to the text is the same for 1- and 2-line headings. */
  .fact h3 { grid-column: 2; grid-row: 1; margin-top: 0; padding-top: 8px; }
  .fact p { grid-column: 2; grid-row: 2; margin-top: 6px; }

  .setup-steps { margin-top: 24px; }
  .setup-steps li { gap: 14px; padding-bottom: 20px; }
  .setup-steps h3 { font-size: 18px; }
  .setup-steps p { font-size: 15px; }
  .setup-note { padding-left: 0; }
  .ready { margin-top: 28px; padding: 22px 20px; }
  .checklist li { font-size: 15px; }

  .faq summary { min-height: 48px; padding: 13px 54px 13px 18px; font-size: 16.5px; }
  .faq summary::after { right: 16px; }
  .faq details p { padding: 0 18px 18px; font-size: 15px; }

  .closing { padding-bottom: 44px; }
  .closing-card { padding: 40px 22px; border-radius: 24px; }
  .closing p { font-size: 16px; }
  .closing .btn { width: 100%; }

  .site-footer { padding-top: 36px; }
  .footer-grid { gap: 24px; }
  .footer-list { margin-top: 12px; }
  .footer-base { margin-top: 24px; flex-direction: column; }
}
@media (max-width: 389px) {
  .hero h1 { font-size: 42px; }
}
@media (max-width: 374px) {
  :root { --thumb: 88px; }
  .brand { gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .btn-nav { padding: 0 10px; }
  .btn-nav .i-dl { display: none; }
  .meta { font-size: 13px; }
  .meta li:not(:first-child)::before { margin: 0 6px; }
  .lbl-md { display: none; }
  .lbl-sm { display: inline; }
  .hero h1 { font-size: 36px; }
  .setup-steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .setup-steps li:not(:last-child)::before { left: 15px; top: 38px; }
  .setup-num { width: 32px; height: 32px; font-size: 16px; }
  .setup-steps h3 { padding-top: 5px; }
  /* Under 375px the heading takes the full row; the thumbnail sits beside the paragraph only. */
  .how-step { grid-template-areas: "mark . head head head" "body body body . thumb" ". . . . thumb"; }
  .how-text p { margin-top: 10px; }
  .has-thumb h3 { grid-column: 1 / -1; }
  .has-thumb p { margin-top: 8px; }
  .setup-thumb { grid-row: 2 / span 2; margin-top: 10px; }
  /* Keeps the closing heading to two balanced lines. */
  .closing-card { padding-inline: 16px; }
  .closing h2 { font-size: 30px; }
}

/* ---------- Privacy policy page ---------- */
.policy-hero { background: linear-gradient(180deg, #eef3fb 0%, #fbfaf7 100%); padding: 48px 0 32px; }
.policy-hero-grid { display: grid; gap: 28px; }
.policy-hero h1 { margin-top: 16px; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.policy-intro { margin-top: 16px; max-width: 36em; font-size: 18px; }
.policy-meta {
  margin: 0; padding: 20px 24px; display: grid; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.policy-meta dt, .policy-toc-title { font: 700 12.5px/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.policy-meta dd { margin: 4px 0 0; font: 700 17px/1.3 var(--font-head); color: var(--ink); }
.policy-summary {
  margin-top: 8px; padding: 18px 22px; border-radius: 16px;
  background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--border-subtle);
}
.policy-layout { display: grid; gap: 32px; padding: 40px 0 64px; }
.policy-toc { padding: 20px 24px; background: #fff; border: 1px solid var(--border); border-radius: 20px; }
.policy-toc ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: toc; display: grid; }
.policy-toc li { counter-increment: toc; }
.policy-toc a {
  display: flex; align-items: baseline; gap: 8px; padding: 6px 0;
  color: var(--text); font: 700 15.5px/1.3 var(--font-head); text-decoration: none;
}
.policy-toc a::before { content: counter(toc) "."; flex: none; min-width: 1.6em; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.policy-toc a:hover { color: var(--blue); }
.policy-body { min-width: 0; }
/* Cards span the column; running text stays at a readable line length. */
.policy-body section > p, .policy-body section > ul, .policy-body section > h3 { max-width: 68ch; }
.policy-body section + section { margin-top: 44px; }
.policy-body h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; }
.policy-body h3 { margin-top: 24px; font-size: 19px; line-height: 1.3; }
.policy-body p { margin-top: 12px; }
.policy-body h2 + p { margin-top: 14px; }
.policy-body ul { margin: 12px 0 0; padding-left: 22px; }
.policy-body li { margin-top: 8px; }
.policy-body li::marker { color: var(--blue); }
.data-grid { display: grid; gap: 12px; margin-top: 18px; }
.data-card { padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.data-card h3 { margin: 0; font-size: 18px; }
.data-card p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; }
.data-card-none { background: var(--green-bg); border-color: #bfe5cd; box-shadow: none; }
.policy-contact { padding: 28px 32px; border-radius: 24px; background: var(--blue-700); color: var(--on-navy); box-shadow: var(--shadow-lg); }
.policy-contact h2, .policy-contact strong, .policy-contact a { color: #fff; }
.policy-contact :focus-visible { outline-color: #ffd316; }
.footer-links a[aria-current="page"] { color: #fff; font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.policy-body p a:focus-visible, .policy-body li a:focus-visible { outline-width: 2px; outline-offset: 1px; }

@media (min-width: 600px) {
  .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .policy-hero { padding: 56px 0 40px; }
  .policy-hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; }
  .policy-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 48px; }
  .policy-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .policy-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .policy-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; column-gap: 24px; }
}
@media (max-width: 759px) {
  /* 44px rows; a wrapped label keeps its number on the first line. */
  .policy-toc a { min-height: 44px; padding: 11px 0; }
}
@media (max-width: 599px) {
  .policy-hero { padding: 32px 0 24px; }
  .policy-intro { font-size: 16.5px; }
  .policy-summary { padding: 16px 18px; }
  .policy-layout { padding: 28px 0 48px; }
  .policy-toc { padding: 16px 18px; }
  .policy-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; padding: 18px 20px; }
  .policy-meta > div:last-child { grid-column: 1 / -1; }
  .policy-body section + section { margin-top: 36px; }
  .policy-contact { padding: 24px 20px; border-radius: 20px; }
}
