/*
 * tuning-database.co.uk, v3: /our-software/ (templates/page-our-software.php,
 * 19 Oct 2026). TunerSuite first: its pitch beside a whole-page screen, what
 * you get, AI File Match, the hosting plans. Then the ME7 tool on its own
 * band, then the other tools in a list. The blocks it shares with the
 * homepage (what you get, the send-on box, AI File Match, the screen frame)
 * are drawn the same way as in css/front.css. Tokens only, both themes.
 */

/* 1. TunerSuite hero: the pitch on the left, its dashboard on the right ---- */

.os-hero {
  padding-block: clamp(var(--sp-7), 6vw, var(--sp-9)) var(--sp-8);
}

.os-hero__in {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 980px) {
  .os-hero__in {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.os-hero h1 {
  max-width: 18ch;
  font-size: var(--step-5);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
}

.os-hero .lede {
  max-width: 52ch;
}

.door__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-1) var(--sp-3);
}

.door__price b {
  color: var(--ink);
  font-size: var(--step-3);
}

.door__price > span {
  flex-basis: 100%;
  color: var(--ink-2);
  font-size: var(--step--1);
}

.door__was {
  color: var(--ink-3);
  font-size: var(--step-1);
}

.door__left {
  color: var(--accent-ink);
  font-weight: 700;
}

.demo-note {
  max-width: 46ch;
}

/* A whole page in a frame of a screen's height, scrolled by the visitor or
   once by js/page-our-software.js. */
.shot {
  margin: 0;
}

.shot__frame {
  height: clamp(340px, 40vw, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-2);
  background: var(--bg-raised);
  box-shadow: var(--shadow-float);
  scrollbar-width: thin;
}

.shot__frame:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.shot__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: var(--sp-2);
  color: var(--ink-2);
  font-size: var(--step--1);
}

.shot .shot__l {
  display: none;
}

:root[data-theme="light"] .shot .shot__d {
  display: none;
}

:root[data-theme="light"] .shot .shot__l {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .shot .shot__d {
    display: none;
  }

  :root:not([data-theme="dark"]) .shot .shot__l {
    display: block;
  }
}

/* 2. what you get, and the optional send-on box ---------------------------- */

.gets {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .gets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .gets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.get {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: var(--bg-raised);
}

.get:nth-child(-n+3) {
  border-top: 3px solid var(--accent);
}

.get h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  font-size: var(--step-0);
}

.get p {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.get__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--sp-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-1);
  color: var(--accent-ink);
}

.get__icon svg,
.am-step__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gets__addon {
  padding: 1px var(--sp-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink-3);
  font-size: var(--step--1);
  font-weight: 600;
}

.send-on {
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-2);
  background: var(--bg);
}

.send-on > * + * {
  margin-top: var(--sp-3);
}

.send-on__tag {
  display: inline-block;
  padding: 1px var(--sp-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  color: var(--accent-ink);
  font-size: var(--step--1);
  font-weight: 700;
}

.send-on h3 {
  font-size: var(--step-2);
}

.send-on .ticks {
  color: var(--ink-2);
}

/* 3. AI File Match: four steps on one line that draws itself -------------- */

.am-flow {
  position: relative;
}

.am-flow__line {
  display: none;
}

@media (min-width: 900px) {
  .am-flow__line {
    display: block;
    position: absolute;
    top: 22px;
    right: 22px;
    left: 22px;
    height: 2px;
    background: var(--accent);
    transform-origin: left center;
  }
}

.am-steps {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .am-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.am-step__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent-ink);
}

.am-step__n {
  display: block;
  margin-top: var(--sp-3);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

.am-step h3 {
  margin-top: var(--sp-1);
  font-size: var(--step-1);
}

.am-step p {
  margin-top: var(--sp-2);
  color: var(--ink-2);
}

/* 4. hosting, Pro recommended ------------------------------------------------ */

.os-hosting .plan {
  position: relative;
  background: var(--bg-raised);
}

.os-hosting .plan__name {
  font-size: var(--step-2);
}

.plan__ribbon {
  position: absolute;
  top: calc(var(--sp-3) * -1);
  right: var(--sp-4);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--step--1);
  font-weight: 700;
}

@media (min-width: 1120px) {
  .plans--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 5. the ME7 tool, second ---------------------------------------------------- */

.me7__in {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 980px) {
  .me7__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.me7 h2 {
  font-size: var(--step-4);
}

.me7 .ticks {
  color: var(--ink-2);
}

.me7 .ticks b {
  color: var(--ink);
}

.me7__price b {
  color: var(--ink);
  font-size: var(--step-3);
}

.me7__price span {
  color: var(--ink-2);
}

.me7__pic {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-2);
  background: var(--bg-raised);
}

.me7__pic img {
  display: block;
  width: 100%;
  height: auto;
}

/* 6. the other tools, one line each ------------------------------------------ */

.others__head {
  margin-bottom: var(--sp-4);
  font-size: var(--step-2);
}

.others {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.others__item {
  display: grid;
  gap: var(--sp-1) var(--sp-5);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .others__item {
    grid-template-columns: minmax(12em, 0.6fr) minmax(0, 1.6fr) auto;
    align-items: baseline;
  }
}

.others__item a {
  color: var(--ink);
  font-weight: 700;
}

.others__line {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.others__price {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 7. the Marketplace line, the questions, the last call ---------------------- */

.os-mkt {
  margin-bottom: var(--sp-8);
  padding: var(--sp-6);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-2);
  background: var(--bg-raised);
}

.os-mkt > * + * {
  margin-top: var(--sp-3);
}

.os-mkt h2 {
  font-size: var(--step-3);
}

.os-mkt p {
  color: var(--ink-2);
}

.home-last {
  text-align: center;
}

.home-last h2 {
  font-size: var(--step-4);
}

.home-last .lede {
  max-width: 56ch;
  margin: var(--sp-4) auto 0;
}

.home-last .row {
  justify-content: center;
  margin-top: var(--sp-6);
}

.others__sub {
  margin: calc(var(--sp-3) * -1) 0 var(--sp-4);
}

.others__price del {
  margin-right: var(--sp-1);
  color: var(--ink-3);
}

.others__price ins {
  text-decoration: none;
}

.others__note {
  color: var(--ink-2);
  font-size: var(--step--1);
}

/* Which one is for me: three short answers, by what the business does. */
.pick__head {
  margin: var(--sp-8) 0 var(--sp-2);
  font-size: var(--step-2);
}

.pick {
  display: grid;
  gap: var(--sp-4);
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .pick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pick__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: var(--bg-raised);
}

.pick__item h4 {
  font-size: var(--step-1);
}

.pick__who {
  color: var(--accent-ink);
  font-size: var(--step--1);
  font-weight: 600;
}

.pick__item p:not(.pick__who) {
  color: var(--ink-2);
}

.pick__item .go {
  margin-top: auto;
}
