/* ==========================================================================
   EuphoricQuartz — /enterprise/ and /pt/enterprise/
   Loaded after styles.css and only on the Enterprise pages. Everything here
   builds on the tokens and type ramp defined there; no colour is introduced,
   the palette stays monochrome and selection is carried by weight and fill.
   ========================================================================== */

/* --- Page head ------------------------------------------------------------- */

.pr-head-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: end;
  padding-block: 56px 72px;
}

.pr-head .eyebrow {
  margin-bottom: 28px;
}

.pr-title {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 26px;
  text-wrap: balance;
}

.pr-head .lede {
  margin-bottom: 0;
}


/* --- Simulator layout ------------------------------------------------------ */

/* The catalogue is section 03 of the page now, so it opens with the same
   numbered intro as the sections around it; the grid below keeps its own
   bottom padding and only loses the top of it to this block. */
.pr-sim-intro {
  padding-top: 110px;
}

.pr-sim-intro + .pr-grid {
  padding-top: 48px;
}

.pr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 64px;
  align-items: start;
  padding-block: 80px 110px;
}

.pr-catalog {
  display: flex;
  flex-direction: column;
  gap: 72px;
  min-width: 0;
}

.pr-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.pr-group-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pr-group-sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-4);
}

.pr-included {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0 20px;
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.6;
  color: var(--t-1);
  text-wrap: pretty;
}

.pr-included strong {
  color: var(--fg);
  font-weight: 600;
}

/* A 1px background shows through the gaps as
   the hairlines between rows. */
.pr-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* --- Items ----------------------------------------------------------------- */

.pr-item {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 32px 30px;
  background: var(--bg);
  cursor: pointer;
}

.pr-item:hover {
  background: var(--surface-hover);
}

/* Selection is a fill, not a colour: the box goes solid --fg, and a 2px inset
   rule on the left carries it the way .form-status does on the contact form. */
.pr-item.is-on {
  background: var(--surface-hover);
  box-shadow: inset 2px 0 0 var(--fg);
}

.pr-item.is-locked {
  cursor: default;
}

.pr-item input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.pr-check {
  --tick: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2016%2016%22%20fill=%22none%22%20stroke=%22%23000%22%20stroke-width=%222.4%22%20stroke-linecap=%22square%22%3E%3Cpath%20d=%22M3%208.5l3.2%203L13%204.5%22/%3E%3C/svg%3E");
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 8px;
  border: 1px solid var(--field);
  background: transparent;
  flex: none;
}

.pr-check::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg);
  -webkit-mask: var(--tick) center / contain no-repeat;
  mask: var(--tick) center / contain no-repeat;
  opacity: 0;
}

.pr-item.is-on .pr-check {
  background: var(--fg);
  border-color: var(--fg);
}

.pr-item.is-on .pr-check::after {
  opacity: 1;
}

.pr-item.is-locked .pr-check {
  opacity: 0.6;
}

.pr-item input:focus-visible + .pr-check {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.pr-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pr-name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.pr-tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-1);
  font-variant-numeric: tabular-nums;
}

.pr-tag {
  border-color: var(--fg);
  color: var(--fg);
}

.pr-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--t-1);
  text-wrap: pretty;
}

.pr-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--t-4);
  text-wrap: pretty;
}

.pr-lock {
  color: var(--fg);
}

.pr-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  white-space: nowrap;
}

.pr-amount {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.pr-from,
.pr-was {
  font-weight: 400;
  color: var(--t-4);
}

.pr-from {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 6px;
}

.pr-was {
  text-decoration: line-through;
  margin-right: 8px;
}

.pr-sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-4);
}

/* --- Summary --------------------------------------------------------------- */

.pr-summary {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.pr-lines {
  display: flex;
  flex-direction: column;
  padding: 20px 28px;
}

.pr-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.4;
}

.pr-line-l {
  color: var(--t-2);
  min-width: 0;
}

.pr-line-l em {
  font-style: normal;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-4);
  margin-left: 6px;
}

.pr-line-r {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pr-line.is-deduction .pr-line-l,
.pr-line.is-deduction .pr-line-r {
  color: var(--fg);
}

.pr-empty {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--t-3);
  text-wrap: pretty;
}

/* The total gets a slightly raised surface and the biggest type on the page,
   not an inverted block: the one number the page exists to produce should
   read first, but a solid --fg panel shouted over everything around it. */
.pr-total {
  padding: 24px 28px;
  background: var(--surface-hover);
  border-top: 1px solid var(--line);
}

.pr-total .field-label {
  color: var(--t-4);
  margin-bottom: 8px;
}

.pr-total-amount {
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--fg-strong);
  font-variant-numeric: tabular-nums;
}

.pr-total-amount .pr-from {
  font-size: 11px;
}


.pr-eta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}

.pr-eta .field-label {
  margin: 0;
  color: var(--t-4);
}

.pr-eta-value {
  text-align: right;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}


.pr-monthly {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
}

.pr-monthly .field-label {
  color: var(--t-4);
}

.pr-monthly-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--t-3);
  font-family: Archivo, Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.pr-monthly-amount {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pr-monthly-amount small {
  font-size: 12px;
  font-weight: 400;
  color: var(--t-3);
  margin-left: 2px;
}

.pr-actions {
  display: flex;
  gap: 10px;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
}

.pr-actions .btn {
  flex: 1 1 0;
  padding: 13px 16px;
  text-align: center;
}

.pr-summary-note {
  padding: 0 28px 22px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--t-4);
  text-wrap: pretty;
}

/* --- Terms ----------------------------------------------------------------- */

.pr-terms {
  border-bottom: none;
}

.pr-terms-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
  padding-block: 90px 110px;
}

.pr-terms-intro .eyebrow {
  margin-bottom: 18px;
}

.pr-terms-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pr-terms-list li {
  padding: 28px 28px 30px;
  background: var(--bg);
}

.pr-terms-list h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.pr-terms-list p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--t-1);
  text-wrap: pretty;
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 1100px) {
  .pr-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
  }

  .pr-head-inner {
    gap: 40px;
  }

  .pr-terms-grid {
    grid-template-columns: 240px 1fr;
    gap: 44px;
  }
}

@media (max-width: 820px) {
  .pr-head-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 40px 56px;
  }

  .pr-sim-intro {
    padding-top: 76px;
  }

  .pr-sim-intro + .pr-grid {
    padding-top: 36px;
  }

  .pr-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 56px 80px;
  }

  .pr-summary {
    position: static;
  }

  .pr-item {
    grid-template-columns: 16px minmax(0, 1fr);
    padding: 26px 22px;
    gap: 18px;
  }

  /* Price drops under the description and lines up with the text column. */
  .pr-price {
    grid-column: 2;
    align-items: flex-start;
    text-align: left;
  }

  .pr-terms-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 64px 80px;
  }

  .pr-terms-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .pr-desc,
  .pr-included,
  .pr-terms-list p {
    font-size: 17px;
  }

  .pr-lines,
  .pr-total,
  .pr-monthly,
  .pr-actions {
    padding-inline: 22px;
  }

  .pr-summary-note {
    padding-inline: 22px;
  }

  .pr-name {
    font-size: 16px;
  }
}
