/* callmeie.ie — CallMeIE Technologies parent-brand hub
   Tokens lifted verbatim from document-ops-portal/app/static/portal.css (lines 1–58).
   Brand contract: paper #f8f5f0 + ink #1c1f24 + indigo #1d3557
                   + Fraunces (display) + Inter (body) + JetBrains Mono (mono).
   D7 lock 2026-05-04: amber dropped from hub (clashed with /websites/ orange ~12 deg apart in cross-surface nav). Hub is single-accent indigo. Amber + ok/warn states stay docs-local only.
   Same brand language as portal.callmeie.ie + docs.callmeie.ie. Single product family.
*/

:root {
  /* Surface */
  --paper: #f8f5f0;
  --paper-alt: #efe9de;
  --ink: #1c1f24;
  --ink-soft: #2d3239;
  --muted: #6b665d;
  --line: #d8cfc1;
  --line-soft: #ede5d6;

  /* Accent — deep indigo, B2B-trust signal */
  --brand: #1d3557;
  --brand-hover: #14253f;
  --brand-soft: #e8eef6;
  /* D7 lock 2026-05-04: --accent remapped to indigo (was amber #c08a3f).
     Hub is single-accent indigo. Amber + ok/warn live in docs/site.css only. */
  --accent: #1d3557;
  --accent-hover: #14253f;
  --accent-soft: #e8eef6;

  /* Type */
  --display: 'Fraunces', 'Bodoni Moda', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --fs-display: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
  --fs-h3: clamp(1.125rem, 1vw + 0.75rem, 1.375rem);
  --fs-body: clamp(1.0625rem, 0.4vw + 0.875rem, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight: 1.05;
  --lh-snug: 1.3;
  --lh-base: 1.55;

  --s-xs: 0.5rem;
  --s-s: 0.75rem;
  --s-m: 1rem;
  --s-l: 1.5rem;
  --s-xl: 2.5rem;
  --s-2xl: clamp(3rem, 6vw, 5rem);
  --s-3xl: clamp(4rem, 9vw, 7rem);

  --max-w: 1180px;
  --max-w-prose: 720px;
  --radius-card: 14px;
  --radius-button: 6px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 240ms;
}

/* ===== Reset + base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Skip link — a11y per WCAG 2.4.1 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 100;
  border-radius: 0 0 var(--radius-button) 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
  color: var(--paper);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body {
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

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

/* ===== Layout container ===== */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===== NAV ===== */
.nav {
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-l);
}
.nav-brand {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-brand small {
  font-family: var(--body);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.nav-cta {
  display: flex;
  gap: var(--s-s);
  align-items: center;
}
.nav-link {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding: 8px 12px;
}
.nav-link:hover { color: var(--brand); }
@media (max-width: 600px) {
  .nav-link.hide-mobile { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}
.btn-primary {
  background: var(--brand);
  color: var(--paper);
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-amber {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-amber:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--paper);
}

/* ===== HERO ===== */
.hero {
  padding: var(--s-3xl) 24px var(--s-2xl);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(29, 53, 87, 0.05), transparent 36%),
    radial-gradient(circle at 88% 80%, rgba(192, 138, 63, 0.04), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  gap: 0.5em;
  align-items: center;
  margin-bottom: var(--s-m);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.headline {
  font-family: var(--display);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: var(--s-l);
  text-wrap: balance;
  /* Variable-font axis kinetic-load on hero (set initial low weight; JS upgrades after first paint) */
  font-variation-settings: 'wght' 400, 'opsz' 100;
  transition: font-variation-settings 800ms var(--ease);
}
.headline.is-loaded {
  font-variation-settings: 'wght' 500, 'opsz' 144;
}
.headline em {
  font-style: italic;
  color: var(--brand);
  font-weight: 600;
}
.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
  margin-bottom: var(--s-xl);
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  gap: var(--s-m);
  flex-wrap: wrap;
  margin-bottom: var(--s-xl);
}
.trust-strip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-s);
  flex-wrap: wrap;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-alt);
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-strip strong { color: var(--ink); font-weight: 700; }
.trust-strip .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
  display: inline-block;
}

/* ===== Mono-dot rule divider (per Oxide pattern) ===== */
.rule-dots {
  font-family: var(--mono);
  color: var(--line);
  letter-spacing: 0.4em;
  text-align: center;
  user-select: none;
  margin: var(--s-2xl) 0;
  font-size: 0.875rem;
}
.rule-dots::before { content: '· · · · · · · · · ·'; }

/* ===== PRODUCT LIST (editorial rows by buyer outcome — slaney-dental pattern) ===== */
.products {
  padding: var(--s-2xl) 24px var(--s-3xl);
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  gap: 0.5em;
  align-items: center;
  margin-bottom: var(--s-m);
}
.section-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.section-title {
  font-family: var(--display);
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-m);
  line-height: var(--lh-snug);
  max-width: 32ch;
  text-wrap: balance;
}
.section-lede {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: var(--max-w-prose);
  margin-bottom: var(--s-xl);
  text-wrap: pretty;
}

/* Editorial row list — vertical stack of bordered rows */
.product-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--s-xl);
  border-bottom: 1px solid var(--line);
}
.product-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr) auto;
  gap: var(--s-xl);
  align-items: baseline;
  padding: var(--s-xl) 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding-left var(--duration) var(--ease);
}
@media (max-width: 800px) {
  .product-row {
    grid-template-columns: 1fr;
    gap: var(--s-s);
    padding: var(--s-l) 0;
  }
}
a.product-row:hover {
  padding-left: var(--s-s);
}
a.product-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--brand);
  transition: width var(--duration) var(--ease);
}
a.product-row:hover::before { width: 3px; }

.product-row-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-outcome {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--accent);
  font-weight: 700;
}
.product-name {
  font-family: var(--display);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: var(--lh-tight);
}
@media (max-width: 800px) { .product-name { font-size: 1.5rem; } }

.product-blurb {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.55;
  text-wrap: pretty;
}

.product-arrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
  align-self: center;
}
@media (max-width: 800px) {
  .product-arrow { align-self: flex-start; margin-top: var(--s-xs); }
}
.product-arrow::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--brand);
  transition: right var(--duration) var(--ease);
}
a.product-row:hover .product-arrow::after { right: 0; }

/* Coming soon row — quieter, no hover state */
.product-row.coming-soon {
  opacity: 0.7;
}
.product-row.coming-soon .product-name,
.product-row.coming-soon .product-outcome,
.product-row.coming-soon .product-arrow,
.product-row.coming-soon .product-blurb {
  color: var(--muted);
}
.product-row.coming-soon .product-arrow::after { display: none; }

/* ===== ABOUT STRIP ===== */
.about {
  padding: var(--s-2xl) 24px;
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-inner {
  max-width: 740px;
  margin: 0 auto;
}
.about p {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  font-weight: 400;
  text-wrap: pretty;
}
.hero + .about { border-top: 0; }
.about p + p { margin-top: var(--s-m); }
.about .sig {
  font-family: var(--mono);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: var(--s-l);
  display: block;
}

/* ===== TRUST RULE (thin transition strip between about and CTA tail) ===== */
.trust-rule {
  padding: var(--s-l) 24px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  display: block;
  width: 100%;
}
.trust-rule strong { color: var(--ink); font-weight: 700; }

/* ===== CTA TAIL ===== */
.cta-tail {
  padding: var(--s-2xl) 24px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-tail .section-inner { max-width: 720px; }
.cta-tail h2 {
  font-family: var(--display);
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--paper);
  margin-bottom: var(--s-m);
}
.cta-tail p {
  color: rgba(248, 245, 240, 0.78);
  margin-bottom: var(--s-xl);
}
.cta-tail .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.cta-tail .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--paper);
}

/* ===== FOOTER (product map) ===== */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: var(--s-2xl) 24px var(--s-l);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-xl);
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: var(--s-m);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-small);
}
.footer-col a, .footer-col span {
  color: var(--ink-soft);
}
.footer-col a:hover { color: var(--brand); }
.footer-col .pending {
  color: var(--muted);
  font-style: italic;
}

.footer-legal {
  max-width: var(--max-w);
  margin: var(--s-xl) auto 0;
  padding-top: var(--s-l);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-l);
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.footer-legal strong { color: var(--ink); font-weight: 700; font-family: var(--display); letter-spacing: -0.01em; font-size: 1rem; }
.footer-legal .reg-status { font-style: italic; }

/* ===== Print + high-contrast ===== */
@media print {
  .nav, .cta-tail, .footer { display: none; }
  body { background: white; color: black; }
}
@media (prefers-contrast: more) {
  :root {
    --line: #4a4a4a;
    --muted: #2d3239;
  }
  .product-card { border-width: 2px; }
}

/* ============ DEMO LIVE-LINE STRIP ============
   Surfaces the live AI Receptionist demo number on the hub home page.
   Sits between hero and products section so visitors can experience
   the product before reading three blurbs about it. Single tel: link,
   AI/recording disclosure, mobile-stack layout. */
.demo-line {
  max-width: 980px;
  margin: clamp(36px, 5vw, 64px) auto clamp(24px, 3vw, 40px);
  padding: clamp(20px, 3vw, 28px) clamp(20px, 4vw, 32px);
  border: 1px solid rgba(29, 53, 87, 0.18);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff9f0 0%, #fff3de 100%);
  position: relative;
  overflow: hidden;
}
.demo-line::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand, #1d3557);
}
.demo-line-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
}
@media (max-width: 720px) {
  .demo-line-inner { grid-template-columns: 1fr; }
}
.demo-line-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand, #1d3557);
  margin-bottom: 8px;
}
.demo-line-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f6a3c;
  display: inline-block;
}
.demo-line-eyebrow .dot-pulse {
  box-shadow: 0 0 0 0 rgba(31, 106, 60, 0.6);
  animation: demo-line-pulse 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes demo-line-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 106, 60, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(31, 106, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 106, 60, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-line-eyebrow .dot-pulse { animation: none; }
}
.demo-line-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #2d3239;
}
.demo-line-disclosure {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  font-style: italic;
}
.demo-line-call {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: #1a1812;
  padding: 14px 22px;
  background: #ffffff;
  border: 1px solid rgba(29, 53, 87, 0.25);
  border-radius: 4px;
  box-shadow: 0 3px 0 var(--brand, #1d3557);
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.15s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}
.demo-line-call:hover,
.demo-line-call:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--brand, #1d3557);
}
.demo-line-call:focus-visible {
  outline: 2px solid var(--brand, #1d3557);
  outline-offset: 4px;
}
@media (max-width: 720px) {
  .demo-line-call { align-items: center; width: 100%; }
}
.demo-line-call-prefix {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 4px;
}
.demo-line-call-number {
  font-family: "Fraunces", "Bodoni Moda", Georgia, serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.02em;
}
.demo-line-aside {
  margin: 14px 0 0;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.5);
  font-style: italic;
}
@media (prefers-reduced-motion: reduce) {
  .demo-line-call { transition: none; }
  .demo-line-call:hover { transform: none; }
}
