/* =============================================================================
   M.A.M.A.AI — company site styles
   Warm, human palette for the parent brand; Presponsieve keeps its own
   navy + magenta inside its product card.
   ========================================================================== */

/* ---- Fonts (self-hosted, SIL OFL — see /assets/fonts/LICENSE-*.txt) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ---- */
:root {
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #fbf8f3;
  --bg-alt: #f4eee6;
  --surface: #ffffff;
  --ink: #16182d;
  --text: #2e3047;
  --muted: #585b73;
  --line: #e7dfd4;
  --line-strong: #d6cbbd;
  --hover: rgb(22 24 45 / 0.06);

  --accent: #c4462a;
  --accent-hover: #a83a21;
  --accent-text: #b43f23;
  --on-accent: #ffffff;
  --accent-soft: #fbe5dc;
  --accent-glow: rgb(232 112 78 / 0.22);
  --sage-glow: rgb(120 150 130 / 0.18);

  --live: #1f8a5b;
  --soon: #b7791f;

  --core-bg: #16182d;
  --core-text: #fbf8f3;
  --tile: #c4462a;
  --tile-ink: #ffffff;
  --tile-dot: #ffd8c8;

  /* Presponsieve brand (fixed in both themes) */
  --p-bg: #0a0d1f;
  --p-panel: #10142e;
  --p-line: #252b52;
  --p-text: #e6e8f2;
  --p-muted: #9aa3c0;
  --p-accent: #ff4dff;
  --p-accent-strong: #ff7aff;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgb(22 24 45 / 0.05);
  --shadow: 0 1px 2px rgb(22 24 45 / 0.04), 0 10px 30px rgb(22 24 45 / 0.07);

  --container: 1160px;
  --gutter: 16px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121322;
    --bg-alt: #171929;
    --surface: #1d2034;
    --ink: #f7f2ea;
    --text: #dcd8e4;
    --muted: #a6a6bc;
    --line: #2a2d44;
    --line-strong: #3a3e5a;
    --hover: rgb(255 255 255 / 0.06);

    --accent: #ff9273;
    --accent-hover: #ffab92;
    --accent-text: #ff9273;
    --on-accent: #1a0f14;
    --accent-soft: #3a2228;
    --accent-glow: rgb(255 120 90 / 0.14);
    --sage-glow: rgb(120 150 200 / 0.10);

    --live: #4ade80;
    --soon: #f5b544;

    --core-bg: #f7f2ea;
    --core-text: #16182d;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
  }
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--muted); }

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

/* ---- Brand mark ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-tile { fill: var(--tile); }
.brand-m {
  fill: none;
  stroke: var(--tile-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-dot { fill: var(--tile-dot); }
.brand-ai { color: var(--accent-text); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--hover); }

.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-large { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }

.icon-external {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.site-nav { margin-left: auto; }
.nav-links {
  display: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { background: var(--hover); color: var(--ink); }
@media (min-width: 820px) {
  .nav-links { display: flex; }
}

/* ---- Shared section pieces ---- */
.section { padding-block: 72px; }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .section { padding-block: 112px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; font-size: clamp(2rem, 3vw + 1rem, 3.25rem); }
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 48px 72px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  z-index: -1;
  background:
    radial-gradient(closest-side, var(--accent-glow), transparent 70%),
    radial-gradient(closest-side at 30% 70%, var(--sage-glow), transparent 70%);
  pointer-events: none;
}
@media (min-width: 1024px) {
  .hero { padding-block: 88px 64px; }
}

.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; }
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 5.4vw + 0.6rem, 4.75rem);
  font-weight: 540;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.hero h1 .accent { color: var(--accent-text); }

.lede {
  max-width: 34em;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.125rem, 0.4vw + 1rem, 1.3rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.hero-tags li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 550;
}

/* ---- Hero: product-family orbit ----
   Everything inside scales with the orbit's own width (container query units),
   so the pills keep clear of the centre at every screen size. */
.orbit {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  margin: 0 auto;
  container-type: inline-size;
}
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-lines .ring { fill: none; stroke: var(--line-strong); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.orbit-lines .ring-dashed { stroke-dasharray: 3 7; }
.orbit-lines .link { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.orbit-lines .link-live { stroke: var(--accent); stroke-dasharray: none; }
.orbit-lines .spark { fill: var(--accent); }
.orbit-lines .spark-soft { fill: var(--line-strong); }
.orbit-spin {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: orbit-spin 80s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8cqw;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--core-bg);
  color: var(--core-text);
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2cqw color-mix(in srgb, var(--core-bg) 8%, transparent), var(--shadow);
}
.core-mark { width: 8.5cqw; height: auto; margin-bottom: 0.6cqw; }
.core-name { font-family: var(--font-display); font-weight: 620; font-size: clamp(0.8rem, 4.4cqw, 1.3rem); letter-spacing: 0.01em; line-height: 1.1; }
.core-sub { font-size: clamp(0.625rem, 2.6cqw, 0.8rem); opacity: 0.75; }

.orbit-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.55em 1em 0.55em 0.55em;
  border: 1px solid var(--line);
  border-radius: 1.15em;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: clamp(10px, 2.8cqw, 14px);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.orbit-node strong { display: block; color: var(--ink); font-size: 1.07em; font-weight: 650; line-height: 1.25; }
.orbit-node small { display: block; color: var(--muted); font-size: 0.86em; line-height: 1.3; }

.node-icon {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  flex: none;
  border-radius: 0.75em;
}
.node-icon img { width: auto; height: 2em; }
.node-icon svg { width: 1.45em; height: 1.45em; }
.node-icon svg, .principle-icon svg, .audience-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.principle-icon svg, .audience-icon svg { width: 20px; height: 20px; }
.node-icon-soon { background: var(--accent-soft); color: var(--accent-text); }

.node-presponsieve { left: 66%; top: 13%; background: var(--p-bg); border-color: var(--p-line); }
.node-presponsieve .node-icon { background: var(--p-panel); }
.node-presponsieve strong { color: #ffffff; }
.node-presponsieve small { color: var(--p-accent-strong); }
.node-enterprise { left: 74%; top: 90%; }
.node-consumer { left: 25%; top: 82%; }

/* ---- Purpose ---- */
.purpose-grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .purpose-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: end; }
}
.statement { margin-top: 14px; font-size: clamp(2rem, 3.4vw + 0.9rem, 3.5rem); }
.prose { display: grid; gap: 16px; max-width: 36em; font-size: 1.125rem; }
.prose strong { color: var(--ink); font-weight: 650; }

.principles {
  display: grid;
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .principles { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.principle {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.principle h3 { margin-top: 18px; font-size: 1.375rem; }
.principle p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.principle-icon, .audience-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* ---- What we build ---- */
.audience-grid { display: grid; gap: 20px; }
@media (min-width: 820px) {
  .audience-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.audience-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 1024px) {
  .audience-card { padding: 40px; }
}
.audience-card h3 { margin-top: 22px; font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2rem); }
.audience-for { margin-top: 6px; color: var(--accent-text); font-size: 0.9375rem; font-weight: 600; }
.audience-card > p:not(.audience-for):not(.status) { margin-top: 14px; color: var(--muted); }
.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}
.status a { margin-left: -4px; }
.status-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.status-live { background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 20%, transparent); }
.status-soon { background: var(--soon); box-shadow: 0 0 0 4px color-mix(in srgb, var(--soon) 20%, transparent); }

/* ---- Products ---- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge-live { background: rgb(52 211 153 / 0.14); color: #6ee7b7; }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
.badge-dark { background: rgb(255 255 255 / 0.08); color: var(--p-text); }
.badge-soon { align-self: flex-start; background: var(--accent-soft); color: var(--accent-text); }

.product-feature {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--p-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(214 60 255 / 0.20), transparent 55%),
    radial-gradient(80% 70% at 0% 100%, rgb(47 111 214 / 0.16), transparent 60%),
    var(--p-bg);
  color: var(--p-text);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .product-feature { grid-template-columns: 1.35fr 0.65fr; }
}
.pf-body { padding: 32px 24px; }
@media (min-width: 640px) { .pf-body { padding: 44px; } }
@media (min-width: 1024px) { .pf-body { padding: 56px; } }

.pf-name {
  margin-top: 20px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 3vw + 1rem, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pf-tagline { margin-top: 10px; color: var(--p-accent-strong); font-size: clamp(1.125rem, 0.6vw + 1rem, 1.375rem); font-weight: 600; }
.pf-desc { max-width: 40em; margin-top: 18px; color: var(--p-text); }

.pf-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.pf-uses li {
  padding: 6px 12px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  background: var(--p-panel);
  font-size: 0.875rem;
  font-weight: 550;
}

.pf-facts {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--p-muted);
  font-size: 0.9375rem;
}
.pf-facts li { display: flex; align-items: baseline; gap: 10px; }
.pf-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--p-accent);
  transform: translateY(-2px);
}

.pf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-magenta { background: var(--p-accent); color: var(--p-bg); }
.btn-magenta:hover { background: var(--p-accent-strong); }
.btn-ghost-dark { border-color: var(--p-line); color: #ffffff; }
.btn-ghost-dark:hover { background: rgb(255 255 255 / 0.07); }
.product-feature :focus-visible { outline-color: var(--p-accent); }

.pf-art {
  display: none;
  place-items: center;
  padding: 40px;
  border-left: 1px solid var(--p-line);
  background: radial-gradient(closest-side, rgb(255 77 255 / 0.14), transparent);
}
.pf-art img { width: min(100%, 200px); height: auto; }
@media (min-width: 900px) {
  .pf-art { display: grid; }
}

.next-grid { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 760px) {
  .next-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.next-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
}
.next-card h3 { font-size: 1.375rem; }
.next-card p { color: var(--muted); font-size: 1rem; }
.next-card-cta { border-style: solid; border-color: var(--line); background: var(--surface); }
.text-link { margin-top: auto; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---- Contact ---- */
.section-contact { padding-top: 0; }
.contact-card {
  display: grid;
  gap: 32px;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 100% 100%, var(--accent-glow), transparent 60%),
    var(--accent-soft);
}
@media (min-width: 640px) { .contact-card { padding: 48px; } }
@media (min-width: 900px) {
  .contact-card { grid-template-columns: 1.2fr 0.8fr; align-items: center; padding: 64px; }
}
.contact-copy h2 { margin-top: 14px; font-size: clamp(2rem, 3vw + 1rem, 3.25rem); }
.contact-copy p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.contact-actions { display: grid; gap: 16px; justify-items: start; }
@media (min-width: 900px) { .contact-actions { justify-items: end; text-align: right; } }
.contact-actions .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.contact-alt { color: var(--muted); font-size: 0.9375rem; }

/* ---- Footer ---- */
.site-footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p { max-width: 30em; margin-top: 14px; color: var(--muted); }
.footer-heading {
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer > .footer-bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---- 404 ---- */
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 120px);
  padding-block: 80px;
  text-align: center;
}
.not-found .code {
  font-family: var(--font-display);
  color: var(--accent-text);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 500;
  line-height: 1;
}
.not-found h1 { margin-top: 12px; font-size: clamp(2rem, 4vw, 3rem); }
.not-found p { max-width: 30em; margin: 16px auto 0; color: var(--muted); font-size: 1.125rem; }
.not-found .btn { margin-top: 32px; }

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
