/* Layouts specific to inner pages: product sections, contact, login, legal. */

/* ---------- product sections ---------- */
.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6) var(--s-8);
  align-items: end;
  margin-bottom: var(--s-7);
}
.product-intro .section-head {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .product-intro { grid-template-columns: minmax(0, 1fr); }
}
.plans-note {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.plans-note .icon {
  color: var(--accent);
  width: 16px;
  height: 16px;
}
/*
 * Card rows that stay orderly: a fixed number of cards per row (--cols) chosen for the count,
 * and a shorter last row is centered instead of leaving a gap on the right.
 * .service-grid gets its counts from the page (style="--n-lg: 3; --n-md: 3").
 */
.plans:not(.plans--single, .plans--scroll, .plans--two),
.service-grid {
  --cols: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gutter);
}
.plans:not(.plans--single, .plans--scroll, .plans--two) > *,
.service-grid > * {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gutter)) / var(--cols));
  min-width: 0;
}
/* service and product cards fill a short last row (3 + 2 becomes three and two wider cards);
   plan cards keep one size and center instead */
.service-grid > * { flex-grow: 1; }
.plans.plans--three { --cols: 3; }
.plans.plans--five { --cols: 5; }
.service-grid { --cols: var(--n-lg, 3); }
@media (max-width: 1240px) {
  .plans.plans--five { --cols: 3; }
}
@media (max-width: 1100px) {
  .plans:not(.plans--three, .plans--five) { --cols: 2; }
  .service-grid { --cols: var(--n-md, 2); }
}
@media (max-width: 900px) {
  .plans.plans--five { --cols: 2; }
}
@media (max-width: 760px) {
  .plans.plans--three { --cols: 1; }
  .plans.plans--three > * { max-width: 480px; }
}
@media (max-width: 680px) {
  .plans:not(.plans--single, .plans--scroll, .plans--two),
  .service-grid { --cols: 1; }
}
/* three cards: three across, then one column, never two plus one */
@media (max-width: 1100px) {
  .grid--3:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid--3:has(> :nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); }
}
.erp-includes {
  margin-top: var(--s-6);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-md);
  border: 1px dashed var(--line-2);
  background: rgb(13 15 20 / 0.6);
}
.erp-includes--center {
  max-width: 820px;
  margin-inline: auto;
}

/* text on one side, the 3D station on the other */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: var(--s-7);
}
.split--right .split__body {
  grid-column: 2;
}
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); padding-top: 34vh; }
  .split--right .split__body { grid-column: 1; }
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--r-lg);
}
.feature-panel__copy {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
}
.feature-panel h2 {
  font-size: var(--fs-2xl);
}
.feature-panel p {
  color: var(--text-2);
}
@media (max-width: 900px) {
  .feature-panel { grid-template-columns: minmax(0, 1fr); }
}

.service-card {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  justify-items: start;
  padding: clamp(24px, 4vw, 40px);
}
.service-card h2 {
  font-size: var(--fs-xl);
}
.service-card > p {
  color: var(--text-2);
}
.service-card .btn {
  margin-top: var(--s-2);
}

.teaser {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-6);
  border-radius: var(--r-lg);
}
.teaser__copy {
  display: grid;
  gap: 6px;
}
.teaser__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.teaser .link-arrow {
  margin-left: auto;
  color: var(--accent);
}
@media (max-width: 680px) {
  .teaser { flex-direction: column; align-items: flex-start; }
  .teaser .link-arrow { margin-left: 0; }
}

.center-actions {
  margin-top: var(--s-7);
  text-align: center;
}

/* ---------- domains ---------- */
.hero__domain--wide {
  width: min(100%, 680px);
}
.tld-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  max-width: 680px;
}
.tld-list .chip {
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.tld-list .chip:hover {
  color: var(--lime);
  border-color: color-mix(in oklab, var(--lime) 60%, transparent);
}

/* ---------- about ---------- */
.split-text {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-8);
}
.split-text h2 {
  font-size: var(--fs-2xl);
  margin-top: var(--s-4);
}
@media (max-width: 900px) {
  .split-text { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
}

.prose {
  display: grid;
  gap: var(--s-4);
  color: var(--text-2);
  font-size: var(--fs-base);
  line-height: 1.7;
}
.prose h2 {
  font-size: var(--fs-xl);
  color: var(--text);
  margin-top: var(--s-5);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose ul {
  display: grid;
  gap: var(--s-3);
  padding-left: 1.2em;
}
.prose li::marker {
  color: var(--lime);
}
.prose strong {
  color: var(--text);
}
.legal {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 56px);
}
.compare--plain {
  min-width: 600px;
}

/* ---------- contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--gutter);
  align-items: start;
}
.contact-layout__aside {
  display: grid;
  gap: var(--s-3);
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
}
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-layout__aside { position: static; grid-template-columns: 1fr 1fr; }
  /* an odd last channel takes the full row instead of leaving a hole */
  .contact-layout__aside > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .contact-layout__aside { grid-template-columns: minmax(0, 1fr); }
}
.channel {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), transform var(--t-med) var(--ease-out);
}
a.channel:hover {
  border-color: var(--line-3);
  transform: translateX(3px);
}
.channel .icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.channel .icon-tile .icon {
  width: 22px;
  height: 22px;
}
.channel__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.channel__label {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.channel__value {
  font-weight: 600;
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}
.channel__arrow {
  margin-left: auto;
  color: var(--text-3);
}
.channel--note .channel__value {
  font-weight: 400;
  color: var(--text-2);
}

.quote-form {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-lg);
  gap: var(--s-5);
}
.quote-form__head {
  display: grid;
  gap: var(--s-3);
}
.quote-form__head h2 {
  font-size: var(--fs-2xl);
}
.quote-form__head p:last-child {
  color: var(--text-2);
}
.quote-form .btn[type='submit'] {
  justify-self: start;
}
@media (max-width: 560px) {
  .quote-form .btn[type='submit'] { justify-self: stretch; }
}

/* ---------- login ---------- */
.login-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.login-card {
  display: grid;
  gap: var(--s-4);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-lg);
  max-width: 480px;
}
.login-card h1 {
  font-size: var(--fs-2xl);
}
.login-card__lead {
  color: var(--text-2);
  margin-bottom: var(--s-2);
}
.login-card__foot {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.login-card .notice p + p {
  margin-top: var(--s-2);
}
.field__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.field__link {
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.field__link:hover {
  color: var(--lime);
}
@media (max-width: 900px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); }
  .login-hero { align-items: flex-end; padding-top: 34vh; }
  .login-card { max-width: none; }
}

/* ---------- ERP calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: var(--s-6);
  align-items: start;
}
.calc__config {
  display: grid;
  gap: var(--s-5);
  min-width: 0;
}
.calc__block {
  display: grid;
  gap: var(--s-5);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
}
.calc__step {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-lg);
}
.calc__step span {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
}
.calc__plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* eight packages: two full rows */
  gap: var(--s-3);
}
.calc-plan {
  position: relative;
  display: grid;
  gap: 6px;
  padding: var(--s-4);
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.calc-plan:hover { border-color: var(--line-3); transform: translateY(-2px); }
.calc-plan input { position: absolute; opacity: 0; pointer-events: none; }
.calc-plan:has(input:checked) {
  background: color-mix(in oklab, var(--accent) 12%, var(--glass-2));
  border-color: color-mix(in oklab, var(--accent) 75%, transparent);
  box-shadow: 0 16px 40px -22px color-mix(in oklab, var(--accent) 95%, transparent);
}
.calc-plan:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }
.calc-plan__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.calc-plan__name em {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-text);
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 700;
  vertical-align: 2px;
}
.calc-plan__specs { font-size: var(--fs-xs); color: var(--text-3); }
.calc-plan__price {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .calc-plan__price { font-size: var(--fs-base); }
}
.calc-plan__price small { margin-left: 4px; font-size: var(--fs-xs); color: var(--text-3); }

.calc__addons {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.calc-addon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 92px;
  align-items: center;
  gap: var(--s-4);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.calc-addon.is-on {
  border-color: color-mix(in oklab, var(--accent) 45%, transparent);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}
.calc-addon__info { display: grid; gap: 2px; min-width: 0; }
.calc-addon__info strong { font-size: var(--fs-sm); }
.calc-addon__info span { font-size: var(--fs-xs); color: var(--text-3); }
.calc-addon__cost {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  text-align: right;
  color: var(--text-3);
}
.calc-addon.is-on .calc-addon__cost { color: var(--accent); }
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--glass);
}
.stepper button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.stepper button:hover { background: var(--glass-2); color: var(--text); }
.stepper button .icon { width: 16px; height: 16px; }
.stepper input {
  width: 4ch;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc__summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: var(--s-4);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
}
.calc__picked { font-size: var(--fs-lg); color: var(--text-2); }
.calc__picked strong { font-family: var(--font-display); color: var(--text); }
.calc__meters { display: grid; gap: var(--s-3); }
.meter__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.meter__head strong { font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.meter__track {
  position: relative;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--glass-2);
  overflow: hidden;
}
.meter__base,
.meter__extra {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 700ms var(--ease-out), left 700ms var(--ease-out);
}
.meter__base {
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 55%, transparent), var(--accent));
  box-shadow: 0 0 16px color-mix(in oklab, var(--accent) 60%, transparent);
}
.meter__extra {
  background: repeating-linear-gradient(-45deg, var(--violet) 0 6px, color-mix(in oklab, var(--violet) 55%, transparent) 6px 12px);
  animation: meter-flow 1.2s linear infinite;
  background-size: 17px 17px;
}
@keyframes meter-flow { to { background-position: 17px 0; } }
.costbar {
  display: flex;
  gap: 3px;
  height: 14px;
  margin-top: var(--s-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.costbar span {
  flex: 1 1 0;
  min-width: 4px;
  transition: flex-grow 700ms var(--ease-out);
}
.costbar__legend {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.costbar__legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.costbar__legend i { width: 10px; height: 10px; border-radius: 3px; }
.costbar__legend b { font-family: var(--font-mono); font-weight: 500; }
.calc__total {
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.875rem);
  white-space: nowrap;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc__total small {
  margin-left: 8px;
  font-family: var(--font-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-3);
}
.calc__year { font-size: var(--fs-sm); color: var(--text-2); }
.calc__hint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--lime) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--lime) 32%, transparent);
  font-size: var(--fs-xs);
}
.calc__hint > .icon { color: var(--lime); }
.calc__hint[hidden] { display: none; }
.calc__fine { font-size: var(--fs-xs); color: var(--text-3); }
.calc:not(.is-live) :is(.calc__meters, .costbar, .costbar__legend, .calc__hint, .stepper button) { display: none; }
.stepper { justify-self: start; }
/* phones: the total stays in view while the add-ons are changed */
.calc__dock { display: none; }
@media (max-width: 1024px) {
  .calc.is-live .calc__dock {
    position: sticky;
    bottom: 88px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    padding: 12px 12px 12px 20px;
    border-radius: var(--r-pill);
    background: rgb(13 15 20 / 0.86);
    border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
    box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: var(--fs-sm);
    color: var(--text-2);
  }
  .calc__dock strong { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--text); }
  .calc__dock a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--accent); color: var(--ink); font-weight: 650; font-size: var(--fs-xs); }
  .calc__dock .icon { width: 14px; height: 14px; }
}

@media (max-width: 1024px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__summary { position: static; }
}
@media (max-width: 700px) {
  .calc__plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .calc-addon { grid-template-columns: minmax(0, 1fr) auto; }
  .calc-addon__info { grid-column: 1 / -1; }
  .calc-addon__cost { text-align: right; }
}

/* ---------- one-file service pages ---------- */
.section--flush { padding-block: 0 var(--s-6); }
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: var(--gutter);
  margin: 0;
}
.highlights > div {
  container-type: inline-size;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgb(13 15 20 / 0.72);
  backdrop-filter: blur(12px);
}
/* value on top, label pinned to the bottom, so tiles line up whatever the value length */
.highlights dd {
  order: -1;
  align-self: start;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 10cqi, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--accent);
}
.highlights dt { color: var(--text-3); font-size: var(--fs-sm); }
.plans-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.plans-toolbar__note {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.plans-toolbar__note .icon { width: 16px; height: 16px; flex: none; }
.plans--five .plan { padding: var(--s-5); }
.plans--single {
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  align-items: start;
}
.compare--specs { min-width: 0; }
.compare--specs th { width: 38%; color: var(--text-3); font-weight: 500; }
.plans-fine {
  margin-top: var(--s-5);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.plans-fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .plans--single { grid-template-columns: minmax(0, 1fr); }
}
.use-cases {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.use-cases li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--glass);
}
.use-cases__num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  padding-top: 3px;
}
.use-cases h3 { font-size: var(--fs-lg); margin-bottom: var(--s-1); }
.use-cases p { color: var(--text-2); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .steps--3 { grid-template-columns: minmax(0, 1fr); }
}
.brand-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px -16px rgb(0 0 0 / 0.8), inset 0 0 0 1px rgb(0 0 0 / 0.06);
}
.brand-tile img { width: 30px; height: 30px; object-fit: contain; }
.page-hero__logo { width: 80px; height: 80px; border-radius: 24px; }
.page-hero__logo img { width: 46px; height: 46px; }

