/* Track styles (version 5).
   Reference: AIHI SaaS landing page and client portal (Behance 257242113), picked by Martins.
   Soft off-white page, white rounded cards, black pill buttons, a dark numbered band.
   AIHI's teal accent is replaced by withSprint orange. Type: Aeonik, with Inter filling
   the characters the Aeonik trial cut leaves out. Mobile first: base styles are phones. */

:root {
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --sunk: #F1F1EE;
  --ink: #0F0F0F;
  --ink-2: #3A3A38;
  --ink-soft: #6E6E6A;
  --line: #E8E8E4;
  --dark: #141414;
  --dark-2: #222222;
  --orange: #F26F25;
  --orange-ink: #B9500F;
  --orange-tint: #FDEDE2;
  --green: #1E7F48;
  --green-tint: #E6F4EC;
  --red: #C53030;
  --red-tint: #FBE8E8;

  --font: "Aeonik", "Inter", system-ui, sans-serif;
  --r-card: 20px;
  --r-inner: 14px;
  --r-control: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 8px 24px rgba(15, 15, 15, 0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font); margin: 0; font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
small { font-size: 13px; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.late { color: var(--red); }
.error { color: var(--red); font-size: 14px; }
.error:empty { display: none; }
.loading { padding: 32px 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- Shared pieces ---------- */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font: 700 22px/1 var(--font);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
  align-items: center;
}
.wordmark small { font: 400 12px var(--font); letter-spacing: 0; color: var(--ink-soft); }
.wordmark.small { font-size: 18px; min-height: 0; }
.l-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.l-brand img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.l-brand span { font: 400 22px var(--font); letter-spacing: -0.03em; color: var(--ink-2); }
/* The trial cut stops at Bold, so a hairline stroke takes Track to an extrabold weight. */
.l-brand strong { font: 700 22px var(--font); letter-spacing: -0.03em; color: var(--ink); -webkit-text-stroke: 0.6px var(--ink); }
.pm-mark { width: 30px; height: 30px; border-radius: 50%; display: block; }

.pill, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 400 15px var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.pill:active, .button:active:not(:disabled) { transform: scale(0.97); }
.pill.dark, .button.primary { background: var(--ink); color: #FFFFFF; }
.pill.light, .button.secondary { background: var(--sunk); color: var(--ink); }
.pill.big { min-height: 52px; padding: 0 28px; font-size: 16px; }
.pill.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.button:disabled { opacity: 0.35; cursor: default; }
.link { background: none; border: 0; padding: 0; min-height: 44px; font: 400 15px var(--font); color: var(--ink); cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .pill.dark:hover, .button.primary:hover:not(:disabled) { background: #2A2A2A; }
  .pill.light:hover, .button.secondary:hover:not(:disabled) { background: var(--line); }
}

.badge {
  display: inline-flex;
  align-items: center;
  font: 400 12px var(--font);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--sunk);
  color: var(--ink-2);
}
.badge.done, .badge.ok { background: var(--green-tint); color: var(--green); }
.badge.wait { background: var(--orange-tint); color: var(--orange-ink); }
.badge.late { background: var(--red-tint); color: var(--red); }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font: 700 14px var(--font);
  flex: none;
}
.avatar.square { border-radius: 12px; background: var(--orange-tint); color: var(--orange-ink); width: 40px; height: 40px; }

/* ---------- Landing ---------- */

.landing { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.l-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.l-links { display: none; }

.l-hero { text-align: center; display: grid; justify-items: center; gap: 22px; padding: 40px 0 0; }
.l-hero h1 {
  font-size: 42px;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}
.l-hero > p { font-size: 18px; color: var(--ink-soft); max-width: 44ch; text-wrap: pretty; }
.l-ctas { display: grid; gap: 10px; width: 100%; max-width: 360px; }
.l-ctas .pill { width: 100%; }

/* Rotating phrase: every phrase sits in one grid cell so the line never jumps. */
/* The rotating phrase gets its own line, so its width never pushes the words apart. */
.rotator {
  display: grid;
  justify-items: center;
  vertical-align: bottom;
  overflow: hidden;
  padding-bottom: 0.1em;
}
.rotator > span {
  grid-area: 1 / 1;
  width: max-content;
  color: var(--orange);
  opacity: 0;
  transform: translateY(100%);
  transition: transform 600ms var(--ease-out), opacity 600ms var(--ease-out);
}
.rotator > span.on { opacity: 1; transform: none; }
.rotator > span.off { opacity: 0; transform: translateY(-100%); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.enter { animation: rise 700ms var(--ease-out) both; }
.l-hero > p.enter { animation-delay: 100ms; }
.l-ctas.enter { animation-delay: 180ms; }
.browser.enter { animation: rise 900ms var(--ease-out) 260ms both; }

/* The client portal shown inside a browser window. */
.browser {
  position: relative;
  width: 100%;
  margin: 24px 0 0;
  padding: 10px;
  border-radius: 22px;
  background: #ECECE9;
  border: 1px solid var(--line);
  text-align: left;
}
.browser-dots { display: flex; gap: 7px; padding: 4px 6px 12px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #E5675F; }
.browser-dots i:nth-child(2) { background: #EDB641; }
.browser-dots i:nth-child(3) { background: #5DBB6E; }
.portal { background: var(--bg); border-radius: 16px; padding: 12px; display: grid; gap: 12px; }
.pm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 10px 8px 18px;
}
.pm-tabs { display: none; }
.pm-tabs span { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.pm-tabs span.on { background: var(--ink); color: #FFFFFF; }
.pm-user { display: flex; align-items: center; gap: 10px; }
.pm-user strong { display: block; font: 400 14px var(--font); }
.pm-user small { font-size: 12px; }
.pm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-stat {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-inner);
  padding: 14px;
  display: grid;
  gap: 4px;
}
.pm-stat > span { font-size: 13px; color: var(--ink-2); }
.pm-stat strong { font: 400 26px/1.1 var(--font); letter-spacing: -0.02em; }
.pm-stat small { font-size: 12px; }
.pm-stat i {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--orange);
  background: var(--orange-tint);
}
.pm-section { background: var(--surface); border-radius: var(--r-inner); padding: 14px; }
.pm-section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
.pm-section-head strong { font: 400 17px var(--font); }
.pm-viewall { margin-left: auto; font-size: 13px; color: var(--ink-soft); }
.pm-steps { display: grid; gap: 10px; }
.pm-step {
  border-radius: var(--r-inner);
  background: var(--sunk);
  padding: 6px;
  transition: box-shadow 400ms ease;
}
.pm-step-top, .pm-step dl {
  background: var(--surface);
  border: 1px solid var(--line);
}
.pm-step-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 10px 10px 0 0;
  border-bottom: 0;
}
.pm-step-top strong { font: 400 14px/1.35 var(--font); }
.pm-step dl { margin: 0; padding: 4px 12px 10px; border-top: 0; border-radius: 0 0 10px 10px; }
.pm-step dl div { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.pm-step dt { color: var(--ink-soft); }
.pm-step dd { margin: 0; }
.pm-step-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 4px; font-size: 12px; color: var(--ink-soft); }
.pm-open { background: var(--ink); color: #FFFFFF; padding: 5px 12px; border-radius: 999px; font-size: 12px; }
.pm-step.just { box-shadow: 0 0 0 2px var(--orange); }

.toast {
  position: absolute;
  top: 64px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 40px);
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(15, 15, 15, 0.22);
  opacity: 0;
  pointer-events: none;
}
.toast i { color: var(--orange); }
.toast span { color: rgba(255, 255, 255, 0.65); white-space: nowrap; }
.toast strong { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast.show { animation: toast 2800ms var(--ease-out) both; }
@keyframes toast {
  0% { opacity: 0; transform: translateY(-8px) scale(0.97); }
  12%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* Updates carousel, where AIHI has its logo strip. */
.l-updates { padding: 48px 0 16px; text-align: center; }
.l-updates > p { font-size: 17px; color: var(--ink-soft); margin-bottom: 20px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: slide 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - 6px)); } }
.update {
  width: 260px;
  flex: none;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
}
.update strong { font: 400 15px/1.3 var(--font); }
.update time { font-size: 13px; color: var(--ink-soft); }
.update-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.update.live .update-kind, .update.wait .update-kind { color: var(--orange-ink); }
.update.work .update-kind { color: var(--ink-2); }
.update.done .update-kind { color: var(--green); }

/* Dark journey band. */
.l-journey {
  margin: 56px calc(50% - 50vw) 0;
  padding: 64px 16px;
  background: var(--dark);
  color: #FFFFFF;
}
.l-journey-head { display: grid; gap: 16px; max-width: 1240px; margin: 0 auto 32px; }
.l-journey-head h2 { font-size: 32px; line-height: 1.12; max-width: 18ch; }
.l-journey-head p { color: rgba(255, 255, 255, 0.62); max-width: 40ch; }
.journey { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 1240px; }
.journey li {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 16px;
  background: var(--dark-2);
  transition: background-color 200ms ease;
}
.j-num { font-size: 15px; color: var(--orange); }
.journey strong { font: 400 19px/1.3 var(--font); }
.journey p { color: rgba(255, 255, 255, 0.62); }
@media (hover: hover) and (pointer: fine) {
  .journey li:hover { background: #2B2B2B; }
}

/* What's inside: icon + headline, four-up row, bento. */
.l-inside { padding: 72px 0 24px; }
.l-title { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-bottom: 36px; }
.l-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: var(--surface);
}
.l-title h2 { font-size: 32px; line-height: 1.1; max-width: 16ch; }
.l-title p { color: var(--ink-soft); margin-top: 10px; max-width: 46ch; }
.four {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.four > div { display: grid; gap: 6px; align-content: start; }
.four i { font-size: 18px; color: var(--orange); margin-bottom: 4px; }
.four strong { font: 400 18px var(--font); }
.four p { font-size: 14px; color: var(--ink-soft); }

.bento { display: grid; gap: 14px; margin-top: 14px; }
.b-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: hidden;
}
.b-card h3 { font-size: 20px; line-height: 1.25; }
.b-card > p, .b-copy p { color: var(--ink-soft); font-size: 15px; }
.b-copy { display: grid; gap: 12px; justify-items: start; }
.b-visual { margin-top: 8px; }
.mini-list, .need, .locked { display: grid; gap: 8px; margin-top: 4px; }
.mini-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sunk);
  font-size: 14px;
}
.mini-row em { font-style: normal; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.mini-row.done i, .mini-row.done em { color: var(--green); }
.mini-row.wait em { color: var(--orange-ink); background: var(--orange-tint); }
.mini-row.late { box-shadow: inset 3px 0 0 var(--red); }
.mini-row.late em { color: var(--red); background: var(--red-tint); }
.need div, .locked div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sunk);
  font-size: 14px;
}
.need strong, .locked strong { font-weight: 400; }
.locked div { justify-content: flex-start; color: var(--ink-2); }
.locked i { font-size: 12px; color: var(--ink-soft); }
.locked span { margin-left: auto; font-size: 12px; color: var(--ink-soft); }

/* FAQ, two columns on desktop like AIHI. */
.l-faq { padding: 72px 0 24px; display: grid; gap: 24px; }
.l-faq h2 { font-size: 34px; line-height: 1.1; max-width: 10ch; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 18px;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-size: 14px; transition: transform 200ms var(--ease-out); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }

/* Closing card with soft orange orbs, where AIHI has its gradient spheres. */
.l-close {
  margin: 56px 0 0;
  padding: 48px 20px;
  border-radius: 24px;
  background: #EFEDE8;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.l-close h2 { font-size: 34px; line-height: 1.1; max-width: 14ch; }
.l-close > p { color: var(--ink-soft); }
.orbs { display: flex; justify-content: center; margin: 18px 0 22px; }
.orbs span {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 -14px;
  background: radial-gradient(circle at 30% 30%, #FFE3CF, #F7A26A 45%, #F26F25 75%, #C9520F);
  box-shadow: inset -10px -14px 30px rgba(120, 40, 0, 0.25);
  animation: drift 7s ease-in-out infinite;
}
.orbs span:nth-child(2) {
  width: 140px;
  height: 140px;
  z-index: 1;
  background: radial-gradient(circle at 35% 30%, #FFF4EA, #FBC9A3 40%, #F58A48 70%, #E0601A);
  animation-delay: -2.3s;
}
.orbs span:nth-child(3) { background: radial-gradient(circle at 30% 30%, #FFF1E6, #F9B88E 45%, #EF7A3A 80%); animation-delay: -4.6s; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.l-foot { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 32px; color: var(--ink-soft); font-size: 14px; }

/* ---------- Signed-in app ---------- */

#topbar { position: sticky; top: 0; z-index: 10; padding: 12px 16px 0; }
body.signed-out #topbar { display: none; position: static; padding: 0; }

/* Navigation: the withSprint mark, one menu button that names the page you're on,
   the main action and your initial. Pages and account live in drop-down panels. */
.app-nav {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; }
.brand-mark img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--sunk);
  color: var(--ink);
  font: 400 15px var(--font);
  cursor: pointer;
  min-width: 0;
}
.menu-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn .chev { font-size: 11px; color: var(--ink-soft); transition: transform 200ms var(--ease-out); }
.menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-title { font: 400 16px var(--font); padding: 0 8px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-new { padding: 0 16px; }
.nav-new span { display: none; }
.avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; }
.avatar-btn .avatar { width: 40px; height: 40px; font-size: 15px; transition: box-shadow 160ms ease; }
.avatar-btn[aria-expanded="true"] .avatar { box-shadow: 0 0 0 3px var(--orange-tint), 0 0 0 4px var(--orange); }
@media (hover: hover) and (pointer: fine) {
  .menu-btn:hover { background: var(--line); }
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(15, 15, 15, 0.14);
  padding: 10px;
  display: grid;
  gap: 6px;
  transform-origin: top center;
  animation: menu-in 180ms var(--ease-out);
}
.nav-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.menu-group { display: grid; gap: 2px; align-content: start; }
.menu-group > p { font-size: 12px; color: var(--ink-soft); padding: 8px 12px 4px; }
.menu-group a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.menu-group a i {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--sunk);
  color: var(--ink-2);
  font-size: 14px;
}
.menu-group a strong { display: block; font-weight: 400; }
.menu-group a small { font-size: 13px; }
.menu-group a.on { background: var(--sunk); }
.menu-group a.on i { background: var(--ink); color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
  .menu-group a:hover { background: var(--sunk); }
}
.nav-menu.account { left: auto; width: min(320px, 100%); padding: 16px; gap: 14px; }
.acct { display: flex; gap: 12px; align-items: center; min-width: 0; }
.acct > span:last-child { display: grid; min-width: 0; }
.acct strong { font-weight: 400; }
.acct small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-menu.account .pill { width: 100%; }

main { max-width: 1240px; margin: 0 auto; padding: 24px 16px 64px; }
body.signed-out main { max-width: none; padding: 0; }

.page-title { display: grid; gap: 8px; margin: 8px 0 24px; }
.page-title h1 { font-size: 34px; line-height: 1.1; }
.page-title p { color: var(--ink-soft); font-size: 16px; max-width: 60ch; }
.page-title p strong { color: var(--ink); font-weight: 400; }
.page-title p strong.late { color: var(--red); }
.page-title.with-action { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-title.with-action > div { display: grid; gap: 8px; }
.back { font-size: 14px; color: var(--ink-soft); text-decoration: none; }

.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 18px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow);
}
.stat-card span { font-size: 14px; color: var(--ink-2); padding-right: 40px; }
.stat-card strong { font: 400 32px/1.1 var(--font); letter-spacing: -0.02em; }
.stat-card small { font-size: 13px; }
.stat-card i {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: var(--orange-tint);
}
.stat-card.is-late strong, .stat-card.is-late i { color: var(--red); }
.stat-card.is-late i { background: var(--red-tint); }

.overview-grid { display: grid; gap: 16px; }
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 19px; }
.text-link { font-size: 14px; color: var(--ink); text-decoration: none; }

.client-rows { display: grid; gap: 8px; }
.client-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 12px;
  border-radius: var(--r-inner);
  background: var(--sunk);
  text-decoration: none;
  transition: background-color 160ms ease;
}
.client-name { display: grid; min-width: 0; }
.client-name strong { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-progress { grid-column: 2 / -1; display: grid; gap: 6px; }
.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; display: block; }
.progress span { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
  .client-row:hover { background: var(--line); }
}

.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.step-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-inner);
  background: var(--sunk);
}
.step-list a { display: grid; text-decoration: none; min-width: 0; }
.step-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-list .due { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.step-list .due.late { color: var(--red); }
.empty { display: grid; gap: 12px; justify-items: start; padding: 8px 0; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 760px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
input, textarea, select {
  font: 400 16px var(--font);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 160ms ease;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); }
.form button { justify-self: start; }

/* Plan page */
.plan-head { display: grid; gap: 12px; margin-bottom: 16px; }
.plan-head h1 { font-size: 34px; line-height: 1.1; }
.plan-head .goal { color: var(--ink-soft); max-width: 60ch; }
.plan-head > .button { justify-self: start; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0; }
.figures div { background: var(--sunk); border-radius: var(--r-inner); padding: 14px; display: grid; gap: 2px; }
.figures dt { font-size: 13px; color: var(--ink-soft); }
.figures dd { margin: 0; font: 400 28px/1.1 var(--font); letter-spacing: -0.02em; }
.figures small { font-size: 14px; }
.answers summary { cursor: pointer; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.answers dl { display: grid; gap: 2px; margin: 8px 0 0; font-size: 14px; }
.answers dt { color: var(--ink-soft); }
.answers dd { margin: 0 0 10px; }

.milestones { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.milestone-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.milestone-head h2 { font-size: 21px; }
.status { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--sunk); color: var(--ink-soft); }
.status.open { background: var(--orange-tint); color: var(--orange-ink); }
.status.done { background: var(--green-tint); color: var(--green); }
.count { margin-left: auto; font-size: 13px; color: var(--ink-soft); }
.milestone.locked { display: flex; align-items: center; gap: 12px; padding: 16px 20px; box-shadow: none; background: transparent; border: 1px dashed #D6D5D0; }
.milestone.locked .milestone-head { flex: 1; }
.milestone.locked h2 { color: var(--ink-soft); }
.milestone.locked .actions { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

button.icon {
  width: 36px;
  height: 36px;
  padding: 0;
  flex: none;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: 15px var(--font);
  cursor: pointer;
}
button.icon:disabled { opacity: 0.35; cursor: default; }

.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.step {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-inner);
  background: var(--sunk);
}
.step input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); margin: 0; flex: none; }
.step .title { min-width: 0; flex: 1 1 calc(100% - 30px); }
.step input.title { border-color: transparent; background: transparent; padding: 8px 10px; }
.step input.title:focus { background: var(--surface); border-color: var(--ink); }
.step select { flex: 1 1 100px; width: auto; padding: 8px 10px; }
.step input[type="date"] { flex: 1 1 140px; width: auto; padding: 8px 10px; }
.step .tag { flex: 1 0 calc(100% - 130px); padding-left: 26px; }
.step.is-late { box-shadow: inset 3px 0 0 var(--red); }
.step.is-late input[type="date"] { color: var(--red); }
.tag { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.tag.shown { color: var(--green); }
.tag.client { color: var(--orange-ink); }
.step.read { flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px; }
.step.read .tick { flex: none; width: 18px; text-align: center; color: var(--ink-soft); }
.step.read.is-done .tick { color: var(--green); }
.step.read .title { flex: 1 1 calc(100% - 40px); }
.step.read .tag { flex: none; padding: 0; margin-left: 30px; }
.step.read .due { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.step.read.is-late .due { color: var(--red); }

/* Report */
.report { display: grid; gap: 10px; max-width: 820px; }
.report h2 { margin-top: 16px; font-size: 20px; }
.report ul { margin: 0; padding-left: 20px; }
.report .actions { margin: 0 0 12px; }

/* ---------- Wider screens ---------- */

@media (min-width: 768px) {
  .landing { padding: 0 32px; }
  .l-nav { padding: 20px 0; }
  .l-links { display: flex; gap: 28px; }
  .l-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
  .l-hero { padding: 72px 0 0; gap: 26px; }
  .l-hero h1 { font-size: 72px; max-width: 15ch; }
  .l-ctas { display: flex; width: auto; max-width: none; justify-content: center; }
  .l-ctas .pill { width: auto; }
  .browser { margin-top: 40px; padding: 14px; border-radius: 28px; }
  .portal { padding: 18px; gap: 16px; border-radius: 20px; }
  .pm-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sunk); }
  .pm-stats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .pm-stat { padding: 18px; }
  .pm-stat strong { font-size: 30px; }
  .pm-section { padding: 20px; }
  .pm-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .toast { top: 84px; right: 32px; }
  .update { width: 300px; }
  .l-journey { margin: 72px calc(50% - 50vw) 0; padding: 96px 32px; }
  .l-journey-head { grid-template-columns: 1fr minmax(0, 380px); align-items: start; margin-bottom: 48px; }
  .l-journey-head h2 { font-size: 46px; }
  .journey li { grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 30px; }
  .journey strong { font-size: 21px; }
  .l-inside { padding: 112px 0 32px; }
  .l-title { gap: 24px; margin-bottom: 48px; }
  .l-title h2 { font-size: 52px; }
  .four { grid-template-columns: repeat(4, 1fr); padding: 36px; gap: 24px; }
  .bento { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
  .b-wide { grid-column: 1 / -1; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 32px; padding: 40px; }
  .b-card { padding: 32px; }
  .b-card h3 { font-size: 22px; }
  .l-faq { grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 120px 0 32px; }
  .l-faq h2 { font-size: 56px; }
  .faq summary { font-size: 20px; }
  .l-close { margin-top: 80px; padding: 72px 32px; border-radius: 28px; }
  .l-close h2 { font-size: 56px; }
  .orbs span { width: 150px; height: 150px; margin: 0 -18px; }
  .orbs span:nth-child(2) { width: 190px; height: 190px; }

  #topbar { padding: 16px 32px 0; }
  .app-nav { padding: 6px 6px 6px 8px; gap: 10px; }
  .nav-new span { display: inline; }
  .nav-menu:not(.account) { right: auto; width: 560px; grid-template-columns: 1fr 1fr; align-items: start; padding: 12px; }
  main { padding: 32px 32px 80px; }
  .page-title h1 { font-size: 44px; }
  .stats-row { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .overview-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .overview-grid > .card:first-child { grid-row: span 2; }
  .card { padding: 24px; }
  .client-row { grid-template-columns: 40px minmax(0, 1fr) minmax(160px, 240px) auto; }
  .client-progress { grid-column: auto; }
  .plan-head h1 { font-size: 44px; }
  .answers dl { grid-template-columns: max-content 1fr; gap: 8px 24px; }
  .answers dd { margin: 0; }
  .step { flex-wrap: nowrap; }
  .step .title { flex: 1 1 auto; }
  .step select { flex: 0 0 110px; }
  .step input[type="date"] { flex: 0 0 160px; }
  .step .tag { flex: 0 0 56px; padding: 0; margin: 0 6px; }
  .step.read { flex-wrap: nowrap; }
  .step.read .title { flex: 1 1 auto; }
  .step.read .tag { margin: 0; }
}

@media (min-width: 1100px) {
  .l-hero h1 { font-size: 84px; }
}


/* ---------- Activity boards: outreach, partners, Upwork, content ---------- */

.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 82%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.col {
  scroll-snap-align: start;
  background: var(--sunk);
  border-radius: var(--r-card);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 160px;
}
.col.closed { background: #ECECE8; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; }
.col-head strong { font-weight: 400; }
.col-head span { font-size: 13px; color: var(--ink-soft); background: var(--surface); padding: 2px 9px; border-radius: 999px; }
.col-cards { display: grid; gap: 8px; }
.col-empty { font-size: 13px; color: var(--ink-soft); padding: 6px; }
.e-card {
  background: var(--surface);
  border-radius: var(--r-inner);
  padding: 14px;
  display: grid;
  gap: 4px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 160ms var(--ease-out);
}
.e-card:active { transform: scale(0.98); }
.e-card strong { font-weight: 400; line-height: 1.35; }
.e-card.is-late { box-shadow: inset 3px 0 0 var(--red), var(--shadow); }
.e-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.e-foot i { margin-right: 4px; }
.e-shift { display: flex; gap: 4px; }
.e-shift .icon { background: var(--sunk); width: 32px; height: 32px; }

/* Edit sheet */
.sheet {
  border: 0;
  padding: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 -12px 40px rgba(15, 15, 15, 0.18);
}
.sheet::backdrop { background: rgba(15, 15, 15, 0.35); }
.sheet .form { padding: 20px; max-width: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 22px; }
.sheet .icon { background: var(--sunk); }
.two { display: grid; gap: 18px; }

.trial-row { display: grid; gap: 8px; }
.trial-row .pill { justify-self: start; }

@media (min-width: 768px) {
  .board { grid-auto-columns: minmax(250px, 1fr); }
  .sheet { margin: auto; border-radius: 24px; }
  .two { grid-template-columns: 1fr 1fr; }
  .trial-row { grid-template-columns: 1fr auto; align-items: center; }
}

@media print {
  body { background: #FFFFFF; }
  #topbar, .no-print { display: none; }
  main { padding: 0; }
  .card { box-shadow: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; animation: none !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
