/* Calm precision homepage and EOR page. Tokens stay in brand-tokens.css.
   No dark-theme block is shipped. */

.hero {
  position: relative;
  background: var(--brand-navy);
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 70% 50%;
  transform-origin: 70% 50%;
  animation: hero-drift 20s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}
.hero-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  opacity: 0;
  z-index: 1;
}
.hero-video.is-playing { opacity: 1; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 60, 108, 0.97) 0%, rgba(0, 60, 108, 0.9) 34%, rgba(0, 60, 108, 0.35) 58%, rgba(0, 60, 108, 0) 72%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { position: relative; padding: 72px 0 168px; max-width: 38rem; }
.hero .kicker { color: var(--on-topbar-2); }
.hero .h-display { color: #fff; margin: 12px 0 16px; }
.hero .lead { color: var(--on-topbar-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn { height: auto; min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-ghost-navy {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-ghost-navy:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.rise { animation: rise 400ms ease-out both; }
.rise:nth-child(2) { animation-delay: 80ms; }
.rise:nth-child(3) { animation-delay: 160ms; }
.rise:nth-child(4) { animation-delay: 240ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.band { padding: 64px 0; }
.band-white { background: var(--surface); }
.band-head { max-width: 40rem; margin: 0 0 32px; }
.band-head .h-section { margin: 8px 0 12px; }
.band-head .lead { margin-top: 0; }

.calc-wrap { position: relative; z-index: 2; margin-top: 0; }
.calc-wrap-overlap { margin-top: -112px; }
.calc-wrap-overlap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 880px) {
  .calc-wrap-overlap { padding-left: 32px; padding-right: 32px; }
}
.calc {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
}
.calc-in, .calc-out { padding: 28px; }
.calc-in { border-right: 1px solid var(--divider); }
.calc .h-card { margin: 6px 0 8px; }
.calc-help { margin: 0; color: var(--text-2); font-size: 15px; line-height: 22px; }
.field-block { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field-block label, .chk { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); }
.input, .select {
  height: var(--touch-min);
  min-height: var(--touch-min);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font: 500 16px/1.2 var(--font-sans);
  color: var(--text);
  background: var(--surface);
  width: 100%;
}
.input:focus, .select:focus {
  border-color: var(--focus-ring);
  box-shadow: var(--focus-glow);
  outline: none;
}
.input-money { position: relative; }
.input-money span {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-2); font-weight: 600;
}
.input-money .input { padding-left: 28px; font-variant-numeric: tabular-nums; }
.chk { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-weight: 500; }
.chk input { width: 24px; height: 24px; margin-top: 0; accent-color: var(--primary); flex: none; }
.amount {
  font-size: var(--fs-amount);
  line-height: var(--lh-amount);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  min-height: var(--lh-amount);
  color: var(--text);
}
.amount-sub {
  min-height: 20px;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.calc-expand {
  display: none;
  margin-top: 12px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.breakdown { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.breakdown th {
  background: var(--surface-sunken);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: left;
  padding: 8px 12px;
}
.breakdown th:last-child, .breakdown td:last-child { text-align: right; }
.breakdown td { padding: 9px 12px; border-top: 1px solid var(--divider); font-variant-numeric: tabular-nums; }
.breakdown tr.fee td { color: var(--text-muted); }
.breakdown tfoot td { font-weight: 700; border-top: 1px solid var(--border-subtle); }
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: var(--radius-pill); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; margin-left: 6px;
}
.tag-ex { background: var(--badge-pending-bg); color: var(--badge-pending-text); }
.tag-tbc { background: var(--badge-draft-bg); color: var(--badge-draft-text); }
.calc-note {
  margin: 16px 0 0; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--badge-pending-bg); color: var(--warning); font-size: 13px; line-height: 20px;
}
.rates-as-of { margin: 12px 0 0; }
.is-confirmed .tag-ex, .is-confirmed .calc-note, .is-example .rates-as-of { display: none; }
.calc-error { margin: 12px 0 0; color: var(--danger); font-size: 13px; line-height: 20px; }
.calc-action { margin-top: 16px; }
.calc-action .btn { width: 100%; }
.capture { margin-top: 16px; }
.capture-row { display: flex; gap: 8px; }
.capture-row .input { flex: 1; }
.consent { margin: 10px 0 0; font-size: 13px; line-height: 20px; color: var(--text-2); font-weight: 400; }
.consent label { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.consent input { width: 24px; height: 24px; margin-top: 0; accent-color: var(--primary); flex: none; }
.consent a { font-weight: 600; }
.req { color: var(--danger); }

.proof { padding: 40px 0 8px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { border-left: 2px solid var(--border-subtle); padding-left: 16px; }
.stat .amount { color: var(--brand-navy); }
.stat p { margin: 4px 0 0; color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }

.tl { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding-top: 36px; --tl-p: 1; }
.js .tl { --tl-p: 0; }
.tl-track, .tl-line { position: absolute; left: 10%; right: 10%; top: 11px; height: 2px; border-radius: 2px; }
.tl-track { background: var(--border-subtle); }
.tl-line { background: var(--primary); transform-origin: left center; transform: scaleX(var(--tl-p)); }
.tl-step { position: relative; text-align: center; }
.tl-dot {
  position: absolute; left: 50%; top: -36px; margin-left: -12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-subtle);
}
.tl-step.on .tl-dot { background: var(--primary); border-color: var(--primary); }
.tl-step .h-card { font-size: 16px; line-height: 22px; }
.tl-step p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; line-height: 20px; }
.tl-badge { margin-top: 10px; }
.tl-note { margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 500; line-height: 22px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--d, currentColor); }
.b-pend { background: var(--badge-pending-bg); color: var(--badge-pending-text); --d: var(--badge-pending-dot); }
.b-appr { background: var(--badge-approved-bg); color: var(--badge-approved-text); --d: var(--badge-approved-dot); }
.b-proc { background: var(--badge-processing-bg); color: var(--badge-processing-text); --d: var(--badge-processing-dot); }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile {
  border-radius: var(--radius-xl); padding: 24px;
  display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none;
}
a.tile:hover { box-shadow: var(--shadow-3); transform: translateY(-2px); color: inherit; }
.tile p { margin: 0; color: var(--text-2); }
.tile .more { margin-top: auto; color: var(--link); font-weight: 600; }
.tile-xl .more { margin-top: 12px; }
.tile-xl { grid-column: span 2; grid-row: span 2; padding: 28px; }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: flex-start; gap: 16px; }
.tile-xl .h-card { font-size: 24px; line-height: 32px; }
.well {
  width: 48px; height: 48px; border-radius: 28%; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; flex: none; color: var(--primary-hover);
}
.well svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.illus-well {
  background: #E8F0FF;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  overflow: hidden;
}
.illus-well img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #E8F0FF;
}
.tile-xl .illus-well img { max-height: 320px; }
.tile:not(.tile-xl) .illus-well img { max-height: 168px; }
.tile-wide .illus-well { width: 160px; flex: none; margin-top: 0; align-self: center; }
.tile-wide .illus-well img { max-height: 140px; }
.service-detail .illus-well { margin: 0 0 16px; }
.service-detail .illus-well img { max-height: 220px; }

.page-banner { background: var(--bg); overflow: clip; }
.page-banner-frame {
  display: grid;
  width: 100%;
  margin: 0;
}
.page-banner-media,
.page-banner-copy { grid-area: 1 / 1; }
.page-banner-media {
  display: block;
  position: relative;
  height: calc(min(100vw, var(--wrap)) * 800 / 2400);
  min-height: 100%;
}
.page-banner-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.page-banner-copy {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(42%, 32rem);
  margin-left: max(0px, calc((100% - var(--wrap)) / 2));
  padding: 32px 40px;
}
.page-banner-copy .h-page,
.page-banner-copy .h-display { margin: 8px 0 12px; }
.page-banner-copy .lead { margin: 0; }
.page-banner-copy .crumbs { margin-bottom: 8px; }
.page-banner .hero-ctas { margin-top: 20px; }
@media (min-width: 640px) {
  .page-banner-media {
    justify-self: end;
    width: 62%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
    mask-image: linear-gradient(to right, transparent, #000 30%);
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .page-banner-copy { width: 52%; padding-right: 16px; }
  .page-banner-media { width: 54%; }
}
.reply-note { margin: 12px 0 0; color: var(--text-2); font-size: 14px; line-height: 22px; }
.faq-supplies-label { margin: 12px 0 8px; font-weight: 600; color: var(--text); }
.faq-details .faq-supplies-label { padding: 0 36px 0 0; }
.eor-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
}
.eor-top .illus-well { margin: 0; }
.eor-top .illus-well img { max-height: 360px; }
.band-tight { padding-top: 32px; padding-bottom: 8px; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 8px; color: var(--text); font-size: 14px; line-height: 20px; }
.ticks li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%;
  background: var(--badge-approved-bg) center / 16px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230E5E5A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.why, .incl, .price-basis { display: grid; gap: 20px; }
.why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.incl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 880px) {
  .incl.incl-steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.incl-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price-basis { grid-template-columns: 1fr 1fr; }
.why .card, .incl .card, .price-basis .card { padding: 24px; }
.why .h-card, .incl .h-card { margin: 14px 0 8px; }
.why p, .incl p, .price-basis p { margin: 0; color: var(--text-2); }
.fact {
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--divider);
  color: var(--text); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums;
}
.price-line { margin: 8px 0 0; }
.price-note { margin-top: 16px; }

.swipe { display: none; margin: 0 0 12px; }
.tablecard { overflow: auto; border-radius: var(--radius-lg); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.cmp th {
  background: var(--surface-sunken); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-2); text-align: left; padding: 14px 16px;
}
.cmp th.us { color: var(--on-primary-soft); background: var(--primary-soft); }
.cmp td { padding: 16px; border-top: 1px solid var(--divider); vertical-align: top; color: var(--text-2); }
.cmp tbody th[scope="row"] { font-weight: 600; color: var(--text); width: 18%; background: transparent; letter-spacing: 0; text-transform: none; font-size: 15px; }
.cmp td.us { background: #fafcff; color: var(--text); }

.product-show { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.product-show figure { margin: 0; background: var(--surface); border: var(--card-border); border-radius: var(--radius-xl); overflow: hidden; }
.product-show img { width: 100%; height: auto; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case { padding: 24px; }
.case-full { width: 100%; max-width: none; }

.btt { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 32px; align-items: center; border-radius: var(--radius-xl); }
.btt .h-section { margin: 8px 0 12px; }
.btt-cta { margin-top: 20px; }
.btt ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.btt li {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  background: var(--bg); border-radius: var(--radius-md); counter-increment: step;
}
.btt li::before {
  content: counter(step); flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-soft); color: var(--on-primary-soft); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.btt li b { display: block; font-weight: 600; color: var(--text); }
.btt li span { color: var(--text-2); }

.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; }
.faq-more { margin-top: 16px; }
.faq-details { border-top: 1px solid var(--divider); }
.faq-details:last-child { border-bottom: 1px solid var(--divider); }
.faq-details summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0;
  font-weight: 600; font-size: 16px; line-height: 24px; position: relative;
}
.faq-details summary::-webkit-details-marker { display: none; }
.faq-details summary::after {
  content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px;
  border-right: 1.8px solid var(--primary-hover); border-bottom: 1.8px solid var(--primary-hover);
  transform: rotate(45deg);
}
.faq-details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq-details p, .faq-details ul { margin: 0; padding: 0 36px 16px 0; color: var(--text-2); }
.faq-details ul { list-style: disc; padding-left: 1.25rem; }

.closing { background: var(--primary-soft); padding: 64px 0; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.closing .h-section { margin-bottom: 12px; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.quote-form {
  background: var(--surface); border-radius: var(--radius-xl); padding: 24px;
  box-shadow: var(--shadow-2); display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.quote-form .field-block { margin: 0; }
.field-span, .quote-form .form-privacy, .quote-form .form-status { grid-column: 1 / -1; }
.quote-submit { display: flex; align-items: center; gap: 12px; }
textarea.input { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; }
.enquiry-form.stack .field-block { margin-top: 0; }
.enquiry-form.stack .quote-submit { flex-direction: column; align-items: stretch; }
.enquiry-form.stack .quote-submit .btn { width: 100%; justify-content: center; }
.submit-loading { display: inline-flex; margin-left: 8px; vertical-align: middle; }
.submit-loading svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .submit-loading svg { animation: none; }
}

.page-head { background: var(--surface); border-bottom: 1px solid var(--divider); padding: 48px 0; }
.crumbs { margin: 0 0 16px; font-size: 13px; color: var(--text-2); }
.crumbs a { color: var(--link); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.page-head .h-display { margin: 8px 0 16px; }
.glance { padding: 8px 20px 12px; }
.glance-label { margin: 12px 0 0; }
.glance dl { margin: 0; }
.glance dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--divider); }
.glance dt { color: var(--text-2); }
.glance dd { margin: 0; font-weight: 600; text-align: right; }

#calc, #pricing, #quote, #enquiry-form, #faqs, #why, #services, #how-title, #software-development, .service-detail[id] {
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}
#enquiry-form label[for="enquiry-name"] {
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}

@media (max-width: 1100px) and (min-width: 880px) {
  .desk-nav { gap: 0; }
  .desk-nav a { padding: 0 8px; }
}
@media (max-width: 420px) {
  .topbar .wrap { padding-left: 12px; padding-right: 12px; }
  .topbar .btn-on-navy { padding: 0 10px; }
}

@media (max-width: 879px) {
  .hero { display: flex; flex-direction: column; }
  .hero .wrap { order: 1; width: 100%; }
  .hero-inner { padding: 32px 0 8px; }
  .hero-media { position: relative; inset: auto; order: 2; height: 360px; }
  .hero-media img { object-position: 70% 50%; }
  .hero-video { display: none; }
  .hero-media::after { background: linear-gradient(180deg, rgba(0, 60, 108, 1) 0%, rgba(0, 60, 108, 0) 28%); }
  .calc-wrap-overlap { margin-top: -110px; }
  .calc { grid-template-columns: 1fr; }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--divider); }
  .calc-breakdown { display: none; }
  .calc.is-open .calc-breakdown { display: block; }
  .calc-expand { display: inline-flex; align-items: center; }
  .capture-row, .why, .incl, .price-basis, .page-head-grid, .faq-grid, .closing-grid, .quote-form, .btt, .product-show, .cases, .proof-grid {
    grid-template-columns: 1fr;
  }
  .incl.incl-steps-4 { grid-template-columns: 1fr 1fr; }
  .capture-row { flex-direction: column; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-xl, .tile-wide { grid-column: auto; grid-row: auto; }
  .tile-wide { flex-direction: column; }
  .tile-wide .illus-well { width: 100%; }
  .eor-top { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 24px; padding: 0 0 0 40px; }
  .tl-track, .tl-line { left: 11px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .tl-line { transform-origin: center top; transform: scaleY(var(--tl-p)); }
  .tl-step { text-align: left; }
  .tl-dot { left: -40px; top: 0; margin-left: 0; }
  .swipe { display: block; }
  .btt { padding: 20px; }
}

@media (max-width: 639px) {
  .page-banner-frame { display: flex; flex-direction: column; width: 100%; }
  .page-banner-media, .page-banner-copy { grid-area: auto; width: auto; min-height: 0; }
  .page-banner-copy { order: 1; margin-left: 0; padding: 28px 20px 12px; }
  .page-banner-media { order: 2; aspect-ratio: 4 / 3; width: 100%; height: auto; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img, .rise { animation: none; }
  .hero-video { display: none; }
  .rise { opacity: 1; transform: none; }
  .tl, .js .tl { --tl-p: 1; }
  a.tile:hover { transform: none; }
}
