/* Machines — range overview page
 * Page-specific CSS layered on top of base.css.
 * Reuses .mcard / .mcard--feature pattern from home.css.
 */

/* Page header */
.machines-header {
  text-align: center;
  padding: clamp(40px, 5.5vw, 70px) 0 clamp(24px, 3.5vw, 36px);
  background: var(--white);
}
.machines-header__inner {
  max-width: 820px;
  margin: 0 auto;
}
.machines-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0 0 22px;
}
.machines-header__intro {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

/* Machine cards — reuse pattern from home.css */
.machines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: start;
  overflow: visible;
}
.mcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  text-decoration: none;
  color: var(--white);
  isolation: isolate;
  transition: transform var(--tx) var(--ease), box-shadow var(--tx) var(--ease);
}
.mcard__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--dark-2);
  transition: transform 800ms cubic-bezier(.2,.7,.2,1);
  z-index: -2;
}
.mcard__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,31,0.10) 0%, rgba(10,31,31,0.05) 30%, rgba(10,31,31,0.55) 72%, rgba(10,31,31,0.92) 100%);
  z-index: -1;
}
.mcard:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0, 230, 204, 0.18); color: var(--white); }
.mcard:hover .mcard__img { transform: scale(1.04); }
.mcard__content { margin-top: auto; padding: 28px 28px 0; }
.mcard__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 14px;
}
.mcard__name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 400;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.05;
}
.mcard__tagline { font-size: 0.88rem; color: rgba(255,255,255,0.78); margin: 0 0 18px; }
.mcard__rule { height: 1px; background: rgba(255,255,255,0.15); margin: 0 0 18px; }
.mcard__price { font-family: var(--font-sans); font-size: 2rem; font-weight: 700; letter-spacing: -0.01em; color: var(--white); margin: 0 0 4px; }
.mcard__pay { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin: 0 0 24px; }
.mcard__cta {
  display: block;
  text-align: center;
  padding: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(10,31,31,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--white);
  transition: letter-spacing var(--tx) var(--ease), background-color var(--tx) var(--ease);
}
.mcard:hover .mcard__cta { letter-spacing: 0.24em; }
.mcard--feature { min-height: 660px; margin-top: -20px; overflow: visible; }
.mcard--feature .mcard__tag {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.mcard--feature .mcard__cta { background: var(--teal); color: var(--dark); }

/* Comparison table */
.compare {
  background: var(--white);
}
.compare__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}
.compare__head h2 { margin: 0 0 14px; }
.compare__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}
.compare__wrap {
  border: 1px solid rgba(0, 230, 204, 0.18);
  border-radius: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare__wrap:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; }
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--white);
  font-family: var(--font-sans);
}
.compare-table th,
.compare-table td {
  padding: 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: middle;
}
.compare-table th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--teal-ink);
  background: #FAFDFD;
  font-size: 0.92rem;
}
.compare-table thead th {
  padding: 24px 20px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--teal-ink);
  background: #FAFDFD;
  border-bottom: 2px solid var(--line);
  line-height: 1.2;
}
.compare-table thead th .compare-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-readable);
  margin-top: 6px;
}
.compare-table thead th.is-feature {
  background: var(--dark);
  color: var(--white);
  position: relative;
}
.compare-table thead th.is-feature .compare-tag { color: var(--teal); }
.compare-table thead th.is-feature .compare-pop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.compare-table thead th.is-feature .compare-pop::before {
  content: "★";
  color: var(--gold);
  font-size: 0.85rem;
  line-height: 1;
}
.compare-table thead th[scope="col"]:first-child {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-readable);
}
.compare-table td.is-feature {
  background: rgba(0, 230, 204, 0.04);
  color: var(--ink);
  font-weight: 500;
}
.compare-table td.is-best-for {
  font-style: italic;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1rem;
}
.compare-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(0, 230, 204, 0.15);
  color: var(--teal-readable);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
.compare-check__lbl {
  margin-left: 8px;
  font-weight: 600;
  color: var(--teal-readable);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.compare-table tr:last-child td,
.compare-table tr:last-child th { border-bottom: 0; }
.compare-table tr.compare-cta-row td { padding: 26px 20px; background: var(--white); }
.compare-table tr.compare-cta-row td.is-feature { background: rgba(0, 230, 204, 0.04); }
.compare-table tr.compare-cta-row th[scope="row"] { background: var(--white); }
.compare-table tr.compare-cta-row .btn { width: 100%; }

/* Sticky-column + sticky-header pattern.
 * Keeps the spec labels pinned to the left during horizontal scroll on mobile,
 * and keeps the machine column headers pinned to the top during vertical scroll.
 * Always-on at every breakpoint — invisible when no scroll is happening. */
.compare-table th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 4px 0 8px -4px rgba(10, 31, 31, 0.08);
}
.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 4px 8px -4px rgba(10, 31, 31, 0.08);
}
.compare-table thead th[scope="col"]:first-child {
  z-index: 3;
  box-shadow: 4px 0 8px -4px rgba(10, 31, 31, 0.08),
              0 4px 8px -4px rgba(10, 31, 31, 0.08);
}

/* Why flow rate matters */
.flow {
  background: var(--cream);
}
.flow__head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.flow__head h2 { margin: 0 0 14px; }
.flow__kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}
.flow__body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--teal-ink);
}
.flow__body p { margin: 0 0 1.2em; }
.flow__pull {
  background: rgba(0, 230, 204, 0.06);
  border-left: 3px solid var(--teal);
  padding: 22px 26px;
  margin: 28px 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--teal-ink);
}
.flow__pull em { font-style: italic; font-weight: 500; color: var(--teal-readable); }
.flow__honest {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.flow__close {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(10, 74, 66, 0.1);
  font-weight: 500;
  color: var(--teal-ink);
}

/* CTA banner — Teal Bubbles */
.machines-cta {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  background: var(--dark) center/cover no-repeat;
  background-image: linear-gradient(180deg, rgba(0,40,38,0.65), rgba(0,40,38,0.45) 50%, rgba(0,40,38,0.85)), url('/assets/img/pages/machines/teal-bubbles.jpg');
  isolation: isolate;
}
.machines-cta::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,40,38,0) 0%, rgba(0,40,38,0.45) 70%, rgba(0,40,38,0.85) 100%);
  pointer-events: none;
  z-index: -1;
}
.machines-cta__inner { max-width: 760px; margin: 0 auto; }
.machines-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin: 0 0 16px;
  font-weight: 400;
}
.machines-cta__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.86);
  margin: 0 auto 36px;
  max-width: 600px;
}
.machines-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.machines-cta .eyebrow { color: var(--teal); }

/* Responsive */
@media (max-width: 800px) {
  .machines-grid { grid-template-columns: 1fr; gap: 24px; }
  .mcard { min-height: 480px; }
  .mcard--feature { margin-top: 0; min-height: 520px; }
  .compare-table th,
  .compare-table td { padding: 14px 14px; font-size: 0.88rem; }
  .compare-table thead th { font-size: 1.1rem; padding: 18px 14px; }
}
@media (max-width: 540px) {
  .machines-cta__btns { flex-direction: column; align-items: stretch; }
  .machines-cta__btns .btn { width: 100%; }
}
