:root {
  color-scheme: light;
  --process-black: #07090c;
  --process-red: #df171d;
  --process-focus: #7f0f14;
  --process-paper: #f5f5f3;
  --process-line: #e1e3e5;
  --process-muted: #62676e;
  --process-shell: min(100% - 56px, 1420px);
  --header-pad: clamp(26px, 1.75vw, 38px);
  --ink: var(--process-black);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--process-black);
  background: var(--process-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
[hidden] { display: none !important; }
.process-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.process-shell { width: var(--process-shell); margin-inline: auto; }

main { padding-top: var(--detailfresh-public-header-height); }

.process-hero { padding: clamp(22px, 2.4vw, 34px) 0 12px; background: #fff; text-align: center; }
.process-hero h1 { margin: 0; font-size: clamp(44px, 4.3vw, 64px); font-weight: 880; letter-spacing: -.055em; line-height: 1; }
.process-hero h1 span { color: var(--process-red); }
.process-intro { max-width: 690px; margin: 11px auto 0; color: var(--process-muted); font-size: clamp(14px, 1.12vw, 17px); line-height: 1.45; }
.process-tabs { display: inline-grid; grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: 10px; margin-top: 18px; padding: 5px; border: 1px solid #e4e5e6; border-radius: 14px; background: #f6f6f5; box-shadow: 0 8px 24px rgba(10, 12, 15, .05); }
.process-tabs button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 11px; padding: 0 24px; border: 0; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 800; cursor: pointer; transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.process-tabs button svg { width: 23px; height: 23px; }
.process-tabs button[aria-selected="true"] { color: #fff; background: var(--process-red); box-shadow: 0 9px 20px rgba(237, 23, 23, .22); }
.process-tabs button:focus-visible { outline: 3px solid var(--process-focus); outline-offset: 3px; }

.process-workspace { padding: 2px 0 clamp(54px, 6vw, 84px); background: linear-gradient(#fff 0, #f6f6f4 145px); }
.process-panel { padding: clamp(20px, 2.25vw, 34px); border: 1px solid var(--process-line); border-radius: 20px; background: rgba(255, 255, 255, .99); box-shadow: 0 18px 52px rgba(20, 24, 28, .075); }
.process-panel-heading { display: flex; align-items: center; padding-bottom: 16px; }
.process-panel-title { display: flex; align-items: center; gap: 16px; text-align: left; }
.panel-icon { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--process-red); box-shadow: 0 8px 18px rgba(237, 23, 23, .2); }
.panel-icon svg { width: 29px; height: 29px; stroke-width: 1.9; }
.process-panel-title h2 { margin: 0; font-size: clamp(24px, 2vw, 31px); letter-spacing: -.04em; }

.process-carousel { position: relative; padding-inline: 52px; }
.process-carousel-body { min-width: 0; }
.process-carousel-arrow { position: absolute; z-index: 8; top: 20px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #e1e3e5; border-radius: 50%; background: #fff; box-shadow: 0 5px 15px rgba(15, 18, 21, .09); cursor: pointer; transition: border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.process-carousel-arrow:hover { color: var(--process-red); border-color: var(--process-red); transform: scale(1.04); }
.process-carousel-arrow:focus-visible { color: var(--process-red); border-color: var(--process-focus); outline: 3px solid var(--process-focus); outline-offset: 3px; transform: scale(1.04); }
.process-carousel-arrow svg { width: 21px; height: 21px; stroke-width: 2.2; }
.process-carousel-arrow--previous { left: 0; }
.process-carousel-arrow--next { right: 0; }
.process-carousel-arrow--next svg { transform: rotate(180deg); }

.process-milestones { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0 0 22px; list-style: none; }
.process-milestones::before { position: absolute; top: 18px; right: 7%; left: 7%; height: 1px; background: #cfd2d6; content: ""; }
.process-milestones li { position: relative; z-index: 1; min-width: 0; }
.process-milestones button { display: flex; width: 100%; align-items: center; flex-direction: column; gap: 8px; padding: 0 4px; border: 0; background: transparent; cursor: pointer; }
.process-milestones button > span { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid #b9bec4; border-radius: 50%; color: #3d4248; background: #fff; font-size: 14px; font-weight: 850; box-shadow: 0 0 0 5px #fff; transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.process-milestones button strong { overflow: hidden; max-width: 100%; color: #383d43; font-size: clamp(11px, .9vw, 14px); font-weight: 760; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; transition: color 160ms ease; }
.process-milestones button:hover > span { border-color: var(--process-red); transform: translateY(-1px); }
.process-milestones button[aria-current="step"] > span { color: #fff; border-color: var(--process-red); background: var(--process-red); box-shadow: 0 0 0 5px #fff, 0 8px 16px rgba(237, 23, 23, .2); }
.process-milestones button[aria-current="step"] strong { color: var(--process-red); }
.process-milestones button:focus-visible { outline: 0; }
.process-milestones button:focus-visible > span { outline: 3px solid var(--process-focus); outline-offset: 3px; }

.process-active-step { display: grid; grid-template-columns: minmax(225px, 310px) minmax(0, 1fr); align-items: stretch; gap: clamp(26px, 3vw, 50px); }
.process-step-copy { display: flex; justify-content: center; flex-direction: column; padding: 26px 0 48px; }
.process-step-copy > p:first-child { margin: 0 0 14px; color: var(--process-red); font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.process-step-copy h3 { margin: 0; font-size: clamp(30px, 2.8vw, 43px); font-weight: 850; letter-spacing: -.045em; line-height: 1.05; }
.process-step-copy > p:last-child { max-width: 315px; margin: 16px 0 0; color: var(--process-muted); font-size: clamp(13px, 1.05vw, 16px); line-height: 1.65; }

.process-comparison { min-width: 0; margin: 0; }
.comparison-stage { position: relative; overflow: hidden; aspect-ratio: 2.05 / 1; border: 1px solid #d7dadd; border-radius: 17px; background: #cacdd0; box-shadow: 0 13px 34px rgba(20, 24, 28, .12); }
.comparison-layer { position: absolute; inset: 0; background-color: #cfd1d2; background-image: var(--comparison-photo); background-repeat: no-repeat; background-size: 200% auto; }
.comparison-layer--before { background-position: left var(--photo-y, 50%); filter: saturate(.82) contrast(.97); }
.comparison-layer--after { background-position: right var(--photo-y, 50%); clip-path: inset(0 0 0 var(--split)); }
.comparison-label { position: absolute; z-index: 4; top: 16px; display: inline-flex; min-height: 32px; align-items: center; padding: 0 16px; border-radius: 999px; font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(0, 0, 0, .13); }
.comparison-label--before { left: 16px; color: #fff; background: rgba(28, 31, 35, .78); }
.comparison-label--after { right: 16px; color: #111317; background: rgba(255, 255, 255, .94); }
.comparison-divider { position: absolute; z-index: 5; top: 0; bottom: 0; left: var(--split); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); pointer-events: none; transform: translateX(-1px); }
.comparison-divider i { position: absolute; top: 50%; left: 50%; display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid #dedfe1; border-radius: 50%; background: #fff; box-shadow: 0 5px 16px rgba(0, 0, 0, .14); transform: translate(-50%, -50%); }
.comparison-divider svg { width: 15px; height: 15px; stroke-width: 2.2; }
.comparison-divider svg:last-child { transform: rotate(180deg); }
.comparison-range { position: absolute; z-index: 7; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparison-stage:focus-within { outline: 3px solid var(--process-focus); outline-offset: 3px; }
.process-comparison figcaption { margin: 11px 0 0; color: #70767d; font-size: 11px; line-height: 1.4; text-align: center; }

.process-trust { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 23px 12px 0; list-style: none; }
.process-trust li { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 0 18px; color: #6b7076; font-size: 11px; }
.process-trust li + li { border-left: 1px solid #d9dbdc; }
.process-trust svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--process-red); }
.process-trust span { display: flex; flex-direction: column; gap: 3px; }
.process-trust strong { color: #32363a; font-size: 12px; }

.process-footer { padding: 66px 0 28px; color: #d4d6d8; background: #07080a; }
.process-footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, .7fr); gap: clamp(30px, 5vw, 76px); }
.process-footer-grid img { width: min(220px, 100%); height: auto; }
.process-footer-grid > div p { max-width: 260px; margin: 18px 0 0; color: #7f858b; font-size: 13px; line-height: 1.6; }
.process-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.process-footer nav strong { margin-bottom: 6px; color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.process-footer nav a { color: #979ca2; font-size: 13px; }
.process-footer nav a:hover,
.process-footer nav a:focus-visible { color: #fff; }
.process-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid #25272a; color: #7f858b; font-size: 11px; }
.process-footer-bottom a { display: inline-flex; min-height: 40px; align-items: center; padding-inline: 18px; border: 1px solid #32353a; border-radius: 12px; color: #fff; font-weight: 730; }

@media (max-width: 1250px) {
  .process-active-step { grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); gap: 28px; }
  .process-step-copy h3 { font-size: 32px; }
}

@media (max-width: 1024px) {
  :root { --header-pad: clamp(20px, 5.5vw, 46px); }
}

@media (max-width: 900px) {
  :root { --process-shell: min(100% - 40px, 800px); }
  .process-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 500px); }
  .process-tabs button { padding-inline: 15px; }
  .process-carousel { padding-inline: 44px; }
  .process-carousel-arrow { width: 38px; height: 38px; }
  .process-active-step { grid-template-columns: 1fr; gap: 18px; }
  .process-step-copy { align-items: center; padding: 6px 0 0; text-align: center; }
  .process-step-copy > p:last-child { max-width: 520px; margin-top: 10px; }
  .comparison-stage { aspect-ratio: 1.8 / 1; }
  .process-trust { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .process-trust li:nth-child(3) { border-left: 0; }
  .process-footer-grid { grid-template-columns: 1.2fr repeat(2, .8fr); }
  .process-footer-grid nav:last-child { display: none; }
}

@media (max-width: 620px) {
  :root { --process-shell: calc(100% - 24px); }
  .process-hero { padding: 34px 0 12px; }
  .process-hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .process-intro { margin-top: 13px; font-size: 14px; }
  .process-tabs { gap: 6px; margin-top: 21px; padding: 5px; border-radius: 14px; }
  .process-tabs button { min-height: 48px; gap: 7px; padding-inline: 8px; font-size: 12px; }
  .process-tabs button svg { width: 20px; height: 20px; }
  .process-workspace { padding-top: 10px; }
  .process-panel { padding: 18px 12px 20px; border-radius: 18px; }
  .process-panel-heading { padding: 0 6px 17px; }
  .panel-icon { width: 46px; height: 46px; }
  .panel-icon svg { width: 26px; height: 26px; }
  .process-panel-title h2 { font-size: 23px; }
  .process-carousel { padding-inline: 0; }
  .process-carousel-arrow { z-index: 9; top: 73px; width: 40px; height: 40px; }
  .process-carousel-arrow--previous { left: -5px; }
  .process-carousel-arrow--next { right: -5px; }
  .process-milestones { overflow-x: auto; grid-template-columns: repeat(6, 76px); padding: 0 34px 20px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .process-milestones::-webkit-scrollbar { display: none; }
  .process-milestones::before { right: 48px; left: 48px; width: 350px; }
  .process-milestones li { scroll-snap-align: center; }
  .process-milestones button strong { font-size: 10px; }
  .process-step-copy { padding-inline: 14px; }
  .process-step-copy > p:first-child { margin-bottom: 9px; font-size: 10px; }
  .process-step-copy h3 { font-size: 28px; }
  .process-step-copy > p:last-child { font-size: 13px; line-height: 1.55; }
  .comparison-stage { aspect-ratio: 1.25 / 1; border-radius: 14px; }
  .comparison-label { top: 10px; min-height: 28px; padding-inline: 11px; font-size: 9px; }
  .comparison-label--before { left: 10px; }
  .comparison-label--after { right: 10px; }
  .comparison-divider i { width: 42px; height: 42px; }
  .process-comparison figcaption { padding-inline: 16px; font-size: 10px; }
  .process-trust { grid-template-columns: 1fr; gap: 0; padding-top: 14px; }
  .process-trust li { justify-content: flex-start; padding: 15px 6px; }
  .process-trust li + li { border-top: 1px solid #dcddde; border-left: 0; }
  .process-footer { padding-top: 52px; }
  .process-footer-grid { grid-template-columns: 1fr 1fr; }
  .process-footer-grid > div { grid-column: 1 / -1; }
  .process-footer-bottom { align-items: flex-start; flex-direction: column; }
  .process-footer-bottom a { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
