:root {
  --ink: #12251f;
  --ink-soft: #385047;
  --paper: #fbfcf8;
  --surface: #f0f4ef;
  --line: #d8e1d9;
  --green: #67a675;
  --green-deep: #286344;
  --mint: #cfe9d2;
  --yellow: #ffd64a;
  --pink: #f3a9af;
  --radius: 1.5rem;
  --shell: min(1180px, calc(100vw - 3rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 8rem 0; }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid transparent; backdrop-filter: blur(16px); transition: border-color .25s ease; }
.site-header.scrolled { border-color: var(--line); }
.nav-wrap { min-height: 82px; display: grid; grid-template-columns: 152px 1fr auto; align-items: center; gap: 2rem; }
.brand img { width: 108px; height: 54px; object-fit: contain; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 1.7rem; font-size: .84rem; font-weight: 700; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.35rem; height: 2px; background: var(--green-deep); transition: right .2s ease; }
.site-nav a:hover::after { right: 0; }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 12px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; }

.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: .85rem 1.5rem; font-weight: 800; font-size: .9rem; line-height: 1; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 44px; padding: .75rem 1.25rem; }
.button-primary { background: var(--yellow); color: #222611; box-shadow: 0 10px 30px rgba(120, 99, 23, .15); }
.button-primary:hover { box-shadow: 0 14px 36px rgba(120, 99, 23, .24); }
.button-dark { background: var(--ink); color: #fff; }
.button-outline { border-color: var(--ink); }
.button-white { background: white; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; font-size: .92rem; }
.text-link span { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }

.hero { position: relative; overflow: hidden; padding: 6.2rem 0 1.3rem; background: radial-gradient(circle at 85% 16%, rgba(207, 233, 210, .75), transparent 24%), var(--paper); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(40, 99, 68, .13); border-radius: 50%; right: -320px; top: -220px; }
.hero-grid { min-height: 620px; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 5rem; }
.eyebrow { margin: 0 0 1.4rem; display: flex; align-items: center; gap: .65rem; color: var(--green-deep); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 1.6rem; font-size: clamp(3.55rem, 6vw, 6.5rem); line-height: .94; letter-spacing: -.07em; font-weight: 800; }
h1 em, h2 em { color: var(--green); font-style: normal; }
.hero-actions { display: flex; align-items: center; gap: 1.7rem; margin-bottom: 3.2rem; }
.trust-row { display: flex; align-items: center; gap: 1rem; }
.trust-row p { margin: 0; color: var(--ink-soft); font-size: .74rem; line-height: 1.45; }
.trust-row strong { color: var(--ink); font-size: .82rem; }
.trust-mark { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; font-size: .85rem; font-weight: 800; }
.trust-divider { width: 1px; height: 39px; margin: 0 .35rem; background: var(--line); }
.hero-footnote { color: #789087; font-size: .72rem; }
.hero-footnote strong { color: var(--ink); font-weight: 800; }

.product-stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-certification { z-index: 4; display: flex; align-items: center; gap: .9rem; width: fit-content; padding: .7rem 1rem; border: 1px solid rgba(18,37,31,.16); border-radius: .65rem; background: rgba(255,255,255,.52); backdrop-filter: blur(10px); }
.hero-certification-inline { margin: 0 0 2rem; }
.hero-certification img { width: 112px; height: 38px; object-fit: contain; filter: grayscale(1) contrast(1.35); opacity: .82; }
.hero-certification span { display: flex; flex-direction: column; padding-left: .85rem; border-left: 1px solid rgba(18,37,31,.18); color: #66756f; font-size: .62rem; line-height: 1.4; letter-spacing: .025em; }
.hero-certification strong { color: var(--ink); font-size: .66rem; font-weight: 800; letter-spacing: .01em; }
.stage-orbit { position: absolute; border: 1px solid rgba(40, 99, 68, .2); border-radius: 50%; }
.orbit-one { width: 460px; height: 460px; }
.orbit-two { width: 335px; height: 335px; }
.product-window { width: 82%; max-width: 520px; position: relative; z-index: 2; overflow: hidden; border: 9px solid var(--ink); border-radius: 1.5rem; background: white; box-shadow: 0 36px 80px rgba(24, 52, 42, .18); transform: rotate(1.8deg); }
.window-bar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.2rem; background: #f7f9f6; border-bottom: 1px solid var(--line); }
.mini-brand { display: flex; align-items: center; gap: 1rem; font-size: .74rem; font-weight: 800; }
.mini-brand img { width: 48px; height: 24px; object-fit: contain; }
.window-user { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); font-size: .65rem; font-weight: 800; }
.window-content { padding: 1.5rem; }
.window-heading { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.window-heading span, .metric-card span, .metric-card small, .chart-title span { color: #789087; font-size: .65rem; }
.window-heading strong { font-size: 1.08rem; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.metric-card { display: flex; flex-direction: column; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; }
.metric-card.accent { background: var(--mint); border-color: transparent; }
.metric-card strong { margin: .25rem 0; font-size: 1.2rem; }
.metric-card small { color: var(--green-deep); }
.chart-card { margin-top: .8rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1rem; }
.chart-title { display: flex; justify-content: space-between; align-items: center; }
.chart-title strong { font-size: .75rem; }
.bars { height: 130px; display: flex; align-items: end; gap: 7%; padding: 1.2rem 1rem 0; border-bottom: 1px solid var(--line); }
.bars i { width: 10%; height: var(--h); display: block; border-radius: 5px 5px 0 0; background: #cfdbd2; }
.bars i.active { background: var(--green); }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: .8rem; background: white; border-radius: .9rem; box-shadow: 0 18px 44px rgba(24, 52, 42, .16); font-size: .72rem; }
.floating-card strong, .floating-card small { display: block; }
.floating-card small { color: #789087; }
.float-invoice { left: 1rem; bottom: 6.5rem; padding: .9rem 1.1rem; }
.float-invoice > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green-deep); font-weight: 900; }
.float-total { right: 1rem; top: 5.5rem; display: block; padding: 1rem 1.2rem; }

.proof-strip { background: var(--ink); color: white; }
.proof-grid { min-height: 118px; display: grid; grid-template-columns: 1fr 1.25fr 1fr auto; align-items: center; gap: 2.5rem; }
.proof-grid > div { display: flex; flex-direction: column; }
.proof-grid strong { color: var(--yellow); font-size: .9rem; }
.proof-grid span { color: #b9c8c1; font-size: .72rem; }
.proof-grid a { font-size: .82rem; font-weight: 800; }
.proof-grid a span { color: white; margin-left: .4rem; }

.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 6rem; margin-bottom: 4rem; }
h2 { margin-bottom: 0; font-size: clamp(2.8rem, 5vw, 4.9rem); line-height: 1.03; letter-spacing: -.055em; }
.section-heading > p { margin: 0 0 .4rem; color: var(--ink-soft); }
.feature-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { min-height: 230px; display: flex; flex-direction: column; justify-content: flex-start; position: relative; overflow: hidden; padding: 3.8rem 1.75rem 1.55rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.feature-card h3 { margin-bottom: .55rem; font-size: 1.25rem; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.feature-icon { position: absolute; top: 1.5rem; left: 1.6rem; color: var(--green-deep); font-size: .72rem; font-weight: 800; }
.feature-large { grid-column: span 2; min-height: 300px; padding-right: 42%; }
.feature-mint { background: var(--mint); border-color: transparent; }
.feature-wide { grid-column: span 2; min-height: 230px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; padding-right: 2rem; }
.feature-points { display: grid; gap: .38rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.feature-points li { display: flex; align-items: baseline; gap: .55rem; color: var(--ink); font-size: .76rem; font-weight: 700; }
.feature-points li::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); transform: translateY(-1px); }
.feature-points-wide { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
.document-stack { position: absolute; right: 3rem; bottom: -1.5rem; width: 175px; height: 225px; }
.paper { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 2rem 1.4rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; box-shadow: 0 14px 32px rgba(30, 60, 49, .12); transform: rotate(4deg); }
.paper-back { transform: rotate(-6deg) translate(-18px, 12px); background: var(--mint); }
.paper span { font-size: .7rem; font-weight: 800; }
.paper i { height: 5px; margin-top: 1.1rem; background: #dfe6df; border-radius: 9px; }
.paper i:nth-of-type(2) { width: 72%; }
.paper b { margin-top: auto; text-align: right; color: var(--green-deep); }
.capability-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2.5rem; }
.capability-list span { padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: white; font-size: .75rem; font-weight: 700; }

.pricing { background: var(--ink); color: white; }
.pricing-head { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3rem; }
.eyebrow-light { color: var(--mint); }
.pricing h2 em { color: var(--yellow); }
.billing-toggle { display: flex; padding: .3rem; border: 1px solid #3d5149; border-radius: 999px; background: #1a3028; }
.billing-toggle button { border: 0; border-radius: 999px; padding: .7rem 1rem; color: #b9c8c1; background: transparent; font-size: .76rem; font-weight: 800; cursor: pointer; }
.billing-toggle button.active { color: var(--ink); background: white; }
.billing-toggle button span { color: var(--green-deep); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; padding: 2rem; border: 1px solid #3d5149; border-radius: var(--radius); background: #182e26; }
.plan-featured { color: var(--ink); background: white; border-color: white; transform: translateY(-.8rem); }
.plan-badge { position: absolute; top: 1.4rem; right: 1.4rem; padding: .35rem .65rem; border-radius: 999px; color: #30320f; background: var(--yellow); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.plan-top p { margin-bottom: .2rem; font-size: 1.15rem; font-weight: 800; }
.plan-top span { color: #9db0a8; font-size: .75rem; }
.plan-featured .plan-top span { color: #71867d; }
.price { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; column-gap: .35rem; margin: 2.2rem 0; }
.price > span { font-size: 1rem; }
.price strong { font-size: 3.5rem; line-height: 1; letter-spacing: -.07em; }
.price small { color: #9db0a8; font-size: .65rem; }
.plan ul { display: grid; gap: .85rem; padding: 0; margin: 0 0 2.5rem; list-style: none; }
.plan li { display: flex; gap: .7rem; color: #d9e4df; font-size: .78rem; }
.plan-featured li { color: var(--ink-soft); }
.plan li::before { content: "✓"; color: var(--green); font-weight: 900; }
.plan li strong { color: white; font-weight: 800; }
.plan-featured li strong { color: var(--ink); }
.plan .button { margin-top: auto; }
.plan:not(.plan-featured) .button-outline { color: white; border-color: #587067; }
.pricing-assurances { max-width: 820px; margin: 2.5rem auto 0; text-align: center; }
.pricing-assurances p { margin: .35rem 0; color: #9db0a8; font-size: .75rem; }
.pricing-assurances p strong { color: white; font-weight: 800; }

.integrations-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 7rem; }
.integration-copy h2 { margin-bottom: 1.5rem; font-size: clamp(2.8rem, 4.4vw, 4.5rem); }
.integration-copy > p:not(.eyebrow) { max-width: 510px; margin-bottom: 2rem; color: var(--ink-soft); }
.integration-cloud { min-height: 510px; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 1fr); gap: 1rem; }
.integration-tile { display: grid; place-items: center; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.3rem; background: white; box-shadow: 0 14px 35px rgba(26, 61, 48, .07); }
.integration-tile img { max-width: 110px; max-height: 50px; }
.integration-tile:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 2; }
.integration-tile:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; transform: translateY(2rem); }
.integration-tile:nth-child(3) { grid-column: 2 / 5; grid-row: 2 / 3; }
.integration-tile:nth-child(4) { grid-column: 5 / 7; grid-row: 2 / 3; transform: translateY(2rem); }
.integration-tile:nth-child(5) { grid-column: 3 / 6; grid-row: 3 / 4; }
.integration-api { color: var(--green-deep); background: var(--mint); border-color: transparent; font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; }

.partners { padding: 2.2rem 0; border-top: 1px solid var(--line); background: #f3f5f1; }
.partners-strip { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.partners-copy h2 { margin: 0 0 .25rem; color: var(--ink); font-size: 1rem; letter-spacing: -.02em; }
.partners-copy p { margin: 0; color: var(--ink-soft); font-size: .72rem; }
.partner-link { display: flex; align-items: center; gap: 1.4rem; color: var(--ink-soft); transition: opacity .2s ease; }
.partner-link:hover { opacity: .72; }
.partner-link img { width: 150px; height: 42px; object-fit: contain; filter: grayscale(1); opacity: .72; }
.partner-link span { padding-left: 1.4rem; border-left: 1px solid var(--line); font-size: .68rem; font-weight: 700; }
.partner-link b { margin-left: .25rem; font-weight: 500; }

.cta-band { padding: 6rem 0; background: var(--green-deep); color: white; }
.cta-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4rem; }
.cta-grid h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.cta-actions > a:not(.button) { font-size: .76rem; font-weight: 800; }

.site-footer { padding: 5rem 0 2rem; background: #0d1d18; color: white; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 4rem; }
.footer-brand img { width: 130px; height: 65px; object-fit: contain; }
.footer-brand p { max-width: 290px; margin-top: 1.5rem; color: #92a69e; font-size: .8rem; }
.footer-grid h3 { margin-bottom: 1.1rem; color: #cde0d7; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: start; gap: .65rem; }
.footer-grid a, .footer-grid p { margin: 0; color: #92a69e; font-size: .76rem; }
.footer-grid a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid #263832; color: #758a81; font-size: .7rem; }

/* Interior pages: the original content stays untouched; these rules adapt its
   existing Bootstrap-era classes to the current Bill visual system. */
.legacy-page { padding: 5rem 0 6.5rem; background: radial-gradient(circle at 88% 4%, rgba(207, 233, 210, .55), transparent 20%), var(--paper); }
.legacy-shell { width: min(940px, calc(100vw - 3rem)); margin-inline: auto; }
.legacy-page section { padding: 0; margin: 0 0 3rem; }
.legacy-page .container { width: 100%; margin-inline: auto; }
.legacy-page .row, .legacy-page .form-row { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.legacy-page .row + .row { margin-top: 1.2rem; }
.legacy-page [class*="col-"] { flex: 1 1 100%; min-width: 0; }
.legacy-page .col, .legacy-page .col-12 { flex-basis: 100%; }
.legacy-page .section-title { margin-bottom: 2.7rem; }
.legacy-page .section-title > *, .legacy-page .justify-content-center > * { margin-inline: auto; }
.legacy-page h1, .legacy-page .display-3, .legacy-page .display-4, .legacy-page .display-6 { max-width: 900px; margin-bottom: 1.2rem; color: var(--ink); font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: 1.04; letter-spacing: -.055em; font-weight: 800; }
.legacy-page h2 { margin: 2.8rem 0 1rem; font-size: clamp(1.55rem, 3vw, 2.25rem) !important; line-height: 1.15; letter-spacing: -.035em; }
.legacy-page h3:not(.display-3):not(.display-4):not(.display-6), .legacy-page h4, .legacy-page h5, .legacy-page h6 { margin: 1.8rem 0 .7rem; line-height: 1.25; letter-spacing: -.025em; }
.legacy-page h3:not(.display-3):not(.display-4):not(.display-6) { font-size: 1.35rem !important; }
.legacy-page h4 { font-size: 1.2rem; }
.legacy-page h5 { font-size: 1.05rem; }
.legacy-page h6 { font-size: .92rem; }
.legacy-page p, .legacy-page li, .legacy-page label, .legacy-page div { overflow-wrap: anywhere; }
.legacy-page p, .legacy-page li { color: var(--ink-soft); }
.legacy-page a:not(.btn) { color: var(--green-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.legacy-page .lead { color: var(--ink-soft); font-size: 1.08rem; }
.legacy-page ul, .legacy-page ol { padding-left: 1.35rem; }
.legacy-page li + li { margin-top: .45rem; }
.legacy-page img { height: auto; border-radius: .7rem; }
.legacy-page iframe { display: block; width: 100%; border: 0; border-radius: 1rem; background: #e8ede8; }
.legacy-page .youtube-video { aspect-ratio: 16 / 9; height: auto; }
.legacy-page figure { margin: 1.5rem 0; }
.legacy-page figcaption { margin-top: .55rem; color: #789087; font-size: .72rem; }
.legacy-page code { padding: .15em .35em; border-radius: .3rem; background: #e9efe9; color: #234e39; font-size: .86em; }
.legacy-page pre { overflow-x: auto; padding: 1.25rem; border-radius: 1rem; background: #10221c; color: #eaf2ed; }
.legacy-page pre code { padding: 0; background: transparent; color: inherit; }
.legacy-page .card { width: 100%; border: 1px solid var(--line); border-radius: 1.15rem; background: white; }
.legacy-page .card-body { padding: 1.6rem; }
.legacy-page .shadow, .legacy-page .shadow-sm { box-shadow: 0 18px 45px rgba(24, 52, 42, .08); }
.legacy-page .h-100 { height: 100%; }
.legacy-page .hfix { min-height: 88px; display: grid; place-items: center; }
.legacy-page .integration-logo { width: 140px; height: 70px; object-fit: contain; }
.legacy-page .icon { width: 42px; height: 42px; object-fit: contain; padding: .55rem; border-radius: .7rem; background: var(--mint); }
.legacy-page .alert, .legacy-page .grey { margin: 1rem 0; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); color: var(--ink-soft); }
.legacy-page .alert-warning { border-color: #e6d68c; background: #fff8d9; }
.legacy-page .alert-danger { border-color: #e7b7b7; background: #fff0f0; }
.legacy-page .alert-success { border-color: #a9d1b1; background: #eaf7ec; }
.legacy-page .badge { display: inline-flex; padding: .22rem .55rem; border-radius: 999px; background: var(--mint); color: var(--green-deep); font-size: .72rem; font-weight: 800; text-decoration: none !important; }
.legacy-page .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.15rem; border: 1px solid var(--green-deep); border-radius: 999px; background: var(--green-deep); color: white !important; font-size: .78rem; font-weight: 800; line-height: 1.2; text-decoration: none !important; }
.legacy-page .btn-outline-success, .legacy-page .btn-outline-secondary { background: transparent; color: var(--green-deep) !important; }
.legacy-page .btn-danger { border-color: #b34747; background: #b34747; }
.legacy-page .btn-info { border-color: #456d88; background: #456d88; }
.legacy-page .btn-block { width: 100%; }
.legacy-page form.card { max-width: 780px; margin-inline: auto; }
.legacy-page .form-group { margin-bottom: 1rem; }
.legacy-page .form-group > img.icon { display: none; }
.legacy-page label { display: block; margin-bottom: .4rem; color: var(--ink); font-size: .78rem; font-weight: 700; }
.legacy-page .form-control, .legacy-page .custom-select { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid #bdccc2; border-radius: .65rem; background: white; color: var(--ink); font: inherit; }
.legacy-page textarea.form-control { min-height: 145px; resize: vertical; }
.legacy-page .custom-control { display: flex; align-items: flex-start; gap: .6rem; }
.legacy-page .custom-control-input { margin-top: .4rem; }
.legacy-page .custom-control-label { font-weight: 500; }
.legacy-page .invalid-feedback { display: none; color: #a23a3a; font-size: .72rem; }
.legacy-page .bg-gradient, .legacy-page .bg-primary-3 { padding: 2.2rem !important; border-radius: 1.5rem; background: var(--ink); }
.legacy-page .bg-gradient .text-white, .legacy-page .bg-primary-3.text-white { color: white; }
.legacy-page .bg-gradient .text-white h1, .legacy-page .bg-gradient .text-white .lead { color: white; }
.legacy-page .bg-primary-3 .card, .legacy-page .bg-primary-3 .card h5 { color: var(--ink); }
.legacy-page .bg-light { background: var(--surface); }
.legacy-page .bg-white { background: white; }
.legacy-page .text-center { text-align: center; }
.legacy-page .text-left { text-align: left; }
.legacy-page .text-muted { color: #71867d !important; }
.legacy-page .text-white { color: white; }
.legacy-page .d-flex { display: flex; }
.legacy-page .d-none { display: none; }
.legacy-page .flex-column { flex-direction: column; }
.legacy-page .flex-wrap { flex-wrap: wrap; }
.legacy-page .align-items-center { align-items: center; }
.legacy-page .align-items-start { align-items: flex-start; }
.legacy-page .justify-content-center { justify-content: center; }
.legacy-page .justify-content-between { justify-content: space-between; }
.legacy-page .w-100 { width: 100%; }
.legacy-page .p-0 { padding: 0; }
.legacy-page .p-3 { padding: 1rem; }
.legacy-page .mb-2 { margin-bottom: .5rem; }
.legacy-page .mb-3 { margin-bottom: 1rem; }
.legacy-page .mb-4 { margin-bottom: 1.5rem; }
.legacy-page .mt-2 { margin-top: .5rem; }
.legacy-page .mt-3 { margin-top: 1rem; }
.legacy-page .mt-5 { margin-top: 3rem; }
.legacy-page .mt-auto { margin-top: auto; }
.legacy-page .mr-2 { margin-right: .5rem; }
.legacy-page .collapse { display: block; }
.inner-cta { padding: 4.2rem 0; background: var(--green-deep); color: white; }
.inner-cta-grid { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.inner-cta h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4rem); }

/* Integrations directory */
.integrations-page .section-title { display: block; margin-bottom: 0; }
.integrations-page .section-title > div { width: 100%; max-width: none; flex-basis: 100%; }
.integrations-page .section-title > div > .display-4 { margin-inline: auto; }
.integrations-page .section-title > div > .lead { max-width: 650px; margin-inline: auto; }
.integrations-page .section-title > div > .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.8rem; text-align: left; }
.integrations-page .section-title > div > .row > [class*="col-"] { min-width: 0; margin: 0; }
.integrations-page .card { overflow: hidden; border-radius: 1rem; box-shadow: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.integrations-page .card:hover { transform: translateY(-3px); border-color: #b7c8ba; box-shadow: 0 15px 35px rgba(24, 52, 42, .08); }
.integrations-page .card-body { min-height: 245px; padding: 1.35rem; }
.integrations-page .hfix { min-height: 58px; justify-content: flex-start; margin-bottom: 1rem; }
.integrations-page .integration-logo { width: 118px; height: 52px; object-position: left center; }
.integrations-page .hfix.text-center { justify-content: flex-start; }
.integrations-page .hfix > svg { width: 40px; height: 40px; padding: .65rem; border-radius: .75rem; color: var(--green-deep); background: var(--mint); }
.integrations-page .card h5 { margin: .35rem 0 .45rem; font-size: 1rem; }
.integrations-page .card p { margin-bottom: 1.2rem; font-size: .78rem; line-height: 1.55; }
.integrations-page .card .btn { min-height: 40px; width: auto; padding-inline: 1rem; }
.integrations-page .card .mt-auto { display: flex; align-items: flex-end; }
.integrations-page .card[style*="opacity"]:hover { transform: none; box-shadow: none; }

/* API directory */
.api-page .section-title { display: block; margin-bottom: 0; }
.api-page .section-title > div { width: 100%; max-width: none; flex-basis: 100%; }
.api-page .section-title > div > .display-4 { max-width: 760px; margin-inline: auto; }
.api-page .section-title > div > .lead { max-width: 720px; margin-inline: auto; }
.api-page .api-primary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; text-align: left; }
.api-page .api-primary-grid > [class*="col-"] { min-width: 0; margin: 0; }
.api-page .api-primary-card { overflow: hidden; position: relative; border-radius: 1.15rem; box-shadow: none; }
.api-page .api-primary-card::before { content: ""; display: block; width: 100%; height: 5px; background: var(--green); }
.api-page .api-primary-grid > div:nth-child(2) .api-primary-card::before { background: #df5353; }
.api-page .api-primary-card .card-body { min-height: 205px; display: flex; flex-direction: column; align-items: flex-start; padding: 1.55rem; }
.api-page .api-primary-card h5 { margin: 0 0 .35rem; font-size: 1.15rem; }
.api-page .api-primary-card p { font-size: .82rem; }
.api-page .api-primary-card .d-flex { justify-content: flex-start; margin-top: auto; }
.api-page .api-sdk-section { display: block; margin-top: 1rem !important; text-align: left; }
.api-page .api-sdk-section > [class*="col-"] { width: 100%; margin: 0; }
.api-page .api-sdk-wrap { padding: 2.2rem 0 0; }
.api-page .api-sdk-wrap > h5 { margin: 0 0 .35rem; font-size: 1.35rem; }
.api-page .api-sdk-wrap > p { margin-bottom: 1.5rem; }
.api-page .api-sdk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.api-page .api-sdk-grid > [class*="col-"] { min-width: 0; margin: 0; }
.api-page .api-sdk-card { min-height: 275px; display: flex; flex-direction: column; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.api-page .api-sdk-card h6 { display: flex; align-items: center; gap: .7rem; margin: 0 0 .8rem; font-size: 1rem; }
.api-page .api-sdk-card h6::before { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: .65rem; color: var(--green-deep); background: var(--mint); font-size: .62rem; font-weight: 800; }
.api-page .api-sdk-grid > div:nth-child(1) h6::before { content: "PHP"; }
.api-page .api-sdk-grid > div:nth-child(2) h6::before { content: "PY"; }
.api-page .api-sdk-grid > div:nth-child(3) h6::before { content: "JS"; }
.api-page .api-sdk-card > .d-flex { margin-top: auto; }
.api-page .api-sdk-card .btn { min-height: 40px; }

/* Cloudbeds partnership and guides */
.cloudbeds-partnership .section-title { display: block; margin-bottom: 0; }
.cloudbeds-partnership .section-title > div { max-width: 820px; flex-basis: 100%; }
.cloudbeds-partnership .text-left > .display-6:first-child { margin-bottom: 1.8rem; font-size: clamp(2.35rem, 4.7vw, 4.25rem); }
.cloudbeds-partnership .text-left > img { width: 100%; margin: 0 0 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.25rem; background: white; box-shadow: 0 18px 45px rgba(24, 52, 42, .07); }
.cloudbeds-partnership .text-left > .display-6:not(:first-child) { margin-top: 3.3rem; padding-top: 2.4rem; border-top: 1px solid var(--line); font-size: clamp(1.75rem, 3vw, 2.45rem); }
.cloudbeds-partnership .text-left > p { font-size: .94rem; }
.cloudbeds-partnership .text-left > p > strong:first-child { color: var(--ink); }
.cloudbeds-partnership .btn-block { width: auto; margin-right: .6rem; }

.cloudbeds-guide .section-title { display: block; margin-bottom: 0; }
.cloudbeds-guide .section-title > div { width: 100%; max-width: 860px; flex-basis: 100%; }
.cloudbeds-toc { margin-bottom: 3.2rem; padding: 1.6rem 1.8rem; border: 1px solid var(--line); border-radius: 1.25rem; background: white; box-shadow: 0 18px 45px rgba(24, 52, 42, .06); }
.cloudbeds-toc > .display-6 { margin: 0 0 .9rem; font-size: clamp(2.15rem, 4.2vw, 3.55rem); }
.cloudbeds-toc ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .18rem 1.2rem; padding: 0; margin: 0; list-style: none; }
.cloudbeds-toc li { margin: 0; }
.cloudbeds-toc li a { display: flex; align-items: baseline; gap: .5rem; padding: .18rem 0; color: var(--ink-soft); font-size: .76rem; font-weight: 700; line-height: 1.4; text-decoration: none; }
.cloudbeds-toc li a { min-width: 0; overflow-wrap: anywhere; }
.cloudbeds-toc li a::before { content: "→"; flex: 0 0 auto; color: var(--green); }
.cloudbeds-content > h3.display-6 { margin: 4rem 0 1rem; padding-top: 1rem; font-size: clamp(1.55rem, 2.7vw, 2.15rem); line-height: 1.15; scroll-margin-top: 105px; }
.cloudbeds-content > h4.display-7 { margin: 2.8rem 0 .8rem; font-size: 1.25rem; scroll-margin-top: 105px; }
.cloudbeds-content > .grey { padding: 1.5rem; border-color: #d9e3db; border-radius: 1rem; background: white; }
.cloudbeds-content > .grey p:last-child { margin-bottom: 0; }
.cloudbeds-content > .grey img { width: min(100%, 760px); margin: 1.5rem auto; padding: .45rem; border: 1px solid var(--line); border-radius: .8rem; background: #f8faf7; box-shadow: 0 12px 32px rgba(24, 52, 42, .06); }
.cloudbeds-content > .grey .youtube-video { margin-top: 1rem; }
.cloudbeds-content > .btn-block { width: auto; }
.cloudbeds-partner-title { margin-top: 4rem !important; padding-top: 2rem; border-top: 1px solid var(--line); }
.cloudbeds-partner-title .row { margin: 0; }
.cloudbeds-partner-title h3 { margin: 0; color: var(--ink-soft); font-size: .78rem !important; letter-spacing: .08em; text-transform: uppercase; }
.legacy-page .cloudbeds-partner { display: block !important; width: fit-content; margin: 0 0 2rem !important; padding: .75rem 0 0 !important; border: 0 !important; background: transparent; }
.cloudbeds-partner > .col-12 { width: auto; }
.cloudbeds-partner .border-thick { padding: 0; border: 0; }
.cloudbeds-partner .p-3, .cloudbeds-partner .p-md-5 { padding: 0; }
.cloudbeds-partner .text-center { text-align: left; }
.cloudbeds-partner a { display: inline-flex; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.cloudbeds-partner img { width: 155px; max-height: 44px; margin: 0; padding: 0; object-fit: contain; filter: grayscale(1); opacity: .7; }

/* Support request forms */
.legacy-page .support-form-page { padding: 0 !important; border-radius: 0; background: transparent; }
.support-form-page > section { margin: 0; }
.support-form-page .container { max-width: 900px; }
.support-form-page .text-white { color: var(--ink); }
.legacy-page .support-form-page .text-white h1 { margin-inline: auto; color: var(--ink); font-size: clamp(2.7rem, 5vw, 4.8rem); }
.legacy-page .support-form-page .text-white .lead { color: var(--ink-soft); }
.support-form-page .section-title { margin-bottom: 2rem; }
.support-form-page .alert-warning { max-width: 780px; margin: 0 auto .75rem; border: 0; border-left: 4px solid #d4ad31; border-radius: .55rem; background: #fff8d9; font-size: .8rem; }
.support-form-page form.card { max-width: 780px; padding: 2rem; border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: 0 22px 55px rgba(24, 52, 42, .09); }
.support-form-page form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.support-form-page form .form-row > [class*="col-"] { min-width: 0; margin: 0; }
.support-form-page .form-group { margin-bottom: 1.15rem; }
.support-form-page .form-group img.icon { display: none; }
.support-form-page label { margin-bottom: .5rem; color: var(--ink); font-size: .74rem; }
.support-form-page .form-control, .support-form-page .custom-select { min-height: 50px; border-color: #c9d5cc; background-color: #fbfcfa; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.support-form-page .form-control:focus, .support-form-page .custom-select:focus { outline: none; border-color: var(--green); background: white; box-shadow: 0 0 0 4px rgba(103, 166, 117, .13); }
.support-form-page textarea.form-control { min-height: 180px; }
.support-form-page form > .d-flex:last-child { justify-content: flex-end; }
.support-form-page form button[type="submit"] { min-width: 155px; min-height: 48px; border-color: var(--green-deep); background: var(--green-deep); }
.support-form-page .btn-loading > svg { display: none; }
.support-form-page [style*="margin-bottom:100px"] { display: none; }

@media (min-width: 681px) {
  .legacy-page .col-sm-6 { flex: 0 0 calc(50% - .6rem); }
  .legacy-page .flex-sm-row { flex-direction: row; }
}

@media (min-width: 900px) {
  .legacy-page .col-lg-4 { flex: 0 0 calc(33.333% - .8rem); }
  .legacy-page .col-lg-6 { flex: 0 0 calc(50% - .6rem); }
  .legacy-page .col-lg-8 { flex: 0 0 calc(66.666% - .4rem); }
  .legacy-page .col-lg-9 { flex: 0 0 75%; }
  .legacy-page .col-md-4 { flex: 0 0 calc(33.333% - .8rem); }
  .legacy-page .col-md-9 { flex: 0 0 75%; }
  .legacy-page .col-md-11 { flex: 0 0 91.666%; }
}

@media (max-width: 899px) {
  .integrations-page .section-title > div > .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .api-page .api-sdk-grid { grid-template-columns: 1fr; }
  .api-page .api-sdk-card { min-height: 0; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 980px) {
  :root { --shell: min(100% - 2rem, 760px); }
  .section { padding: 6rem 0; }
  .nav-wrap { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: block; position: relative; z-index: 51; order: 2; justify-self: end; border: 1px solid var(--line); border-radius: 50%; background: white; }
  .header-cta { order: 3; }
  .site-nav { position: absolute; top: 82px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .85rem calc((100% - var(--shell)) / 2); }
  .hero { padding-top: 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { max-width: 700px; }
  .product-stage { min-height: 520px; }
  .proof-grid { grid-template-columns: 1fr 1fr; padding: 2rem 0; gap: 1.4rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .plans { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .integrations-grid { grid-template-columns: 1fr; gap: 3rem; }
  .integration-cloud { max-width: 650px; width: 100%; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 1.5rem); --radius: 1.15rem; }
  body { font-size: 15px; }
  .nav-wrap { min-height: 72px; grid-template-columns: 1fr auto auto; gap: .4rem; }
  section[id] { scroll-margin-top: 72px; }
  .brand img { width: 94px; height: 47px; }
  .header-cta { display: inline-flex; min-height: 40px; padding: .65rem .9rem; font-size: .76rem; }
  .site-nav { top: 72px; }
  .hero { padding-top: 3rem; }
  h1 { font-size: clamp(3.15rem, 15vw, 4.8rem); }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 1rem; }
  .hero-actions .text-link { justify-content: center; }
  .trust-row { align-items: start; flex-wrap: wrap; }
  .trust-divider { display: none; }
  .product-stage { min-height: 395px; }
  .hero-certification { padding: .5rem .6rem; }
  .hero-certification img { width: 86px; height: 29px; }
  .hero-certification span { padding-left: .55rem; font-size: .56rem; }
  .hero-certification strong { font-size: .58rem; }
  .stage-orbit { display: none; }
  .product-window { width: 100%; border-width: 6px; transform: none; }
  .window-content { padding: 1rem; }
  .metric-grid { grid-template-columns: 1fr; }
  .chart-card { display: none; }
  .float-invoice { left: -.2rem; bottom: 2rem; }
  .float-total { right: -.2rem; top: 1rem; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid a { padding-top: .7rem; border-top: 1px solid #344940; }
  .section { padding: 5rem 0; }
  h2 { font-size: 2.8rem; }
  .feature-bento { grid-template-columns: 1fr; }
  .feature-card, .feature-large, .feature-wide { grid-column: auto; min-height: 0; padding: 3.7rem 1.5rem 1.5rem; }
  .feature-large { padding-bottom: 14rem; }
  .feature-wide { display: flex; align-items: stretch; }
  .feature-points-wide { grid-template-columns: 1fr; }
  .document-stack { width: 155px; height: 195px; right: 50%; bottom: -1.5rem; transform: translateX(50%); }
  .pricing-head { align-items: start; flex-direction: column; }
  .plan { padding: 1.5rem; }
  .price strong { font-size: 3rem; }
  .integration-cloud { min-height: 380px; gap: .6rem; }
  .integration-tile { padding: .8rem; }
  .integration-tile img { max-width: 85px; max-height: 35px; }
  .partners-strip { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .partner-link { width: 100%; justify-content: space-between; }
  .cta-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-actions { align-items: stretch; }
  .cta-actions > a:not(.button) { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .footer-bottom { align-items: start; flex-direction: column; gap: .5rem; }
  .legacy-page { padding: 3.5rem 0 4.5rem; }
  .legacy-shell { width: calc(100vw - 1.5rem); }
  .legacy-page .bg-gradient, .legacy-page .bg-primary-3 { padding: 1.15rem !important; }
  .legacy-page .card-body { padding: 1.2rem; }
  .legacy-page .d-flex { flex-wrap: wrap; }
  .inner-cta-grid { align-items: stretch; flex-direction: column; }
  .integrations-page .section-title > div > .row { grid-template-columns: 1fr; gap: .8rem; }
  .integrations-page .card-body { min-height: 0; }
  .api-page .api-primary-grid { grid-template-columns: 1fr; }
  .api-page .api-primary-card .card-body { min-height: 0; }
  .api-page .api-primary-card .d-flex { align-items: stretch; }
  .cloudbeds-toc { margin-bottom: 3rem; padding: 1.25rem; }
  .cloudbeds-toc ul { grid-template-columns: 1fr; }
  .cloudbeds-content > h3.display-6 { margin-top: 3rem; }
  .cloudbeds-content > .grey { padding: 1rem; }
  .cloudbeds-partnership .btn-block, .cloudbeds-content > .btn-block { width: 100%; margin-right: 0; }
  .support-form-page form.card { padding: 1.2rem; }
  .support-form-page form .form-row { grid-template-columns: 1fr; gap: 0; }
  .support-form-page form button[type="submit"] { width: 100%; }
}
