/* besolutions.ai/speedometer/: tokens, base, nav and buttons come from /welcome/styles.css.
   Radius scale: buttons full pill, panels and cells 14px, controls and slots 10px. */

[hidden] { display: none !important; }
.sp-section { padding: clamp(56px, 8vw, 104px) 0; }
.sp-section h2 { font-size: clamp(30px, 4vw, 46px); }

/* ---------- hero: copy on the left, the working screen on the right ---------- */
.sp-hero { padding: clamp(20px, 4vh, 56px) 0 clamp(48px, 7vw, 88px); overflow: clip; }
.sp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sp-hero h1 { font-size: clamp(44px, 6vw, 78px); font-weight: 700; margin-top: 18px; }
.sp-hero__sub { margin-top: 20px; max-width: 44ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.sp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sp-count { min-height: 1.5em; font: 600 14px/1.5 var(--mono); color: var(--accent); text-wrap: balance; }

/* The case is drawn to the real part's proportions, with the bar running behind it off the page edge. */
.sp-device { margin: 0; --screen: clamp(180px, 29svh, 250px); }
.sp-device__stage { position: relative; display: grid; place-items: center; }
.sp-device__bar {
  position: absolute; top: 44%; left: -40px; right: -100vw; height: calc(var(--screen) * 0.42);
  background: linear-gradient(180deg, #59616c 0%, #a9aeb6 18%, #e7e9ec 30%, #9aa0a8 44%, #6d747e 72%, #3d444e 100%);
  /* The left end fades out instead of stopping short of the headline. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70px);
  mask-image: linear-gradient(90deg, transparent, #000 70px);
}
.sp-device__case {
  position: relative;
  padding: calc(var(--screen) * 0.19) calc(var(--screen) * 0.2) calc(var(--screen) * 0.27);
  border-radius: calc(var(--screen) * 0.13);
  background: linear-gradient(160deg, #6a6d73, #4b4e54 60%, #3e4146);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 26px 50px rgba(2, 8, 18, 0.55);
}
.sp-device__screen {
  display: block; padding: 0; width: var(--screen); aspect-ratio: 172 / 320;
  border: 0; border-radius: 6px; background: #000; cursor: pointer; overflow: hidden;
  box-shadow: 0 0 0 calc(var(--screen) * 0.035) #33363b, 0 0 0 calc(var(--screen) * 0.06) #2a2c31;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.sp-device__screen canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.sp-device figcaption { max-width: 38ch; margin: 18px auto 0; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; position: relative; }

/* ---------- what it reads: two columns of label + meaning, a rule above each column only ---------- */
.sp-reads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); margin-top: clamp(28px, 4vw, 44px); }
.sp-reads__col { border-top: 2px solid var(--line-strong); padding-top: 18px; }
.sp-reads h3 { font: 600 14px/1.4 var(--mono); color: var(--accent); letter-spacing: 0; }
.sp-reads dl { margin: 20px 0 0; display: grid; gap: 20px; }
.sp-reads dt { font-size: 20px; font-weight: 600; }
.sp-reads dd { margin: 3px 0 0; color: var(--ink-2); max-width: 44ch; }

/* ---------- controls: one wide cell, two smaller ---------- */
.sp-bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-areas: 'limit app' 'limit pair'; gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.sp-cell { border: 1px solid var(--line); border-radius: 14px; padding: clamp(22px, 3vw, 34px); background: var(--night-2); }
.sp-cell h3 { font-size: clamp(21px, 2.2vw, 27px); }
.sp-cell p { margin-top: 10px; color: var(--ink-2); max-width: 46ch; }
.sp-cell--limit { grid-area: limit; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sp-cell--limit h3 { font-size: clamp(28px, 3.4vw, 42px); }
.sp-cell--limit p { color: #2c2a22; font-size: 18px; }
.sp-cell--app { grid-area: app; }
.sp-cell--pair { grid-area: pair; background-color: var(--night-3); }

/* ---------- kit ---------- */
.sp-kit__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.sp-kit__img { margin: 0; }
.sp-kit__img img { display: block; width: 100%; height: auto; border-radius: 14px; background: #d5d8dc; }
.sp-kit__img figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.sp-kit__list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--ink-2); }
.sp-kit__list li { padding-left: 16px; border-left: 2px solid var(--accent); }
.sp-steps { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sp-steps strong { color: var(--ink); font-weight: 600; }
.sp-steps li { color: var(--ink-2); }

/* ---------- reserve ---------- */
.sp-reserve { scroll-margin-top: 68px; }
.sp-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 64px); padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line-strong); border-radius: 14px; background: var(--night-2); }
.sp-offer__sub { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.sp-slots { margin-top: 28px; }
.sp-slots__grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.sp-slot { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 10px; font: 600 13px/1 var(--mono); color: var(--accent); }
.sp-slot.is-taken { background: rgba(160, 200, 255, 0.1); border-color: transparent; color: var(--muted); }
.sp-slot.is-new { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sp-slots__label { margin-top: 12px; font: 600 14px/1.5 var(--mono); color: var(--accent); }
.sp-terms { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); }

/* Same field look as the site's contact form (welcome/sections.css). */
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label span { margin-left: 6px; font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--night); border: 1px solid var(--line-strong); border-radius: 10px; transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(195, 210, 230, 0.16); }
.field.bad input, .field.bad textarea { border-color: var(--orange); }
.field__err { font-size: 13px; color: var(--orange); }
.field__err:empty { display: none; }
#reserve-form { display: grid; gap: 16px; }
.sp-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sp-submit { width: 100%; justify-content: center; cursor: pointer; }
.sp-submit[disabled] { opacity: 0.7; cursor: progress; }
.sp-status { font-size: 14px; color: var(--orange); }
.sp-status:empty { display: none; }
.sp-status a, .sp-formnote a { color: var(--ink-2); text-underline-offset: 3px; }
.sp-formnote { font-size: 13px; color: var(--muted); }
.sp-done { align-self: center; outline: none; }
.sp-done h3 { font-size: clamp(26px, 3vw, 34px); color: var(--accent); }
.sp-done p { margin-top: 12px; color: var(--ink-2); }
.sp-done .sp-formnote { color: var(--muted); }

/* ---------- questions ---------- */
.sp-faq__wrap { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 56px); }
.sp-faq__list { display: grid; }
.sp-faq details + details { border-top: 1px solid var(--line); }
.sp-faq summary { padding: 18px 0; font-size: 19px; font-weight: 600; cursor: pointer; list-style-position: outside; }
.sp-faq summary::marker { color: var(--accent); }
.sp-faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 60ch; }

.sp-foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.sp-foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sp-foot p { font-size: 13px; color: var(--muted); }
.sp-foot a:not(.brand) { color: var(--ink-2); text-underline-offset: 3px; }

/* ---------- one column on phones ---------- */
@media (max-width: 860px) {
  .sp-hero__grid, .sp-reads, .sp-kit__grid, .sp-panel, .sp-faq__wrap { grid-template-columns: minmax(0, 1fr); }
  .sp-device { --screen: clamp(170px, 50vw, 220px); }
  .sp-device__bar { left: -100vw; -webkit-mask-image: none; mask-image: none; }
  .sp-bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'limit' 'app' 'pair'; }
  .sp-cell--limit { min-height: 0; }
  .sp-slots__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
