/* Muster marketing site. One stylesheet, no build step. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0e14;
  --surface: #11161f;
  --surface-2: #161c28;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --text: #eef1f6;
  --muted: #9aa4b5;
  --faint: #6b7588;
  --blue: #2b7fff;
  --blue-2: #5aa2ff;
  --sky: #7cbcff;
  --green: #22c55e;
  --amber: #fbbf24;
  --red: #ef4444;

  --radius: 20px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; }
h1, h2 { text-wrap: balance; }
.lede { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--blue); color: #fff;
}
.skip:focus { top: 16px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 880px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
  color: var(--sky); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 62ch; }
.grad {
  background: linear-gradient(100deg, #b9dcff 0%, var(--sky) 35%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 20px; letter-spacing: -0.015em; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--live { background: var(--green); box-shadow: 0 0 0 0 rgb(34 197 94 / 0.6); animation: pulse 2s infinite; }
.dot--green { background: var(--green); }
.dot--amber { background: var(--amber); }
.dot--red { background: var(--red); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(34 197 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--primary {
  background: linear-gradient(180deg, #4b93ff, var(--blue));
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 8px 24px -8px rgb(43 127 255 / 0.7);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 12px 32px -8px rgb(43 127 255 / 0.85); }
.btn--ghost { border: 1px solid var(--line-strong); background: rgb(255 255 255 / 0.03); }
.btn--ghost:hover { border-color: rgb(255 255 255 / 0.28); background: rgb(255 255 255 / 0.06); }
.btn span { transition: transform 0.2s var(--ease); }
.btn:hover span { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: rgb(11 14 20 / 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav__links a { white-space: nowrap; }
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 96px; overflow: clip; }
.hero__glow {
  position: absolute; inset: -240px 0 auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(600px 380px at 72% 38%, rgb(43 127 255 / 0.28), transparent 70%),
    radial-gradient(500px 300px at 20% 10%, rgb(124 188 255 / 0.12), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 78px); letter-spacing: -0.04em; font-weight: 700; margin-bottom: 24px; }
.hero h1 .grad { display: inline-block; padding-bottom: 0.06em; }
.hero .eyebrow {
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgb(255 255 255 / 0.04); border: 1px solid var(--line);
  color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; color: var(--faint); font-size: 14px; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 18px; height: 18px; }

/* ---------- 3D scene ---------- */
.scene {
  --rx: 0deg; --ry: 0deg;
  position: relative; height: 640px;
  perspective: 2200px; perspective-origin: 50% 40%;
}
.scene__stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(7deg + var(--rx))) rotateY(calc(-17deg + var(--ry)));
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -10px; } }

.scene__desk {
  position: absolute; right: -60px; top: 70px; width: 660px;
  transform: translateZ(-140px);
}
.scene__phone { position: absolute; left: 6%; top: 40px; transform: translateZ(70px) rotateZ(-2deg); }
.scene__toast { position: absolute; right: 4%; bottom: 72px; transform: translateZ(170px); }

/* ---------- Browser frame ---------- */
.browser {
  margin: 0; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 50px 100px -30px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(0 0 0 / 0.4);
}
.browser__bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  background: #0d1119; border-bottom: 1px solid var(--line);
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3140; }
.browser__bar span {
  margin-left: 12px; padding: 3px 14px; border-radius: 6px; background: rgb(255 255 255 / 0.05);
  color: var(--faint); font-size: 11px; letter-spacing: 0.02em;
}
.browser img { width: 100%; height: auto; }

/* ---------- Phone ---------- */
.phone {
  --w: 300px;
  position: relative; width: var(--w);
  aspect-ratio: 412 / 871;
}
.phone__face {
  position: absolute; inset: 0;
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.17);
  background: #05070a;
  box-shadow:
    inset 0 0 0 1.5px #3c4250,
    inset 0 0 0 3px #12151b,
    0 0 0 1px #6f7686;
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * 0.14);
  background: #0e1117;
  container-type: inline-size;
}
.phone__screen img { width: 100%; height: auto; }
.phone__status {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 14cqw; padding: 2.5cqw 7cqw 0 9cqw;
  color: #fff; font-size: 4.1cqw; font-weight: 600; letter-spacing: -0.01em;
  background: #0e1117;
}
.phone__island {
  position: absolute; left: 50%; top: 3.6cqw; translate: -50% 0;
  width: 31cqw; height: 9cqw; border-radius: 99px; background: #000;
}
.phone__icons { display: flex; align-items: center; gap: 1.6cqw; }
.phone__icons svg { height: 3cqw; width: auto; fill: currentColor; }
.phone__icons svg:last-child { height: 3.1cqw; }

/* The 3D phone: a stack of titanium slices behind the face gives it real depth. */
.phone--3d { --w: 290px; transform-style: preserve-3d; }
.phone--3d .phone__face { transform: translateZ(1px); box-shadow: inset 0 0 0 1.5px #3c4250, inset 0 0 0 3px #12151b, 0 0 0 1px #8a92a3; }
.phone__edges { position: absolute; inset: 0; transform-style: preserve-3d; }
.phone__edges i {
  position: absolute; inset: 0;
  border-radius: calc(var(--w) * 0.17);
  background: linear-gradient(120deg, #9aa3b2, #4d5462 30%, #20242c 55%, #6b7381 80%, #3a404b);
}
.phone__edges i:nth-child(1)  { transform: translateZ(0px); }
.phone__edges i:nth-child(2)  { transform: translateZ(-1px); }
.phone__edges i:nth-child(3)  { transform: translateZ(-2px); }
.phone__edges i:nth-child(4)  { transform: translateZ(-3px); }
.phone__edges i:nth-child(5)  { transform: translateZ(-4px); }
.phone__edges i:nth-child(6)  { transform: translateZ(-5px); }
.phone__edges i:nth-child(7)  { transform: translateZ(-6px); }
.phone__edges i:nth-child(8)  { transform: translateZ(-7px); }
.phone__edges i:nth-child(9)  { transform: translateZ(-8px); }
.phone__edges i:nth-child(10) { transform: translateZ(-9px); }
.phone__edges i:nth-child(11) { transform: translateZ(-10px); }
.phone__edges i:nth-child(12) {
  transform: translateZ(-11px);
  background: #1a1d23;
  box-shadow: 0 40px 80px -10px rgb(0 0 0 / 0.75), 0 0 120px rgb(43 127 255 / 0.25);
}
.phone__btn { position: absolute; left: -2px; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #4d5462, #9aa3b2); transform: translateZ(-5px); }
.phone__btn--action { top: 17%; height: 4%; }
.phone__btn--up { top: 24%; height: 7.5%; }
.phone__btn--down { top: 33%; height: 7.5%; }
.phone__btn--power { left: auto; right: -2px; top: 27%; height: 11%; background: linear-gradient(270deg, #4d5462, #9aa3b2); }

/* Flat phones in feature cards. */
.phone--flat { --w: 270px; filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.5)); }
.phone--flat .phone__face { box-shadow: inset 0 0 0 1.5px #3c4250, inset 0 0 0 3px #12151b, 0 0 0 1.5px #5d6575; }

/* ---------- Toast ---------- */
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: rgb(22 28 40 / 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.7);
  font-size: 14px; line-height: 1.3;
}
.toast b { display: block; font-weight: 600; }
.toast small { color: var(--muted); font-size: 12px; }
.toast__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgb(34 197 94 / 0.16); color: var(--green); }
.toast__icon svg { width: 20px; }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); padding: 28px 0; }
.strip .wrap { display: flex; align-items: center; gap: 40px; }
.strip p { flex: none; color: var(--faint); font-size: 14px; }
.strip ul { display: flex; flex-wrap: wrap; gap: 14px 28px; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head .lede { margin-top: 20px; }
.problem { text-align: center; }
.problem .narrow { display: grid; justify-items: center; }
.problem h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 24px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); grid-auto-flow: dense; gap: 20px; }
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgb(90 162 255 / 0.10), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card__copy { position: relative; z-index: 1; }

.card--tasks { grid-column: 1 / 5; grid-row: span 2; height: 520px; flex-direction: row; gap: 32px; }
.card--tasks .card__copy { flex: 1; align-self: center; }
.card--tasks .card__media { flex: none; align-self: flex-end; margin-bottom: -150px; }
.card--chat { grid-column: 5 / 7; grid-row: span 2; height: 520px; }
.card--board { grid-column: 1 / 3; grid-row: span 2; }
.card--schedule { grid-column: 3 / 5; grid-row: span 2; }
.card--status { grid-column: 5 / 7; }
.card--available { grid-column: 5 / 7; }

/* Phones peek out of the card bottom; zero flex basis keeps them from sizing the grid row. */
.card__media--crop { flex: 1 1 0; min-height: 0; margin-top: 28px; display: flex; justify-content: center; align-items: flex-start; }
.card__media--crop .phone { --w: 250px; }

.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-size: 15px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgb(43 127 255 / 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%235aa2ff'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.status-demo {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: auto;
  padding: 4px; border-radius: 14px; background: #0d1119; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.status-demo span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 10px; color: var(--muted); transition: background 0.4s, color 0.4s; }
.status-demo .is-on { background: #262e3d; color: var(--text); box-shadow: 0 2px 8px rgb(0 0 0 / 0.4); }

.avail { display: grid; gap: 8px; margin-top: auto; }
.avail__row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 12px; background: #0d1119; border: 1px solid var(--line);
  font-size: 14px; line-height: 1.25;
}
.avail__row b { display: block; font-weight: 600; }
.avail__row small { color: var(--faint); font-size: 12px; }
.avail__row em { font-style: normal; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: rgb(43 127 255 / 0.2); color: var(--blue-2); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #262e3d; font-size: 12px; font-weight: 700; color: var(--muted); }

/* ---------- Dashboard ---------- */
.dash { position: relative; }
.dash::before {
  content: ''; position: absolute; inset: 30% 0 0; pointer-events: none;
  background: radial-gradient(700px 400px at 50% 40%, rgb(43 127 255 / 0.16), transparent 70%);
}
.dash__tabs {
  position: relative; display: inline-flex; gap: 4px; margin-bottom: 28px;
  padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.dash__tabs button {
  height: 38px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.dash__tabs button:hover { color: var(--text); }
.dash__tabs button[aria-selected='true'] { background: #262e3d; color: var(--text); }
.browser--big { position: relative; border-radius: 18px; }
.browser__view { position: relative; aspect-ratio: 1440 / 900; overflow: hidden; }
.browser__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 0.35s var(--ease); }
.browser figcaption { padding: 14px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; background: #0d1119; }

.dash__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.dash__list li { padding: 26px 28px; background: var(--bg); }
.dash__list h3 { font-size: 17px; margin-bottom: 6px; }
.dash__list p { color: var(--muted); font-size: 15px; }

/* ---------- Make it yours ---------- */
.custom { position: relative; }
.custom::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 420px at 85% 20%, rgb(242 165 65 / 0.08), transparent 70%);
}
.custom .wrap { position: relative; }
.custom__row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.custom__row--flip { grid-template-columns: 1fr 1.35fr; }
.custom__row--flip .custom__shot { order: 2; }
.custom__shot { margin: 0; }
.custom__copy h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 14px; text-wrap: balance; }
.custom__copy p { color: var(--muted); }
.custom__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.custom__grid li { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.custom__grid h3 { font-size: 17px; margin: 18px 0 8px; }
.custom__grid p { color: var(--muted); font-size: 15px; }
.custom__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(43 127 255 / 0.12); border: 1px solid rgb(43 127 255 / 0.3); color: var(--blue-2); }
.custom__icon svg { width: 20px; height: 20px; }
.swatches { display: flex; gap: 8px; margin-top: 18px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.25); }
.swatches i:nth-child(2) { background: #f2a541; }
.swatches i:nth-child(3) { background: var(--green); }
.swatches i:nth-child(4) { background: #e2445c; }
.swatches i:nth-child(5) { background: #a78bfa; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 50px; right: -21px; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.steps__n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px; border-radius: 12px;
  background: rgb(43 127 255 / 0.12); border: 1px solid rgb(43 127 255 / 0.3);
  color: var(--blue-2); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* ---------- Roles ---------- */
.roles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.role { padding: 32px 28px; background: var(--bg); }
.role h3 { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.role h3::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.role p { color: var(--muted); font-size: 15px; }

/* ---------- Security ---------- */
.security { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.security__copy { position: sticky; top: 120px; }
.security__copy .lede { margin-top: 20px; }
.security__list { display: grid; gap: 14px; }
.security__list li { padding: 26px 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.security__list h3 { font-size: 17px; margin-bottom: 6px; }
.security__list p { color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.price {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 28px;
  background:
    radial-gradient(500px 300px at 0% 0%, rgb(43 127 255 / 0.18), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
}
.price h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 18px; }
.price .btn { margin-top: 28px; }
.price .ticks { margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 26px 24px; color: var(--muted); font-size: 16px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 140px 0; text-align: center; overflow: clip; border-top: 1px solid var(--line); }
.cta__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 360px at 50% 40%, rgb(43 127 255 / 0.25), transparent 70%);
}
.cta__inner { position: relative; display: grid; justify-items: center; }
.cta img { margin-bottom: 28px; filter: drop-shadow(0 10px 30px rgb(43 127 255 / 0.5)); }
.cta h2 { margin-bottom: 18px; }
.cta .hero__ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--faint); font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .brand { color: var(--text); font-size: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer nav a:hover { color: var(--text); }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: grid; justify-items: center; }
  .hero__ctas, .hero__meta { justify-content: center; }
  .scene { height: 600px; max-width: 760px; width: 100%; margin-inline: auto; }
  .scene__desk { right: 0; width: 600px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .card--tasks, .card--chat, .card--board, .card--schedule, .card--status, .card--available { grid-column: auto; grid-row: auto; }
  .card--tasks { grid-column: 1 / -1; }
  .card--chat, .card--board, .card--schedule { height: 520px; }
  .card--schedule { grid-column: 1 / -1; }
  .roles__grid { grid-template-columns: repeat(2, 1fr); }
  .dash__list { grid-template-columns: repeat(2, 1fr); }
  .custom__row, .custom__row--flip { grid-template-columns: 1fr; gap: 32px; }
  .custom__row--flip .custom__shot { order: 0; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero { padding: 32px 0 64px; }
  .scene { height: 560px; }
  .scene__desk { display: none; }
  .scene__phone { left: 50%; top: 10px; margin-left: -145px; }
  .scene__toast { display: none; } /* over the phone it covers the task cards */
  .scene__stage { transform: rotateX(calc(4deg + var(--rx))) rotateY(calc(-14deg + var(--ry))); }
  .strip .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section { padding: 88px 0; }
  .bento { grid-template-columns: 1fr; }
  .card--tasks { flex-direction: column; }
  .card--tasks { height: auto; }
  .card--tasks .card__media { align-self: center; height: 420px; margin: 8px 0 -32px; overflow: hidden; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .security { grid-template-columns: 1fr; gap: 36px; }
  .security__copy { position: static; }
  .price { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .dash__tabs { display: flex; overflow-x: auto; max-width: 100%; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .dash__tabs button { flex: none; white-space: nowrap; padding: 0 14px; }
  .custom__grid { grid-template-columns: 1fr; }
  .browser figcaption { font-size: 13px; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .roles__grid { grid-template-columns: 1fr; }
  .dash__list, .custom__grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .hero__meta { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =================================================================
   Pricing page
   ================================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav__links a[aria-current='page'] { color: var(--text); }

.pricing-hero { position: relative; padding: 72px 0 40px; overflow: clip; }
.pricing-hero .wrap { position: relative; }
.pricing-hero__head { display: grid; justify-items: center; text-align: center; margin-bottom: 56px; }
.pricing-hero h1 { font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -0.04em; font-weight: 700; margin-bottom: 20px; }
.pricing-hero .lede { margin-inline: auto; }

.pricing-hero__note { margin-top: 28px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; }

/* Plan cards */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 36px 32px; border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, #172338, var(--surface)) padding-box,
    linear-gradient(180deg, var(--sky), rgb(43 127 255 / 0.25) 60%, var(--line)) border-box;
  box-shadow: 0 30px 80px -30px rgb(43 127 255 / 0.45);
}
.plan__badge {
  position: absolute; top: -13px; left: 32px;
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(180deg, #4b93ff, var(--blue)); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.plan__name { font-size: 22px; letter-spacing: -0.02em; }
.plan__for { margin-top: 8px; min-height: 3.2em; color: var(--muted); font-size: 15px; line-height: 1.5; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 24px; }
.plan__amount {
  font-size: 56px; font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan__per { color: var(--muted); font-size: 15px; }
.plan__billed { margin-top: 8px; min-height: 1.6em; color: var(--faint); font-size: 14px; }
.plan__cta { margin-top: 24px; width: 100%; }
.plan__list { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.plan__list li { color: var(--muted); }
.plan__list b { color: var(--text); font-weight: 600; }

.enterprise {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 20px; padding: 28px 32px; border-radius: 24px;
  border: 1px dashed var(--line-strong); background: rgb(255 255 255 / 0.015);
}
.enterprise h2 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 6px; }
.enterprise p { color: var(--muted); font-size: 15px; max-width: 64ch; }
.enterprise .btn { flex: none; }

/* Comparison table */
.compare-section { padding-top: 80px; }
.compare { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.compare table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { position: sticky; top: 0; background: #0d1119; font-size: 15px; font-weight: 650; color: var(--text); }
.compare tbody th { font-weight: 500; color: var(--text); width: 34%; }
.compare td { color: var(--muted); }
.compare tr:last-child > * { border-bottom: 0; }
.compare .is-featured { background: rgb(43 127 255 / 0.06); }
.compare thead .is-featured { color: var(--sky); background: #111a2a; }
.compare__group th {
  padding-top: 26px; padding-bottom: 10px; background: transparent;
  color: var(--sky); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.yes {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%; vertical-align: middle;
  background: rgb(43 127 255 / 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%235aa2ff'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan__for { min-height: 0; }
  .enterprise { flex-direction: column; align-items: flex-start; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .pricing-hero { padding-top: 40px; }
  .plan { padding: 32px 24px; }
  .compare th, .compare td { padding: 14px 16px; }
}

/* ============ Legal pages (privacy, terms, account deletion) ============ */
.legal { padding: 64px 0 120px; }
.legal__head { margin-bottom: 48px; }
.legal__head h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 12px; }
.legal__head p { color: var(--muted); margin-top: 16px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.legal__toc a:hover { color: var(--text); }
.legal__body { color: #d3d9e3; font-size: 16.5px; line-height: 1.7; }
.legal__body h2 { font-size: 24px; margin: 56px 0 16px; color: var(--text); scroll-margin-top: 96px; }
.legal__body h3 { font-size: 18px; margin: 32px 0 8px; color: var(--text); }
.legal__body p, .legal__body ul, .legal__body ol { margin: 0 0 16px; }
.legal__body ul, .legal__body ol { padding-left: 24px; }
.legal__body li { margin-bottom: 6px; }
.legal__body a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.legal__body th, .legal__body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal__body th { color: var(--text); font-weight: 600; border-bottom-color: var(--line-strong); }
.legal__note { padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); margin: 0 0 24px; }
@media (max-width: 640px) {
  .legal__body table, .legal__body thead, .legal__body tbody, .legal__body tr, .legal__body td { display: block; }
  .legal__body th { display: none; }
  .legal__body td { border: 0; padding: 2px 0; }
  .legal__body tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal__body td:first-child { color: var(--text); font-weight: 600; }
  .legal__body td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
}

/* Setup guide: screenshots between the steps */
.guide__shot { margin: 8px 0 32px; }
.guide__shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); }
.guide__shot--phones { display: flex; flex-wrap: wrap; gap: 16px; }
.guide__shot--phones img { width: calc(50% - 8px); max-width: 280px; }
.guide__shot--phones figcaption { flex-basis: 100%; }
.guide__shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.hero__avail { margin-top: 12px; max-width: 46ch; color: var(--muted); font-size: 13px; text-wrap: balance; }

/* Comparison table on phones: one block per row, each plan labelled, so no column is hidden off-screen */
@media (max-width: 700px) {
  .compare { overflow: visible; }
  .compare table { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th, .compare td { display: block; border-bottom: 0; }
  .compare tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 4px; }
  .compare tr.compare__group { display: block; border-bottom: 0; }
  .compare td { padding-top: 6px; font-size: 14px; }
  .compare td::before { display: block; margin-bottom: 6px; color: var(--faint); font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
  .compare td:nth-of-type(1)::before { content: "Team"; content: "Team" / ""; }
  .compare td:nth-of-type(2)::before { content: "Organization"; content: "Organization" / ""; }
  .compare td:nth-of-type(3)::before { content: "Network"; content: "Network" / ""; }
}
@media (max-width: 940px) {
  .nav__links { display: none; }
}
/* Rows where every plan has a tick: one "All plans" line on phones instead of three identical ticks */
@media (max-width: 700px) {
  .compare tr.compare__all { grid-template-columns: 1fr auto; align-items: center; }
  .compare tr.compare__all th { grid-column: auto; padding-bottom: 14px; }
  .compare tr.compare__all td:not(:nth-of-type(1)) { display: none; }
  .compare tr.compare__all td { padding-top: 14px; }
  .compare tr.compare__all td::before { content: none; }
  .compare tr.compare__all td::after { content: " All plans"; content: " All plans" / ""; margin-left: 8px; color: var(--faint); font-size: 12px; font-weight: 600; }
}
