/* Prototype-inspired presentation layer. Content stays in content/*.md;
   shared structure stays in templates/. Keep the existing Katara font stack. */
:root {
  --bg: #080c0e;
  --bg-raised: #101719;
  --bg-soft: #152225;
  --line: #293b3e;
  --line-strong: #526b70;
  --text: #eff5f4;
  --muted: #a9bbbd;
  --dim: #789194;
  --primary: #20d9e4;
  --primary-strong: #68e5eb;
  --accent: #20d9e4;
  --shadow: 0 14px 35px #0008;
  --radius: 5px;
  --container: min(1160px, calc(100vw - 64px));
}

html { scroll-padding-top: 24px; }
body { background: var(--bg); line-height: 1.65; }
body::before { display: none; }
h1, h2, h3 { font-weight: 700; }
a:hover { color: var(--primary); }

/* Quiet, compact shared chrome. */
.site-header {
  display: flex;
  position: relative;
  min-height: 84px;
  gap: 20px;
  padding: 0;
  background: var(--bg);
  backdrop-filter: none;
}
.brand-partner-group { flex-shrink: 0; }
.site-nav {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 20px;
  min-width: 0;
  margin-left: auto;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}
.site-nav > a, .site-nav summary { white-space: nowrap; }
.site-nav .nav-menu-group { position: relative; }
.site-nav .nav-dropdown {
  top: calc(100% + 12px);
  left: 0;
  right: auto;
  min-width: 248px;
  padding: 10px;
  background: #142125;
  border-color: #476065;
}
/* Keep right-edge menus inside the viewport even without JavaScript fitting. */
.site-nav .nav-menu-group:nth-last-child(-n + 2) .nav-dropdown { left: auto; right: 0; }
.nav-dropdown a { padding: 11px 13px; line-height: 1.35; }
.nav-dropdown small { margin-top: 4px; font-size: 11px; }
.header-actions { flex-shrink: 0; }
.header-cta, .nav-toggle {
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.4;
  text-transform: none;
}
.nav-toggle { display: none; color: var(--text); background: transparent; cursor: pointer; }
.nav-toggle::after { content: " +"; color: var(--primary); }
.nav-toggle[aria-expanded="true"]::after { content: " −"; }

.button, .pricing-table .pricing-plan-cta {
  min-height: 48px;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid var(--primary);
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}
.button-primary { color: #082225; background: var(--primary); }
.button-primary:hover { color: #082225; background: var(--primary-strong); border-color: var(--primary-strong); }
.button-secondary { color: var(--text); background: transparent; border-color: var(--line-strong); }
.button-secondary:hover { color: var(--primary); background: transparent; border-color: var(--primary); }

/* The hero shortcode owns the layout; Markdown emphasis owns the highlighted phrase. */
.website-content.product-page { width: 100%; margin: 0; }
.website-content .product-hero {
  padding: 62px 0 48px;
  border-bottom: 1px solid var(--line);
}
.website-content.home-layout .product-hero { padding: 42px 0 38px; }
.website-content .hero-copy { min-width: 0; }
.website-content .product-hero h1 {
  max-width: 1000px;
  margin: 0 0 23px;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.045em;
  overflow-wrap: normal;
}
.website-content.home-layout .product-hero h1 { max-width: 900px; font-size: 58px; margin-bottom: 18px; }
.website-content .product-hero h1 em { display: block; color: var(--primary); font-style: normal; }
.website-content .product-hero .lead { max-width: 760px; margin: 0 0 18px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.website-content :is(.eyebrow, .section-eyebrow) {
  max-width: none;
  margin: 0 0 18px;
  color: var(--primary);
  font-family: "Chivo Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.website-content .hero-actions { gap: 14px; margin-top: 25px; }
.website-content .hero-copy > p:last-child:has(> a:only-child) { margin: 18px 0 0; font-size: 14px; }
.website-content .hero-copy > p:last-child > a:only-child { color: var(--primary); font-weight: 600; }

/* Surface, spacing and reading rhythm from the prototype's reusable blocks. */
.website-content .product-section, .website-content.home-layout .product-section { padding: 58px 0; }
.website-content .product-section h2 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.032em;
}
.website-content .product-section > p:not(.section-eyebrow) { max-width: 810px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.website-content :is(.capability-grid, .workflow-grid) { gap: 22px; }
.website-content :is(.capability-grid, .workflow-grid) article {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.website-content :is(.capability-grid, .workflow-grid) h3 { margin: 0 0 13px; font-size: 23px; line-height: 1.25; letter-spacing: -.02em; }
.website-content :is(.capability-grid, .workflow-grid) p { margin-bottom: 18px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.website-content :is(.capability-grid, .workflow-grid) p:last-child { margin-bottom: 0; }
.website-content :is(.capability-grid, .workflow-grid) article > p:first-child:has(> strong:only-child) { margin-bottom: 23px; line-height: 1.4; }
.website-content :is(.capability-grid, .workflow-grid) article > p:first-child > strong:only-child { color: var(--primary); font-family: "Chivo Mono", monospace; font-size: 10px; font-weight: 400; letter-spacing: .09em; text-transform: uppercase; }
.website-content #workflows article { display: flex; flex-direction: column; transition: border-color .15s, background .15s; }
.website-content #workflows article:hover { border-color: #49777c; background: #122124; }
.website-content #workflows article h3 { font-size: 24px; }
.website-content #workflows article h3 a { color: var(--text); text-decoration: none; }
.website-content #workflows article > p:last-child { margin-top: auto; padding-top: 18px; }
.website-content #workflows article > p:last-child a { font-size: 14px; font-weight: 700; text-decoration: none; }
.website-content .product-section > :is(ul, ol) { font-size: 18px; }
.website-content .final-cta { padding: 48px 32px; margin: 32px 0 58px; border: 1px solid #345459; border-radius: var(--radius); background: #102023; }
.website-content .faq-item summary { padding: 21px 0; }
.website-content .faq-item summary h3 { font-size: 17px; font-weight: 600; letter-spacing: normal; }
.website-content .faq-answer { font-size: 16px; }
.website-content .video-player { border-radius: var(--radius); }
.website-content .route-context { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.website-content .contact-form label { font-size: 13px; }
.website-content .contact-form :is(input, textarea, select) { padding: 11px 12px; border-color: #557075; border-radius: 3px; background: #0c1619; font-size: 16px; }
.website-content .contact-form textarea { min-height: 118px; }

/* Keep the actual plan table and its new CTAs, but bring its introduction into the same system. */
.pricing-page { padding: 62px 0 80px; }
.pricing-page__hero { grid-template-columns: 1fr; gap: 18px; padding-bottom: 48px; }
.pricing-page h1 { max-width: 900px; font-size: 64px; font-weight: 700; line-height: 1.05; letter-spacing: -.045em; }
.pricing-page__intro { max-width: 760px; font-size: 19px; line-height: 1.6; }
.pricing-page__eyebrow, .pricing-section__eyebrow { font-size: 11px; font-weight: 400; letter-spacing: .13em; }
.pricing-section { padding: 58px 0; }
.pricing-section__header { gap: 40px; }
.pricing-section__header h2 { font-size: 36px; font-weight: 700; line-height: 1.18; letter-spacing: -.032em; }
.pricing-section__lead, .pricing-section__note { font-size: 17px; }
.pricing-table-region, .pricing-list { background: var(--bg-raised); box-shadow: none; }
.pricing-detail-card, .pricing-trials article { border-radius: var(--radius); }
.pricing-includes, .pricing-detail-grid { overflow: hidden; border-radius: var(--radius); }
.content-page { padding: 62px 0 80px; }
.content-header h1 { font-size: 58px; font-weight: 700; letter-spacing: -.045em; }

.site-footer { padding: 42px 0 22px; }
.footer-top { grid-template-columns: minmax(120px, .6fr) minmax(0, 2fr); gap: 56px; margin-bottom: 30px; }
.footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.footer-columns h2 { margin-bottom: 12px; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: normal; text-transform: none; }
.footer-columns a { margin-bottom: 8px; font-size: 13px; }
.footer-columns a + h2 { margin-top: 24px; }
.footer-divider { margin-bottom: 20px; }
.copyright { font-size: 11px; text-align: left; letter-spacing: normal; text-transform: none; }

@media (max-width: 1080px) {
  .site-header { flex-wrap: wrap; gap: 16px; padding: 16px 0; }
  .site-nav { order: 3; flex-basis: 100%; justify-content: space-between; margin: 0; }
  .header-actions { margin-left: auto; }
  .website-content .product-hero h1, .pricing-page h1 { font-size: 54px; }
  .website-content.home-layout .product-hero h1 { font-size: 53px; }
}

@media (max-width: 700px) {
  :root { --container: calc(100vw - 36px); }
  .site-header { min-height: 74px; gap: 12px; padding: 14px 0; }
  .nav-toggle:not([hidden]) { display: inline-flex; margin-left: auto; }
  .header-actions { display: flex; order: 2; width: 100%; margin: 0; }
  .header-actions .header-cta { width: 100%; justify-content: center; text-align: center; }
  .site-nav { order: 3; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; font-size: 15px; }
  .site-header[data-navigation-ready] .site-nav:not(.is-navigation-open) { display: none; }
  .site-nav > a, .site-nav summary { display: block; padding: 13px 6px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-menu-group { position: static; }
  .site-nav .nav-dropdown { position: static; width: 100%; min-width: 0; padding: 5px 10px; margin: 0 0 10px; border: 0; box-shadow: none; }
  .website-content .product-hero, .website-content.home-layout .product-hero { padding: 33px 0 30px; }
  .website-content .product-hero h1, .website-content.home-layout .product-hero h1, .pricing-page h1 { max-width: 100%; margin-bottom: 18px; font-size: 42px; line-height: 1.08; letter-spacing: -.043em; }
  .website-content .product-hero .lead, .pricing-page__intro { font-size: 17px; line-height: 1.6; }
  .website-content :is(.eyebrow, .section-eyebrow) { font-size: 10px; letter-spacing: .08em; margin-bottom: 14px; }
  .website-content .hero-actions { gap: 10px; margin-top: 20px; }
  .website-content .hero-actions .button { width: auto; flex: 1 1 140px; font-size: 13px; padding: 12px 15px; }
  .website-content .product-section, .website-content.home-layout .product-section { padding: 40px 0; }
  .website-content .product-section h2, .pricing-section__header h2 { font-size: 30px; line-height: 1.18; letter-spacing: -.028em; }
  .website-content .product-section > p:not(.section-eyebrow) { font-size: 17px; }
  .website-content :is(.capability-grid, .workflow-grid) { grid-template-columns: 1fr; gap: 18px; }
  .website-content :is(.capability-grid, .workflow-grid) article { padding: 23px; }
  .website-content .final-cta { margin: 24px 0 40px; padding: 30px 24px; }
  .pricing-page { padding: 33px 0 60px; }
  .pricing-page__hero { padding-bottom: 30px; }
  .pricing-section { padding: 40px 0; }
  .pricing-section__header { grid-template-columns: 1fr; gap: 18px; }
  .content-page { padding: 40px 0 60px; }
  .content-header h1 { font-size: 38px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-columns > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 350px) {
  .website-content .product-hero h1, .website-content.home-layout .product-hero h1, .pricing-page h1 { font-size: 37px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .website-content #workflows article { transition: none; }
}
