/* THE MARKETING SITE (Phase 8; brief §15). Every value comes from tokens.css.
   No inline styles anywhere: the Content-Security-Policy in _headers allows
   styles from this file only, so a style="" attribute would simply not apply.

   Breakpoints are the references': 960px (two columns become one) and 760px
   (the navigation collapses into the menu button). */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px / 24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--site-link);
}

a:hover {
  color: var(--site-link-hover);
}

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

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

/* ---- Layout ------------------------------------------------------------- */

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
}

.section--sub {
  padding: var(--section-pad-sub) 0;
}

.section--ruled {
  border-top: 1px solid var(--hairline);
}

.section--context {
  background: var(--context);
}

.section--hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 8vw, 120px);
}

.section--page-head {
  padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.split--7-5 {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split--6-5 {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: start;
}

.split--4-8 {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.split--top {
  align-items: start;
}

.split--hero {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack--16 {
  gap: 16px;
}

.stack--12 {
  gap: 12px;
}

.narrow {
  max-width: 720px;
}

/* ---- Type --------------------------------------------------------------- */

.eyebrow {
  font: var(--eyebrow);
  color: var(--site-link);
}

.eyebrow--muted {
  color: var(--muted);
}

.display {
  font: var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-title {
  max-width: 880px;
  font: var(--page-title);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h2 {
  font: var(--h2);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2-sub {
  font: var(--h2-sub);
  letter-spacing: -0.015em;
}

.h2-band {
  font: var(--h2-band);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2-cta {
  font: 700 clamp(32px, 3.6vw, 48px) / 1.08 var(--font-sans);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h3 {
  font: var(--h3);
}

.h3-small {
  font: var(--h3-small);
}

.lead {
  max-width: 720px;
  font: var(--lead);
  color: var(--muted);
  text-wrap: pretty;
}

.lead--origin {
  font: var(--lead-origin);
  color: var(--ink);
}

.meta {
  font: var(--meta);
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

/* ---- Buttons and links --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: 600 16px / 24px var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.btn--lg {
  height: 52px;
  padding: 0 24px;
  font-size: 17px;
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.btn--secondary {
  background: var(--paper);
  border-color: var(--control);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--context);
  color: var(--ink);
}

.btn--white {
  background: var(--paper);
  color: var(--site-link);
}

.btn--white:hover {
  background: var(--brand-tint);
  color: var(--site-link);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

.arrow-link svg {
  flex: 0 0 auto;
}

.band-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-brand);
  font-weight: 600;
  text-underline-offset: 4px;
}

.band-link:hover {
  color: var(--on-brand);
}

/* ---- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.site-header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
}

.logo-link img {
  height: 30px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  color: var(--ink);
  text-decoration: none;
}

.nav__link:hover {
  background: var(--context);
  color: var(--ink);
}

.nav__link[aria-current='page'] {
  font-weight: 600;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--control);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-button__close {
  display: none;
}

.menu-button[aria-expanded='true'] .menu-button__open {
  display: none;
}

.menu-button[aria-expanded='true'] .menu-button__close {
  display: block;
}

/* A disclosure, not a modal: it pushes nothing, covers the page under the
   header, and closes with Escape, a second tap or a link. */
.mobile-menu {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  padding: 8px 0 20px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 18px;
  text-decoration: none;
}

.mobile-menu__cta {
  margin-top: 16px;
  width: 100%;
}

/* ---- Lists ---------------------------------------------------------------- */

.checks {
  list-style: none;
  padding: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checks li {
  display: flex;
  gap: 12px;
}

.checks svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.ruled-list {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  border-top: 1px solid var(--hairline);
}

.ruled-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.section--context .ruled-list,
.section--context .ruled-list li {
  border-color: var(--site-divider-context);
}

.ruled-list--checks li {
  display: flex;
  gap: 12px;
}

.ruled-list--checks svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.status-list {
  border-top: 1px solid var(--hairline);
}

.status-list__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.status-list__row strong {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
}

/* ---- Home: roles, security, the blue band ------------------------------- */

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: 48px;
}

.columns--security {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  margin-top: 40px;
}

.role {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.role ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role .arrow-link {
  margin-top: auto;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature p {
  color: var(--muted);
}

.band {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--brand);
  color: var(--on-brand);
}

.band a:focus-visible {
  outline-color: var(--on-brand);
}

.band__lead {
  font: var(--lead);
  color: var(--brand-tint);
}

.band__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.steps-on-brand {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.steps-on-brand li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--site-rule-on-brand);
}

.steps-on-brand li:last-child {
  border-bottom: 1px solid var(--site-rule-on-brand);
}

.steps-on-brand .step-no {
  font-size: 18px;
  font-weight: 700;
}

.steps-on-brand strong {
  display: block;
  font-weight: 600;
}

.steps-on-brand .step-text {
  color: var(--brand-tint);
}

.origin-body {
  padding-top: clamp(0px, 2.4vw, 36px);
}

/* ---- Features: jump chips ------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--control);
  border-radius: var(--radius-control);
  color: var(--ink);
  text-decoration: none;
}

.chip:hover {
  background: var(--context);
  color: var(--ink);
}

/* The heading a jump chip lands on takes focus (site.js), so it can be read
   from there; it is not a control, so no ring. */
[tabindex='-1']:focus {
  outline: none;
}

/* ---- Pricing ---------------------------------------------------------------- */

.price-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--site-shadow-window);
}

.bands {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.band-button {
  height: 48px;
  padding: 0 4px;
  border: 1px solid var(--control);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font: 400 16px / 24px var(--font-sans);
  cursor: pointer;
}

.band-button:hover {
  border-color: var(--ink);
}

/* Selected is the app's selected: Mist with a 2px brand edge, never a fill. */
.band-button[aria-pressed='true'] {
  background: var(--brand-tint);
  border: 2px solid var(--brand);
  color: var(--site-link);
  font-weight: 600;
}

.price {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.price__line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price__amount {
  font: 700 clamp(32px, 4vw, 44px) / 1 var(--font-sans);
  letter-spacing: -0.02em;
}

.price__unit {
  font: var(--lead);
  color: var(--muted);
}

.price__note {
  margin-top: 12px;
  color: var(--muted);
}

.price__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 28px;
}

.steps {
  list-style: none;
  padding: 0;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.steps .step-no {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.steps strong {
  font-size: 18px;
  line-height: 24px;
}

.steps .step-text {
  color: var(--muted);
}

.faq {
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  flex: 0 0 auto;
  transition: transform 150ms ease;
}

.faq details[open] summary svg {
  transform: rotate(180deg);
}

.faq details p {
  max-width: 640px;
  padding: 0 0 20px;
  color: var(--muted);
}

/* ---- Legal and 404 ------------------------------------------------------------ */

.prose {
  max-width: var(--prose-max);
}

.prose h2 {
  margin: 32px 0 8px;
  font: var(--h3-small);
}

.prose p,
.prose ul {
  margin: 0 0 16px;
}

.prose ul {
  padding-left: 20px;
}

.notice {
  padding: 16px 20px;
  border-radius: var(--radius-control);
  background: var(--warning-tint);
  margin: 24px 0 32px;
}

.notice strong {
  display: block;
  color: var(--warning-ink);
}

/* ---- Footer ----------------------------------------------------------------- */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--hairline);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 32px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__brand img {
  height: 28px;
  width: auto;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.site-footer__heading {
  padding-bottom: 6px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  color: var(--muted);
}

.site-footer nav a {
  padding: 4px 0;
  color: var(--ink);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--site-link-hover);
  text-decoration: underline;
}

.site-footer__base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

/* ---- Product shots ------------------------------------------------------------
   Small HTML pictures of the app, each inside a role="img" with a description,
   so their contents are presentational. They follow the app's status rules:
   booked is paper with a control edge, selected is Mist with a 2px brand edge,
   completed is quiet, a no-show is the one loud thing, a ticked set is ink. */

.shot {
  border-radius: var(--radius-panel);
  background: var(--context);
  padding: clamp(12px, 2.5vw, 28px);
  overflow: hidden;
}

.shot--hero {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 32px;
  overflow: visible;
}

.shot--phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: clamp(20px, 3vw, 40px);
}

.shot--loose {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  background: none;
  padding: 0;
  overflow: visible;
}

.shot--cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  align-items: start;
}

.window {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-window);
  box-shadow: var(--site-shadow-window-strong);
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
}

.window--soft {
  box-shadow: var(--site-shadow-window);
}

.window--panel {
  border-radius: var(--radius-panel);
  box-shadow: var(--site-shadow-window);
  font-size: 14px;
  line-height: 20px;
}

.window--pad {
  padding: 20px 24px;
  font-size: 14px;
  line-height: 20px;
}

.window--card {
  padding: 16px;
  font-size: 14px;
  line-height: 20px;
}

.hero-calendar {
  width: calc(100% - 196px);
}

/* The calendar. */

.cal-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--context);
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.cal-bar__day {
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.cal-days {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.cal-days span,
.week span {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--muted);
}

.cal-days .is-selected,
.week .is-selected {
  background: var(--brand-tint);
  color: var(--site-link);
  font-weight: 600;
}

.cal-head,
.cal-grid {
  display: grid;
  grid-template-columns: 52px repeat(4, minmax(0, 1fr));
}

.cal-head {
  border-bottom: 1px solid var(--hairline);
}

.cal-head--3,
.cal-grid--3 {
  grid-template-columns: 48px repeat(3, minmax(0, 1fr));
}

.cal-head__col {
  padding: 8px 10px;
  border-left: 1px solid var(--hairline);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.cal-head__col small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.cal-grid {
  position: relative;
  height: 268px;
}

.cal-grid--3 {
  height: 216px;
}

.cal-times {
  position: relative;
  font-size: 11px;
  color: var(--muted);
}

.cal-times span {
  position: absolute;
  right: 10px;
}

.cal-col {
  position: relative;
  border-left: 1px solid var(--hairline);
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 51px,
    var(--hairline) 51px,
    var(--hairline) 52px
  );
}

/* Rows: one hour is 52px; .at-N sits N hours below 09:00. */
.at-0 { top: 2px; }
.at-05 { top: 28px; }
.at-1 { top: 54px; }
.at-2 { top: 106px; }
.at-3 { top: 158px; }
.at-35 { top: 184px; }
.at-4 { top: 210px; }

.cal-times .at-0 { top: 2px; }

.appt {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 48px;
  padding: 5px 8px;
  background: var(--paper);
  border: 1px solid var(--control);
  border-radius: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.appt b {
  display: block;
  font-weight: 600;
}

.appt span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.appt--done {
  background: var(--context);
  color: var(--muted);
}

.appt--noshow {
  background: var(--attention-tint);
  border-color: var(--attention);
}

.appt--noshow span {
  color: var(--attention);
  font-weight: 600;
}

.appt--selected {
  padding: 4px 7px;
  background: var(--brand-tint);
  border: 2px solid var(--brand);
}

.appt--off {
  background: var(--context);
  border-style: dashed;
  color: var(--muted);
}

.appt--short {
  height: 22px;
  padding: 1px 8px;
  font-size: 12px;
}

.appt--short b,
.appt--short span {
  display: inline;
}

.now-line {
  position: absolute;
  left: 48px;
  right: 0;
  top: 103px;
  height: 2px;
  background: var(--brand);
}

.now-dot {
  position: absolute;
  left: 44px;
  top: 99px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: var(--brand);
}

.cal-grid--3 .now-line {
  left: 44px;
}

.cal-grid--3 .now-dot {
  left: 40px;
}

/* The phone. */

.phone {
  flex: 0 0 auto;
  width: 272px;
  padding: 8px;
  border-radius: var(--radius-phone);
  background: var(--ink);
  box-shadow: var(--site-shadow-phone);
}

.phone--float {
  position: absolute;
  right: 32px;
  bottom: -48px;
}

.phone--lower {
  margin-top: 56px;
}

.phone__screen {
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  font-size: 13px;
  line-height: 18px;
}

.phone__head {
  padding: 18px 16px 12px;
  background: var(--context);
  border-bottom: 1px solid var(--hairline);
}

.phone__title {
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
}

.phone__title--name {
  font-size: 16px;
}

.phone__sub {
  font-size: 12px;
  color: var(--muted);
}

.phone__body {
  padding: 0 16px;
}

.phone__body--pad {
  padding: 14px 16px 6px;
}

.phone__foot {
  padding: 10px 16px 16px;
  background: var(--context);
  border-top: 1px solid var(--hairline);
}

.phone__saved {
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
}

.phone__button {
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone__button--secondary {
  background: var(--paper);
  border: 1px solid var(--control);
  color: var(--ink);
}

.week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
}

.week span {
  padding: 4px 0;
}

.day-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.day-row:last-child {
  border-bottom: 0;
}

.day-row > b {
  font-weight: 600;
}

.day-row--muted {
  color: var(--muted);
}

.day-row--now {
  margin: 0 -8px;
  padding: 12px 8px;
  border-radius: 4px;
  background: var(--brand-tint);
}

.day-row__name {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.day-row__detail {
  color: var(--muted);
}

.day-row__noshow {
  color: var(--attention);
  font-weight: 600;
}

.day-row__now {
  display: block;
  margin-top: 2px;
  color: var(--site-link);
  font-weight: 600;
}

.plan-strip {
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--brand-tint);
}

.plan-strip b {
  display: block;
  font-weight: 600;
}

.tiles__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
}

.tiles__row:last-child {
  border-bottom: 0;
}

.tiles__row b {
  font-weight: 600;
}

.tiles__row span {
  color: var(--muted);
}

/* An item block: the treatment table. */

.item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.item__media {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-control);
  background: var(--context);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.window--card .item__media {
  width: 40px;
  height: 40px;
}

.item__name {
  font-size: 14px;
  font-weight: 600;
}

.item__sub {
  font-size: 12px;
  color: var(--muted);
}

.item__timer {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--site-link);
}

.window--card .item__sub,
.window--card .item__timer {
  font-size: 13px;
}

.sets {
  margin-top: 12px;
}

.sets__row {
  display: grid;
  grid-template-columns: 26px 1fr 40px 52px 26px;
  gap: 6px;
  align-items: center;
  height: 36px;
  border-bottom: 1px solid var(--hairline);
}

.sets__row:last-child {
  border-bottom: 0;
}

.sets__row > :first-child {
  font-weight: 600;
}

.sets__row > :nth-child(2) {
  color: var(--muted);
}

.sets__head {
  height: auto;
  border-bottom: 0;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: var(--muted);
}

.window--card .sets__row {
  grid-template-columns: 28px 1fr 40px 52px 24px;
  gap: 8px;
  height: 40px;
}

.window--card .sets__head {
  height: auto;
  margin-top: 14px;
  font-size: 12px;
}

/* A ticked set is ink with a paper tick (the app's rule since 14 Oct);
   not yet done is an outlined box. */
.tick {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1.5px solid var(--control);
}

.tick--done {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.measure {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--hairline);
}

.measure__label {
  font-size: 12px;
  color: var(--muted);
}

.measure__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.measure__line b {
  font-size: 14px;
  font-weight: 600;
}

.measure__value {
  font-size: 16px;
  font-weight: 700;
}

.measure__change {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.tests {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}

.tests:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tests__line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.tests__line b {
  font-weight: 600;
}

.tests__line strong {
  font-weight: 700;
}

.tests__change {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.worse {
  color: var(--attention);
  font-weight: 600;
}

/* The patient record. */

.record__head {
  padding: 20px 24px;
  background: var(--context);
  border-bottom: 1px solid var(--hairline);
}

.record__name {
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}

.record__body {
  padding: 20px 24px 8px;
}

.record__sessions {
  padding: 4px 24px 8px;
  border-top: 1px solid var(--hairline);
}

.record__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.record__title {
  font-size: 16px;
  font-weight: 700;
}

.record__sessions .record__title {
  padding: 16px 0 4px;
}

.plan-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.plan-row:last-child {
  border-bottom: 0;
}

.plan-row b,
.session-row b {
  font-weight: 600;
}

.plan-row span {
  color: var(--muted);
  text-align: right;
}

.record__use {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}

.record__use .phone__button {
  display: inline-flex;
  height: 44px;
  padding: 0 18px;
}

.session-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.session-row:last-child {
  border-bottom: 0;
}

.session-row__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.session-row p {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.record__foot {
  padding: 12px 24px;
  background: var(--context);
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

/* The progress table. */

.scroll-x {
  overflow-x: auto;
  margin-top: 16px;
}

.progress-table {
  min-width: 470px;
}

.progress-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 64px 64px 64px minmax(0, 1.2fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.progress-table__row:last-child {
  border-bottom: 0;
}

.progress-table__row > * {
  text-align: right;
  color: var(--muted);
}

.progress-table__row > :first-child {
  text-align: left;
  color: var(--ink);
  font-weight: 600;
}

.progress-table__row > .today {
  color: var(--ink);
  font-weight: 700;
}

.progress-table__row > .worse {
  color: var(--attention);
}

.progress-table__head {
  padding: 0 0 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.progress-table__head > * {
  color: var(--muted);
}

.progress-table__head > :first-child {
  color: var(--muted);
  font-weight: 600;
}

.shot__note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

/* The patient list. */

.list-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}

.list-bar b {
  font-size: 15px;
}

.search-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--control);
  border-radius: 4px;
  color: var(--muted);
  min-width: 0;
  flex: 0 1 200px;
}

.search-box span {
  color: var(--ink);
}

.patient-table {
  min-width: 520px;
}

.patient-table__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.6fr) 1fr 1fr 72px;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline);
}

.patient-table__row:last-child {
  border-bottom: 0;
}

.patient-table__row > :first-child {
  color: var(--muted);
}

.patient-table__row > :nth-child(2) {
  font-weight: 600;
}

.patient-table__row > :last-child {
  text-align: right;
}

.patient-table__row .none {
  color: var(--muted);
}

.patient-table__row.is-selected {
  background: var(--brand-tint);
}

.patient-table__head {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
}

.patient-table__head > * {
  color: var(--muted);
  font-weight: 600;
}

/* The owner dashboard. */

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
  gap: 12px;
  margin-top: 16px;
}

.kpi {
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
}

.kpi__label {
  font-size: 13px;
  color: var(--muted);
}

.kpi__value {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.kpi__note {
  font-size: 12px;
  color: var(--muted);
}

.bars {
  display: grid;
  grid-template-columns: 130px 1fr 44px;
  gap: 8px 12px;
  align-items: center;
  margin-top: 10px;
}

.bars svg {
  width: 100%;
  height: 12px;
}

.bars .bar-track {
  fill: var(--hairline);
}

.bars .bar-fill {
  fill: var(--ink);
}

.bars span:nth-child(3n) {
  text-align: right;
}

.table-link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--site-link);
}

/* ---- Breakpoints --------------------------------------------------------------- */

@media (max-width: 960px) {
  .split,
  .split--7-5,
  .split--6-5,
  .split--4-8,
  .split--hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-first {
    order: -1;
  }
}

@media (max-width: 760px) {
  .nav,
  .hide-sm {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .phone--float {
    position: static;
    margin: 0 auto;
  }

  .shot--hero {
    padding: 0;
    background: transparent;
  }

  .hero-ctas > a,
  .full-sm {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Phones wider than the gutter at 320px shrink rather than spill. */
@media (max-width: 340px) {
  .phone {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Small additions ------------------------------------------------------- */

.checks svg,
.ruled-list--checks svg {
  color: var(--brand);
}

.feature svg {
  color: var(--ink);
}

.shot__gap {
  margin-top: 20px;
}

.plan-rows {
  margin-top: 8px;
}

.pricing-grid {
  margin-top: clamp(32px, 4vw, 56px);
  gap: clamp(24px, 4vw, 48px);
}

/* The header's trial button gives way to the menu on the narrowest phones,
   where it no longer fits beside the logo; the menu carries the same link. */
@media (max-width: 379px) {
  .header-cta {
    display: none;
  }
}
