/* Marketing site (landing page). */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1120px; margin: 0 auto; width: 100%; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 18px clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--divider); position: sticky; top: 0; background: var(--header-bg); backdrop-filter: blur(8px); z-index: 10; }
.site-nav { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; flex-wrap: wrap; }
.site-nav a, .site-signin { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.site-cta { font-size: 14.5px; padding: 9px 18px; }
/* Phones and tablets: the page links don't fit beside the buttons (they wrapped into a second row, and below 760px
   they were simply hidden, leaving no way to the other pages), so they move into the Menu. */
.site-menu { display: none; }
@media (max-width: 1023px) {
  .site-header { flex-wrap: nowrap; gap: 12px; }
  .site-nav, .site-signin { display: none; }
  .site-actions { gap: 10px; flex: none; }
  .site-menu { display: block; }
}
@media (max-width: 479px) { .site-actions .site-cta { display: none; } } /* it's the menu's last item, and on every page's hero */
.site-menu > summary { list-style: none; }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu-button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; }
.site-menu-button:focus-visible { outline: 2px solid var(--focus, var(--primary-solid)); outline-offset: 2px; }
.site-menu-close, .site-menu[open] .site-menu-open { display: none; }
.site-menu[open] .site-menu-close { display: block; }
.site-menu-panel { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: 8px clamp(20px, 4vw, 48px) 20px;
  background: var(--surface); border-bottom: 1px solid var(--divider); box-shadow: var(--shadow-pop); max-height: calc(100dvh - 80px); overflow-y: auto; }
.site-menu-link { display: block; padding: 14px 2px; border-bottom: 1px solid var(--divider); color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.site-menu-link.is-current { color: var(--primary-solid); }
.site-menu-cta { margin-top: 16px; width: 100%; justify-content: center; padding: 12px 16px; font-size: 15px; }

.hero { position: relative; overflow: hidden; padding: clamp(56px, 10vw, 96px) clamp(20px, 4vw, 48px) 88px; background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }
.hero-amp { right: -60px; top: -120px; font-size: 640px; }
.hero-copy { max-width: 880px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; position: relative; }
.badge-pill { font-family: var(--mono); font-size: 13px; color: var(--primary); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(38px, 5.4vw, 58px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.hero h1 .accent { color: var(--primary); }
.hero-copy > p { font-size: 19px; color: var(--ink-2); line-height: 1.6; max-width: 660px; }
.hero-demo { max-width: 760px; margin: 64px auto 0; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-pop); overflow: hidden; }
.hero-demo-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--divider); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.hero-demo-prompt { padding: 20px; display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--divider); background: var(--tint); }
.hero-demo-prompt p { font-size: 15.5px; line-height: 1.6; }
.hero-demo-avatar { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--ink-solid); color: var(--on-navy); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.hero-demo-steps { padding: 8px 20px 4px; }
.hero-step { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--row); font-size: 14.5px; align-items: center; }
.hero-step .mono { font-size: 12px; color: var(--accent); }
.hero-step-tag { font-family: var(--mono); font-size: 11.5px; color: var(--success-ink); background: var(--success-soft); padding: 3px 9px; border-radius: 999px; }

.logos { padding: 36px clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--divider); }
.logos .container { gap: 20px 36px; }
.logo { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--subtle); }

.section { padding: 80px clamp(20px, 4vw, 48px) 72px; scroll-margin-top: 72px; }
.section-tint { background: var(--tint); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section-navy { background: var(--navy); }
.section-navy .kicker { color: var(--sky); }
.section-navy h2 { color: var(--on-navy); }
.section-intro { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-intro h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.section-intro p { font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.connector { padding: 18px; border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.connector:hover { border-color: var(--accent); }
.feature-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.feature-title { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.feature-card p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.deploy-card { background: var(--navy-2); border: 1px solid var(--on-navy-edge); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.deploy-card h3 { font-size: 24px; font-weight: 600; color: var(--on-navy); letter-spacing: -0.01em; }
.deploy-card p { font-size: 15px; line-height: 1.65; color: var(--sky-text); }
.deploy-points { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--on-navy-line); font-family: var(--mono); font-size: 13px; color: var(--on-navy-2); }
.included { color: var(--on-navy-ok); }
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 64px; align-items: start; }
.security-card { padding: 20px; background: var(--tint); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.is-featured { border: 2px solid var(--accent); }
.plan-flag { position: absolute; top: -11px; left: 22px; font-family: var(--mono); font-size: 11px; color: var(--text-on-primary); background: var(--accent-solid); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.plan-price { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.plan-items { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--divider); padding-top: 16px; flex: 1; }
.faq { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.faq[open] { border-color: var(--accent); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font: 600 16px var(--font); padding: 18px 20px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--accent); flex: none; }
.faq-icon::after { content: "+"; }
.faq[open] .faq-icon::after { content: "−"; }
.faq p { font-size: 15px; line-height: 1.65; padding: 0 20px 20px; color: var(--ink-2); }
.closing { padding: 88px clamp(20px, 4vw, 48px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; border-top: 1px solid var(--divider); }
.closing h2 { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; max-width: 640px; }
.site-footer { border-top: 1px solid var(--divider); padding: 32px clamp(20px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Contact: each box's title, description, address and note sit on the same lines as the boxes beside it, however long
   each description is (the rows are shared with subgrid). */
.contact-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
.contact-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
.contact-card .btn { justify-self: start; align-self: start; }
.contact-card p { align-self: start; }
/* The pricing page's plans: five in a row on a wide screen, each with its button in the same place. */
.pricing-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; align-items: stretch; }
.pricing-plan { padding: 24px 22px; gap: 16px; }
.pricing-plan .plan-flag { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.pricing-plan-blurb { min-height: 4.2em; }
.pricing-note { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.pricing-note p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 760px; }
.pricing-note strong { color: var(--ink); font-weight: 600; }
.pricing-plan .plan-price { font-size: 34px; }
.nowrap { white-space: nowrap; }
.pricing-plan .plan-items { gap: 10px; }
.pricing-check { color: var(--accent); font-weight: 600; flex: none; }
.page-hero .row { margin-top: 4px; }

/* Wide tables become a card per row on phones (stack_table_controller labels each cell with its column), instead of
   scrolling sideways inside their box; the pricing table (.table-stack-wide, 860px) on tablets too. */
@media (max-width: 639px) {
  .table.table-stack { overflow: visible; border: 0; background: transparent; display: flex; flex-direction: column; gap: 12px; }
  .table.table-stack .table-head { display: none; }
  .table.table-stack .table-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: left; }
  .table.table-stack .table-row > * { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-width: 0; padding: 0; text-align: right; overflow-wrap: anywhere; }
  .table.table-stack .table-row > *::before { content: attr(data-label); flex: 0 0 auto; max-width: 50%; color: var(--ink-3); font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; text-align: left; white-space: nowrap; }
  .table.table-stack .table-row > :first-child { justify-content: flex-start; font-size: 16px; font-weight: 600; text-align: left; }
  .table.table-stack .table-row > :first-child::before { content: none; }
}

@media (max-width: 899px) {
  .table.table-stack-wide { overflow: visible; border: 0; background: transparent; display: flex; flex-direction: column; gap: 12px; }
  .table.table-stack-wide .table-head { display: none; }
  .table.table-stack-wide .table-row { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: left; }
  .table.table-stack-wide .table-row > * { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-width: 0; padding: 0; text-align: right; overflow-wrap: anywhere; }
  .table.table-stack-wide .table-row > *::before { content: attr(data-label); flex: 0 0 auto; max-width: 50%; color: var(--ink-3); font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; text-align: left; white-space: nowrap; }
  .table.table-stack-wide .table-row > :first-child { justify-content: flex-start; font-size: 16px; font-weight: 600; text-align: left; }
  .table.table-stack-wide .table-row > :first-child::before { content: none; }
}

/* Campaign landing pages and /welcome (Marketing::Landing): one path, mobile first, the logo only on top. */
.landing-ad { background: var(--bg); }
.landing-header { justify-content: flex-start; }
.landing-hero { padding-top: clamp(28px, 6vw, 64px); padding-bottom: 8px; max-width: 760px; }
.landing-title { font-size: clamp(30px, 6vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.landing-sub { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-2); line-height: 1.5; }
.landing-video { width: 100%; border-radius: 14px; border: 1px solid var(--divider); background: var(--tint); aspect-ratio: 16 / 10; }
.landing-section { padding-top: 28px; padding-bottom: 12px; max-width: 760px; }
.landing-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.landing-step-n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tint); font-weight: 600; }
.landing-ad .btn-lg { width: 100%; max-width: 360px; justify-content: center; }
.landing-footer { margin-top: auto; padding-top: 48px; padding-bottom: 28px; border-top: 1px solid var(--divider); }
