/* ==========================================================================
   Aavanu — launch site
   Tokens mirror src/theme/colors.ts and src/theme/tokens.ts one-for-one.
   Light only, like the app (`userInterfaceStyle: light`). The pastels carry
   the meaning here exactly as they do on a dense schedule screen.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Neutrals — palette.* ---------------------------------------------- */
  --white: #ffffff;
  --ink: #0f0f10;
  --ink-80: #3a3a3d;
  --ink-60: #6b6b70;
  --ink-40: #9a9aa0;
  --ink-20: #c9c9ce;

  --grey-bg: #f6f6f7;
  --grey-surface: #f1f1f3;
  --grey-border: #e8e8eb;
  --grey-border-strong: #dcdce0;

  --slate-900: #1b1b1e;
  --slate-700: #3d3d42;
  --slate-500: #5a5a61;

  /* Pastel card fills */
  --pink: #f9dedb;
  --pink-deep: #f3c9c4;
  --lavender: #dfddf8;
  --lavender-deep: #c9c6f2;
  --peach: #f0e1ce;
  --peach-deep: #e4cbac;
  --mint: #d6f0e0;
  --mint-deep: #b6e4c9;
  --sky: #d8e8f8;
  --sky-deep: #b7d5f1;
  --butter: #f7ebc8;
  --butter-deep: #eedca4;

  /* Washes — the same six tints at section scale, where a full-strength
     pastel would shout. Cards keep the real thing. */
  --wash-pink: #fdf4f2;
  --wash-lavender: #f5f4fd;
  --wash-peach: #fbf6f0;
  --wash-mint: #f1faf5;
  --wash-sky: #f2f8fd;
  --wash-butter: #fdf9ee;

  /* Semantic */
  --green: #1f7a45;
  --green-soft: #d3efde;
  --amber: #9a5f16;
  --amber-soft: #f6e3c8;
  --red: #c4362f;
  --red-soft: #f8dad7;
  --blue: #2f62e8;
  --blue-soft: #dce5fc;
  --violet: #5b4bd1;
  --violet-soft: #e3e0fa;

  /* Roles — colors.* --------------------------------------------------- */
  --bg: var(--white);
  --surface: var(--white);
  --surface-sunken: var(--grey-surface);
  --text: var(--ink);
  --text-2: var(--ink-60);
  --text-3: var(--ink-40);
  --border: var(--grey-border);
  --border-strong: var(--grey-border-strong);
  --primary: var(--ink);
  --primary-text: var(--white);

  /* Radii — radii.* ---------------------------------------------------- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-xxl: 30px;
  --r-pill: 999px;

  /* Spacing — 4pt scale, spacing.* ------------------------------------- */
  --s-xxs: 2px;
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 20px;
  --s-xxl: 24px;
  --s-xxxl: 32px;
  --s-huge: 40px;
  --s-giant: 56px;

  /* Motion — motion.* -------------------------------------------------- */
  --m-instant: 90ms;
  --m-fast: 160ms;
  --m-base: 240ms;
  --m-slow: 360ms;
  --m-lazy: 520ms;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.44, 1);

  /* Elevation — shadows.*.default -------------------------------------- */
  --sh-xs: 0 2px 6px rgba(15, 15, 16, 0.04);
  --sh-sm: 0 4px 12px rgba(15, 15, 16, 0.07);
  --sh-md: 0 8px 20px rgba(15, 15, 16, 0.1);
  --sh-lg: 0 14px 32px rgba(15, 15, 16, 0.16);

  /* Layout */
  --wrap: 1160px;
  --gutter: var(--s-xl);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --header-h: 66px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-lg));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip {
  position: absolute;
  left: var(--s-lg);
  top: -100px;
  z-index: 100;
  padding: var(--s-md) var(--s-xl);
  background: var(--primary);
  color: var(--primary-text);
  border-radius: var(--r-pill);
  transition: top var(--m-fast) var(--ease);
}
.skip:focus {
  top: var(--s-md);
}

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

/* --------------------------------------------------------------------------
   Type ramp — typography.* extended upward for the web
   -------------------------------------------------------------------------- */

.display {
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.028em;
}

.h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-2);
}

.body {
  color: var(--text-2);
}

.caption {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--text-3);
}

/* Eyebrow — a tinted pill rather than a line of grey capitals */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--mint);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--green);
  animation: pulse 2.4s var(--ease) infinite;
}

.eyebrow .i {
  width: 14px;
  height: 14px;
}

.eyebrow--pink { background: var(--pink); }
.eyebrow--pink::before { background: var(--red); }
.eyebrow--sky { background: var(--sky); }
.eyebrow--sky::before { background: var(--blue); }
.eyebrow--lav { background: var(--lavender); }
.eyebrow--lav::before { background: var(--violet); }
.eyebrow--butter { background: var(--butter); }
.eyebrow--butter::before { background: var(--amber); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(var(--s-giant), 9vw, 116px);
}

.section--tight {
  padding-block: clamp(var(--s-huge), 6vw, 72px);
}

.section--pink { background: var(--wash-pink); }
.section--sky { background: var(--wash-sky); }
.section--mint { background: var(--wash-mint); }
.section--lav { background: var(--wash-lavender); }
.section--butter { background: var(--wash-butter); }

.section__head {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-lg);
  margin-bottom: var(--s-huge);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Buttons — one Button, mirrored from src/components/Button.tsx
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  padding: 13px var(--s-xxl);
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--m-fast) var(--ease-spring),
    background-color var(--m-fast) var(--ease), box-shadow var(--m-fast) var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

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

.btn--primary:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--white);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.btn--ghost:hover {
  background: var(--surface-sunken);
}

.btn--lg {
  padding: 16px var(--s-xxxl);
  font-size: 1rem;
}

.btn--sm {
  padding: 9px var(--s-lg);
  font-size: 0.875rem;
}

.btn .i {
  width: 17px;
  height: 17px;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  border-bottom: 1.5px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color var(--m-fast) var(--ease), gap var(--m-fast) var(--ease);
}

.textlink:hover {
  border-color: var(--text);
  gap: 10px;
}

.textlink .i {
  width: 15px;
  height: 15px;
}

/* Icons ------------------------------------------------------------------- */

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tinted icon badge — the site's main unit of decoration */
.badge {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--grey-surface);
}

.badge--round { border-radius: var(--r-pill); }
.badge--lg { width: 56px; height: 56px; border-radius: var(--r-lg); }
.badge--lg .i { width: 24px; height: 24px; }
.badge--sm { width: 34px; height: 34px; border-radius: var(--r-sm); }
.badge--sm .i { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   Illustrations — ported from src/components/Illustration.tsx
   -------------------------------------------------------------------------- */

.illo {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Bits that drift. Delays are set per-element so nothing marches in step. */
.illo [data-float] {
  animation: float 5.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.illo [data-float="2"] { animation-duration: 6.4s; animation-delay: -1.6s; }
.illo [data-float="3"] { animation-duration: 7.1s; animation-delay: -3.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Ticks draw themselves once the card has entered */
.illo [data-draw] {
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
}

.is-in .illo [data-draw] {
  animation: draw var(--m-lazy) var(--ease) 260ms forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* Bars in the illustration grow from nothing */
.illo [data-grow] {
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: left center;
}

.is-in .illo [data-grow] {
  animation: growx var(--m-slow) var(--ease) forwards;
}

.is-in .illo [data-grow="2"] { animation-delay: 90ms; }
.is-in .illo [data-grow="3"] { animation-delay: 180ms; }

@keyframes growx {
  to { transform: scaleX(1); }
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.7) blur(14px);
  -webkit-backdrop-filter: saturate(1.7) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--m-fast) var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-xxl);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  margin-right: auto;
}

.brand__mark {
  width: 26px;
  height: 26px;
  transition: transform var(--m-base) var(--ease-spring);
}

.brand:hover .brand__mark {
  transform: translateY(-2px) rotate(-6deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
}

.nav a {
  padding: var(--s-sm) var(--s-md);
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--m-fast) var(--ease), background-color var(--m-fast) var(--ease);
}

.nav a:nth-child(1):hover { background: var(--pink); }
.nav a:nth-child(2):hover { background: var(--sky); }
.nav a:nth-child(3):hover { background: var(--mint); }
.nav a:nth-child(4):hover { background: var(--lavender); }
.nav a:nth-child(5):hover { background: var(--butter); }
.nav a:hover { color: var(--text); }

.header__cta {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}

.navtoggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-sm) var(--gutter) var(--s-xl);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--m-fast) var(--ease), transform var(--m-fast) var(--ease);
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding: var(--s-md) var(--s-lg);
    font-size: 1rem;
    color: var(--text);
    border-radius: var(--r-sm);
  }
  .navtoggle {
    display: inline-flex;
    order: 3;
  }
  .header__cta .btn {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(var(--s-xxxl), 5vw, 64px);
  padding-bottom: clamp(var(--s-giant), 8vw, 92px);
  overflow: hidden;
}

/* Drifting pastel blobs. The same six tints, at scale. */
.blobs {
  position: absolute;
  inset: -180px -12% auto -12%;
  height: 760px;
  pointer-events: none;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.72;
  animation: drift 18s ease-in-out infinite;
}

.blob:nth-child(1) { width: 460px; height: 460px; left: 2%;  top: 60px;  background: var(--lavender); }
.blob:nth-child(2) { width: 420px; height: 420px; left: 38%; top: 0;     background: var(--pink);     animation-duration: 22s; animation-delay: -6s; }
.blob:nth-child(3) { width: 480px; height: 480px; right: 6%; top: 40px;  background: var(--sky);      animation-duration: 26s; animation-delay: -12s; }
.blob:nth-child(4) { width: 320px; height: 320px; left: 24%; top: 320px; background: var(--butter);   animation-duration: 20s; animation-delay: -3s; }
.blob:nth-child(5) { width: 300px; height: 300px; right: 26%; top: 340px; background: var(--mint);    animation-duration: 24s; animation-delay: -9s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(28px, -22px) scale(1.06); }
  66%  { transform: translate(-22px, 18px) scale(0.96); }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(var(--s-xxxl), 5vw, 64px);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-xl);
  max-width: 600px;
}

.hero__copy .lede {
  max-width: 26em;
}

/* The headline's second line, tinted like a highlighter */
.mark {
  position: relative;
  white-space: nowrap;
}

.mark::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.06em;
  height: 0.34em;
  border-radius: var(--r-pill);
  background: var(--butter);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  animation: growx var(--m-lazy) var(--ease) 420ms forwards;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 8px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--sh-xs), inset 0 0 0 1px var(--border);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero__points .i {
  width: 15px;
  height: 15px;
  padding: 3px;
  box-sizing: content-box;
  border-radius: var(--r-pill);
  background: var(--mint);
  color: var(--green);
}

.hero__art {
  position: relative;
}

/* Floating badges pinned to the phone, borrowed from the app's own art */
.orbit {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 10px 14px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--sh-md);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 5.6s ease-in-out infinite;
}

.orbit--1 { top: 92px;  left: -46px; animation-delay: -1s; }
.orbit--2 { top: 348px; right: -54px; animation-duration: 6.8s; animation-delay: -3s; }
.orbit--3 { bottom: 96px; left: -38px; animation-duration: 6.2s; animation-delay: -4.4s; }

.orbit .badge { width: 28px; height: 28px; border-radius: var(--r-sm); }
.orbit .badge .i { width: 15px; height: 15px; }

@media (max-width: 1180px) {
  .orbit--1 { left: -18px; }
  .orbit--2 { right: -20px; }
  .orbit--3 { left: -14px; }
}

@media (max-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .hero__copy {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .hero__points {
    justify-content: center;
  }
  .orbit {
    display: none;
  }
}

/* Waitlist form ----------------------------------------------------------- */

.signup {
  width: 100%;
  max-width: 440px;
}

.signup__row {
  display: flex;
  gap: var(--s-sm);
  padding: 6px;
  background: var(--white);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm), inset 0 0 0 1px var(--border-strong);
  transition: box-shadow var(--m-fast) var(--ease);
}

.signup__row:focus-within {
  box-shadow: var(--sh-md), inset 0 0 0 2px var(--ink);
}

.signup input {
  flex: 1;
  min-width: 0;
  padding: 0 var(--s-lg);
  border: 0;
  background: none;
  color: var(--text);
  font-size: 0.9375rem;
}

.signup input::placeholder {
  color: var(--text-3);
}

.signup input:focus {
  outline: none;
}

.signup__note {
  display: block;
  margin-top: var(--s-sm);
  padding-inline: var(--s-lg);
  font-size: 0.8125rem;
  color: var(--text-3);
}

.signup__note[data-state="ok"] {
  color: var(--green);
}

.signup__note[data-state="error"] {
  color: var(--red);
}

@media (max-width: 420px) {
  .signup .btn {
    padding-inline: var(--s-lg);
    font-size: 0.875rem;
  }
  .signup input {
    padding-inline: var(--s-md);
  }
}

/* --------------------------------------------------------------------------
   Phone mockup
   The screen renders the real app's UI in HTML at a handset's true CSS pixel
   size, so the site and the product cannot drift apart visually.
   -------------------------------------------------------------------------- */

.phonewrap {
  --phone-scale: 1;
  width: calc(380px * var(--phone-scale));
  height: calc(800px * var(--phone-scale));
  flex: none;
  position: relative;
}

.phone {
  position: absolute;
  top: 0;
  left: 0;
  width: 380px;
  height: 800px;
  transform: scale(var(--phone-scale));
  transform-origin: top left;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(160deg, #2c2c30 0%, #0f0f10 60%, #232327 100%);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(15, 15, 16, 0.5);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 44px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.phone__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 27px;
  border-radius: var(--r-pill);
  background: var(--ink);
  z-index: 6;
}

.statusbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 26px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.statusbar__icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.statusbar__bar {
  width: 17px;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  opacity: 0.85;
}

.statusbar__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--ink);
  opacity: 0.85;
}

.ui {
  height: calc(100% - 30px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ui__scroll {
  flex: 1;
  overflow: hidden;
  padding: var(--s-md) var(--s-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

/* Blocks keep their height and clip, like a real scroll view. */
.ui__scroll > * {
  flex: none;
}

.ui__scroll--flush {
  padding: 0;
  gap: 0;
}

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

.ui-head {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.ui-avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
  background: var(--lavender);
}

.ui-avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 11px;
  box-shadow: 0 0 0 2px var(--white);
}

.ui-avatar--md {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.ui-head__text {
  flex: 1;
  min-width: 0;
}

.ui-t {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-c {
  display: block;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  color: var(--ink-60);
}

.ui-micro {
  font-size: 10.5px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.2px;
  color: var(--ink-60);
}

.ui-bell {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--grey-surface);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.ui-bell .i {
  width: 19px;
  height: 19px;
}

.ui-bell__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-radius: var(--r-pill);
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--white);
}

/* Store switcher --------------------------------------------------------- */

.ui-storerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
}

.ui-store {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 7px 12px 7px 8px;
  border-radius: var(--r-pill);
  background: var(--grey-surface);
  font-size: 14px;
  font-weight: 600;
}

.ui-store__dot {
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--mint);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
}

.ui-store .i {
  width: 14px;
  height: 14px;
  color: var(--ink-60);
}

.ui-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
}

/* Stat tiles ------------------------------------------------------------- */

.ui-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-md);
}

.ui-tile {
  min-height: 88px;
  padding: var(--s-lg);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-xxs);
  background: var(--white);
  border: 1px solid var(--grey-border);
}

.ui-tile[data-tint] {
  border-color: transparent;
}

.ui-tile__v {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: -2px;
}

.ui-tile__l {
  font-size: 14px;
  color: var(--ink-60);
}

.ui-tile__c {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-40);
}

/* Draft banner ----------------------------------------------------------- */

.ui-banner {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-lg);
  border-radius: var(--r-lg);
  background: var(--butter);
}

.ui-banner__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--amber);
  animation: pulse 2.4s var(--ease) infinite;
}

.ui-banner__body {
  min-width: 0;
}

.ui-banner__body strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.ui-banner__body span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-60);
}

/* Calendar strip --------------------------------------------------------- */

.ui-calhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-md);
}

.ui-calhead strong {
  font-size: 16px;
  font-weight: 600;
}

.ui-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s-xs);
}

.ui-cal__d {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 0 8px;
  border-radius: var(--r-md);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-40);
}

.ui-cal__n {
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
}

.ui-cal__dot {
  width: 4px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--ink-20);
}

.ui-cal__d[data-active] {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}

.ui-cal__d[data-active] .ui-cal__n {
  color: var(--white);
}

.ui-cal__d[data-active] .ui-cal__dot {
  background: var(--mint-deep);
}

/* Team row --------------------------------------------------------------- */

.ui-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  margin-bottom: var(--s-md);
}

.ui-sec strong {
  font-size: 16px;
  font-weight: 600;
}

.ui-team {
  display: flex;
  gap: var(--s-md);
}

.ui-team__m {
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-xs);
}

.ui-team__m .ui-micro {
  color: var(--ink-40);
}

.ui-team__add {
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  border: 1.5px dashed var(--grey-border-strong);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
  font-style: normal;
  color: var(--ink-60);
}

/* Segmented control ------------------------------------------------------ */

.ui-seg {
  display: flex;
  gap: var(--s-xs);
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--grey-surface);
}

.ui-seg__i {
  flex: 1;
  padding: 7px 4px;
  border-radius: var(--r-pill);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-60);
  white-space: nowrap;
}

.ui-seg__i[data-active] {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--sh-xs);
}

/* Task card -------------------------------------------------------------- */

.ui-task {
  position: relative;
  padding: var(--s-lg);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: var(--grey-surface);
  color: var(--ink-80);
}

.ui-pill[data-status="in_progress"] { background: var(--green-soft); color: var(--green); }
.ui-pill[data-status="overdue"]     { background: var(--amber-soft); color: var(--amber); }
.ui-pill[data-status="done"]        { background: var(--blue-soft);  color: var(--blue); }

.ui-task__t {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-top: calc(var(--s-xs) * -1);
}

.ui-prog {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}

.ui-prog__track {
  display: block;
  height: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.ui-prog__fill {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: var(--r-pill);
  background: var(--ink);
  transform-origin: left center;
  animation: growx var(--m-slow) var(--ease) 600ms backwards;
}

.ui-prog span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-60);
}

.ui-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 46px;
}

.ui-avatars {
  display: flex;
  margin-right: 4px;
}

.ui-avatars .ui-avatar--sm + .ui-avatar--sm {
  margin-left: -8px;
}

.ui-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-80);
}

.ui-chip .i {
  width: 12px;
  height: 12px;
  color: var(--ink-60);
}

.ui-open {
  position: absolute;
  right: var(--s-lg);
  bottom: var(--s-lg);
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-xs);
}

.ui-open .i {
  width: 18px;
  height: 18px;
}

/* Dark dashboard header (employee) --------------------------------------- */

.ui-dark {
  padding: var(--s-md) var(--s-xl) var(--s-xl);
  background: linear-gradient(160deg, var(--slate-500) 0%, var(--slate-900) 100%);
  border-bottom-left-radius: var(--r-xxl);
  border-bottom-right-radius: var(--r-xxl);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.ui-dark .ui-c { color: rgba(255, 255, 255, 0.62); }
.ui-dark .ui-bell { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.ui-dark .ui-bell__badge { box-shadow: 0 0 0 2px var(--slate-700); }

.ui-dark .ui-tile {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.ui-dark .ui-tile__l { color: rgba(255, 255, 255, 0.66); }
.ui-dark .ui-tile[data-tint] { color: var(--ink); }
.ui-dark .ui-tile[data-tint] .ui-tile__l { color: var(--ink-60); }

/* Next shift card -------------------------------------------------------- */

.ui-next {
  padding: var(--s-lg);
  border-radius: var(--r-xl);
  background: var(--mint);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}

.ui-next__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-60);
}

.ui-next__top .i { width: 16px; height: 16px; }

.ui-next__time {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.ui-next__meta {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 14px;
  color: var(--ink-60);
}

.ui-next__meta i {
  width: 3px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--ink-40);
}

/* Open shift + claim ----------------------------------------------------- */

.ui-shift {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-md) var(--s-lg);
  border-radius: var(--r-lg);
  background: var(--grey-surface);
}

.ui-shift__edge {
  width: 4px;
  align-self: stretch;
  border-radius: var(--r-pill);
  background: var(--grey-border-strong);
}

.ui-shift__body {
  flex: 1;
  min-width: 0;
}

.ui-shift__body strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.ui-claim {
  align-self: flex-start;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

/* Schedule grid ---------------------------------------------------------- */

.ui-rowhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
}

.ui-publish {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.ui-roster {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.ui-roster__row {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.ui-roster__who {
  width: 74px;
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 12px;
  font-weight: 600;
}

.ui-roster__who .ui-avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.ui-roster__slots {
  flex: 1;
  display: flex;
  gap: 5px;
}

.ui-slot {
  flex: 1;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--grey-surface);
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 600;
  font-style: normal;
  color: var(--ink-40);
  transform: scale(0.6);
  opacity: 0;
}

.is-in .ui-slot {
  animation: pop var(--m-base) var(--ease-spring) forwards;
}

@keyframes pop {
  to { transform: scale(1); opacity: 1; }
}

.ui-slot[data-kind="scheduled"] { background: var(--green-soft); color: var(--green); }
.ui-slot[data-kind="published"] { background: var(--sky-deep);   color: #12406f; }
.ui-slot[data-kind="time_off"]  { background: var(--amber-soft); color: var(--amber); }
.ui-slot[data-kind="draft"] {
  background: var(--white);
  border: 1.5px dashed var(--grey-border-strong);
  color: var(--ink-40);
}

.ui-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm) var(--s-md);
}

.ui-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-60);
}

.ui-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

/* Reports ---------------------------------------------------------------- */

.ui-chart {
  padding: var(--s-lg);
  border-radius: var(--r-xl);
  border: 1px solid var(--grey-border);
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--s-sm);
  height: 108px;
}

.ui-bars__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.ui-bars__bar {
  width: 100%;
  height: var(--h);
  border-radius: var(--r-xs);
  background: var(--lavender);
  transform-origin: bottom center;
  animation: growy var(--m-slow) var(--ease) backwards;
}

.ui-bars__col:nth-child(1) .ui-bars__bar { animation-delay: 120ms; }
.ui-bars__col:nth-child(2) .ui-bars__bar { animation-delay: 165ms; }
.ui-bars__col:nth-child(3) .ui-bars__bar { animation-delay: 210ms; }
.ui-bars__col:nth-child(4) .ui-bars__bar { animation-delay: 255ms; }
.ui-bars__col:nth-child(5) .ui-bars__bar { animation-delay: 300ms; }
.ui-bars__col:nth-child(6) .ui-bars__bar { animation-delay: 345ms; }
.ui-bars__col:nth-child(7) .ui-bars__bar { animation-delay: 390ms; }

@keyframes growy {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.ui-bars__col[data-peak] .ui-bars__bar { background: var(--ink); }

.ui-bars__col span {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-40);
}

.ui-emprow {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-md) 0;
  border-top: 1px solid var(--grey-border);
}

.ui-emprow:first-child { border-top: 0; }

.ui-emprow__body { flex: 1; min-width: 0; }

.ui-emprow__body strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.ui-emprow__num {
  text-align: right;
  font-size: 15px;
  font-weight: 600;
}

.ui-emprow__num span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-40);
}

/* Tab bar ---------------------------------------------------------------- */

.ui-tabbar {
  height: 62px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--s-md) 6px;
  border-top: 1px solid var(--grey-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.ui-tabbar__i {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-40);
}

.ui-tabbar__i .i { width: 21px; height: 21px; }
.ui-tabbar__i[data-active] { color: var(--ink); }

.ui-fab {
  position: absolute;
  right: var(--s-xl);
  bottom: 78px;
  width: 54px;
  height: 54px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-md);
}

.ui-fab .i { width: 22px; height: 22px; }

.ui__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 62px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
}

@media (max-width: 419px) { .phonewrap { --phone-scale: 0.88; } }
@media (max-width: 374px) { .phonewrap { --phone-scale: 0.82; } }
@media (max-width: 359px) { .phonewrap { --phone-scale: 0.72; } }

/* --------------------------------------------------------------------------
   Ticker + counters
   -------------------------------------------------------------------------- */

.strip {
  padding-block: var(--s-xxxl);
  background: var(--wash-lavender);
  overflow: hidden;
}

.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-md);
  margin-bottom: var(--s-xxl);
}

.counter {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-lg);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-xs);
  transition: transform var(--m-base) var(--ease-spring), box-shadow var(--m-base) var(--ease);
}

.counter:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-sm);
}

.counter b {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.counter span {
  font-size: 0.8125rem;
  color: var(--text-2);
}

.ticker {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker__track {
  display: flex;
  gap: var(--s-sm);
  width: max-content;
  animation: slide 44s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

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

.ticker__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.ticker__chip i {
  width: 9px;
  height: 9px;
  border-radius: var(--r-pill);
}

/* --------------------------------------------------------------------------
   Pillars — the three onboarding slides, with their illustrations
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-xl);
}

.pillar {
  position: relative;
  overflow: hidden;
  padding: var(--s-xxl);
  border-radius: var(--r-xxl);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  transition: transform var(--m-base) var(--ease-spring), box-shadow var(--m-base) var(--ease);
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
}

.pillar__art {
  width: 100%;
  max-width: 220px;
  margin: 0 auto var(--s-sm);
}

.pillar h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.pillar p {
  color: var(--ink-80);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Feature rows
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--s-xxl), 5vw, 72px);
  align-items: center;
  padding-block: clamp(var(--s-xxxl), 5vw, 60px);
}

.feature + .feature {
  border-top: 1px solid rgba(15, 15, 16, 0.07);
}

.feature__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-lg);
  max-width: 32em;
}

.feature--flip .feature__art {
  order: -1;
}

/* Icon chips replace the bullet paragraphs */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

.chips li {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 8px 16px 8px 8px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--sh-xs), inset 0 0 0 1px var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform var(--m-fast) var(--ease-spring);
}

.chips li:hover {
  transform: translateY(-2px);
}

.chips .badge {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
}

.chips .badge .i {
  width: 15px;
  height: 15px;
}

.disclaimer {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-md) var(--s-lg);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 0.8125rem;
  color: var(--text-2);
}

.disclaimer .i {
  width: 17px;
  height: 17px;
  color: var(--amber);
}

/* Art panels -------------------------------------------------------------- */

.art {
  padding: clamp(var(--s-xl), 3vw, var(--s-xxxl));
  border-radius: var(--r-xxl);
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.art--pink { background: var(--pink); }
.art--sky { background: var(--sky); }
.art--mint { background: var(--mint); }
.art--lav { background: var(--lavender); }
.art--butter { background: var(--butter); }
.art--peach { background: var(--peach); }

.card {
  padding: var(--s-lg);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-xs);
}

.costcard {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.costcard__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-md);
}

.costcard__big {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.bandbar {
  display: flex;
  height: 14px;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--surface-sunken);
}

.bandbar i {
  display: block;
  height: 100%;
  transform-origin: left center;
}

.is-in .bandbar i {
  animation: growx var(--m-slow) var(--ease) backwards;
}

.is-in .bandbar i:nth-child(2) { animation-delay: 200ms; }
.is-in .bandbar i:nth-child(3) { animation-delay: 320ms; }

.bandkey {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm) var(--s-lg);
}

.bandkey span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.bandkey i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.provinces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.province {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}

.province[data-note] {
  background: var(--sky-deep);
  color: var(--ink);
}

/* Chat art ---------------------------------------------------------------- */

.chat {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.bubble {
  max-width: 82%;
  padding: var(--s-md) var(--s-lg);
  border-radius: var(--r-lg);
  font-size: 0.9375rem;
  background: var(--white);
  box-shadow: var(--sh-xs);
}

.bubble--me {
  align-self: flex-end;
  background: var(--ink);
  color: var(--white);
}

.bubble__who {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 2px;
}

.bubble--me .bubble__who {
  color: rgba(255, 255, 255, 0.6);
}

/* Typing dots, because a chat panel that never moves reads as a screenshot */
.typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: var(--s-md) var(--s-lg);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-xs);
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--ink-40);
  animation: blink 1.3s ease-in-out infinite;
}

.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }

@keyframes blink {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* --------------------------------------------------------------------------
   Showcase (tabbed phones)
   -------------------------------------------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(var(--s-xxl), 5vw, 72px);
  align-items: center;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  max-width: 460px;
}

.tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  padding: var(--s-xl);
  border-radius: var(--r-xl);
  text-align: left;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: transform var(--m-fast) var(--ease-spring),
    box-shadow var(--m-fast) var(--ease), background-color var(--m-base) var(--ease);
}

.tab:hover {
  transform: translateX(4px);
}

.tab[aria-selected="true"] {
  box-shadow: var(--sh-sm), inset 0 0 0 1px transparent;
}

.tab[aria-selected="true"][data-tint="mint"] { background: var(--mint); }
.tab[aria-selected="true"][data-tint="lav"] { background: var(--lavender); }
.tab[aria-selected="true"][data-tint="pink"] { background: var(--pink); }

.tab__body strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1px;
}

.tab__body span {
  font-size: 0.875rem;
  color: var(--text-2);
}

.tab .i-chevron {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: transform var(--m-base) var(--ease);
}

.tab[aria-selected="true"] .i-chevron {
  transform: translateX(4px);
  color: var(--ink);
}

/* The auto-advance timer, drawn as a hairline under the active tab */
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.tabs[data-auto] .tab[aria-selected="true"]::after {
  animation: growx 7s linear forwards;
}

.showcase__stage {
  position: relative;
}

.showcase__panel[hidden] {
  display: none;
}

@media (max-width: 1000px) {
  .showcase {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .tabs {
    width: 100%;
  }
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature--flip .feature__art {
    order: 0;
  }
}

/* --------------------------------------------------------------------------
   Roles
   -------------------------------------------------------------------------- */

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-xl);
}

.role {
  padding: var(--s-xxl);
  border-radius: var(--r-xxl);
  background: var(--white);
  box-shadow: var(--sh-xs);
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
  transition: transform var(--m-base) var(--ease-spring), box-shadow var(--m-base) var(--ease);
}

.role:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
}

.role__top {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.role h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.role .chips li {
  box-shadow: none;
  background: var(--grey-surface);
  padding: 7px 14px 7px 7px;
  font-weight: 500;
}

.role .chips .badge {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--white);
}

.role .chips .badge .i {
  width: 13px;
  height: 13px;
}

/* --------------------------------------------------------------------------
   Pricing + roadmap
   -------------------------------------------------------------------------- */

.pricegrid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-xl);
  align-items: start;
}

.price {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--s-xxl), 3vw, var(--s-xxxl));
  border-radius: var(--r-xxl);
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--s-xl);
}

/* A wash of the palette, so even the ink card is not colourless */
.price::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 340px;
  background:
    radial-gradient(40% 60% at 22% 50%, var(--lavender) 0%, transparent 70%),
    radial-gradient(40% 60% at 74% 40%, var(--sky) 0%, transparent 70%);
  opacity: 0.22;
  pointer-events: none;
}

.price > * {
  position: relative;
  z-index: 1;
}

.price__tag {
  display: flex;
  align-items: baseline;
  gap: var(--s-md);
  flex-wrap: wrap;
}

.price__amount {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price__per {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.62);
}

.price .chips li {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: var(--white);
}

.price .chips .badge {
  background: rgba(255, 255, 255, 0.14);
  color: var(--mint-deep);
}

.price .btn--primary {
  background: var(--white);
  color: var(--ink);
  align-self: flex-start;
}

.price__fine {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.roadmap {
  padding: clamp(var(--s-xxl), 3vw, var(--s-xxxl));
  border-radius: var(--r-xxl);
  background: var(--butter);
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.roadmap ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
}

.roadmap li {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-md) 0;
  border-bottom: 1px solid rgba(15, 15, 16, 0.08);
  font-size: 0.9375rem;
  font-weight: 500;
}

.roadmap li:last-child { border-bottom: 0; }

.roadmap li span { flex: 1; }

.roadmap .badge {
  background: rgba(255, 255, 255, 0.7);
}

.tag {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-60);
}

.tag--next { background: var(--mint); color: var(--green); }
.tag--soon { background: var(--white); color: var(--amber); }

@media (max-width: 900px) {
  .pricegrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.faq__item {
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--sh-xs);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  padding: var(--s-xl);
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.faq__q span { flex: 1; }

.faq__q .badge {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  transition: transform var(--m-base) var(--ease), background-color var(--m-base) var(--ease);
}

.faq__q .badge .i { width: 16px; height: 16px; }

.faq__q[aria-expanded="true"] .badge {
  transform: rotate(135deg);
  background: var(--ink);
  color: var(--white);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--m-base) var(--ease);
}

.faq__a[data-open] {
  grid-template-rows: 1fr;
}

.faq__a > div { overflow: hidden; }

.faq__a p {
  padding: 0 var(--s-xl) var(--s-xl);
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(var(--s-xxxl), 6vw, 76px) clamp(var(--s-xl), 4vw, var(--s-giant));
  border-radius: var(--r-xxl);
  background: linear-gradient(122deg, var(--pink) 0%, var(--lavender) 38%, var(--sky) 70%, var(--mint) 100%);
  background-size: 220% 220%;
  animation: shift 22s ease-in-out infinite;
  color: var(--ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-xl);
}

@keyframes shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta .lede {
  color: var(--ink-80);
  max-width: 40ch;
}

.cta .signup__note {
  color: var(--ink-60);
}

.cta__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-sm);
}

.cta__pills span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 600;
}

.cta__pills .i {
  width: 15px;
  height: 15px;
}

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

.footer {
  padding-block: var(--s-giant) var(--s-xxxl);
  background: var(--wash-peach);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-xxl);
  padding-bottom: var(--s-xxxl);
}

.footer__about {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  max-width: 30ch;
}

.footer h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-md);
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

.footer li a,
.footer li span {
  font-size: 0.9375rem;
  color: var(--text-2);
  transition: color var(--m-fast) var(--ease);
}

.footer li a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  padding-top: var(--s-xl);
  border-top: 1px solid rgba(15, 15, 16, 0.08);
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.made {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.made .i {
  width: 16px;
  height: 16px;
  fill: var(--red);
  stroke: none;
}

@media (max-width: 820px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__about {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Motion — `Appear`: a fade plus a short rise, staggered by index.
   Scoped to `.js`, set before first paint, so a page without JavaScript shows
   its content rather than nothing.
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--m-base) var(--ease), transform var(--m-base) var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }

  /* Anything whose resting state is mid-animation has to be restored. */
  .illo [data-draw] { stroke-dashoffset: 0; }
  .illo [data-grow],
  .mark::before,
  .bandbar i,
  .ui-prog__fill { transform: scaleX(1); }
  .ui-bars__bar { transform: scaleY(1); }
  .ui-slot { transform: none; opacity: 1; }
}

@media print {
  .header,
  .phonewrap,
  .cta,
  .signup,
  .blobs {
    display: none;
  }
}
