/* ================================================================
   PAGES
================================================================ */
/* ============================================================
   PAGES — shared styling for Contact, Blog, Tutorials, and the
   legal pages (Cookie Policy, Privacy Policy, Terms).
   Reuses the tokens + nav + footer + .btn + .container from
   landing.css / tokens.css so every page reads as one product.
============================================================ */

/* ============================================================
   GENERIC PAGE HERO  (Contact / Blog / Tutorials)
============================================================ */
.phead {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  background: var(--bg-app);
  isolation: isolate;
}
.phead__bg {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
}
.phead__halo {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  opacity: 0.42;
}
.phead__halo--cyan {
  width: 460px; height: 460px;
  background: var(--blue-300);
  top: -160px; left: -140px;
}
.phead__halo--orange {
  width: 460px; height: 460px;
  background: var(--orange-300);
  top: -120px; right: -120px;
}
.phead__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,22,32,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,22,32,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 35%, black 30%, transparent 80%);
}
.phead__inner {
  position: relative;
  max-width: 880px; margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.phead__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-700);
  background: rgba(0,181,226,0.10);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.phead__eyebrow__dot {
  width: 6px; height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
}
.phead__head {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0 0 20px;
  text-wrap: balance;
}
.phead__head__hot {
  background: linear-gradient(135deg, #00B5E2 0%, #FF8A1F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.phead__sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0 auto;
  max-width: 640px;
  text-wrap: pretty;
}
.phead__micro {
  font-size: 13px;
  color: var(--fg-subtle);
  margin: 16px 0 0;
}

/* ============================================================
   LEGAL DOCUMENT LAYOUT  (Cookie / Privacy / Terms)
============================================================ */
.legal {
  background: var(--bg-app);
  padding: 56px 0 96px;
}
.legal__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}
.legal__meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 13px;
  color: var(--fg-muted);
  margin: 0 0 28px;
  padding: 0 0 24px;
  border-bottom: 1px dashed var(--border-default);
}
.legal__meta b {
  color: var(--fg-strong);
  font-weight: 600;
}
.legal__intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-default);
  margin: 0 0 40px;
}
.legal__body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-default);
}
.legal__body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  margin: 56px 0 16px;
  scroll-margin-top: 88px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 32px 0 10px;
}
.legal__body p { margin: 0 0 14px; text-wrap: pretty; }
.legal__body ul, .legal__body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal__body li { margin: 0 0 8px; padding-left: 4px; }
.legal__body ul li::marker { color: var(--blue-500); }
.legal__body strong { color: var(--fg-strong); font-weight: 600; }
.legal__body a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal__body a:hover { color: var(--blue-700); }

.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-subtle);
}
.legal__table thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--neutral-50);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.legal__table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--fg-default);
}
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 1px 6px;
  border-radius: 4px;
}

/* On-page table of contents */
.legal__toc {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 0 0 40px;
  box-shadow: var(--shadow-xs);
}
.legal__toc h4 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 10px;
}
.legal__toc ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.legal__toc li {
  counter-increment: toc;
  font-size: 14px;
  padding-left: 28px;
  position: relative;
}
.legal__toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-subtle);
}
.legal__toc a {
  color: var(--fg-default);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-default);
}
.legal__toc a:hover { color: var(--blue-600); border-bottom-color: var(--blue-500); }

/* ============================================================
   CONTACT PAGE
============================================================ */
.contact {
  background: var(--bg-app);
  padding: 56px 0 96px;
}
.contact__layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact__layout { grid-template-columns: 1fr; gap: 32px; }
}

.contact__form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
  .contact__form { padding: 24px; }
}
.contact__form h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  margin: 0 0 8px;
}
.contact__form__lead {
  font-size: 14.5px;
  color: var(--fg-muted);
  margin: 0 0 24px;
  line-height: 1.55;
}

.field { margin-bottom: 18px; }
.field__label {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-strong);
  margin-bottom: 6px;
}
.field__label__opt {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-subtle);
}
.field__input,
.field__textarea,
.field__select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-default);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
  appearance: none;
}
.field__input:focus,
.field__textarea:focus,
.field__select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(0,181,226,0.22);
}
.field__textarea {
  min-height: 144px;
  resize: vertical;
  line-height: 1.5;
}
.field__select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%),
    linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.field--error .field__input,
.field--error .field__textarea,
.field--error .field__select {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.18);
}
.field__error {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 6px;
}
.field--error .field__error { display: block; }

.contact__form__submit {
  display: flex; align-items: center; gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.contact__form__submit .btn { white-space: nowrap; }
.contact__form__note {
  font-size: 12.5px;
  color: var(--fg-subtle);
  margin: 0;
  line-height: 1.5;
}

/* Success state after submit */
.contact__success {
  display: none;
  background: var(--success-bg);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.contact__success__icon {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--success);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.contact__success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 0 0 8px;
}
.contact__success p {
  font-size: 14.5px;
  color: var(--fg-default);
  line-height: 1.55;
  margin: 0 0 20px;
}
.contact__form.is-submitted .contact__success { display: block; }
.contact__form.is-submitted form { display: none; }
.contact__form.is-submitted h2,
.contact__form.is-submitted .contact__form__lead { display: none; }

/* Side: contact details + quick help */
.contact__side { display: grid; gap: 24px; }

.contact__card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.contact__card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--fg-strong);
  margin: 0 0 6px;
}
.contact__card__lead {
  font-size: 13.5px;
  color: var(--fg-muted);
  margin: 0 0 18px;
  line-height: 1.55;
}
.contact__detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px dashed var(--border-default);
}
.contact__detail:first-of-type { border-top: 0; padding-top: 0; }
.contact__detail__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-50);
  color: var(--blue-700);
  flex-shrink: 0;
}
.contact__detail__icon--orange { background: var(--orange-50); color: var(--orange-700); }
.contact__detail__body { flex: 1; min-width: 0; }
.contact__detail__lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 2px;
}
.contact__detail__val {
  font-size: 14.5px;
  color: var(--fg-strong);
  font-weight: 500;
  word-break: break-all;
}
.contact__detail__val a { color: var(--fg-strong); border-bottom: 1px dotted var(--border-default); }
.contact__detail__val a:hover { color: var(--blue-600); border-bottom-color: var(--blue-500); }
.contact__detail__sub {
  display: block;
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* Quick help cards row */
.quickhelp {
  background: var(--bg-app);
  padding: 88px 0 64px;
}
.quickhelp__head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.quickhelp__head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0 0 12px;
}
.quickhelp__head p {
  font-size: 16px;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.55;
}
.quickhelp__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .quickhelp__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .quickhelp__grid { grid-template-columns: 1fr; } }

.qh-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.qh-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.qh-card__no {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--blue-700);
  letter-spacing: 0.06em;
}
.qh-card__q {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg-strong);
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}
.qh-card__a {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.qh-card__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  display: inline-flex; align-items: center; gap: 6px;
}
.qh-card__link:hover { color: var(--blue-700); }

/* ============================================================
   BLOG PAGE
============================================================ */
.blog-filters {
  background: var(--bg-app);
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.blog-filters__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
}
.blog-filters__chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.blog-filters__chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 120ms var(--ease-out);
}
.blog-filters__chip:hover { border-color: var(--blue-300); color: var(--fg-strong); }
.blog-filters__chip.is-active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.blog-filters__sort {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
}
.blog-filters__sort select {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-strong);
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 6px 28px 6px 10px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fg-muted) 50%),
    linear-gradient(135deg, var(--fg-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 2px),
    calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.blog {
  background: var(--bg-app);
  padding: 56px 0 96px;
}
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 980px) { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog__grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand-soft);
  overflow: hidden;
}
.blog-card__thumb__mark {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00B5E2 0%, #FF8A1F 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(15,22,32,0.35);
  color: white;
}
.blog-card__thumb__mark svg { width: 28px; height: 28px; }
.blog-card__thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,22,32,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,22,32,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 80%);
}
.blog-card__cat {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-800);
  background: rgba(255,255,255,0.92);
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 1;
}
.blog-card__cat--orange { color: var(--orange-700); }
.blog-card__body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg-strong);
  margin: 0;
  text-wrap: balance;
}
.blog-card__excerpt {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.blog-card__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px;
  color: var(--fg-subtle);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 4px;
}
.blog-card__meta__dot {
  width: 3px; height: 3px;
  background: var(--fg-subtle);
  border-radius: 50%;
}

/* ============================================================
   TUTORIALS PAGE
============================================================ */
.tut {
  background: var(--bg-app);
  padding: 56px 0 96px;
}
.tut__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 880px)  { .tut__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 560px)  { .tut__grid { grid-template-columns: 1fr; } }

.tut-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.tut-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tut-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0F1620 0%, #1F2733 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.tut-card__thumb::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 30%, rgba(0,181,226,0.32), transparent 60%),
    radial-gradient(ellipse 60% 80% at 75% 70%, rgba(255,138,31,0.28), transparent 60%);
}
.tut-card__play {
  position: relative; z-index: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(15,22,32,0.5);
  color: var(--ink);
  transition: transform 180ms var(--ease-out);
}
.tut-card:hover .tut-card__play { transform: scale(1.08); }
.tut-card__play svg { width: 22px; height: 22px; margin-left: 3px; }
.tut-card__num {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  background: rgba(15,22,32,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 9px;
  border-radius: 999px;
}
.tut-card__dur {
  position: absolute;
  bottom: 12px; right: 12px;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: white;
  background: rgba(15,22,32,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
}
.tut-card__body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.tut-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-strong);
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
.tut-card__desc {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

/* Tutorial 1 (set up your account) gets a brand-coloured thumb to stand out */
.tut-card--featured .tut-card__thumb {
  background: linear-gradient(135deg, #00B5E2 0%, #2CC0EC 40%, #FF8A1F 100%);
}
.tut-card--featured .tut-card__thumb::before { opacity: 0.3; }

/* ============================================================
   SHARED BOTTOM CTA (lightweight, reused on contact/blog/tutorials)
============================================================ */
.endcta {
  background: var(--bg-app);
  padding: 80px 0 120px;
}
.endcta__card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 36px 80px;
  text-align: center;
  border-radius: 36px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-xl), 0 30px 80px -30px rgba(0,121,160,0.45);
  isolation: isolate;
}
.endcta__card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 80%);
  pointer-events: none;
}
.endcta__card::after {
  content: ""; position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(circle 340px at 20% 30%, rgba(0,181,226,0.30), transparent 60%),
    radial-gradient(circle 340px at 80% 70%, rgba(255,138,31,0.30), transparent 60%);
  pointer-events: none;
}
.endcta__card > * { position: relative; z-index: 1; }
.endcta__head {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: white;
  margin: 0 0 18px;
  text-wrap: balance;
}
.endcta__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin: 0 auto 30px;
  max-width: 620px;
  text-wrap: pretty;
}
.endcta__ctas {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
.endcta__card .btn--ghostdark {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.20);
}
.endcta__card .btn--ghostdark:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
}
.endcta__micro {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 18px 0 0;
  letter-spacing: 0.01em;
}

/* ============================================================
   Spam-protection honeypot — must be invisible to humans
============================================================ */
.contact__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* ============================================================
   PAGE HERO — blueprint backdrop (same as homepage hero)
   Replace the grid-of-lines with the bg-hero blueprint image
   so every page hero reads the same.
============================================================ */
.phead { padding: 88px 0 64px; }
.phead__grid {
  background-image: url("../assets/hero/bg-hero.png");
  background-image: -webkit-image-set(
    url("../assets/hero/bg-hero.avif") type("image/avif"),
    url("../assets/hero/bg-hero.webp") type("image/webp"),
    url("../assets/hero/bg-hero.png")  type("image/png")
  );
  background-image: image-set(
    url("../assets/hero/bg-hero.avif") type("image/avif"),
    url("../assets/hero/bg-hero.webp") type("image/webp"),
    url("../assets/hero/bg-hero.png")  type("image/png")
  );
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.85;
  mask-image: radial-gradient(ellipse 95% 90% at 50% 35%, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 95% 90% at 50% 35%, black 35%, transparent 85%);
}
@media (max-width: 768px) {
  .phead__grid {
    background-image: url("../assets/hero/bg-hero-mobile.png");
    background-image: -webkit-image-set(
      url("../assets/hero/bg-hero-mobile.avif") type("image/avif"),
      url("../assets/hero/bg-hero-mobile.webp") type("image/webp"),
      url("../assets/hero/bg-hero-mobile.png")  type("image/png")
    );
    background-image: image-set(
      url("../assets/hero/bg-hero-mobile.avif") type("image/avif"),
      url("../assets/hero/bg-hero-mobile.webp") type("image/webp"),
      url("../assets/hero/bg-hero-mobile.png")  type("image/png")
    );
  }
}


.tut-card { border-radius: 18px; box-shadow: 0 1px 2px rgba(15,22,32,0.04), 0 8px 24px -12px rgba(15,22,32,0.08); }
.tut-card:hover { box-shadow: 0 1px 2px rgba(15,22,32,0.05), 0 18px 38px -14px rgba(15,22,32,0.14); }
.tut-card__thumb { aspect-ratio: 16 / 10; }
.tut-card__body { padding: 22px 22px 24px; gap: 10px; }
.tut-card__title {
  /* match .bento__h / .who-card__h / .blog-card__title scale */
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
.tut-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);  /* matches .bento__p */
  text-wrap: pretty;
  margin: 0;
}
/* Feature card no longer takes a different span — keep grid even */
.tut-card--featured { grid-column: span 1; }

/* ============================================================
   BLOG — make the cards visually consistent with home/features
   (typography + grid + soft shadow). Already 3-up at desktop.
============================================================ */
.blog__grid { gap: 28px; }
.blog-card { border-radius: 18px; box-shadow: 0 1px 2px rgba(15,22,32,0.04), 0 8px 24px -12px rgba(15,22,32,0.08); }
.blog-card:hover { box-shadow: 0 1px 2px rgba(15,22,32,0.05), 0 18px 38px -14px rgba(15,22,32,0.14); }
.blog-card__link-wrap { display: flex; flex-direction: column; height: 100%; }
.blog-card__body { padding: 22px 22px 24px; gap: 10px; }
.blog-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
  margin: 0;
}

/* ============================================================
   ABOUT PAGE — mission hero + principles grid + team band
============================================================ */
.about-mission {
  background: var(--bg-app);
  padding: 88px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-mission .container { max-width: 980px; }
.about-mission__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-700);
  background: rgba(0,181,226,0.10);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.about-mission__eyebrow__dot {
  width: 6px; height: 6px; background: var(--blue-500); border-radius: 50%;
}
.about-mission__head {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  margin: 0 0 24px;
  text-wrap: balance;
}
.about-mission__sub {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  color: var(--fg-muted);
  margin: 0 auto;
  max-width: 720px;
  text-wrap: pretty;
}

.about-why { background: white; padding: 96px 0; }
.about-why .container { max-width: 880px; }
.about-why__head {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg-strong);
  margin: 0 0 36px;
  text-wrap: balance;
}
.about-why__body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-default);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.about-why__body strong { color: var(--fg-strong); font-weight: 700; }

.about-principles {
  background: var(--bg-app);
  padding: 96px 0;
}
.about-principles__head { max-width: 880px; margin: 0 auto 12px; text-align: left; }
.about-principles__head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin: 0 0 14px;
}
.about-principles__head p { font-size: 17px; color: var(--fg-muted); margin: 0 0 48px; max-width: 640px; line-height: 1.55; }
.about-principles__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .about-principles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .about-principles__grid { grid-template-columns: 1fr; } }
.about-principle {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15,22,32,0.04), 0 8px 24px -12px rgba(15,22,32,0.08);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.about-principle:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15,22,32,0.05), 0 18px 38px -14px rgba(15,22,32,0.14); }
.about-principle__no {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: var(--blue-700);
  letter-spacing: 0.05em;
}
.about-principle:nth-child(even) .about-principle__no { color: var(--orange-700); }
.about-principle h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg-strong);
  margin: 0;
  text-wrap: balance;
}
.about-principle p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
  text-wrap: pretty;
}

.about-team {
  background: var(--ink);
  color: white;
  padding: 96px 0;
}
.about-team .container { max-width: 880px; }
.about-team__head {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1.15;
  margin: 0 0 28px;
  text-wrap: balance;
}
.about-team__body p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin: 0 0 18px;
}
.about-team__body a {
  color: var(--orange-300);
  border-bottom: 1px solid rgba(255,138,31,0.45);
  padding-bottom: 1px;
}
.about-team__body a:hover { color: var(--orange-400); }

/* ============================================================
   MOBILE APP PAGE — hero, capabilities, offline, QR, etc.
============================================================ */
.mhero {
  background: var(--bg-app);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.mhero__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
  position: relative;
}
@media (max-width: 980px) { .mhero__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; } }
.mhero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-700);
  background: rgba(0,181,226,0.10);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.mhero__eyebrow__dot { width: 6px; height: 6px; background: var(--blue-500); border-radius: 50%; }
.mhero__head {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--fg-strong);
  margin: 0 0 20px;
  text-wrap: balance;
}
.mhero__sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 0 28px;
  text-wrap: pretty;
  max-width: 540px;
}
@media (max-width: 980px) { .mhero__sub { margin-left: auto; margin-right: auto; } }
.mhero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
@media (max-width: 980px) { .mhero__ctas { justify-content: center; } }
.mhero__micro { font-size: 13px; color: var(--fg-muted); margin: 12px 0 0; }

.mhero__stores {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.mstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
  text-decoration: none;
}
.mstore:hover { background: #1F2733; transform: translateY(-2px); }
.mstore > div { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.mstore > div span { font-size: 10.5px; opacity: 0.78; }
.mstore b { font-size: 15px; font-weight: 700; }


.mfeatures { background: white; padding: 96px 0; }
.mfeatures__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.mfeatures__head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.mfeatures__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .mfeatures__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mfeatures__grid { grid-template-columns: 1fr; } }
.mfeature {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.mfeature:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -12px rgba(15,22,32,0.12); }
.mfeature__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-grid; place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
}
.mfeature:nth-child(3n+2) .mfeature__icon {
  background: var(--orange-50);
  color: var(--orange-700);
  border-color: var(--orange-200);
}
.mfeature h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--fg-strong);
  margin: 0;
  text-wrap: balance;
}
.mfeature p {
  font-size: 14.5px; line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
  text-wrap: pretty;
}

.moffline {
  background: var(--ink);
  color: white;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.moffline__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
@media (max-width: 980px) { .moffline__inner { grid-template-columns: 1fr; gap: 48px; } }
.moffline__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-300);
  margin-bottom: 22px;
}
.moffline__eyebrow__dot { width: 6px; height: 6px; background: var(--orange-500); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,138,31,0.25); }
.moffline__head {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: white;
  margin: 0 0 22px;
  text-wrap: balance;
}
.moffline__body p {
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin: 0 0 16px;
}
.moffline__vis {
  position: relative;
  background: linear-gradient(135deg, #1F2733 0%, #0F1620 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 32px;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.5);
}
.moffline__sync {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px 18px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.moffline__sync__dot {
  width: 10px; height: 10px;
  background: var(--orange-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,138,31,0.2);
  animation: pulse-green 1.8s infinite var(--ease-out);
}
.moffline__sync b { color: white; font-weight: 700; font-size: 14px; }
.moffline__sync span { color: rgba(255,255,255,0.55); font-size: 12.5px; display: block; }

.mqr {
  background: var(--bg-app);
  padding: 96px 0;
}
.mqr__inner {
  max-width: 980px; margin: 0 auto; padding: 0 32px;
  text-align: center;
}
.mqr__head {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg-strong);
  margin: 0 0 14px;
  text-wrap: balance;
}
.mqr__sub {
  font-size: 16px;
  color: var(--fg-muted);
  margin: 0 auto 48px;
  max-width: 580px;
  line-height: 1.55;
}
.mqr__row {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
}
.mqr-card {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 28px;
  width: 220px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 1px 2px rgba(15,22,32,0.04), 0 12px 28px -12px rgba(15,22,32,0.10);
}
.mqr-card__code {
  width: 156px; height: 156px;
  border-radius: 12px;
  background: white;
  padding: 8px;
  display: grid; place-items: center;
}
.mqr-card__code svg { width: 100%; height: 100%; display: block; }
.mqr-card b {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
}
.mqr-card span { font-size: 12px; color: var(--fg-muted); }

.malready { background: white; padding: 96px 0; }
.malready .container { max-width: 880px; }
.malready__head {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg-strong);
  margin: 0 0 18px;
  text-wrap: balance;
}
.malready__body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-default);
  margin: 0 0 24px;
}
.malready__list {
  display: grid; gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.malready__list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15.5px;
  color: var(--fg-strong);
}
.malready__list li svg { color: var(--success); flex-shrink: 0; }


/* ============================================================
   ABOUT MISSION + MOBILE HERO — gradient highlight span,
   matching the brand pattern used on home/features/contact/blog.
============================================================ */
.about-mission__head__hot,
.mhero__head__hot {
  background: linear-gradient(135deg, #00B5E2 0%, #FF8A1F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Make sure the blueprint backdrop reads on these heroes the
   same way it does on tutorials/blog/contact. */
.about-mission { isolation: isolate; }
.about-mission .phead__bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.mhero { isolation: isolate; }
.mhero .phead__bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }

/* Spread the hero down a bit for visual breathing room */
.about-mission { padding: 96px 0 104px; }
.mhero { padding: 88px 0 104px; }
@media (max-width: 720px) {
  .about-mission { padding: 64px 0 72px; }
  .mhero { padding: 56px 0 80px; }
}


/* ============================================================
   GRADIENT EMPHASIS — when a phrase is rendered in the brand
   cyan→orange gradient inside a heading, also slant it for
   a consistent editorial accent across every page.
============================================================ */
.bighead__grad,
.connected__head__hot,
.phead__head__hot,
.about-mission__head__hot,
.mhero__head__hot,
.fhero2__head__hot,
.fbig__title__hot {
  font-style: italic;
  font-weight: 700;
}

/*
 * background-clip: text descender fix — applies to every gradient span across
 * the site. The clip box is the content+padding area; without padding-bottom,
 * descenders (y, g, j, p, q) fall below the em-square and become transparent.
 * 0.15em gives ~8px at 56px / ~5px at 36px — enough for any descender.
 */
.bighead__grad,
.connected__head__hot,
.phero__head__hot,
.phead__head__hot,
.about-mission__head__hot,
.mhero__head__hot,
.fhero2__head__hot,
.fbig__title__hot,
.fstat__title__hot,
.fhero__head__hot,
.ft__head__hot,
.midhead__grad,
.finalcta__head span,
.quote p span,
.incl__group--closing span {
  padding-bottom: 0.2em;
  padding-right: 0.4em;  /* italic slant extends past the em-box on the right */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;  /* each wrapped line gets its own clip box */
}

/* Offline section — replace synthetic card with the user's image */
.moffline__vis--img {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  min-height: 0;
  display: block;
}
.moffline__vis--img img {
  display: block;
  width: 130%;
  max-width: none;
  height: auto;
  margin: 0 0 0 -15%;
  filter:
    drop-shadow(0 24px 48px rgba(0,0,0,0.5))
    drop-shadow(0 8px 18px rgba(0,121,160,0.18));
}
@media (max-width: 980px) {
  .moffline__vis--img img { width: 100%; margin: 0; }
}

/* ============================================================
   MOBILE HERO — real phone screenshots replace synthetic mockups
============================================================ */
.mhero__phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 540px;
}
.mhero__shot {
  width: 80%;
  max-width: 585px;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 28px 48px rgba(15,22,32,0.28))
    drop-shadow(0 10px 22px rgba(15,22,32,0.14))
    drop-shadow(0 2px 6px rgba(15,22,32,0.08));
}
.mhero__shot--left  { transform: rotate(-5deg) translateY(20px); margin-right: -64px; z-index: 1; }
.mhero__shot--right { transform: rotate(5deg)  translateY(-18px); margin-left: -64px; z-index: 2; }
@media (max-width: 980px) {
  .mhero__shot { max-width: 585px; }
}
@media (max-width: 600px) {
  .mhero__phones {
    min-height: 0;
    margin: 0 -32px;
    width: calc(100% + 64px);
  }
  .mhero__shot { width: 80%; max-width: none; }
}

/* ============================================================
   PAGE HEROES — fade halos & grid into the next section so the
   hero band reads as part of the page, not a stacked block.
============================================================ */
.phead,
.about-mission,
.mhero,
.fhero2 {
  overflow: visible;
}
/* .hero intentionally excluded: its background halos bleed via .hero__bg (position:absolute
   inside the hero), not through the document flow. The hero itself keeps overflow visible
   for the bg halo fade effect, but .hero__visual (containing the devices) is set to
   overflow: hidden above to prevent device images from triggering horizontal scroll. */
.hero {
  overflow: visible;
}
.phead .phead__bg,
.about-mission .phead__bg,
.mhero .phead__bg,
.hero .hero__bg,
.fhero2 .fhero2__bg {
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 65%, transparent 100%);
          mask-image: linear-gradient(180deg, black 0%, black 65%, transparent 100%);
}

/* ================================================================
   RESPONSIVE AUDIT — Global overflow prevention + breakpoints
   Breakpoint strategy:
     1024px — Small laptops & landscape tablets: tighten section
              padding and ensure no grid column is under ~200px.
     768px  — Tablet portrait & large phones: single-column grids,
              reduced type, tighter spacing.
     480px  — Phones: minimal padding, stack all remaining flex rows.
================================================================ */

/* ---- 1024px: reduce section breathing room, tighten padding ---- */
@media (max-width: 1024px) {
  .how,
  .lists,
  .capabilities,
  .benefits,
  .ww,
  .faq { padding: 96px 0; }

  .connected { padding: 96px 0; }

  /* Benefits bento: inner card has a two-column copy+viz layout that
     can get too narrow at 1024px — single-column it one step earlier */
  .benefit--wide { grid-template-columns: 1fr; }

  /* Prevent tools grid from squeezing into sub-100px columns */
  .tools { grid-template-columns: repeat(4, 1fr); }
}

/* ---- 768px: column collapses, type tightening ---- */
@media (max-width: 768px) {
  .how,
  .benefits,
  .who,
  .ww,
  .faq { padding: 80px 0; }
  .how { padding-bottom: 16px; }
  .faq { padding-bottom: 16px; }
  .finalcta { padding-top: 16px; }
  .capabilities { padding: 16px 0 60px; }
  .proof__head { display: block; text-align: center; }
  .proof__head .proof__head__line { display: none; }
  .endcta__ctas { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
  .endcta__ctas .btn { width: 100%; justify-content: center; box-sizing: border-box; }
  .connected { padding: 48px 0 16px; }
  .lists { padding: 16px 0 60px; }

  /* Any remaining 2-column grids should go single-column */
  .ww__board          { grid-template-columns: 1fr; }
  .benefits__bento    { grid-template-columns: 1fr; }
  .benefit--wide      { grid-column: span 1; }

  /* Reduce chapter internal padding at this size */
  .chapter { padding: 32px 22px; }

  /* Reduce hero copy padding */
  .hero__inner { padding: 40px 20px 16px; }

  /* Ensure finalcta card has reasonable padding */
  .finalcta__inner { padding: 48px 24px; }
}

/* ---- 480px: phones — stack everything, reduce font bloat ---- */
@media (max-width: 480px) {
  /* Footer single-column handled above; also stack the bottom bar */
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Proof chips can run in 3 columns instead of 5 to stay readable */
  .proof__row { justify-content: center; }

  /* Tools grid single-column at extreme small sizes */
  .tools { grid-template-columns: repeat(2, 1fr); }

  /* Reduce hero device section height at mobile */
  .devices { height: 400px; }

  /* CTA buttons stack vertically */
  .hero__ctas { flex-direction: column; align-items: center; }
  .finalcta__ctas { flex-direction: column; align-items: center; }

  /* App store buttons stack on small phones */
  .mobile-banner__stores { flex-direction: column; align-items: center; }
  .store-btn { width: 200px; justify-content: center; }

  /* ---- Section padding: reduce all sections further at phone sizes ---- */
  /* Home page sections */
  .connected   { padding: 36px 0 12px; }
  .how         { padding: 48px 0 12px; }
  .capabilities{ padding: 12px 0 48px; }
  .benefits    { padding: 48px 0; }
  .who         { padding: 48px 0; }
  .ww          { padding: 48px 0; }
  .faq         { padding: 48px 0 12px; }
  .finalcta    { padding: 12px 0 64px; }
  .lists       { padding: 12px 0 48px; }

  /* Pricing page sections */
  .phero       { padding: 40px 0 52px; }
  .plans       { padding: 40px 0 52px; }
  .incl        { padding: 48px 0; }
  .scale       { padding: 48px 0; }
  .philos      { padding: 48px 0; }

  /* Features page sections */
  .fhero2      { padding: 36px 0 48px; }
  .fbig        { padding: 52px 0 40px; }
  .ftwo        { padding: 40px 0; }
  .fthree      { padding: 40px 0; }
  .fstat       { padding: 44px 0; }
  .fhero       { padding: 40px 0 28px; }
  .ft          { padding: 40px 0; }
  .perms       { padding: 48px 0; }

  /* Generic page hero + contact/blog/about/tutorials/legal sections */
  .phead       { padding: 52px 0 40px; }
  .contact     { padding: 40px 0 56px; }
  .quickhelp   { padding: 52px 0 40px; }
  .blog        { padding: 40px 0 56px; }
  .blog-filters{ padding: 20px 0 16px; }
  .about-mission{ padding: 52px 0 60px; }
  .mhero       { padding: 48px 0 60px; }
  .about-why   { padding: 56px 0; }
  .legal       { padding: 40px 0 56px; }

  /* Blog filter chips: scroll horizontally so all chips stay in one row */
  .blog-filters__inner { grid-template-columns: 1fr; }
  .blog-filters__chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .blog-filters__chip  { flex-shrink: 0; }
}

/* ---- Feature section highlight (from jump-nav click) ---- */
@keyframes feature-highlight-fade {
  0%   { box-shadow: 0 0 0 0 rgba(0,181,226,0); outline: 2px solid rgba(0,181,226,0.6); }
  20%  { box-shadow: 0 0 0 8px rgba(0,181,226,0.15); outline: 2px solid rgba(0,181,226,0.6); }
  100% { box-shadow: 0 0 0 0 rgba(0,181,226,0); outline: 2px solid rgba(0,181,226,0); }
}
.feature--highlight {
  animation: feature-highlight-fade 1.8s ease forwards;
  border-radius: 4px;
}

/* ---- Back to top button ---- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1F2733;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  z-index: 9999;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--ink-2, #1F2733); }
@media (max-width: 480px) {
  .back-to-top { bottom: 20px; right: 20px; }
}

/* ================================================================
   PAGE TRANSITIONS — fade in/out between pages
================================================================ */
/* Start invisible; JS adds .page-ready on DOMContentLoaded to fade in.
   Without JS the rule never matches and the page stays visible. */
html:not(.page-ready) body {
  opacity: 0;
}
body {
  transition: opacity 150ms ease;
}

/* ============================================================
   CONTACT PAGE — MOBILE FIXES
============================================================ */

@media (max-width: 880px) {
    .contact {
        padding: 40px 0 64px;
    }

    .contact__layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .contact__form,
    .contact__side,
    .contact__card {
        width: 100%;
        box-sizing: border-box;
    }

        .contact__form.is-submitted .contact__success {
            display: block;
            width: 100%;
            box-sizing: border-box;
        }

    .contact__detail__body {
        min-width: 0;
        flex: 1 1 0;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .contact__detail__val,
    .contact__detail__sub {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        display: block;
    }
}

@media (max-width: 480px) {
    .contact__layout {
        padding: 0 16px;
    }

    .contact__form {
        padding: 20px 18px;
    }

    .contact__card {
        padding: 18px 16px;
    }

    .contact__success {
        padding: 22px 18px;
    }

        .contact__success .btn {
            width: 100%;
            justify-content: center;
            box-sizing: border-box;
        }
}
/* ============================================================
   ARTICLE PAGE  (single blog post)
   Editorial breadcrumb, article hero, prose body, prev/next, end CTA.
   Ported from the blog post design export. Uses only existing main.css tokens.
============================================================ */

/* --- Editorial breadcrumb --- */
.crumbs {
  background: var(--bg-app);
}
.crumbs__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-subtle);
}
.crumbs__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-default);
  text-decoration: none;
  padding: 8px 14px 8px 11px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
  transition: color 120ms var(--ease-out), border-color 120ms var(--ease-out), transform 120ms var(--ease-out);
}
.crumbs__back:hover {
  color: var(--blue-700);
  border-color: var(--blue-300);
  transform: translateX(-2px);
}
.crumbs__back svg { flex-shrink: 0; }
.crumbs__trail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.crumbs__link {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 120ms var(--ease-out);
}
.crumbs__link:hover { color: var(--blue-700); }
.crumbs__sep {
  color: var(--border-default);
  font-weight: 400;
}
.crumbs__current {
  color: var(--fg-default);
  font-weight: 600;
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Article hero --- */
.article-head {
  background: var(--bg-app);
  padding: 28px 0 8px;
}
.article-head__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}
.article-head__cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-700);
  background: rgba(0,181,226,0.10);
  padding: 7px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
  text-decoration: none;
}
.article-head__cat__dot { width: 6px; height: 6px; background: var(--blue-500); border-radius: 50%; }
.article-head__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
  margin: 0 0 22px;
  text-wrap: balance;
}
.article-head__standfirst {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0 0 30px;
  text-wrap: pretty;
}
.article-head__byline {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border-subtle);
}
.article-head__avatar {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.article-head__who { display: flex; flex-direction: column; gap: 2px; }
.article-head__who b {
  font-size: 14px; font-weight: 600;
  color: var(--fg-strong);
}
.article-head__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  color: var(--fg-subtle);
  font-weight: 500;
}
.article-head__meta__dot { width: 3px; height: 3px; background: var(--fg-subtle); border-radius: 50%; }

/* Cover banner */
.article-cover {
  background: var(--bg-app);
  padding: 36px 0 0;
}
.article-cover__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}
.article-cover__band {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-brand-soft);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
}
.article-cover__band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,22,32,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,22,32,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 25%, transparent 78%);
}
.article-cover__mark {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 20px;
  background: var(--gradient-brand);
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 16px 40px -10px rgba(15,22,32,0.35);
}

/* --- Article body (prose) --- */
.article {
  background: var(--bg-app);
  padding: 48px 0 88px;
}
.article__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--fg-default);
}
.article__inner > p { margin: 0 0 22px; text-wrap: pretty; }
.article__inner > p:first-child { margin-top: 0; }
.article__lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--fg-strong);
}
.article__inner h2 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--fg-strong);
  margin: 48px 0 16px;
  text-wrap: balance;
}
.article__inner h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--fg-strong);
  margin: 34px 0 10px;
}
.article__inner ul,
.article__inner ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.article__inner li { margin: 0 0 10px; padding-left: 4px; text-wrap: pretty; }
.article__inner ul li::marker { color: var(--blue-500); }
.article__inner ol li::marker { color: var(--blue-700); font-weight: 600; }
.article__inner strong { color: var(--fg-strong); font-weight: 600; }
.article__inner a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article__inner a:hover { color: var(--blue-700); }

/* Pull quote — editorial accent */
.article__pull {
  margin: 40px 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--orange-500);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  text-wrap: balance;
}

/* Callout box */
.article__callout {
  margin: 36px 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-xs);
}
.article__callout__lbl {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-700);
  margin: 0 0 10px;
}
.article__callout p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-default); }

/* --- Prev / Next post navigation --- */
.postnav {
  background: var(--bg-app);
  padding: 0 0 88px;
}
.postnav__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 32px 0;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 680px) { .postnav__inner { grid-template-columns: 1fr; } }
.postnav__card {
  display: flex; flex-direction: column; gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
  box-shadow: none;
  transition: transform 180ms var(--ease-out);
}
.postnav__card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
.postnav__card--next { text-align: right; align-items: flex-end; }
.postnav__dir {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-700);
}
.postnav__card--next .postnav__dir { flex-direction: row-reverse; }
.postnav__cat {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--fg-subtle);
}
.postnav__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  margin: 0;
  text-wrap: balance;
}
.postnav__card:hover .postnav__title { color: var(--blue-700); }

/* --- End-of-article CTA --- */
.endcta {
  background: var(--bg-app);
  padding: 80px 0 120px;
}
.endcta__card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 36px 80px;
  text-align: center;
  border-radius: 36px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-xl), 0 30px 80px -30px rgba(0,121,160,0.45);
  isolation: isolate;
}
.endcta__card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 80%);
  pointer-events: none;
}
.endcta__card::after {
  content: ""; position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(circle 340px at 20% 30%, rgba(0,181,226,0.30), transparent 60%),
    radial-gradient(circle 340px at 80% 70%, rgba(255,138,31,0.30), transparent 60%);
  pointer-events: none;
}
.endcta__card > * { position: relative; z-index: 1; }
.endcta__head {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: white;
  margin: 0 0 18px;
  text-wrap: balance;
}
.endcta__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin: 0 auto 30px;
  max-width: 620px;
  text-wrap: pretty;
}
.endcta__ctas {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
.endcta__card .btn--ghostdark {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.20);
}
.endcta__card .btn--ghostdark:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
}
.endcta__micro {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 18px 0 0;
  letter-spacing: 0.01em;
}

/* --- Optional per-post images (supplied as separate files) ---
   Listing-card thumbnail + article banner. When a post has no image, the
   category icon / decorative gradient below stay visible as the fallback. */
.blog-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.blog-card__thumb--image { background: var(--neutral-100); }
.blog-card__thumb--image::before,
.blog-card__thumb--image .blog-card__thumb__mark { display: none; }

.article-cover__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-cover__band--image::before,
.article-cover__band--image .article-cover__mark { display: none; }
