/* Çmimorja: row descriptions and the "only differences" switch in the comparison, the add-on and
   service tables, and the cost calculator. Forms, dropdowns, checkboxes, the segmented billing
   control and the button follow the Planet Horizon design system (TextField, Select, Checkbox,
   SegmentedControl, Button accent); the tokens map onto the --ph-* variables of planet-horizon.css. */
.page-compare {
  --accent: var(--ph-purple, #674197);
  --accent-deep: var(--ph-purple-deep, #563482);
  --on-accent: #fff;
  --focus: var(--ph-purple, #674197);
  --ink: var(--ph-ink, #252333);
  --ink-muted: var(--ph-muted, #746d80);
  --line: var(--ph-line, #cbbfd5);
  --line-strong: var(--ph-line-strong, #8c71a3);
  --surface: var(--ph-paper, #fbfaf7);
  --surface-raised: #fff;
  --surface-hover: var(--ph-paper-lilac, #f5f0f9);
  --success: #13704b;
  --radius-hairline: 1px;
  --radius-chip: 2px;
  --radius-control: 4px;
  --radius-menu: 10px;
  --radius-panel: var(--ph-r-panel, 16px);
  --shadow-menu: 0 18px 50px #140b2426;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Planet Horizon components ---------- */
.ph-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color .2s;
}
.ph-link svg { width: 14px; height: 14px; flex: none; transition: transform .3s var(--ease); }
.ph-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.ph-link:hover svg { transform: translateX(3px); }
.ph-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-chip); }

.ph-btn {
  --btn-h: 46px; --btn-box: 34px; --btn-arrow: 13px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--btn-h);
  padding: 4px 4px 4px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-chip);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow .25s, border-color .25s, background-color .25s, transform .12s;
}
.ph-btn-box {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--btn-box);
  height: var(--btn-box);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-hairline);
  transition: background .25s, border-color .25s;
}
.ph-btn-box svg { width: var(--btn-arrow); height: var(--btn-arrow); transition: transform .3s var(--ease); }
.ph-btn:hover .ph-btn-box svg { transform: translate(2px, -2px); }
.ph-btn:active { transform: translateY(1px); }
.ph-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ph-btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.ph-btn--accent .ph-btn-box { border-color: #ffffff26; background: var(--accent-deep); color: #fff; }
.ph-btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.ph-btn--accent:hover .ph-btn-box { background: #46296c; }

.ph-field { display: grid; align-content: start; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ph-label { padding: 0; color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.ph-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.ph-input::placeholder { color: var(--ink-muted); }
.ph-input:hover { border-color: var(--accent); }
.ph-input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
select.ph-input { appearance: auto; }

.ph-select { position: relative; }
.ph-select-btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s;
}
.ph-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-select-btn:hover { border-color: var(--accent); }
.ph-select-btn:focus-visible,
.ph-select.is-open .ph-select-btn { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); outline: none; }
.ph-select-caret {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 1.5px solid var(--ink-muted);
  border-bottom: 1.5px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform .2s;
}
.ph-select.is-open .ph-select-caret { margin-top: 3px; transform: rotate(-135deg); }
.ph-select-panel {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-top: 6px;
  max-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-menu);
  background: var(--surface-raised);
  box-shadow: var(--shadow-menu);
}
.ph-select-panel[hidden] { display: none; }
.ph-select.is-up .ph-select-panel { top: auto; bottom: 100%; margin: 0 0 6px; }
.ph-select-list { margin: 0; padding: 4px; overflow: auto; list-style: none; outline: none; }
.ph-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.ph-option:hover,
.ph-option.is-active { background: var(--surface-hover); }
.ph-option[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.ph-select-list:focus-visible .ph-option.is-active:not([aria-selected="true"]) { box-shadow: inset 0 0 0 1px var(--accent); }

.ph-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.ph-check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-chip);
  background: var(--surface-raised) center / 11px no-repeat;
  cursor: pointer;
  transition: background-color .16s, border-color .16s;
}
.ph-check input:hover { border-color: var(--accent); }
.ph-check input:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2l2.4 2.4 4.6-5'/%3E%3C/svg%3E");
}
.ph-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Mujore / Vjetore as the Horizon segmented control */
.page-compare .pricing-billing {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-hover);
}
.page-compare .pricing-billing button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-chip);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .16s, background-color .16s;
}
.page-compare .pricing-billing button:hover { color: var(--ink); }
.page-compare .pricing-billing button.is-active {
  background: var(--surface-raised);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--line);
}
.page-compare .pricing-billing button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.page-compare .pricing-save,
.page-compare .pricing-billing button.is-active .pricing-save {
  display: inline;
  margin-left: 6px;
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
}

/* ---------- Page parts ---------- */
.cm-jump { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }

.cm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin: 0 0 14px;
}
.cm-switch { align-items: center; font-size: 14px; }
.cm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}
.cm-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cm-legend b { font-weight: 700; }
.cm-add { color: var(--accent); }

/* The comparison keeps its v4 layout; the panel takes the Horizon radius and border. */
.page-compare .pricing-compare {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: none;
}
.page-compare .pricing-table thead th:first-child { border-top-left-radius: var(--radius-panel); }
.page-compare .pricing-table thead th:last-child { border-top-right-radius: var(--radius-panel); }
.page-compare .pricing-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-panel); }
.page-compare .pricing-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-panel); }
.page-compare .pricing-table .cm-name { display: block; color: var(--ink); font-weight: 600; }
.page-compare .pricing-table .cm-desc {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
}
.page-compare .pricing-table td.cm-val { color: var(--ink); font-weight: 600; }
.page-compare .pricing-table td.cm-add { color: var(--accent); font-size: 12.5px; font-weight: 600; }
.page-compare .pricing-table td.cm-soft { color: var(--ink-muted); font-size: 12.5px; }
.page-compare .pricing-table tbody tr[hidden] { display: none; }

.cm-section { margin-top: 72px; scroll-margin-top: 112px; }
.cm-head { max-width: 680px; margin: 0 0 20px; }
.cm-head h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--ph-serif, Georgia, "Times New Roman", serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.13;
  text-wrap: balance;
}
.cm-head p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.7; }
.cm-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-raised);
}
.cm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cm-table th,
.cm-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}
.cm-table thead th {
  border-top: 0;
  background: var(--surface-hover);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.cm-table td.cm-c-name { font-weight: 600; }
.cm-table td.cm-c-name small {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 400;
}
.cm-table .cm-num { text-align: right; white-space: nowrap; }
.cm-table td.cm-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.cm-table td.cm-c-unit,
.cm-table td.cm-c-where { color: var(--ink-muted); }
.cm-addons td.cm-c-name { width: 30%; }
.cm-addons td.cm-c-unit { width: 18%; }
.cm-services td.cm-c-name { width: 28%; }
.cm-foot { max-width: 760px; margin: 14px 0 0; color: var(--ink-muted); font-size: 13px; line-height: 1.5; }

/* Calculator */
.cm-calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: visible; }
.cm-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 18px 16px;
  padding: 28px;
}
.cm-wide { grid-column: 1 / -1; }
.cm-form .ph-check { align-items: center; font-size: 14px; }
.cm-group { gap: 12px; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); }
.cm-group > legend { float: left; width: 100%; margin-bottom: 2px; }
.cm-inline { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); font-size: 14px; line-height: 1.35; }
.cm-inline .ph-input { flex: none; width: 88px; }
.ph-check[hidden],
.ph-field[hidden],
.cm-native[hidden] { display: none; }

.cm-result {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-left: 1px solid var(--line);
  border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
  background: var(--surface);
}
.cm-result dl { display: grid; margin: 0; }
.cm-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cm-line[hidden] { display: none; }
.cm-line dt { color: var(--ink-muted); font-size: 14px; line-height: 1.35; }
.cm-line dd { margin: 0; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm-line.is-sum dt { color: var(--ink); font-weight: 600; }
.cm-line.is-sum dd { font-size: 16px; font-weight: 700; }
.cm-line.is-total { padding: 16px 0; }
.cm-line.is-total dt { color: var(--ink); font-size: 16px; font-weight: 700; }
.cm-line.is-total dd { color: var(--accent); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.cm-notes { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--ink-muted); font-size: 13px; line-height: 1.5; }
.cm-mail { align-self: flex-start; }

@media (max-width: 880px) {
  .cm-calc { grid-template-columns: 1fr; }
  .cm-result { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-panel) var(--radius-panel); }
}

@media (max-width: 640px) {
  .cm-section { margin-top: 52px; scroll-margin-top: 92px; }
  .cm-head h2 { font-size: 26px; }
  .cm-toolbar { margin-bottom: 12px; }
  .cm-legend { font-size: 12px; gap: 2px 14px; }
  .page-compare .pricing-table .cm-desc { font-size: 11.5px; }
  .page-compare .pricing-billing button { min-height: 28px; padding: 0 10px; font-size: 12px; }

  /* Tables become one block per row: name and price on top, details below. */
  .cm-table thead { display: none; }
  .cm-table,
  .cm-table tbody { display: block; }
  .cm-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 14px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }
  .cm-table tbody tr:first-child { border-top: 0; }
  .cm-table td { padding: 0; border: 0; width: auto !important; }
  .cm-table td.cm-c-name { grid-column: 1; grid-row: 1; }
  .cm-table td.cm-c-price { grid-column: 2; grid-row: 1; }
  .cm-table td.cm-c-unit,
  .cm-table td.cm-c-where,
  .cm-table td.cm-c-what { grid-column: 1 / -1; font-size: 13px; }

  .cm-form { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .cm-result { padding: 18px; }
  .cm-line.is-total dd { font-size: 26px; }
  .cm-mail { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-btn, .ph-btn-box, .ph-btn-box svg, .ph-link svg, .ph-select-caret { transition: none; }
}
