/* Shared layout for the Maya product site */
.maya-product {
  --layout-radius: 14px;
  --layout-gap: clamp(12px, 2vw, 22px);
  --layout-padding: clamp(20px, 2.65vw, 32px);
  --layout-surface: #0b1421;
  --layout-muted: #0a111c;
  --layout-border: #23354b;
  --layout-heading: clamp(1.9rem, 3.7vw, 2.75rem);
  --layout-title: clamp(1.1rem, 2vw, 1.28rem);
}

[data-theme="light"] .maya-product {
  --layout-surface: #fff;
  --layout-muted: #edf4fb;
  --layout-border: #c3d3e5;
}

.maya-product .wrap { width: min(100% - 3.5rem, 1160px); }
.maya-product .site-main { background: var(--bg); }
.maya-product .site-header { border-color: var(--layout-border); }
.maya-product .header-inner { min-height: 69px; }
.maya-product .header-cta { font-size: .83rem; min-height: 40px; }
.maya-product .section { padding-block: clamp(55px, 7.3vw, 94px); }
.maya-product .section h2 {
  font: 770 var(--layout-heading)/1.13 Inter, system-ui, sans-serif;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.maya-product .section h3 {
  font: 730 var(--layout-title)/1.27 Inter, system-ui, sans-serif;
  letter-spacing: -.019em;
}
.maya-product .section p:not(.eyebrow) { line-height: 1.62; }
.maya-product .market-heading { margin-bottom: clamp(24px, 4vw, 45px); }
.maya-product .market-heading p { max-width: 62ch; font-size: 1rem; }
.maya-product .button { border-radius: 9px; }
.maya-product .button.outline { border-color: var(--layout-border); }
.maya-product .button.outline:hover { border-color: var(--accent); }

/* Opening and WhatsApp demo */
.product-hero {
  --layout-border: #253b53;
  --panel: #121f2e;
  --muted: #bdcde0;
  background: radial-gradient(ellipse at 76% 42%, #152c49 0%, #0b1524 46%, #080f1a 73%);
}
.product-hero .hero-track { opacity: .37; }
.product-hero .product-hero-grid {
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  gap: clamp(18px, 3vw, 36px);
  padding-block: 37px 23px;
  min-height: 0;
}
.product-hero h1 {
  font: 800 clamp(2.55rem, 5vw, 4.15rem)/1.01 Inter, system-ui, sans-serif;
  letter-spacing: -.064em;
  max-width: none;
}
.product-hero .hero-copy { padding-block: 0; }
.product-hero .hero-copy .eyebrow { margin-bottom: 19px; font-size: .76rem; }
.product-hero .hero-copy > p:not(.eyebrow) { max-width: 43ch; font-size: 1.02rem; margin-top: 22px; }
.product-hero .hero-copy .adoption { font-size: .83rem; margin-top: 20px; }
.product-hero .hero-copy .actions { margin-top: 22px; gap: 9px; }
.product-hero .hero-copy .button { font-size: .89rem; }
.product-hero .hero-demo { gap: 0; scroll-margin-top: 85px; }
.hero-demo::before {
  inset: 2% -6% 2%;
  background:
    repeating-radial-gradient(ellipse 75% 80% at 50% 50%, transparent 0 37px, #a3dbff13 38px 39px, transparent 40px 66px),
    radial-gradient(ellipse, #367ac250, transparent 73%);
  mask-image: radial-gradient(ellipse at 50% 48%, #000 34%, transparent 73%);
}
.product-hero .iphone-18-pro-max { width: min(100%, 248px); }
.product-hero .product-handoff {
  z-index: 1;
  margin: -10px 0 0;
  padding: 9px 12px;
  width: min(100%, 285px);
  border: 1px solid #3e607b;
  border-radius: 10px;
  background: #111f30;
  box-shadow: 0 8px 24px #03091270;
}
.product-hero .product-handoff strong { min-height: 2.55em; line-height: 1.32; font-size: .82rem; }
.product-hero .hero-demo-controls {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--layout-border);
}
.hero-demo-controls p { font-size: .74rem; font-weight: 660; }
.hero-demo-controls .choice { justify-content: center; max-width: none; gap: 5px; }
.hero-demo-controls .choice button { min-height: 36px; border-radius: 999px; padding: 5px 12px; }

/* Home metrics sit alongside the content they describe. */
.context-metric { margin: 22px 0 0; }
.context-metric > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 13px;
  width: fit-content;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--layout-border);
  border-inline-start: 2px solid var(--accent);
  border-radius: 9px;
  background: var(--layout-surface);
}
.context-metric dt { order: 1; color: var(--muted); font-size: .83rem; font-weight: 650; }
.context-metric dd {
  margin: 0;
  color: var(--accent);
  font: 800 clamp(1.55rem, 3vw, 2.05rem)/1 Barlow, sans-serif;
  white-space: nowrap;
}
#como-funciona .context-metric, .testimonials .context-metric {
  width: fit-content;
  margin-inline: auto;
}
.testimonials .context-metric { margin: 0 auto 25px; }
.home-trajectory {
  margin-top: 22px;
  padding-block: 16px;
  border-block: 1px solid var(--layout-border);
  scroll-margin-top: 85px;
}
.home-trajectory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.35fr);
  gap: 8px;
}
.home-trajectory .stat { padding-left: 10px; gap: 4px; }
.home-trajectory .stat:first-child { padding-left: 0; border-left: 0; }
.home-trajectory .stat strong { font-size: clamp(1.18rem, 2.65vw, 2.25rem); }
.home-trajectory .stat > span { font-size: clamp(.67rem, 1.4vw, .83rem); line-height: 1.35; }
/* Cards, charts and sections */
.maya-product .market-pair,
.maya-product .market-capabilities,
.maya-product .impact-cards,
.maya-product .specialty-grid,
.maya-product .testimonials-grid { gap: var(--layout-gap); }

.maya-product .pain-card,
.maya-product .capability,
.maya-product .specialty-grid article,
.maya-product .testimonial-card {
  padding: var(--layout-padding);
  background-color: var(--layout-surface);
  border-color: var(--layout-border);
  border-radius: var(--layout-radius);
}

.maya-product .capability {
  gap: 11px;
  transition: transform .24s var(--curve), border-color .24s, box-shadow .24s;
}
.maya-product .capability p,
.maya-product .market-pair li,
.maya-product .market-compare li { font-size: .93rem; }
.maya-product .capability .service-marks {
  width: 46px;
  height: 46px;
  margin-bottom: 3px;
  background: color-mix(in srgb, var(--accent) 10%, var(--layout-surface));
  border-color: var(--layout-border);
}
.maya-product .market-pair .pain-card:first-child { border-inline-start: 2px solid var(--accent); }
.maya-product .market-pair .market-gap { border-inline-start: 2px solid var(--market-issue); }
.maya-product .market-pair ul { gap: 10px; margin-top: 15px; }
.maya-product .market-pair svg { width: 19px; height: 19px; margin-top: 3px; }
.maya-product .coverage-chart {
  grid-template-columns: minmax(130px, 185px) minmax(0, 1fr);
  margin-top: var(--layout-gap);
  padding: var(--layout-padding);
  gap: clamp(19px, 4vw, 45px);
  border-color: var(--layout-border);
  background: var(--layout-surface);
}
.maya-product .coverage-chart .coverage-dial { width: min(100%, 176px); }
.maya-product .coverage-dial-number strong { font-size: 2.7rem; }
.maya-product .coverage-copy h3 { font-size: clamp(1.16rem, 2.4vw, 1.55rem); margin-bottom: 12px; }
.maya-product .coverage-chart .eyebrow { margin-bottom: 5px; }
.maya-product .coverage-bars { max-width: 100%; }
.maya-product .maya { border-color: var(--layout-border); background: var(--layout-muted); }
.maya-home .channel-catalog { gap: 18px; margin-top: 29px; }
.maya-home .channel-group { padding: 15px 0 0; border: 0; border-top: 1px solid var(--layout-border); border-radius: 0; background: none; }
.maya-home .channel-group h3 { font-size: .93rem; }
.maya-home .channel-group li { padding: 2px 4px 2px 0; border: 0; }
.maya-home .channel-group ul { gap: 3px 9px; margin-top: 8px; }
.product-detail-link { margin-top: 16px; }
.maya-product .product-impact {
  background: radial-gradient(ellipse at 40% 100%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%), var(--layout-muted);
  border-color: var(--layout-border);
}
.maya-product .impact-cards .capability { box-shadow: none; }
.maya-product .market-compare article:first-child {
  border-color: color-mix(in srgb, var(--issue-ink) 26%, var(--layout-border));
}
.maya-product .market-compare article + article {
  border-color: color-mix(in srgb, var(--accent) 33%, var(--layout-border));
}
.maya-product .market-compare ul { margin-top: 16px; gap: 9px; }
.maya-product .trust-section, .maya-product .faq { background: var(--layout-muted); border-color: var(--layout-border); }
.maya-product .product-about { padding-block: 0; }
.maya-product .conversion-panel { padding: clamp(23px, 4.5vw, 48px); }
.maya-product .conversion-panel h2 { max-width: 23ch; }
.maya-product .testimonials h2 { margin-bottom: 0; }

/* Three steps, each with a message and its outcome */
.maya-product .flow-studio { margin-top: 0; padding: 0; background: none; border: 0; }
.maya-product .flow-heading { text-align: center; }
.maya-product .flow-nodes { margin: 20px 0 15px; gap: 30px; }
.maya-product .flow-nodes button { padding: 15px 10px; min-height: 145px; }
.maya-product .flow-nodes li .flow-arrow { color: var(--accent); left: calc(100% + 7px); }
.maya-product .flow-nodes button[aria-pressed=true] { border-color: var(--layout-border); background: var(--layout-muted); }
.maya-product .flow-nodes button:hover { border-color: var(--accent); }
.maya-product .flow-studio .flow-node-icon { width: 52px; height: 52px; border: 1px solid var(--layout-border); border-radius: 12px; }
.maya-product .flow-node-icon:not(.flow-node-maya) { background: var(--layout-surface); }
.maya-product .flow-detail { gap: var(--layout-gap); }
.maya-product .flow-message, .maya-product .flow-record {
  background: var(--layout-surface);
  border-color: var(--layout-border);
  padding: clamp(14px, 2.4vw, 22px);
}
.maya-product .flow-record { border-inline-start: 2px solid var(--accent); }

/* Route headers and internal pages */
.maya-product .subpage-lead {
  padding-block: clamp(45px, 6vw, 73px);
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 74%), var(--layout-muted);
  border-color: var(--layout-border);
}
.maya-product .subpage-lead h1, .maya-product .contact-page h1 {
  font: 790 clamp(2.35rem, 5.3vw, 3.85rem)/1.07 Inter, system-ui, sans-serif;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.maya-product .subpage-lead p:last-child { max-width: 60ch; }
.maya-product .inner-page .section-head { margin-bottom: clamp(18px, 3vw, 31px); }
.maya-product .inner-page .agent-map,
.maya-product .inner-page .implementation-list li,
.maya-product .inner-page .briefing {
  background: var(--layout-surface);
  border-color: var(--layout-border);
}
.maya-product .site-footer { border-color: var(--layout-border); }

@media (hover: hover) {
  .maya-product .capability:hover { border-color: var(--accent); box-shadow: 0 10px 22px #18538423; }
}

@media (max-width: 920px) {
  .maya-product .header-inner { min-height: 60px; }
}

@media (max-width: 700px) {
  .maya-product .wrap { width: calc(100% - 2rem); }
  .product-hero .product-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; padding-top: 26px; }
  .product-hero .hero-copy { text-align: center; }
  .product-hero .hero-copy > p:not(.eyebrow) { margin: 13px auto 0; font-size: .92rem; }
  .product-hero .hero-copy .eyebrow { margin-bottom: 12px; font-size: .69rem; }
  .product-hero .hero-copy .actions { justify-content: center; margin-top: 16px; }
  .product-hero .hero-copy .adoption { font-size: .77rem; margin-top: 13px; }
  .product-hero .hero-copy .button { font-size: .75rem; padding-inline: 10px; }
  .product-hero .hero-copy .outline { border-color: transparent; background: transparent; }
  .product-hero .hero-copy .outline:hover { border-color: var(--layout-border); }
  .product-hero h1 { font-size: clamp(2.05rem, 8.55vw, 3.55rem); }
  .product-hero .iphone-18-pro-max { width: min(100%, 225px); }
  .product-hero .messages .bubble { font-size: .76rem; }
  .maya-home .channel-catalog { gap: 14px; }
}

@media (max-width: 530px) {
  .maya-product .market-heading p { font-size: .92rem; }
  .maya-product .coverage-chart { grid-template-columns: minmax(0, 1fr); }
  .maya-product .coverage-chart .coverage-dial { width: 133px; }
  .maya-product .coverage-dial-number strong { font-size: 2.2rem; }
  .maya-product .coverage-dial-number small { font-size: .62rem; }
  .maya-product .flow-nodes { gap: 10px; }
  .maya-product .flow-nodes button { min-height: 0; grid-template-columns: 42px 1fr; align-items: center; column-gap: 11px; }
  .maya-product .flow-studio .flow-node-icon { grid-row: span 2; width: 42px; height: 42px; }
  .maya-product .flow-nodes button strong { margin-top: 0; }
  .maya-product .flow-nodes button small { grid-column: 2; }
}
