/* Edge to edge lines: every hero ends on a full-width border, and the footer starts on one.
   A screen in the hero sits on that border: its bottom is cropped flush, with square bottom corners.
   Loaded after air.css and product.css. */
html, body { overflow-x: clip; }

/* the hero's bottom border, out to both edges of the window */
.sec:has(> .hero), .sec:has(> .page-head) { position: relative; }
.sec:has(> .hero)::after, .sec:has(> .page-head)::after {
  content: ""; position: absolute; z-index: 2; top: auto; bottom: 0; right: auto;
  left: calc(50% - 50vw); width: 100vw; height: 1px; background: var(--border);
}
.sec:has(> .hero)::before, .sec:has(> .page-head)::before { content: none; }

/* the footer's top border, out to both edges */
.footer { position: relative; border-top: 0; }
.footer::before { content: ""; position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; height: 1px; background: var(--border); }

/* a screen in the hero: no space below it, cropped flush on the border, square bottom corners */
.hero:has(> .media.has-ui) { padding-bottom: 0; }
.hero > .media.has-ui { box-shadow: none; margin-bottom: 0; padding-bottom: 0 !important; max-height: clamp(300px, 36vw, 500px); overflow: hidden; align-items: flex-start; justify-content: flex-start; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hero > .media.has-ui .ui-fit { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* screen beside the text: the text keeps its space, the screen drops to the border */
.hero-split:has(> .media.has-ui), .hero-split.co-hero { padding-bottom: 0; align-items: end; }
.hero-split > .hero-text { padding-bottom: clamp(2.5rem, 5.5vw, 96px); align-self: center; }
.hero-split > .media.has-ui { max-height: clamp(280px, 30vw, 440px); }
.co-hero .co-cat { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 -20px 50px -36px rgba(0, 60, 55, .35); }

/* the POS tablet: the dark frame runs into the border */
.hero-device > .media.has-ui { max-height: clamp(320px, 40vw, 560px); }

@media (max-width: 900px) {
  .hero-split > .hero-text { padding-bottom: 0; }
  .hero-split:has(> .media.has-ui), .hero-split.co-hero { row-gap: 2rem; }
}

/* One section heading style across the site (it varied from 33 to 51px, and some had body line height). */
main.frame .sec h2:not(:where(.prose, .card, .cta-person, .rs-ui, .ui-fit, .demo-form, .fp-text, .mega-panel, .u-dlg) h2) {
  font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance;
}

/* Hero breadcrumb (was the eyebrow): same small caps, parents are links. */
.crumbs { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.hero:not(.hero-split) .crumbs, .page-head .crumbs { justify-content: center; }
.crumbs a { color: var(--fg-muted); text-decoration: none; transition: color .15s; }
.crumbs a:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--brand-strong); }
.crumbs .ti { font-size: .85em; color: var(--fg-subtle); }

/* Solid buttons: a mint highlight moves through the label (shimmer text). Two background layers:
   the first is clipped to the text, the second fills the button. */
.btn-primary, .co-btn:not(.ghost) {
  --btn-fill: var(--inverted);
  color: transparent;
  background-image: linear-gradient(90deg, #fff 0 40%, #bdf3e9 50%, #fff 60% 100%), linear-gradient(var(--btn-fill), var(--btn-fill));
  background-size: 250% 100%, 100% 100%;
  background-position: 0% 50%, 0 0;
  -webkit-background-clip: text, padding-box; background-clip: text, padding-box;
  animation: btn-shimmer 2.6s linear infinite;
}
.btn-primary:hover, .co-btn:not(.ghost):hover {
  --btn-fill: var(--inverted-hover); color: transparent;
  background-image: linear-gradient(90deg, #fff 0 40%, #bdf3e9 50%, #fff 60% 100%), linear-gradient(var(--btn-fill), var(--btn-fill));
  background-size: 250% 100%, 100% 100%; background-repeat: repeat;
  -webkit-background-clip: text, padding-box; background-clip: text, padding-box;
}
.co-btn:not(.ghost) { --btn-fill: #00796a; }
.co-btn:not(.ghost):hover { --btn-fill: #00665a; }
@keyframes btn-shimmer { from { background-position: 100% 50%, 0 0; } to { background-position: -150% 50%, 0 0; } }
@media (prefers-reduced-motion: reduce) { .btn-primary, .co-btn:not(.ghost) { animation: none; background-position: 0 50%, 0 0; } }

/* Section intro text */
.feature-head p { font-size: 16px; line-height: 24px; }

/* Co-op hero: the live catalog sits centered beside the text, whole, not cropped at the bottom. */
.hero-split.co-hero { padding-bottom: clamp(64px, 7.5vw, 96px); align-items: center; }
.co-hero .co-cat { border-bottom: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 60px -36px rgba(0, 60, 55, .4); }
@media (max-width: 900px) { .hero-split.co-hero { padding-bottom: 64px; } }

/* Partners hero: the same space above and below, content centered. The shared split-hero rule above zeroes the bottom padding for heroes whose screen runs into the border; this one has no screen to run in. */
.hero.hero-split.pn-hero:has(> .media.has-ui) { padding-bottom: clamp(64px, 7.5vw, 96px); align-items: center; }
