/* The homepage, rebuilt from Peter Moustrides' Home design (26 Oct 2026): deep plum and cream, lime
   accents, rounded cards, Upside in the hero. Brought across from the earlier homepage: the Monday card,
   the calculator, the leaders, the questions, the phone menu and the 12px / 24px floors.
   Only index.html loads this file; every other page keeps styles.css. */

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #2a0f23;
  --plum: #37152e;
  --plum-mid: #4a1d3e;
  --plum-soft: #5c2a4f;
  --cream: #f4f1e8;
  --white: #ffffff;
  --lime: #c8d53b;
  --lime-hi: #e3ec7a;
  --olive: #557000;
  --muted-dark: rgba(244, 241, 232, 0.72);
  --muted-light: #5f4d5a;
  --line-dark: rgba(244, 241, 232, 0.16);
  --line-light: rgba(55, 21, 46, 0.14);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --page: max(24px, calc((100% - 1192px) / 2));
  --header-h: 77px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: var(--lime);
}

a:hover {
  color: var(--lime-hi);
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.light :focus-visible,
.lime-band :focus-visible {
  outline-color: var(--plum);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--lime);
  color: var(--plum);
  font-weight: 700;
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  transform: none;
}

/* type */
.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}

.display {
  text-wrap: balance;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.96;
}

.mark {
  background: linear-gradient(transparent 62%, var(--lime) 62%);
  padding: 0 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lead {
  text-wrap: pretty;
  margin: 0;
  max-width: 26rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.on-dark .lead {
  color: var(--muted-dark);
}

/* buttons */
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn svg {
  flex: none;
}

.btn-lime {
  background: var(--lime);
  color: var(--plum);
}

.btn-lime:hover {
  transform: translateY(-2px);
  background: var(--lime-hi);
  color: var(--plum);
  box-shadow: 0 14px 40px rgba(200, 213, 59, 0.35);
}

.btn-plum {
  background: var(--plum);
  color: var(--cream);
}

.btn-plum:hover {
  transform: translateY(-2px);
  background: var(--night);
  color: var(--cream);
  box-shadow: 0 14px 40px rgba(55, 21, 46, 0.3);
}

.btn-ghost {
  border: 1px solid rgba(244, 241, 232, 0.28);
  color: var(--cream);
  font-weight: 500;
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.btn-lg {
  padding: 1.1rem 1.9rem;
  font-size: 1.125rem;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
}

.text-link::after {
  content: "\2192";
}

.light .text-link {
  color: var(--plum);
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* scroll progress */
.prog {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}

/* header */
.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(244, 241, 232, 0.06);
  background: rgba(42, 15, 35, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  max-width: 1240px;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.875rem;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover {
  color: var(--cream);
}

.brand img {
  display: block;
  width: auto;
  height: 34px;
}

.brand span {
  border-left: 1px solid rgba(244, 241, 232, 0.25);
  padding-left: 0.875rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a:not(.btn) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted-dark);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-list a:not(.btn):hover {
  color: var(--lime);
}

.nav-list .btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  border: 1px solid rgba(244, 241, 232, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  padding: 0 1.1rem;
  cursor: pointer;
}

@media (min-width: 58.01rem) {
  .primary-nav[hidden] {
    display: block;
  }
}

@media (max-width: 58rem) {
  .header-inner {
    flex-wrap: wrap;
  }

  .brand span {
    font-size: 1.05rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .primary-nav {
    flex-basis: 100%;
  }

  .primary-nav[hidden] {
    display: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line-dark);
    padding: 0.5rem 0 1rem;
  }

  .nav-list a:not(.btn) {
    width: 100%;
    font-size: 1.05rem;
  }

  .nav-list .btn {
    width: 100%;
    margin-top: 0.75rem;
  }
}

/* hero: Upside speaking */
.hero {
  position: relative;
  display: flex;
  min-height: max(100vh, 780px);
  align-items: center;
  justify-content: center;
  margin-top: calc(-1 * var(--header-h));
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 42%, var(--plum-mid) 0%, var(--night) 70%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(200, 213, 59, 0.1), rgba(200, 213, 59, 0) 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1100px;
  flex-direction: column;
  align-items: center;
  padding: 120px 24px 72px;
  text-align: center;
}

.u-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  border: 1px solid rgba(244, 241, 232, 0.18);
  border-radius: 999px;
  color: rgba(244, 241, 232, 0.82);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  padding: 0.55rem 1rem;
  text-transform: uppercase;
}

.u-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: live-pulse 1.4s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.u-orb {
  position: relative;
  width: min(560px, 86vw);
  aspect-ratio: 1;
  margin: -10px 0 -40px;
  animation: orb-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.u-orb-still {
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fbe7c2 0%, #f2b68c 30%, #c9658f 62%, var(--plum-soft) 100%);
  box-shadow: 0 0 120px rgba(242, 182, 140, 0.45);
  transition: opacity 0.6s ease;
}

.u-orb canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes orb-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

.u-line {
  max-width: 900px;
  min-height: 2.3em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.125rem, 4.4vw, 3.875rem);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.u-line .word {
  color: rgba(244, 241, 232, 0.2);
  transition: color 0.25s ease;
}

.u-line .word.is-on {
  color: var(--cream);
}

.u-hint {
  min-height: 1.4rem;
  margin: 0.875rem 0 0;
  color: rgba(244, 241, 232, 0.66);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

.hero-note {
  margin: 1.125rem 0 0;
  color: rgba(244, 241, 232, 0.7);
  font-size: 0.875rem;
}

.rise {
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rise-1 { animation-delay: 0.06s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.18s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* sections */
.light {
  background: var(--cream);
  color: var(--plum);
}

.on-dark {
  background: radial-gradient(ellipse 70% 40% at 50% 0%, var(--plum-mid) 0%, var(--night) 70%);
  color: var(--cream);
}

.lime-band {
  background: var(--lime);
  color: var(--plum);
}

.on-dark .display em {
  color: var(--lime);
}

.section {
  padding: clamp(96px, 12vw, 160px) var(--page);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.light .eyebrow {
  color: var(--plum-soft);
}

.on-dark .eyebrow {
  color: var(--lime);
}

/* see everything, carry less */
.statement {
  text-align: center;
}

.statement .display {
  font-size: clamp(3.75rem, 9vw, 9rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.statement .display span {
  display: block;
}

.statement .lead {
  max-width: 40rem;
  margin: 3rem auto 0;
  font-size: 1.3125rem;
}

/* the Monday morning card (from the earlier homepage) */
.morning {
  width: 100%;
  max-width: 34rem;
  margin: 4.5rem auto 0;
  text-align: left;
}

.morning-card {
  border-radius: 28px;
  background: var(--white);
  color: var(--plum);
  box-shadow: 0 30px 60px rgba(55, 21, 46, 0.14);
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 1.4rem;
}

.morning-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 0.9rem;
  color: var(--muted-light);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.morning-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.morning-live i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--olive);
  animation: live-pulse 1.4s ease-in-out infinite;
}

.morning-part {
  border-bottom: 1px solid var(--line-light);
  padding-block: 1rem;
}

.morning-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  color: var(--plum-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.morning-label::before {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  content: "";
}

.morning-label span {
  margin-left: auto;
  color: var(--muted-light);
  font-weight: 560;
  letter-spacing: 0.02em;
  text-transform: none;
}

.morning-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.morning-stats li {
  display: grid;
  gap: 0.15rem;
  padding-right: 0.75rem;
}

.morning-stats li + li {
  border-left: 1px solid var(--line-light);
  padding-left: 1rem;
}

.morning-stats strong {
  font-size: 1.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.morning-stats span {
  color: var(--muted-light);
  font-size: 0.8rem;
}

.morning-stats-you strong,
.morning-stats-you span {
  color: var(--plum-soft);
}

.morning-stats-you span {
  font-weight: 650;
}

.morning-done {
  margin: 0;
  padding: 0;
  list-style: none;
}

.morning-done li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding-block: 0.42rem;
}

.morning-done li::before {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2337152e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
  content: "";
}

.morning-done b {
  font-size: 0.95rem;
  font-weight: 600;
}

.morning-done li > span {
  color: var(--muted-light);
  font-size: 0.8rem;
  text-align: right;
}

.morning-plan {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.morning-plan li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  align-items: baseline;
  border-radius: 12px;
  padding: 0.45rem 0.6rem 0.45rem 0;
  font-size: 0.95rem;
}

.morning-plan time {
  color: var(--muted-light);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.morning-plan .morning-new {
  grid-template-columns: 2.6rem minmax(0, 1fr);
  background: rgba(200, 213, 59, 0.28);
  padding-left: 0.75rem;
  font-weight: 600;
}

.morning-new em {
  grid-column: 2;
  color: var(--olive);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.morning-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.morning-foot > span,
.morning-foot strong {
  color: var(--muted-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.morning-foot [data-morning-count] {
  margin-right: 0.2rem;
  color: var(--plum);
  font-size: 2.4rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.morning figcaption {
  margin-top: 0.8rem;
  color: var(--muted-light);
  font-size: 0.8rem;
  text-align: center;
}

.morning[data-play] .morning-done li:not(.is-done) b {
  color: var(--muted-light);
  font-weight: 500;
}

.morning[data-play] .morning-done li:not(.is-done)::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-light);
}

.morning[data-play] .morning-done li.is-done::before {
  animation: morning-tick 420ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes morning-tick {
  from { transform: scale(0.4); }
  to { transform: scale(1); }
}

/* your upside: the two parts and the calculator (from the earlier homepage) */
.upside-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.upside-parts {
  margin: 2.5rem 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.upside-parts li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  border-bottom: 1px solid var(--line-dark);
  padding-block: 1.25rem;
}

.upside-parts span {
  color: var(--lime);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.1;
}

.upside-parts h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.05;
}

.upside-parts p {
  max-width: 32rem;
  margin: 0.4rem 0 0;
  color: var(--muted-dark);
}

.upside-calc {
  margin: 0;
  border-radius: 28px;
  background: var(--cream);
  color: var(--plum);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.calc-title {
  margin: 0;
  color: var(--plum-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.calc-field {
  margin-top: 1.35rem;
}

.calc-field label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.calc-stepper {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: var(--white);
}

.calc-stepper button {
  width: 2.875rem;
  min-height: 2.875rem;
  border: 0;
  background: transparent;
  color: var(--plum);
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

.calc-stepper button:hover {
  background: rgba(200, 213, 59, 0.3);
}

.calc-stepper input {
  width: 3.5rem;
  border: 0;
  border-inline: 1px solid var(--line-light);
  background: transparent;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 1.6rem;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.calc-stepper input::-webkit-outer-spin-button,
.calc-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.calc-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem;
  gap: 1.1rem;
  align-items: center;
}

.calc-range output {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.calc-range input[type="range"] {
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.calc-range input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--plum-soft) var(--fill, 40%), rgba(55, 21, 46, 0.14) var(--fill, 40%));
}

.calc-range input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(55, 21, 46, 0.14);
}

.calc-range input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--plum-soft);
}

.calc-range input[type="range"]::-webkit-slider-thumb {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: calc(-0.75rem + 3px);
  border: 3px solid var(--plum);
  border-radius: 50%;
  background: var(--lime);
  -webkit-appearance: none;
}

.calc-range input[type="range"]::-moz-range-thumb {
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid var(--plum);
  border-radius: 50%;
  background: var(--lime);
}

.calc-result {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line-light);
  padding-top: 1.2rem;
}

.calc-label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.calc-big {
  display: inline-block;
  margin: 0.35rem 0 0;
  background: linear-gradient(transparent 62%, var(--lime) 62%);
  font-family: var(--serif);
  font-size: clamp(3.25rem, 5vw, 4.6rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 0 0.06em;
}

.calc-working {
  margin: 0.55rem 0 0;
  color: var(--muted-light);
  font-size: 0.875rem;
}

.calc-plus {
  margin: 1.2rem 0 1.4rem;
  font-size: 0.975rem;
}

.calc-button {
  width: 100%;
  padding: 1rem 1.5rem;
}

/* we start with one job */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.stage-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(55, 21, 46, 0.14);
  padding: 2.25rem;
}

.stage-card p:first-child {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  opacity: 0.75;
  text-transform: uppercase;
}

.stage-card h3 {
  margin: auto 0 0;
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
}

.stage-card p:last-child {
  margin: 0.875rem 0 0;
  font-size: 1.0625rem;
}

.stage-white { background: var(--white); color: var(--plum); }
.stage-lime { background: var(--lime); color: var(--plum); }
.stage-plum { background: var(--plum); color: var(--cream); }

/* your first job */
.first-job .eyebrow {
  margin-bottom: 3rem;
}

.first-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.first-grid .big {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5rem, 9vw, 8.75rem);
  line-height: 0.9;
}

.first-grid .big.is-italic {
  font-style: italic;
}

.first-grid h3 {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  font-weight: 650;
}

.first-grid p:last-child {
  margin: 0.5rem 0 0;
  font-size: 1.0625rem;
}

/* results: cards that turn over */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.25rem;
}

.flip {
  position: relative;
}

.flip-face {
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  padding: 1.875rem;
}

.flip-front {
  min-height: 400px;
  border: 1px solid rgba(244, 241, 232, 0.2);
  background: linear-gradient(160deg, rgba(244, 241, 232, 0.14), rgba(244, 241, 232, 0.04));
}

.flip-kicker {
  margin: 0;
  color: rgba(244, 241, 232, 0.7);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

/* each client's logo in its own colours, on a white tile like the logo rows */
.flip-logo {
  display: flex;
  width: 220px;
  height: 96px;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 0;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.flip-logo img {
  display: block;
  width: 168px;
  height: 60px;
  object-fit: contain;
}

.flip-says {
  margin: auto 0 0;
  color: var(--lime);
  font-family: var(--serif);
  font-size: 1.625rem;
  font-style: italic;
  line-height: 1.15;
}

.flip-result {
  margin: 0.875rem 0 0;
  color: var(--cream);
  font-size: 0.9375rem;
  font-weight: 650;
}

.flip-toggle {
  align-self: flex-start;
  min-height: 44px;
  margin-top: 0.75rem;
  border: 1px solid rgba(244, 241, 232, 0.28);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 1rem;
  cursor: pointer;
}

.flip-toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.flip-back {
  display: none;
  gap: 0.75rem;
  margin-top: 0.75rem;
  background: var(--cream);
  color: var(--plum);
  padding: 1.625rem;
}

.flip.is-open .flip-back {
  display: flex;
}

.flip-back p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.flip-back p span {
  display: block;
  color: var(--plum-soft);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flip-back .flip-toggle {
  border-color: var(--line-light);
  color: var(--plum);
  margin-top: auto;
}

.flip-back a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  align-self: flex-start;
  color: var(--plum);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
}

/* on a pointer screen, the card turns over in place instead of opening below */
@media (hover: hover) and (min-width: 40rem) {
  .flip {
    height: 400px;
    perspective: 1200px;
  }

  .flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .flip:hover .flip-inner,
  .flip.is-open .flip-inner {
    transform: rotateY(180deg);
  }

  .flip-face {
    position: absolute;
    inset: 0;
    margin: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .flip-back,
  .flip.is-open .flip-back {
    display: flex;
    flex-direction: column;
    transform: rotateY(180deg);
  }

  .flip-front {
    min-height: 0;
  }
}

/* claims you can check, and the logos */
.claims {
  padding-bottom: 2.5rem;
  overflow: hidden;
}

.claim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.claim {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  border-radius: 24px;
  background: var(--white);
  color: var(--plum);
  padding: 1.875rem;
  text-decoration: none;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.6s ease;
}

.claim:hover {
  color: var(--plum);
  transform: translateY(-6px);
  box-shadow: 0 30px 50px rgba(55, 21, 46, 0.16);
}

.claim span:first-child {
  color: var(--plum-soft);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.claim span:nth-child(2) {
  font-family: var(--serif);
  font-size: 2.125rem;
  line-height: 1.05;
}

.claim span:last-child {
  font-size: 0.9375rem;
}

.logos-label {
  margin: 6rem 0 1.5rem;
}

.logo-rows {
  display: grid;
  gap: 1rem;
  /* full bleed: from the left edge of the screen to the right, at every width */
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  padding-block: 0.5rem;
}

.logo-row {
  display: flex;
  width: max-content;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 70s linear infinite;
}

.logo-row.is-reverse {
  animation-name: marquee-back;
}

.logo-rows:hover .logo-row {
  animation-play-state: paused;
}

.logo-row li {
  display: flex;
  width: 190px;
  height: 96px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(55, 21, 46, 0.06);
}

.logo-row img {
  width: 140px;
  height: 52px;
  filter: grayscale(1);
  object-fit: contain;
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}

.logo-row li.is-light {
  background: var(--plum);
}

.logo-row li.is-light img {
  opacity: 0.9;
}

.logo-row li:hover img {
  filter: none;
  opacity: 1;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes marquee-back {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* fifteen minutes with Upside */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.step {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  border-radius: 28px;
  padding: 2rem;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.step:hover {
  transform: translateY(-6px);
}

.step-no {
  margin: 0;
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 0.8;
}

.step h3 {
  margin: auto 0 0;
  font-family: var(--serif);
  font-size: 2.375rem;
  font-weight: 400;
  line-height: 1;
}

.step p:last-child {
  margin: 0.75rem 0 0;
  font-size: 1rem;
}

.step-1 { background: var(--plum); color: var(--cream); }
.step-1 .step-no, .step-4 .step-no { color: var(--lime); }
.step-2 { background: var(--lime); color: var(--plum); }
.step-3 { background: var(--white); color: var(--plum); }
.step-3 .step-no { color: var(--plum-soft); }
.step-4 { background: var(--plum-soft); color: var(--cream); }
.step-1 p:last-child, .step-4 p:last-child { color: rgba(244, 241, 232, 0.88); }

/* leaders (from the earlier homepage) */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.leader {
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 24px;
  background: rgba(244, 241, 232, 0.06);
}

.leader-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  filter: grayscale(1);
  object-fit: cover;
}

.leader-copy {
  padding: 1.25rem 1.375rem 1.5rem;
}

.leader-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.05;
}

.leader-copy p {
  margin: 0.5rem 0 0;
  color: var(--lime);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.leaders .text-link {
  margin-top: 1.75rem;
}

/* questions (from the earlier homepage) */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 56rem;
}

.faq-item {
  border-radius: 20px;
  background: var(--white);
  color: var(--plum);
}

.faq-item summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--plum);
  content: "+";
  font-size: 1.25rem;
  line-height: 2rem;
  text-align: center;
}

.faq-item[open] summary::after {
  background: var(--lime);
  content: "\2212";
}

.faq-item p {
  max-width: 44rem;
  margin: 0;
  padding: 0 1.5rem 1.4rem;
}

.faq-item a {
  color: var(--plum);
  font-weight: 650;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
}

/* talk to Upside */
.closing {
  padding-block: clamp(120px, 14vw, 180px);
  text-align: center;
}

.closing .display {
  max-width: 1000px;
  margin-inline: auto;
  font-size: clamp(3.5rem, 9vw, 9.25rem);
  letter-spacing: -0.025em;
  line-height: 0.94;
}

.closing .lead {
  max-width: 34rem;
  margin: 2rem auto 0;
  font-size: 1.25rem;
}

.closing .btn {
  margin-top: 2.75rem;
  padding: 1.35rem 2.5rem;
  font-size: 1.25rem;
}

.closing-note {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
}

.closing-note a {
  color: var(--plum);
  font-weight: 650;
}

/* footer */
.site-footer {
  background: var(--night);
  color: var(--muted-dark);
  font-size: 0.875rem;
}

.footer-inner {
  display: grid;
  max-width: 1240px;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
}

.footer-brand img {
  display: block;
  width: auto;
  height: 30px;
}

.footer-statement {
  margin: 1rem 0 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.footer-meta {
  margin: 0.75rem 0 0;
}

.footer-group p {
  margin: 0 0 0.5rem;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-group a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--muted-dark);
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--lime);
}

/* motion that follows the scroll, where the browser supports it */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .prog {
      animation: prog linear both;
      animation-timeline: scroll(root);
    }

    /* The hero stays sharp until you've scrolled half a screen (Peter Z, 26 Oct: the buttons blurred on the
       first touch of the scroll), then fades as it leaves, with only a light blur at the very end. */
    .hero-out {
      animation: hero-out linear both;
      animation-timeline: scroll(root);
      animation-range: 50vh 100vh;
    }

    /* Content is never hidden while it scrolls in (Peter Z, 26 Oct: sections looked as if they were
       still loading): it rises a little as it enters, at full opacity, and is settled well before mid-screen.
       The headings are not clipped, so the descenders on g and y always show. */
    .rv,
    .mask,
    .tilt-up {
      animation: rv linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    @keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @keyframes hero-out { 0% { opacity: 1; transform: none; filter: none; } 70% { filter: none; } 100% { opacity: 0; transform: scale(0.96) translateY(-40px); filter: blur(3px); } }
    @keyframes rv { from { transform: translateY(24px); } to { transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .logo-row {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo-row li[aria-hidden="true"] {
    display: none;
  }
}

/* tablets */
@media (max-width: 70rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leader-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 58rem) {
  .upside-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .upside-calc {
    max-width: 34rem;
  }

  .cards-3,
  .first-grid,
  .claim-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage-card {
    min-height: 0;
  }

  .stage-card h3 {
    margin-top: 3rem;
  }
}

/* phones */
@media (max-width: 40rem) {
  :root {
    --header-h: 69px;
  }

  .brand img {
    height: 28px;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding: 104px 20px 64px;
  }

  .u-orb {
    width: min(360px, 80vw);
    margin: 0 0 -1rem;
  }

  .btn-lg {
    width: 100%;
  }

  .statement .lead {
    font-size: 1.125rem;
  }

  .morning-stats strong {
    font-size: 1.5rem;
  }

  .morning-label span {
    display: none;
  }

  .steps,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .leader-grid {
    gap: 0.75rem;
  }

  .leader-copy {
    padding: 0.875rem 0.875rem 1rem;
  }

  .leader-copy h3 {
    font-size: 1.3rem;
  }

  .leader-copy p {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .u-pill {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding-inline: 0.875rem;
  }

  .step {
    min-height: 0;
  }

  .step h3 {
    margin-top: 2rem;
  }

  .faq-item summary {
    font-size: 1.0625rem;
  }
}
