/* MailCraft marketing site
 * Palette, type and component patterns follow the NT Connect platform theme
 * (nt-connect-platform-docs/design/app-shell-and-theme.md) as applied by the
 * quanta marketing site (quanta/services/marketing-web). Tokens are the NT
 * navy + ocean scales; do not introduce bespoke colors.
 */

:root {
  /* Navy — brand */
  --navy-50:  #f3f5fb;
  --navy-100: #e4e9f5;
  --navy-200: #c5d0ea;
  --navy-300: #95abda;
  --navy-500: #3e5dae;
  --navy-700: #263878;
  --navy-800: #1e2e62;
  --navy-850: #18254a;
  --navy-900: #152050;
  --navy-950: #0d1430;

  /* Ocean — accent */
  --ocean-300: #7dd3fc;
  --ocean-400: #38bdf8;
  --ocean-500: #0ea5e9;
  --ocean-600: #0284c7;

  /* On-light text */
  --text-head: #0f172a;
  --text-body: #334155;
  --text-meta: #475569;

  --white: #ffffff;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ocean-500); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ocean-400); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -0.025em; }

/* ---------- decorative prism ray (quanta pattern) ---------- */
.prism-ray {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 9999px;
  background: radial-gradient(ellipse at center,
    rgb(56 189 248 / .16) 0%,
    rgb(56 189 248 / .08) 35%,
    rgb(56 189 248 / .03) 55%,
    transparent 72%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-800);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ocean-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-name {
  font-family: var(--font-display); font-weight: 600;
  color: var(--white); font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.nav-links a {
  color: var(--navy-300); font-weight: 500;
  font-size: clamp(13px, 1.2vw, 14px);
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
@media (max-width: 767px) {
  .nav-inner { height: auto; padding: 8px 0 0; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; }
  .nav { max-width: 100vw; overflow: hidden; }
  .nav-links { flex-wrap: nowrap; overflow-x: auto; gap: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0; padding: 0; max-width: 100%; min-width: 0;
    mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; flex: 0 0 auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900);
  padding: clamp(56px, 8vw, 88px) 0 clamp(64px, 9vw, 96px);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 56px); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--navy-700); border-radius: 999px;
  padding: 6px 15px; margin-bottom: 26px;
  color: var(--navy-300); font-size: 13px;
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ocean-400); flex-shrink: 0;
}
h1 {
  font-size: clamp(34px, 5.4vw, 54px); line-height: 1.08;
  font-weight: 700; color: var(--white);
  margin: 0 0 20px; text-wrap: balance;
}
h1 .accent { color: var(--ocean-400); }
.lede {
  color: var(--navy-300); font-size: clamp(16px, 1.9vw, 19px);
  max-width: 56ch; margin: 0 0 32px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; border-radius: 8px; font-weight: 600;
  font-size: 15px; padding: 12px 24px; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: #0369a1; color: var(--white); }
.btn-primary:hover { background: #075985; text-decoration: none; }
.btn-outline { border-color: var(--navy-700); color: var(--navy-300); }
.btn-outline:hover { border-color: var(--navy-500); color: var(--white); text-decoration: none; }
.micro { color: var(--navy-500); font-size: 13px; margin: 16px 0 0; }

/* ---------- code panels ---------- */
.code {
  background: var(--navy-850);
  border: 1px solid var(--navy-700);
  border-radius: 14px; overflow: hidden;
}
.code-head {
  padding: 10px 16px; border-bottom: 1px solid var(--navy-700);
  font-family: var(--font-mono); font-size: 12px; color: var(--navy-300);
  display: flex; align-items: center; gap: 8px;
}
.code pre {
  margin: 0; padding: 18px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75;
  color: var(--navy-100);
}
.c-com { color: #8ea2d8; }
.c-kw  { color: var(--ocean-300); }
.c-fn  { color: var(--ocean-400); }
.c-str { color: #a5f3c4; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 88px) 0; }
.band-light { background: var(--navy-50); color: var(--text-body); }
.band-white { background: var(--white); color: var(--text-body); }
.band-navy  { background: var(--navy-900); color: var(--navy-300); }
.band-deep  { background: var(--navy-950); color: var(--navy-300); position: relative; overflow: hidden; }
.band-deep .wrap, .band-navy .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 2px;
  background: var(--ocean-400); flex-shrink: 0;
}
.band-light .eyebrow, .band-white .eyebrow { color: #0369a1; }
.band-navy .eyebrow, .band-deep .eyebrow { color: var(--ocean-300); }

h2 {
  font-size: clamp(25px, 3.4vw, 34px); font-weight: 700;
  margin: 0 0 14px; text-wrap: balance;
}
.band-light h2, .band-white h2 { color: var(--text-head); }
.band-navy h2, .band-deep h2 { color: var(--white); }
.section-lede { font-size: 17px; max-width: 62ch; margin: 0 0 40px; }
.band-light .section-lede, .band-white .section-lede { color: var(--text-meta); }
.band-navy .section-lede, .band-deep .section-lede { color: var(--navy-300); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card { border-radius: 14px; padding: 22px; }
.band-light .card, .band-white .card {
  background: var(--white); border: 1px solid var(--navy-200);
}
.band-navy .card, .band-deep .card {
  background: var(--navy-800); border: 1px solid var(--navy-700);
}
.card h3 {
  font-size: 15px; font-weight: 600; margin: 0 0 8px;
  display: flex; align-items: center; gap: 9px;
}
.band-light .card h3, .band-white .card h3 { color: var(--text-head); }
.band-navy .card h3, .band-deep .card h3 { color: var(--white); }
.card p { margin: 0; font-size: 14px; line-height: 1.62; }
.band-light .card p, .band-white .card p { color: var(--text-meta); }
.band-navy .card p, .band-deep .card p { color: var(--navy-300); }
.tick { color: var(--ocean-500); flex-shrink: 0; font-size: 13px; }
.band-navy .tick, .band-deep .tick { color: var(--ocean-400); }
code.inline {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--navy-100); color: var(--navy-800);
  padding: 1px 5px; border-radius: 4px;
}

/* ---------- two-up ---------- */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .two-up { grid-template-columns: 1fr; } }

/* ---------- context economy panels ---------- */
.panel { border-radius: 14px; overflow: hidden; border: 1px solid var(--navy-200); background: var(--white); }
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 16px;
  font-family: var(--font-mono); font-size: 12px;
  border-bottom: 1px solid var(--navy-200);
}
.panel-bad .panel-head  { background: #fef2f2; color: #b91c1c; }
.panel-good .panel-head { background: #f0f9ff; color: var(--ocean-600); }
.panel-body {
  padding: 16px; margin: 0; overflow-x: auto;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75;
  color: var(--text-meta); white-space: pre-wrap;
}
.tok { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- flow diagram ---------- */
.flow {
  background: var(--navy-900); border: 1px solid var(--navy-700);
  border-radius: 14px; padding: 22px; overflow-x: auto;
}
.flow pre {
  margin: 0; font-family: var(--font-mono);
  font-size: 12.5px; line-height: 1.8; color: var(--navy-300);
}
.flow .hl { color: var(--ocean-400); font-weight: 600; }
.flow .dim { color: var(--navy-500); }

/* ---------- status ---------- */
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.status-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text-meta);
}
.tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  padding: 2px 9px; border-radius: 999px;
  flex-shrink: 0; margin-top: 3px; min-width: 68px; text-align: center;
}
.tag-building { background: #f0f9ff; color: var(--ocean-600); border: 1px solid #bae6fd; }
.tag-planned  { background: var(--navy-50); color: var(--text-meta); border: 1px solid var(--navy-200); }

/* ---------- footer ---------- */
.foot { background: var(--navy-950); padding: 40px 0; }
.foot-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--navy-500);
}
.foot-inner a { color: var(--navy-300); }

/* ---------- clickable product cards ---------- */
.card-link {
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.card-link:hover {
  text-decoration: none;
  border-color: var(--ocean-500);
  transform: translateY(-2px);
}
.card-link:hover h3 { color: var(--ocean-600); }
.card-host {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ocean-600); margin-top: auto;
}

/* ---------- footnotes ---------- */
.footnote {
  font-size: 13px; line-height: 1.6; margin: 24px 0 0;
  max-width: 68ch;
}
.band-light .footnote, .band-white .footnote { color: var(--text-meta); }
.band-navy .footnote, .band-deep .footnote { color: var(--navy-300); }
.footnote sup { color: var(--ocean-600); font-weight: 600; }
.footnote strong { color: var(--text-head); font-weight: 600; }

/* Family grid: five cards, 3+2 on desktop */
#family .grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1040px) { #family .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { #family .grid { grid-template-columns: 1fr; } }

/* Links inside dark-band cards must not fall back to the light-band link color */
.band-navy .card a, .band-deep .card a { color: var(--ocean-300); }
.band-navy .card a:hover, .band-deep .card a:hover { color: var(--white); }

/* ---------- footer legal row ---------- */
.foot-legal {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--navy-800);
  font-size: 12.5px; color: var(--navy-500);
}
.foot-legal a { color: var(--navy-300); }
.foot-legal a:hover { color: var(--white); text-decoration: none; }

/* ---------- pricing page ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan-price {
  font-family: var(--font-display, inherit); font-size: 24px; font-weight: 700;
  color: var(--text-head); margin-top: 6px;
}
.plan-alt { font-size: 14px; color: var(--text-meta); min-height: 1.4em; }
.plan-list { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; gap: 6px; font-size: 14px; color: var(--text-meta); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--navy-200); border-radius: 14px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--navy-100); vertical-align: top; }
.price-table thead th { background: var(--navy-50); color: var(--text-head); font-weight: 600; }
.price-table tbody th { color: var(--text-head); font-weight: 600; }
.price-table td { color: var(--text-meta); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.lapse { max-width: 70ch; border-left: 4px solid var(--ocean-500); }
.lapse-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; line-height: 1.6; color: var(--text-meta); }
.lapse-steps strong { color: var(--text-head); }

/* ---------- prepaid credit packs ---------- */
.packs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pack { background: var(--white); border: 1px solid var(--navy-200); border-radius: 12px; padding: 16px 18px; }
.pack-price { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text-head); }
.pack-alt { font-family: var(--font-mono); font-size: 12px; color: var(--text-meta); margin-top: 4px; }
@media (max-width: 760px) { .packs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- QA fixes 2026-11-04 ---------- */
.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-grid > * { min-width: 0; }
h1 { font-size: clamp(30px, 8vw + 2px, 54px); overflow-wrap: break-word; }
@media (min-width: 700px) { h1 { font-size: clamp(34px, 5.4vw, 54px); } }
.page-h1 { font-size: clamp(30px, 6vw, 44px); }
.code, pre { max-width: 100%; }
pre { overflow-x: auto; }
.cta-row { flex-wrap: wrap; }
/* tap targets >= 24px */
.nav-links a { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 8px; }
.foot a, .foot-legal a { display: inline-block; padding: 6px 2px; min-height: 24px; }
.btn-outline-dark { border-color: #94a3b8; color: #0f172a; }
.btn-outline-dark:hover { border-color: #0f172a; text-decoration: none; }
/* legal and contact pages */
.prose { max-width: 760px; color: var(--text-body); line-height: 1.7; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: #0369a1; text-decoration: underline; }
.prose .meta { color: var(--text-meta); font-size: 14px; }
/* SEO recheck contrast fixes */
.prose a.btn-primary { color: #fff; text-decoration: none; }
.prose a.btn-outline-dark { text-decoration: none; }
.micro, .flow .dim, .dim { color: #8ea2d8; }
.micro a { color: #7dd3fc; text-decoration: underline; text-underline-offset: 2px; }
.tag-building { color: #0369a1; }
.card-host { color: #0369a1; }
.foot-inner, .foot-legal { color: #8ea2d8; }
.foot-inner a, .foot-legal a { color: #c7d2fe; }
.foot-inner a:hover, .foot-legal a:hover { color: #fff; }
