/* ==========================================================================
   Redix Digital: personal consulting, one on one (consult-one-on-one.html,
   tools/build-consult.js, consult.js)
   In the design of the home page: v2.css draws the bar, the menu, the footer,
   the section titles, the two tracks (as the hosting plans), the four numbers
   and the questions; page.css puts the home page's sky behind it all.
   The opening shows what a consultation is: a recorded call with Roei and the
   plan that comes out of it. The bold moment is "מה הכי בוער אצלכם?": the
   questions in a column, one answer at a time beside them, each ending in the
   track that suits it. Around it everything is quiet, and the sections take
   turns between the sky and a band of deeper night.
   ========================================================================== */

.co > section:not(.faq):not(.process) {
  position: relative;
  padding: clamp(72px, 12vh, 140px) var(--pad);
}

.co > section:not(.faq):not(.process) > * {
  position: relative;
  z-index: 3;
}

/* The bands of deeper night, every second section */
.co-dx,
.co-tracks,
.co-me,
.co-faq { background: var(--veil); }

.co-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 4.4vh, 40px);
}

/* --- The opening ---------------------------------------------------------------------------- */

.co > .co-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 90px);
  padding: calc(76px + clamp(40px, 10vh, 112px) - 50px) var(--pad) clamp(64px, 12vh, 132px);
}

.co-head { max-width: 46rem; }

@media (min-width: 768px) and (max-height: 800px) {
  .co-head::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -60px calc(-1 * var(--pad));
    background: radial-gradient(closest-side, rgba(7, 11, 26, 0.66) 60%, rgba(7, 11, 26, 0) 100%);
    pointer-events: none;
  }
}

/* The opening line of the home page, in its grammar: the light line first, then the bold one */
.co-title {
  margin: 0;
  font-size: clamp(2.75rem, 5.2vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.co-title span { display: block; }
.co-title span:first-child { font-weight: 200; color: var(--title-thin); }
.co-title span:last-child { font-weight: 800; color: var(--text); }

.co-lead {
  max-width: 30em;
  margin: clamp(20px, 4vh, 36px) 0 0;
  padding-top: clamp(16px, 3vh, 26px);
  border-top: 1px solid var(--line);
  font-size: clamp(1.0625rem, 1.3vw, 1.3125rem);
  font-weight: 300;
  color: var(--text-mid);
  text-wrap: pretty;
}

.co-also {
  max-width: 30em;
  margin: 14px 0 0;
  font-weight: 600;
  color: var(--text);
  text-wrap: pretty;
}

/* The scene: a call window with Roei in it, and the plan that comes out of the call over its corner */
.co-scene {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
  padding-bottom: 120px;
}

.co-call {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  border-radius: 22px;
  background: #0b1229;
  box-shadow: inset 0 0 0 1px rgba(125, 240, 244, 0.24), 0 0 90px -20px rgba(0, 196, 204, 0.4), 0 50px 90px -40px rgba(0, 0, 0, 0.9);
}

.co-call__pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

/* The light of the screen falls off at the foot, where the call's buttons stand */
.co-call::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 26, 0.55) 0, rgba(7, 11, 26, 0) 22%, rgba(7, 11, 26, 0) 62%, rgba(7, 11, 26, 0.85) 100%);
  pointer-events: none;
}

.co-call__bar {
  position: absolute;
  z-index: 1;
  top: 14px;
  inset-inline: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(242, 246, 255, 0.85);
}

.co-call__rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(7, 11, 26, 0.6);
}

.co-call__rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5a6a;
  box-shadow: 0 0 8px rgba(255, 90, 106, 0.8);
}

.co-call__name {
  position: absolute;
  z-index: 1;
  bottom: 62px;
  inset-inline-start: 16px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(7, 11, 26, 0.6);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.co-call__tools {
  position: absolute;
  z-index: 1;
  bottom: 14px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.co-call__tools i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(242, 246, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(242, 246, 255, 0.22);
}

.co-call__tools .is-end { width: 46px; border-radius: 17px; background: #e5484d; box-shadow: none; }

/* The plan: a page of light over the call's corner, two steps done and two to go */
.co-doc {
  position: absolute;
  z-index: 2;
  bottom: 0;
  inset-inline-end: -6%;
  width: min(300px, 66%);
  padding: 18px 20px 16px;
  border-radius: 16px;
  background: linear-gradient(158deg, rgba(28, 40, 82, 0.97), rgba(10, 16, 38, 0.97));
  box-shadow: inset 0 0 0 1px rgba(125, 240, 244, 0.4), 0 30px 60px -24px rgba(0, 0, 0, 0.9);
  transform: rotate(-2.5deg);
}

.co-doc__name {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--cyan-hi);
}

.co-doc__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.co-doc__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-mid);
}

.co-doc__list i {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px rgba(194, 205, 232, 0.55);
}

.co-doc__list b { font-weight: 600; }
.co-doc__list .is-done i { background: var(--cyan); box-shadow: 0 0 8px rgba(0, 196, 204, 0.6); }
.co-doc__list .is-done b { color: var(--text); }

/* --- "מה הכי בוער אצלכם?" -------------------------------------------------------------------- */

.co-dx__head { max-width: 46rem; }
.co-side .sec-title { font-size: clamp(2rem, 3.7vw, 3.875rem); }
.co-intro { margin-top: clamp(14px, 2.6vh, 24px); }

.co-dx__body {
  max-width: 1280px;
  margin-top: clamp(32px, 6vh, 60px);
}

/* Without the script: each question over its answer */
.co-dx__item + .co-dx__item { margin-top: 28px; }

.co-dx__pain {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: rgba(7, 11, 26, 0.5);
  box-shadow: inset 0 0 0 1px rgba(194, 205, 232, 0.24);
  font: inherit;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: start;
  color: var(--text);
  cursor: pointer;
  transition: background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

/* The mark before each question: a ring that fills with light when it is the chosen one */
.co-dx__pain::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(194, 205, 232, 0.5);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.co-dx__pain[aria-pressed="true"] {
  background: rgba(0, 196, 204, 0.12);
  box-shadow: inset 0 0 0 1.5px var(--cyan-hi);
  color: var(--cyan-hi);
}

.co-dx__pain[aria-pressed="true"]::before {
  background: var(--cyan-hi);
  box-shadow: 0 0 12px rgba(125, 240, 244, 0.9);
}

.co-dx__pain:focus-visible {
  outline: 3px solid var(--cyan-hi);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .co-dx__pain:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1px var(--cyan-hi); }
}

.co-dx__ans {
  margin-top: 12px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 22px;
  background: linear-gradient(158deg, rgba(28, 40, 82, 0.9) 0%, rgba(13, 20, 44, 0.94) 62%, rgba(9, 14, 33, 0.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(125, 240, 244, 0.22), 0 44px 90px -44px rgba(0, 0, 0, 0.75);
}

.co-dx__topic {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}

.co-dx__text {
  max-width: 34em;
  margin: 14px 0 0;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-mid);
}

.co-dx__out {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 0;
  font-size: 1.0625rem;
  color: var(--text);
}

.co-dx__out svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--cyan-hi);
}

.co-dx__out b { font-weight: 800; }

/* The track that suits it, at the foot of the answer */
.co-dx__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(22px, 3.4vh, 32px);
  padding-top: clamp(18px, 3vh, 24px);
  border-top: 1px solid var(--line);
}

.co-dx__track p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.co-dx__track p span { font-size: 0.875rem; color: var(--text-mid); }
.co-dx__track p b { font-size: 1.25rem; font-weight: 800; color: var(--cyan-hi); }

/* With the script, on a wide screen: the questions in a column, the one answer beside them */
@media (min-width: 900px) {
  .co-dx__body.is-live {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-auto-rows: auto;
    column-gap: clamp(28px, 4vw, 64px);
    row-gap: 10px;
    align-items: start;
  }

  .co-dx__body.is-live .co-dx__item { display: contents; }
  .co-dx__body.is-live .co-dx__pain { grid-column: 1; }

  .co-dx__body.is-live .co-dx__ans {
    grid-column: 2;
    grid-row: 1 / span 6;
    margin-top: 0;
    animation: co-in 420ms var(--ease-out-strong) both;
  }
}

/* One column with the script: the questions, then the chosen answer under them */
@media (max-width: 899px) {
  .co-dx__body.is-live { display: flex; flex-direction: column; gap: 10px; }
  .co-dx__body.is-live .co-dx__item { display: contents; }
  .co-dx__body.is-live .co-dx__item + .co-dx__item { margin-top: 0; }
  .co-dx__body.is-live .co-dx__ans { order: 99; margin-top: 10px; animation: co-in 420ms var(--ease-out-strong) both; }
}

/* The answer arrives: it rises a little into place as it lights */
@keyframes co-in { from { opacity: 0; transform: translateY(10px); } }

/* --- The two tracks, in the hosting plans' glass, standing in the middle ---------------------- */

.co-tracks > .sec-title,
.co-refund { text-align: center; }


.co-plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  max-width: 1100px;
  margin-inline: auto;
}

.co-plans .plan {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 110px;
  transition: box-shadow 500ms ease;
}

/* Reached from an answer: the track lights for a moment */
.co-plans .plan.is-lit { box-shadow: inset 0 0 0 2px var(--cyan-hi), 0 0 70px -10px rgba(0, 196, 204, 0.55); }

.co-incl {
  margin: 18px 0 4px;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text);
}

.co-plans .plan-cta { margin-top: clamp(20px, 3vh, 30px); }

.co-refund {
  max-width: 1100px;
  margin: clamp(18px, 3vh, 28px) auto 0;
  font-weight: 600;
  color: var(--text);
}

/* --- Redix Club: the words on one side, the list of what is inside on the other ------------ */

.co-club {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  column-gap: clamp(28px, 5vw, 90px);
  align-items: start;
}

.co-perks {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.co-perks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(14px, 2.4vh, 20px) 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
}

.co-perks li:last-child { border-bottom: 1px solid var(--line); }

.co-perks svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.2em;
  color: var(--cyan-hi);
}

/* --- About me: the words, and the numbers standing beside them ------------------------------- */

.co-me-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  grid-template-areas: "title facts" "text facts";
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 6vw, 110px);
  align-items: start;
}

.co-me-copy .sec-title { grid-area: title; }
.co-text { grid-area: text; }

.co-text p {
  max-width: 34em;
  margin: clamp(14px, 2.6vh, 22px) 0 0;
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  font-weight: 300;
  color: var(--text-mid);
}

.co-facts {
  grid-area: facts;
  grid-template-columns: minmax(0, 1fr);
  align-self: center;
  margin: 0;
}

.co-facts b { font-size: clamp(2.75rem, 4.6vw, 4.75rem); }

/* --- What clients say: every review of the home page, in two ruled columns ------------------ */

.co-voices-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px clamp(24px, 4vw, 60px);
}

.co-voices .v-score { margin: 0; justify-content: flex-start; }

.co-voices-list {
  columns: 2;
  column-gap: clamp(28px, 5vw, 90px);
  margin-top: clamp(28px, 5vh, 52px);
}

.co-voices-list .vquote {
  display: block;
  break-inside: avoid;
  margin: 0 0 clamp(8px, 1.5vh, 14px);
  padding: clamp(18px, 3vh, 28px) 0;
  border-top: 1px solid var(--line);
  transition: none;
}

.co-voices-list .vquote blockquote { margin: 0; }

.co-voices-list .vquote blockquote p {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
}

.co-voices-list .vquote figcaption {
  justify-content: flex-start;
  margin-top: clamp(14px, 2.4vh, 22px);
}

.co-voices .voices-more {
  display: inline-block;
  margin-top: clamp(14px, 2.6vh, 24px);
}

/* --- The end ------------------------------------------------------------------------------- */

.co-end { padding-bottom: clamp(96px, 16vh, 180px); }
.co-end .reach { margin-top: clamp(20px, 4vh, 36px); }

/* --- Narrower screens ---------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .co > .co-top { grid-template-columns: minmax(0, 1fr); }
  .co-scene { width: min(100%, 460px); margin-top: 8px; }
}

@media (max-width: 899px) {
  /* Down here the words stand on the bright line of the horizon, so they get a deeper night of
     their own, behind them only, soft at its edges (as the opening of the about page does) */
  .co-head::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -64px calc(-1 * var(--pad)) -70px;
    background: linear-gradient(180deg, rgba(7, 11, 26, 0) 0, rgba(7, 11, 26, 0.6) 64px, rgba(7, 11, 26, 0.6) calc(100% - 70px), rgba(7, 11, 26, 0) 100%);
    pointer-events: none;
  }

  .co-club { grid-template-columns: minmax(0, 1fr); }
  .co-club .co-side { margin-bottom: clamp(24px, 4vh, 36px); }

  .co-me-copy {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "text" "facts";
  }

  .co-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(28px, 5vh, 40px); }

}

@media (max-width: 767px) {
  .co > .co-top { padding-top: calc(64px + clamp(32px, 7vh, 64px) - 34px); }
  .co-plans { grid-template-columns: minmax(0, 1fr); }
  .co-voices-list { columns: 1; }
  .co-doc { inset-inline-end: -2%; }
}

@media (max-width: 560px) {
  .co-facts { grid-template-columns: minmax(0, 1fr); }
  .co-cta .btn { flex: 1 1 100%; }
  .co-scene { padding-bottom: 96px; }
  .co-doc { width: 76%; padding: 14px 16px 12px; }
  .co-dx__track .btn { width: 100%; }
}

/* --- Motion stopped ---------------------------------------------------------------------------- */

html.no-motion .co-dx__ans { animation: none !important; }
html.no-motion :is(.co-dx__pain, .co-plans .plan) { transition-duration: 1ms; }

@media (prefers-reduced-motion: reduce) {
  .co-dx__ans { animation: none !important; }
}

/* --- The colour modes of the accessibility menu, and the system's forced colours ---------------
   The bands of night go, and what was told apart by its glass is told apart by a line */

html:is(.a11y-contrast, .a11y-negative, .a11y-light) :is(.co-dx, .co-tracks, .co-me, .co-faq) { background: none; }
html:is(.a11y-contrast, .a11y-negative, .a11y-light) .co-head::before { display: none; }
html:is(.a11y-contrast, .a11y-negative, .a11y-light) :is(.co-plans .plan, .co-dx__pain, .co-dx__ans, .co-call, .co-doc) { outline: 1px solid currentColor; }
html:is(.a11y-contrast, .a11y-negative, .a11y-light) .co-dx__pain[aria-pressed="true"] { outline: 3px solid currentColor; }

@media (forced-colors: active) {
  .co-head::before { display: none; }
  .co-plans .plan, .co-dx__pain, .co-dx__ans, .co-call, .co-doc { border: 1px solid CanvasText; }
  .co-dx__pain[aria-pressed="true"] { border: 3px solid Highlight; }
}
