/* Shared public-page theme. Existing form and pricing behaviour remains in its components. */
.design-page {
  --eol-text-primary: #1d1d1f;
  --eol-bg-primary: #f7d72b;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  background: #fff;
  color: #1d1d1f;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}
.design-page .site-header { height: var(--header-height); }
.design-page .site-header .nav { max-width: 1200px; padding: 0; }
.design-page .site-footer { margin-top: 0; }
.design-page .site-footer p { margin: 0; }
.design-page .main-body-wrapper { width: min(1200px, calc(100% - 80px)); margin: 0 auto; padding: 0; min-height: 55vh; }
.design-page .btn, .design-page input[type="submit"], .design-page .registration-btn {
  background: var(--brand); color: #283840; border: 0; border-radius: 100px;
  padding: 13px 26px; min-height: 49px; font: inherit; font-weight: 550;
  box-shadow: none; cursor: pointer; width: auto; text-transform: none;
}
.design-page .btn:hover, .design-page input[type="submit"]:hover { background: #ffe44e; color: #283840; }
.design-page :is(button,input)[disabled] { opacity: .55; cursor: wait; }
.design-page .section-title::after { display: none; }
.design-page .section-title { color: var(--ink); text-transform: none; letter-spacing: -1.7px; font-weight: 650; font-size:36px; line-height: 1.12; margin: 12px 0 24px; padding: 0; }
.design-page :is(.v-application,.v-overlay,.v-field,.v-list) { font-family: inherit; }
.design-page .v-field { border-radius: 14px; background: #fff; }
.design-page .v-field__outline { --v-field-border-opacity: .22; }
.design-page .v-field--focused .v-field__outline { color: var(--blue); }
.design-page .v-field__input { min-height: 54px; padding-top: 15px; padding-bottom: 15px; font-size: 16px; }
.design-page .v-overlay .v-card { border-radius: 28px !important; }
.design-page .v-overlay .section-title { font-size:30px; }
.design-page .page-intro { text-align: center; padding: 70px 0 50px; }
.design-page .page-intro h1 { font-size:clamp(36px,6vw,36px); line-height: 1.04; letter-spacing: -.055em; font-weight: 700; margin: 17px 0 24px; }
.design-page .page-intro h1 span { color: var(--graphite); }
.design-page .page-intro > p:last-child { font-size: 21px; color: var(--secondary); max-width: 670px; margin-inline: auto; }

/* Service pages: generous spacing, quiet surfaces, graphite imagery and yellow actions. */
.design-page .builders-services { margin: 0 auto; width: 100%; top: var(--header-height); z-index: 90; background: #fafafc; border-color: #e7e7ea; }
.design-page .builders-services .services { max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
.design-page .builders-services .homepage-services-grid { gap: 12px; }
.design-page .builders-services .landing-service-card { background: transparent; border: 0; border-radius: 12px; box-shadow: none; min-height: 48px; padding: 10px 16px; }
.design-page .builders-services .landing-service-card[aria-current="page"] { background: #eeeef0; outline: none; }
.design-page .builders-services .service-description { display: none; }
.design-page .builders-services .service-title { font-size: 14px; letter-spacing: -.2px; font-weight: 550; }
.design-page .builders-services .services-toggle { background: #f5f5f7; border-color: #e7e7ea; }
.design-page .builders-main { --builders-ink: #1d1d1f; --builders-blue: #0066cc; --builders-yellow: #f7d72b; --builders-tint: #f5f5f7; --builders-surface: #f5f5f7; --builders-border: #e7e7ea; max-width: 1200px; width: calc(100% - 80px); padding: 0; }
.design-page .builders-main h1 { font-size:clamp(36px,5.5vw,36px); letter-spacing: -.055em; line-height: 1.04; font-weight: 700; }
.design-page .builders-main h2 { font-size:clamp(32px,3.7vw,36px); letter-spacing: -.045em; line-height: 1.1; font-weight: 650; }
.design-page .builders-main h3 { font-size:24px; line-height: 1.2; letter-spacing: -.7px; font-weight: 600; }
.design-page .builders-main p { color: var(--secondary); font-size: 17px; line-height: 1.6; }
.design-page .builders-main .builders-eyebrow { color: var(--brand-dark); text-transform: none; font-size: 14px; letter-spacing: .01em; font-weight: 600; }
.design-page .builders-main .builders-lead { font-size: 23px; letter-spacing: -.5px; font-weight: 400; }
.design-page .builders-hero { padding: 72px 0 48px; gap: 64px; align-items: start; grid-template-columns: 1.2fr 1fr; margin-bottom: 0; }
.design-page .builders-hero-card { border: 0; border-radius: 28px; margin: 0; overflow: hidden; background: var(--grey); }
.design-page .builders-hero-caption { background: var(--grey); padding: 30px; }
.design-page .builders-hero-caption p { color: var(--graphite); }
.design-page .builders-text-link { color: var(--blue); font-weight: 400; text-decoration: none; }
.design-page .builders-text-link:hover { text-decoration: underline; }
.design-page .builders-main .builders-button { background: var(--brand); color: #283840; }
.design-page .builders-proof { padding: 36px 0; margin: 0 0 20px; border-top: 0; }
.design-page .builders-proof strong { font-size:24px; font-weight: 600; letter-spacing: -1.2px; }
.design-page .builders-proof span { color: var(--secondary); font-size: 13px; }
.design-page .builders-section { padding: 72px 0; }
.design-page .builders-benefits { gap: 22px; }
.design-page .builders-benefits article { background: var(--grey); border: 0; border-radius: 28px; padding: 32px; }
.design-page .builders-number { color: var(--brand-dark); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.design-page .builders-highlight { border-radius: 28px; padding: 48px; background: var(--grey); }
.design-page .builders-included { border: 0; border-radius: 24px; padding: 32px; background: var(--grey); }
.design-page .builders-highlight .builders-included { background: #fff; }
.design-page .builders-ai-experience { background: var(--graphite); border: 0; border-radius: 28px; padding: 48px; margin: 24px 0 72px; }
.design-page .builders-ai-experience :is(h2,p) { color: #fff; text-align: left; }
.design-page .builders-ai-experience .builders-eyebrow { color: var(--brand); }
.design-page .builders-steps { padding-left: 0; gap: 32px; }
.design-page .builders-formats { padding-left: 0; }
.design-page .builders-formats li { background: var(--grey); border: 0; border-radius: 100px; padding: 10px 20px; font-weight: 500; }
.design-page .builders-cta { background: var(--ink); color: #fff; border-radius: 28px; padding: 72px 40px; margin: 24px 0 72px; }
.design-page .builders-cta h2 { color: #f5f5f7; }
.design-page .builders-cta p { color: #b3b3b8; }
.design-page .builders-cta .builders-eyebrow { color: var(--brand); }
.design-page .builders-cta .builders-text-link { color: #fff; }
.design-page .merchants-api-step { background: var(--graphite) !important; border-color: var(--graphite) !important; }
.design-page .merchants-materials { border-radius: 24px; padding: 32px; }
.design-page .merchants-workflow h3 { white-space: normal; }

/* Authentication retains Spring form bindings and Vue registration steps. */
.auth-page { background: var(--grey); }
.auth-page .main-body-wrapper { padding: 64px 0 80px; }
.auth-page .login-container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; max-width: 1040px; margin: 0 auto; padding: 0; background: transparent; border: 0; box-shadow: none; align-items: start; }
.auth-page .login-container > div { width: 100% !important; min-width: 0; }
.auth-page .login-panel { width: 100%; min-width: 0; padding: 42px; border: 0; border-radius: 28px; background: #fff; box-shadow: none; margin: 0; }
.auth-page .login-container > .login-panel:last-child { background: var(--ink); color: #f5f5f7; }
.auth-page .login-container > .login-panel:last-child .section-title { color: #fff; }
.auth-page .login-container > .login-panel:last-child .eyebrow { color: var(--brand); }
.auth-page .section-info { margin: 30px 0 0; color: #b3b3b8; }
.auth-page .section-info h4 { color: #fff; font-size:20px; margin-bottom: 12px; }
.auth-page .section-info p { font-size: 16px; line-height: 1.6; }
.auth-page .form-intro { color: var(--secondary); font-size: 17px; margin: -8px 0 28px; }
.auth-page .login-input, .auth-page .eolField input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]) { width: 100%; min-height: 54px; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; font: inherit; color: var(--ink); background: #fff; box-shadow: none; }
.auth-page .login-input:focus { outline: 3px solid #0066cc22; border-color: var(--blue); }
.auth-page .login-form-group { margin-bottom: 18px; }
.auth-page .login-btn { margin: 8px 0 20px; }
.auth-page .login-link { color: var(--blue); font-size: 15px; text-decoration: none; }
.auth-page .login-error { color: #a12727; border-radius: 12px; background: #fff0f0; padding: 12px 16px; margin-bottom: 20px; }
.auth-page .associated-choice, .auth-page .terms { max-width: 640px; margin: 0 auto; padding: 42px; border-radius: 28px; background: #fff; border: 0; min-height: 0; width: 100%; }
.auth-page .associated-choice .section-title { font-size:36px; }
.auth-page .terms { max-width: 860px; }
.auth-page .h-100 { height: auto !important; }
.auth-page #registrationMessage { color: var(--secondary); line-height: 1.6; margin-bottom: 20px; }
.auth-page #vue-login-carousel-app { margin-top: 28px; }
.auth-page .login-panel ul { line-height: 1.8; padding-left: 20px; }

/* Samples: keep the real drawing and estimate destinations. */
.samples-page .samples { margin: 0; padding: 0 0 80px; }
.samples-page .samples-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.samples-page .samples-card { background: var(--grey); border-radius: 28px; padding: 28px; border: 0; box-shadow: none; overflow: hidden; transition: transform .2s; }
.samples-page .samples-card:hover { transform: translateY(-4px); }
.samples-page .samples-card > a { display: flex; flex-direction: column; height: 100%; }
.samples-page .samples-title { font-size: 23px; font-weight: 600; letter-spacing: -.7px; line-height: 1.2; color: var(--ink); margin: 0 0 24px; }
.samples-page .samples-description { margin-top: auto; padding: 0; }
.samples-page .samples-description img { display: block; width: 100%; height: 240px; object-fit: contain; border-radius: 16px; background: #fff; }
.samples-page .samples-card > a::after { content: 'Explore estimate ›'; color: var(--blue); font-size: 15px; margin-top: 22px; }

/* Pricing: restyle the real project selector and calculated price table. */
.pricing-page #pricing-app { padding-bottom: 80px; min-height: 600px; }
.pricing-page #vue-pricing-app { gap: 24px; align-items: stretch; }
.pricing-page .pricing-menu-wrapper { flex: 0 0 285px; border: 0; background: var(--grey); border-radius: 24px; padding: 12px; }
.pricing-page .dashboard-menu-wrapper { width: 100%; padding-top: 0 !important; }
.pricing-page .dashboard-menu-item { width: 100%; text-align: left; border: 0; border-radius: 12px; padding: 14px 16px; margin: 3px 0; background: transparent; color: var(--ink); font-size: 15px; cursor: pointer; }
.pricing-page .dashboard-category-item-active { font-size: 16px; font-weight: 600; background: #e9e9ed; }
.pricing-page .dashboard-menu-item-active:not(.dashboard-category-item-active) { background: var(--brand); color: #283840; }
.pricing-page .pricing-dashboard-content-parent { min-width: 0; }
.pricing-page .pricing-dashboard-content-wrapper { padding: 0; height: auto; }
.pricing-page .associated-choice { width: 100%; max-width: none; padding: 36px; background: var(--grey); border: 0; border-radius: 24px; margin: 0; min-height: 240px; }
.pricing-page .confirmation-card__title { font-size: 26px; letter-spacing: -.7px; line-height: 1.2; white-space: normal; }
.pricing-page .text-justify { text-align: left !important; }
.pricing-page table { width: 100%; border-collapse: collapse; border-radius: 16px; background: #fff; overflow: hidden; }
.pricing-page td, .pricing-page th { padding: 14px 18px; border-color: #e7e7ea; }
.pricing-page th { background: var(--graphite); color: #fff; }
.pricing-page .back-button { color: var(--blue); border-radius: 100px; margin-bottom: 20px; }

/* Contact dialog uses native, labelled fields and the existing feedback endpoint. */
.contact-dialog { max-width: 940px; }
.contact-dialog .dialog-scroll { padding: 28px 36px; }
.contact-dialog h2 { font-size:34px; margin: 8px 36px 12px 0; }
.contact-dialog .detail-body > p { margin-bottom: 16px; }
.contact-form, #contact-estimate-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.contact-form { margin-top: 16px; }
.contact-field { min-width: 0; }
.contact-message, #contact-estimate-fields, .contact-form .form-status { grid-column: 1 / -1; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.contact-form :is(input,select,textarea) { display: block; width: 100%; padding: 11px 14px; min-height: 46px; margin: 0; border: 1px solid var(--border); border-radius: 14px; color: var(--ink); background: #fff; font: inherit; line-height: 1.4; }
.contact-form textarea { resize: vertical; min-height: 92px; }
.contact-form :is(input,select,textarea):focus { outline: 3px solid #0066cc22; border-color: var(--blue); }
.contact-form [hidden], #contact-estimate-fields[hidden] { display: none; }
.contact-form .form-status { margin: 0; color: var(--ink); }
.contact-form .form-status:empty { display: none; }
.contact-form .form-status.is-error { color: #a12727; }
.contact-form .button { justify-self: start; margin-top: 0; }
.contact-form .button:disabled { opacity: .55; cursor: wait; }
.contact-hours { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; border-top: 1px solid #e7e7ea; padding-top: 16px; margin-top: 18px; font-size: 13px; color: var(--secondary); }
.contact-hours p { margin: 0; }
@media (max-width: 600px) {
  .contact-dialog .dialog-scroll { padding: 42px 24px 24px; }
  .contact-dialog h2 { font-size:28px; margin-right: 0; }
  .contact-form, #contact-estimate-fields, .contact-hours { grid-template-columns: 1fr; }
  .contact-hours { gap: 10px; }
}

@media (max-width: 1000px) {
  .design-page .builders-hero { gap: 32px; }
  .auth-page .login-panel { padding: 32px; }
  .samples-page .samples-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .design-page .main-body-wrapper, .design-page .builders-main { width: calc(100% - 40px); }
  .design-page .page-intro { padding: 48px 0 36px; }
  .design-page .page-intro > p:last-child { font-size: 18px; }
  .design-page .builders-hero { grid-template-columns: 1fr; padding: 48px 0 32px; }
  .design-page .builders-hero-card { width: 100%; max-width: none; }
  .design-page .builders-section { padding: 48px 0; }
  .design-page .builders-split { grid-template-columns: 1fr; gap: 28px; }
  .design-page .builders-highlight, .design-page .builders-ai-experience { padding: 28px; }
  .design-page .builders-cta { padding: 48px 24px; margin-bottom: 48px; }
  .design-page .builders-proof strong { font-size:24px; }
  .design-page .builders-benefits article { padding: 26px; }
  .auth-page .main-body-wrapper { padding: 36px 0 48px; }
  .auth-page .login-container { grid-template-columns: 1fr; }
  .auth-page .login-panel, .auth-page .associated-choice, .auth-page .terms { padding: 28px; }
  .auth-page .section-title { font-size:34px; }
  .pricing-page #vue-pricing-app { flex-direction: column; }
  .pricing-page .pricing-menu-wrapper { flex: auto; width: 100%; }
  .pricing-page .associated-choice { padding: 24px; }
  .pricing-page td, .pricing-page th { padding: 10px 8px; font-size: 13px; }
}
@media (max-width: 500px) {
  .samples-page .samples-grid { grid-template-columns: 1fr; }
  .design-page .builders-benefits { grid-template-columns: 1fr; }
  .design-page .builders-main h1 { font-size:36px; }
  .design-page .builders-main .builders-lead { font-size: 20px; }
}

/* Reset legacy layout constraints where the new shell meets existing components. */
.design-page .site-header .nav-links { width: auto; justify-content: flex-start; margin-left: auto; }
.auth-page .login-panel { max-width: none; }
.detail-dialog { margin: auto; }
@media (max-width: 900px) {
  .design-page .site-header .nav-links { width: 100%; margin-left: 0; }
}
.design-page :where(h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,label,div,section,main,header,footer,ul,ol,li,span,small,strong,em,table,td,th,dt,dd,form) { font-family: inherit; }
.design-page .site-header .nav { margin-inline: auto; }

.auth-page .login-container > .login-panel:last-child :is(ul,li) { color: #d2d2d7; }
.auth-page .testimonial-box { background: #2c2c2e; color: #f5f5f7; border: 0; border-radius: 18px; box-shadow: none; }
.auth-page .testimonial-box :is(p,div,a) { color: inherit; }
.auth-page .testimonial-box-name { color: #f7d72b; }
.design-page .page-intro .eyebrow { color: var(--brand-dark); font-size: 14px; }

.sample-detail-page .main-body-wrapper { padding: 44px 0 64px; }
.sample-detail-heading { margin-bottom: 32px; }
.sample-detail-heading h1 { font-size:clamp(30px,4vw,36px); line-height: 1.12; letter-spacing: -1.5px; margin: 12px 0 18px; }
.sample-detail-page #sample-detail-app { gap: 24px; }
.sample-detail-page .sample-detail-menu-wrapper { border: 0; border-radius: 24px; background: var(--grey); padding: 16px; }
.sample-detail-page .dashboard-menu-item { border: 0; border-radius: 12px; padding: 14px; margin: 4px 0; }
.sample-detail-page .dashboard-menu-item-active { background: var(--brand); color: var(--ink); }
.sample-detail-page .pdf-viewer-wrapper { min-width: 0; }
.sample-detail-page .pdf-viewer-container { border-radius: 24px; padding: 20px; }
@media(max-width:768px) { .sample-detail-page #sample-detail-app { flex-direction: column; } }
/* Use document flow instead of the legacy viewport-height mobile dashboard. */
.pricing-page #vue-pricing-app, .sample-detail-page #sample-detail-app { height: auto !important; overflow: visible; }
.pricing-page .pricing-menu-wrapper, .sample-detail-page .sample-detail-menu-wrapper { height: auto !important; align-self: stretch; }
@media(max-width:768px) {
  .pricing-page .pricing-menu-wrapper, .pricing-page .pricing-dashboard-content-parent,
  .sample-detail-page .sample-detail-menu-wrapper, .sample-detail-page .pdf-viewer-wrapper {
    position: static; inset: auto; height: auto !important; transform: none; width: 100%; overflow: visible;
  }
  .pricing-page .pricing-menu-wrapper.hidden, .sample-detail-page .sample-detail-menu-wrapper.hidden { display: none !important; }
  .pricing-page .pricing-dashboard-content-parent, .sample-detail-page .pdf-viewer-wrapper { display: none; }
  .pricing-page .pricing-dashboard-content-parent.visible, .sample-detail-page .pdf-viewer-wrapper.visible { display: block; }
  .pricing-page .dashboard-menu-wrapper { overflow: visible; }
}

.auth-page #vue-change-password-app h2 { font-size:clamp(28px,3vw,36px); letter-spacing: -1.2px; line-height: 1.15; margin-bottom: 28px; }

/* Keep the sign-in welcome panel light, including its customer testimonials. */
.auth-page .login-container > .login-welcome:last-child { background: #fff; color: var(--ink); }
.auth-page .login-container > .login-welcome:last-child .section-title,
.auth-page .login-welcome .section-info h4 { color: var(--ink); }
.auth-page .login-container > .login-welcome:last-child .eyebrow { color: var(--brand-dark); }
.auth-page .login-welcome .section-info,
.auth-page .login-container > .login-welcome:last-child :is(ul,li) { color: var(--secondary); }
.auth-page .login-welcome .testimonial-box { background: var(--grey); color: var(--ink); }
.auth-page .login-welcome .testimonial-box-name { color: var(--brand-dark); }

.auth-page .login-welcome .login-btn { margin-bottom: 0; }
.auth-page .login-welcome .section-info { margin-top: 16px; }
/* Compact navigation and a clearer hierarchy for the landing pages. */
.site-header .nav-links { gap:20px; }
.design-page .builders-services .services { padding:7px 20px; }
.design-page .builders-services .homepage-services-grid { gap:6px; }
.design-page .builders-services .landing-service-card { min-height:36px; padding:7px 12px; border-radius:8px; }
.design-page .builders-services .service-title { font-size:13px; }
.design-page .builders-main h1, .design-page .page-intro h1 { font-size:clamp(32px,4vw,36px); line-height:1.12; letter-spacing:-.04em; }
.design-page .builders-main h2 { font-size:clamp(26px,3vw,36px); }
.design-page .builders-main .title-accent, .design-page .page-intro h1 span { color:var(--blue); }
.design-page .builders-main .builders-lead { font-size:20px; }
.design-page .builders-hero { padding-top:22px; gap:44px; }
.home-story > summary { cursor:pointer; list-style:none; }
/* The shared homepage navigation stays 64px tall on desktop and mobile. */
.home-story[open] > summary { position:sticky; top:64px; z-index:10; background:var(--grey); box-shadow:0 1px 0 var(--border); }
.home-story > summary.story-link { width:100%; justify-content:center; padding:14px 12px; }
.home-story > summary::-webkit-details-marker { display:none; }
.home-story > summary:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
.home-story .story-toggle { margin-left:9px; display:inline-flex; align-items:center; gap:3px; vertical-align:middle; }
.home-story > summary .icon { transform:rotate(90deg); }
.home-story[open] > summary .icon { transform:rotate(-90deg); }
.home-story-content { max-width:840px; margin-inline:auto; padding-block:28px; }
.next-project.wrap { max-width:760px; border-radius:28px; margin-block:24px 72px; }
.feature-inside, .feature-programme { display:flex; flex-direction:column; min-height:0; }
.feature-inside .feature-copy, .feature-programme .feature-copy { padding-bottom:8px; }
.feature-card .feature-preview { position:relative; flex:none; width:calc(100% - 48px); aspect-ratio:2184 / 1152; max-height:none; margin: auto 24px 24px; padding:0; overflow:hidden; background:#fff; border:0; border-radius:16px; transform:none; box-shadow:0 12px 30px #0002; }
.feature-preview img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; object-position:left top; }
@media (max-width:700px) {
 .next-project.wrap { margin-bottom:48px; }
}
.home-hero.hero { padding:8px 0 20px; }
.home-hero .hero-copy h1 { font-size:clamp(16px,2.2vw,27px); letter-spacing:-1.8px; line-height:1.12; margin:12px auto 0; }
.home-hero .hero-copy h1 span { color:var(--blue); }
.home-hero .proof { padding-top:18px; }
.services-grid .service-card { min-height:160px; padding:18px 24px; }
.services-grid .service-card .card-link, .home-story .story-toggle { background:var(--brand); color:var(--ink); border-radius:999px; padding:5px 10px; font-size:12px; font-weight:600; line-height:1.4; white-space:nowrap; }
/* Original tape artwork, sliding label and slim extending strip. */
.home-hero .legacy-tape { --logo-width:60px; position:relative; display:block; width:calc(100% - 96px); max-width:940px; height:84px; margin:0 auto; }
.legacy-tape .measure-case { width:var(--logo-width); height:auto; position:absolute; left:0; bottom:24px; z-index:2; filter:none; }
.legacy-tape .measure-content { position:absolute; left:calc(var(--logo-width) - 2px); right:0; bottom:33px; padding:0; height:70px; }
.legacy-tape .measure-rule { position:absolute; bottom:0; left:0; width:100%; height:3px; background:#3d4f57; transform:none; transition:width 1.8s ease-in-out; border-radius:0; }
.legacy-tape .rule-ticks { display:none; }
.legacy-tape .rule-end { position:absolute; width:3px; height:12px; right:0; top:-3px; background:#3d4f57; }
.legacy-tape p.measure-message { position:absolute; bottom:6px; left:0; max-width:100%; min-height:0; padding:0 0 0 12px; margin:0; color:#1d1d1f; font-size:clamp(16px,2.2vw,27px); font-weight:700; line-height:1.25; letter-spacing:-.045em; transform:translateX(0); transition:transform 1.8s ease-in-out,opacity .3s; }
.legacy-tape p.measure-caption { position:absolute; right:4px; top:76px; padding:0; font-size:14px; font-weight:600; font-style:italic; color:#1d1d1f; line-height:1; }
.legacy-tape.is-changing .measure-rule { width:5px; transform:none; transition-duration:.8s; }
.legacy-tape.is-changing .measure-message { transform:translateX(-105%); transition-duration:.8s; }
.legacy-tape .measure-content { clip-path:inset(-60px -5px -35px 0); }
.legacy-tape .measure-pause { right:-34px; bottom:26px; }
@media (max-width:700px) {
 .site-header .nav-links { gap:0; font-size:16px; padding:12px 24px; }
 .site-header .nav-links a, .site-header .nav-links .nav-text-button { padding-block:9px; }
 .home-hero.hero { padding-top:8px; }
 .home-hero .legacy-tape { --logo-width:45px; width:calc(100% - 64px); height:76px; margin-top:0; }
 .legacy-tape p.measure-message { font-size:15px; white-space:normal; padding-left:10px; }
 .legacy-tape p.measure-caption { font-size:10px; }
 .home-hero .hero-copy h1 { margin-top:8px; letter-spacing:-1px; }
 .services-grid .service-card { min-height:166px; padding:20px; }
 .design-page .builders-hero { gap:28px; }
}
@media (prefers-reduced-motion:reduce) { .legacy-tape :is(.measure-rule,.measure-message,.measure-caption) { transition:none; } }
.section-heading h2, .next-project h2 { font-size:clamp(28px,3.5vw,36px); line-height:1.12; letter-spacing:-1.4px; }
.next-project h2 { font-size:clamp(26px,3vw,36px); }
.home-hero + .services.section { padding-top:24px; padding-bottom:28px; }
.home-hero .hero-copy h1 span { white-space:nowrap; }

/* Show the secondary message only once the original tape has fully extended. */
.legacy-tape p.measure-caption { opacity:1; transition:opacity 0s linear 1.8s; }
.legacy-tape.is-changing .measure-caption { opacity:0; transition:opacity 0s; }
.home-hero + .services .section-heading { margin-bottom:24px; }
.site-footer .footer-contact { white-space:nowrap; }
.site-footer .footer-contact a { margin-left:10px; }
@media (max-width:700px) {
 .home-hero .hero-copy h1 { font-size:15px; }
 .home-hero .proof { padding-top:14px; }
 .home-hero + .services.section { padding-top:18px; padding-bottom:20px; }
 .home-hero + .services .section-heading { margin-bottom:16px; }
 .services-grid { grid-template-columns:1fr; gap:6px; }
 .services-grid .service-card { min-height:0; padding:10px 14px; border-radius:14px; display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; }
 .services-grid .service-card h3 { font-size:16px; margin:0; }
 .services-grid .service-card p { font-size:12px; margin:3px 0 0; }
 .services-grid .service-card .card-link { grid-column:2; grid-row:1 / 3; align-self:center; margin:0; font-size:12px; }
 .site-footer .footer-contact { white-space:normal; }
 .site-footer .footer-contact a { white-space:nowrap; }
}
@media (prefers-reduced-motion:reduce) { .legacy-tape p.measure-caption { transition:none; } }
@media (max-width:700px) {
 .services-grid .service-card:last-child { grid-column:auto; min-height:0; padding:10px 14px; }
 .services-grid .service-card p, .services-grid .service-card:last-child p { grid-column:1; max-width:none; margin:3px 0 0; }
 .site-footer .footer-contact { white-space:nowrap; font-size:11px; }
 .site-footer .footer-contact a { margin-left:4px; }
}
@media (max-width:700px) {
 .site-footer .footer-contact { grid-column:1 / -1; margin-left:0; }
}
/* Reference audience tabs and consistent landing-page typography. */
.design-page .audience-nav { border-bottom:1px solid #e6e6e9;background:#fff; }
.design-page .audience-nav .wrap { display:flex;align-items:center;justify-content:center;gap:34px;min-height:51px;overflow-x:auto;white-space:nowrap;margin:auto; }
.design-page .audience-nav a { font-size:12px;padding:17px 0;color:#1d1d1f;position:relative;font-weight:400; }
.design-page .audience-nav a[aria-current=page]::after { content:"";height:3px;background:var(--brand);position:absolute;bottom:0;left:0;right:0;border-radius:3px; }
.service-page .builders-main :is(h1,h2,h3,p,li,strong,span,a) { color:#1d1d1f; }
.service-page .builders-main :is(.builders-ai-experience,.builders-cta,.merchants-api-step) { background:#f5f5f7 !important; }
.samples-page .page-intro { padding:24px 0; }
.samples-page .page-intro h1 { color:#1d1d1f;font-size:clamp(25px,3.8vw,36px);margin:8px 0 14px; }
.pricing-page #pricing-app { padding:0 0 24px;min-height:0; }
.pricing-page .pricing-menu-wrapper { padding:8px;flex-basis:265px; }
.pricing-page .dashboard-menu-item { padding:7px 12px;margin:1px 0;font-size:13px;min-height:0;line-height:1.3; }
.pricing-page .dashboard-menu-item p { font-size:inherit;line-height:inherit;margin:0; }
.pricing-page .associated-choice { padding:20px;min-height:0; }
.pricing-page .confirmation-card { gap:8px 12px; }
.pricing-page .confirmation-card__title { font-size:18px;letter-spacing:-.3px; }
.pricing-page .associated-choice .mb-br { margin-bottom:12px; }
.pricing-page .associated-choice :is(.btn,.login-btn) { min-height:36px;padding:8px 18px;font-size:14px;margin-top:0; }
.pricing-page td,.pricing-page th { padding:8px 12px; }
@media(max-width:760px) {
 .design-page .audience-nav .wrap { width:calc(100% - 30px);justify-content:flex-start;gap:28px; }
 .design-page .audience-nav a { font-size:11px; }
 .samples-page .page-intro { padding:20px 0; }
 .pricing-page .pricing-menu-wrapper { flex-basis:auto; }
}
.design-page.service-page .builders-main :is(h1,h2,h3,h4,p,li,dt,dd,strong,span,a,.builders-eyebrow,.title-accent) { color:#1d1d1f; }
/* Keep every merchant flow step readable on the light landing-page theme. */
.design-page .merchants-diagram-flow { margin:0; background:transparent; }
.design-page .merchants-diagram-flow li > div { background:#fff; color:#1d1d1f; border-color:#e5e5ea; border-radius:14px; font-weight:600; }
.design-page .merchants-diagram-flow li > .merchants-api-step { background:#f7d72b !important; color:#1d1d1f; border-color:#f7d72b !important; }
.design-page .merchants-diagram-flow li + li::before { color:#1d1d1f; }
.design-page .merchants-diagram-flow span { font-weight:400; }
/* Compact secondary homepage cards while retaining their detail controls. */
.feature-grid .feature-small { min-height:180px;padding:22px 24px 56px; }
.feature-grid .feature-small h3 { font-size:23px; }
.feature-grid .feature-small > p:last-of-type { margin-top:7px;font-size:15px; }
.feature-grid .feature-small .plus-button { bottom:18px;right:20px; }
.why-grid .why-card { min-height:190px;padding:22px 22px 52px; }
.why-grid .why-title { font-size:21px; }
.why-grid .why-description { font-size:14px;margin-top:10px; }
.why-grid .plus-button { bottom:16px;right:22px; }
#configurators[hidden] { display:none; }
@media(max-width:700px) {
 .feature-grid .feature-small { min-height:168px;padding:20px 18px 52px; }
 .feature-grid .feature-small h3 { font-size:21px; }
 .feature-grid .feature-small:last-child { min-height:140px;padding:20px 64px 20px 18px; }
 .feature-grid .feature-small:last-child .plus-button { bottom:20px; }
 .why-grid .why-card { min-height:180px;padding:20px 18px 50px; }
 .why-grid .plus-button { right:18px; }
 .why-grid .why-title { font-size:19px; }
}

.design-page #builders-prices { row-gap:20px; }
.design-page #builders-prices > .builders-prices-intro { grid-column:1 / -1;margin:0;text-align:center;font-size:20px;line-height:1.4;font-weight:600;color:#1d1d1f; }

.service-page .builders-main .builders-cta-dark { max-width:760px; margin-inline:auto; background:#1d1d1f !important; }
.service-page .builders-main .builders-cta-dark :is(h2,p) { color:#fff !important; }

.service-page .builders-main #ai-experience { background:#1d1d1f !important; }
.service-page .builders-main #ai-experience :is(h2,p) { color:#fff; }
.service-page .builders-main #ai-experience .builders-eyebrow { color:#f7d72b; }

.service-page .builders-main .builders-cta-dark .builders-text-link { color:#fff; }

/* Inline card interaction; retain the existing card content and closed styling. */
.expanding-features { grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr 1fr;gap:22px;transition:grid-template-columns .45s ease; }
.expanding-features[data-active="0"] { grid-template-columns:3fr 1fr 1fr; }
.expanding-features[data-active="1"] { grid-template-columns:1fr 3fr 1fr; }
.expanding-features[data-active="2"] { grid-template-columns:1fr 1fr 3fr; }
.feature-grid .expanding-features .feature-small { grid-column:auto;min-width:0;cursor:pointer; }
.inline-card-detail { display:grid;grid-template-rows:0fr;visibility:hidden;opacity:0;transition:grid-template-rows .4s ease,opacity .25s,visibility .4s;cursor:auto;width:100%; }
.inline-card-detail > div { min-height:0;overflow:hidden; }
.is-expanded .inline-card-detail { grid-template-rows:1fr;visibility:visible;opacity:1; }
.inline-card-detail .detail-body p { margin:0 0 16px; }
.inline-card-detail .detail-body > :first-child { margin-top:16px; }
.inline-card-detail .detail-body h2 { font-size:21px;line-height:1.3;margin:29px 0 13px; }
/* Expand one column while keeping neighbouring topics available. */
/* Keep four explicit tracks in every state so browsers can interpolate widths. */
.why-grid { align-items:start;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);transition:grid-template-columns .48s cubic-bezier(.22,.8,.25,1); }
.why-grid[data-active="0"] { grid-template-columns:minmax(0,4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); }
.why-grid[data-active="1"] { grid-template-columns:minmax(0,1fr) minmax(0,4fr) minmax(0,1fr) minmax(0,1fr); }
.why-grid[data-active="2"] { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,4fr) minmax(0,1fr); }
.why-grid[data-active="3"] { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) minmax(0,4fr); }
.why-grid .why-card { cursor:pointer;min-width:0;overflow-wrap:anywhere; }
.why-grid.has-active .why-card:not(.is-expanded) { padding-inline:16px; }
.why-grid.has-active .why-card:not(.is-expanded) .why-title { font-size:20px; }
.why-grid .why-card.is-expanded:hover { transform:none; }
.why-grid .inline-card-detail .detail-body { max-width:850px; }
/* Preserve the expanded content typography within its wider column. */
.why-grid .why-card.is-expanded { padding:30px 28px 44px;min-height:300px; }
.why-grid .is-expanded .why-title { font-size:32px;line-height:1.14;letter-spacing:-.75px;margin-bottom:8px; }
.why-grid .is-expanded .why-title br { display:none; }
.why-grid .is-expanded .why-description { max-width:none;font-size:16px;line-height:1.45;margin:0 0 16px; }
.why-grid .is-expanded .inline-card-detail { padding-bottom:32px; }
.why-grid .inline-card-detail .detail-body { color:#1d1d1f;font-size:16px;line-height:1.65; }
.why-grid .inline-card-detail .detail-body p { margin:0 0 16px; }
.why-grid .inline-card-detail .detail-body :is(h2,h3,.modal-content-title) { color:#1d1d1f;font-size:19px;font-weight:600;line-height:1.35;letter-spacing:normal;margin:20px 0 12px; }
.why-grid .inline-card-detail .detail-body > :first-child { margin-top:0; }
.why-grid .inline-card-detail .detail-body ol { padding-left:22px;margin:16px 0; }
.why-grid .inline-card-detail .detail-body li { margin:0 0 10px; }
.why-grid .inline-card-detail .detail-body a { color:#28578b;text-decoration:underline;font-size:inherit;font-weight:inherit; }
.why-grid .why-card.is-expanded .plus-button { left:auto;right:22px;bottom:22px;width:34px;height:34px;padding:0;border-radius:50%;background:var(--brand);color:#555;font-size:25px;font-weight:300;display:grid;place-items:center; }
.why-grid .why-card.is-expanded .plus-button:hover { background:var(--brand); }
@media(max-width:700px) {
 .why-grid .why-title br { display:none; }
 .why-grid .why-card.is-expanded { padding:25px; }
 .why-grid .is-expanded .why-title { font-size:27px; }
}
.expanding-features .plus-button { font-size:25px; }
.expanding-features .feature-small:focus-visible, .why-card:focus-visible { outline:3px solid #a98b27;outline-offset:4px; }
@media(max-width:850px) { .expanding-features { gap:17px; } }
@media(max-width:700px) {
 .expanding-features, .expanding-features[data-active] { grid-template-columns:minmax(0,1fr); }
 .feature-grid .expanding-features .feature-small { padding:20px 18px 52px; }
}

.card-reset { display:block;grid-column:1 / -1;justify-self:end;margin:16px 0 0 auto;font-size:13px;text-decoration:underline;text-underline-offset:4px;color:var(--secondary); }

/* Both plus and expanded minus controls remain yellow without hover. */
.home-page .plus-button,
.home-page .plus-button[aria-expanded="true"],
.home-page .plus-button[aria-expanded="true"]:hover { background:var(--brand); }
.home-page .services-grid .service-card .plus-button { position:static;align-self:flex-end;flex-shrink:0;margin-top:auto; }

@media(max-width:850px) {
 .why-grid, .why-grid[data-active] { grid-template-columns:minmax(0,1fr); }
 .why-grid.has-active .why-card:not(.is-expanded) { padding-inline:22px; }
}

#our-story { background:#fff; }
#our-story .why-card { background:var(--grey); }
#our-story .inline-card-detail .detail-body { color:#1d1d1f; }
#our-story .why-title { overflow-wrap:normal;word-break:normal; }

/* Use matching explicit tracks so widths interpolate in every state. */
@media(min-width:1101px) {
 #our-story .why-grid { grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr); }
 #our-story .why-grid[data-active="0"] { grid-template-columns:minmax(180px,4fr) minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr); }
 #our-story .why-grid[data-active="1"] { grid-template-columns:minmax(180px,1fr) minmax(180px,4fr) minmax(180px,1fr) minmax(180px,1fr); }
 #our-story .why-grid[data-active="2"] { grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(180px,4fr) minmax(180px,1fr); }
 #our-story .why-grid[data-active="3"] { grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr) minmax(180px,4fr); }
}
@media(max-width:1100px) {
 #our-story .why-grid, #our-story .why-grid[data-active] { grid-template-columns:minmax(0,1fr); }
}

/* Link the homepage announcement directly to the story cards. */
.announcement-story-link {
  color:var(--blue);
}
.announcement-story-link:hover,
.announcement-story-link:focus-visible {
  text-decoration:underline;
  text-underline-offset:3px;
}

/* Left-align body copy while preserving short labels and centred section introductions. */
.home-page main p,
.design-page.service-page .builders-main p {
  text-align: left !important;
}

/* Short labels follow their surrounding layout rather than stretching as body copy. */
.home-page main :is(.eyebrow, .kicker, .feature-subtitle, .measure-message, .measure-caption),
.home-page main .service-card p,
.design-page.service-page .builders-main .builders-eyebrow {
  text-align: inherit !important;
}

/* Centred headings, statistics, captions and calls to action retain their alignment. */
.home-page main :is(.section-heading, .next-project, .proof) p,
.design-page.service-page .builders-main .builders-cta p,
.design-page.service-page .builders-main .builders-prices-intro,
.design-page.service-page .merchant-api-page :is(.api-section-heading, .api-scale, .api-contact) p,
.design-page.service-page .merchant-api-page .api-explainer-caption {
  text-align: center !important;
}

.home-page .features .section-heading { text-align: center; }
