/* Crew Lift — crewliftapp.com
   Hand-written. Light, iOS-native feel to match the app's planning screens;
   one dark "gym floor" section to match the app's active-workout screen. */

:root {
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --paper-3: #ebebef;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.12);

  --orange: #ff8a1f;
  --orange-deep: #f26a12;
  --orange-soft: #fff1e6;
  --green: #34c759;
  --green-soft: #e9f9ee;
  --blue: #0a84ff;
  --blue-soft: #e7f1ff;
  --indigo: #5e5ce6;
  --indigo-soft: #ecebfd;
  --purple: #af52de;
  --purple-soft: #f7ecfd;

  --night: #0b0b0d;
  --night-2: #141416;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-ink-2: #a1a1a6;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04), 0 14px 36px -12px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 40px 80px -28px rgba(0, 0, 0, 0.35);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;

  --pad: clamp(20px, 5vw, 40px);
  --maxw: 1160px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt", "ss01";
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}
.skip:focus { top: 16px; }

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

/* ---------- type ---------- */

.display {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 600;
}
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--orange-deep);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.muted { color: var(--ink-2); }
.small { font-size: 0.9375rem; }

/* ---------- brand mark ---------- */

.mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(160deg, #26272b, #0f0f11);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mark svg { width: 18px; height: 18px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.18s ease,
    background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 20px -8px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-orange {
  background: linear-gradient(180deg, #ff9a3d, var(--orange-deep));
  color: #1a0d02;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 10px 24px -8px rgba(242, 106, 18, 0.6);
}
.btn-orange:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { border-color: var(--ink-3); background: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.9375rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
  margin-right: auto;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 0;
  background:
    radial-gradient(60% 50% at 82% 30%, rgba(255, 138, 31, 0.13), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(10, 132, 255, 0.06), transparent 70%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 26px;
  justify-items: start;
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero-copy .lede { max-width: 32rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-fine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-3);
  font-size: 0.875rem;
}
.hero-fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero-fine svg { width: 15px; height: 15px; color: var(--green); }

.hero-stage {
  position: relative;
  align-self: end;
  height: clamp(480px, 58vw, 640px);
  display: grid;
  justify-items: center;
}
.hero-stage .device { width: min(320px, 78vw); }
.hero-stage .device-frame {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

/* floating UI cards, mirrored from the app */
.float {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 11px 13px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 7px;
  font-size: 0.875rem;
  z-index: 2;
}
/* Anchored to the phone. They sit over low-information regions of the screenshot
   (whitespace beside the title; the "At a glance" tiles) with a small overhang. */
.float-live { width: 176px; right: -18px; top: 9%; }
.float-done { width: 214px; left: -18px; top: 63%; }
.done-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  vertical-align: -3px;
}
.done-dot svg { width: 11px; height: 11px; }
.float strong { font-weight: 600; letter-spacing: -0.01em; }
.float .meta { color: var(--ink-3); font-size: 0.8125rem; }
.slots { display: flex; gap: 8px; }
.slot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.slot.done-push { background: var(--orange); }
.slot.done-pull { background: var(--blue); }
.slot.next { background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green); }
.slot svg { width: 14px; height: 14px; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22);
  display: inline-block;
  margin-right: 8px;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.45); }
  100% { box-shadow: 0 0 0 9px rgba(52, 199, 89, 0); }
}
.avatars { display: flex; }
.avatars span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  margin-left: -6px;
}
.avatars span:first-child { margin-left: 0; }
.av-a { background: var(--orange); }
.av-b { background: var(--blue); }
.av-c { background: var(--indigo); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-stage { height: clamp(430px, 130vw, 560px); }
  .hero-stage .device-frame {
    -webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 80%);
    mask-image: linear-gradient(to bottom, #000 56%, transparent 80%);
  }
}
@media (max-width: 680px) {
  .float { display: none; }
}

/* ---------- device frame ---------- */

.device {
  container-type: inline-size;
  width: 100%;
  margin: 0; /* <figure> default is 1em 40px */
  position: relative;
}
.device-frame {
  position: relative;
  border-radius: 15.5cqw;
  padding: 3.4cqw;
  background:
    linear-gradient(160deg, #4a4a4f 0%, #1a1a1c 30%, #232326 70%, #3d3d42 100%);
  box-shadow:
    inset 0 0 0 0.6cqw rgba(255, 255, 255, 0.07),
    0 0 0 0.3cqw rgba(0, 0, 0, 0.55),
    var(--shadow-lg);
}
/* side buttons */
.device-frame::before,
.device-frame::after {
  content: "";
  position: absolute;
  width: 1cqw;
  border-radius: 1cqw;
  background: #2b2b2e;
}
.device-frame::before {
  left: -1cqw;
  top: 19%;
  height: 7%;
  box-shadow: 0 11.5cqw 0 0 #2b2b2e;
}
.device-frame::after {
  right: -1cqw;
  top: 24%;
  height: 12%;
}
.device-screen {
  position: relative;
  aspect-ratio: 1320 / 2868;
  border-radius: 12.4cqw;
  overflow: hidden;
  background: #f2f2f7;
  box-shadow: inset 0 0 0 0.3cqw rgba(0, 0, 0, 0.6);
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device-island {
  position: absolute;
  top: 5.9cqw;
  left: 50%;
  transform: translateX(-50%);
  width: 26.5cqw;
  height: 7.4cqw;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.device.dark .device-screen { background: #000; }

/* ---------- sections ---------- */

.section { padding: clamp(52px, 5.5vw, 78px) 0; }
.section-alt { background: var(--paper-2); }

/* Two columns so the headline and its lede fill the width instead of leaving a
   tall empty right-hand column on laptop screens. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 12px;
  align-items: start;
  margin-bottom: clamp(30px, 3.6vw, 48px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
/* Nudges the lede's first line down to sit with the headline's cap height. */
.section-head .lede { max-width: 34rem; padding-top: 8px; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .lede { padding-top: 0; }
}

/* ---------- cycle demo ---------- */

.cycle-demo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 28px;
}
.days {
  display: grid;
  grid-template-columns: repeat(9, minmax(64px, 1fr));
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.days::-webkit-scrollbar { display: none; }
@media (max-width: 700px) {
  .days {
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, #000 82%, transparent 100%);
    padding-right: 24px;
  }
}
.days li {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 64px;
}
.dow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.day-slot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  display: grid;
  place-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}
.day-slot svg { width: 22px; height: 22px; }
.day-slot.push { background: var(--orange-soft); color: var(--orange-deep); }
.day-slot.pull { background: var(--blue-soft); color: var(--blue); }
.day-slot.legs { background: var(--green-soft); color: #1f9d44; }
.day-slot.core { background: var(--indigo-soft); color: var(--indigo); }
.day-slot.rest {
  background: transparent;
  color: var(--ink-3);
  font-weight: 500;
  border: 1.5px dashed var(--line-2);
}
.cycle-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.cycle-pills { display: inline-flex; align-items: center; gap: 10px; }
.pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
.pill-from { background: var(--paper-2); color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.pill-to { background: var(--ink); color: #fff; }
.cycle-pills svg { width: 18px; height: 18px; color: var(--ink-3); }
.cycle-result p { color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 640px) {
  .cycle-result { grid-template-columns: 1fr; gap: 14px; }
}

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.point { display: grid; gap: 10px; align-content: start; padding: 8px 4px; }
.point .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.point .icon svg { width: 20px; height: 20px; }
.point h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.point p { color: var(--ink-2); font-size: 0.9875rem; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

/* ---------- plans ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 900px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plan-grid { grid-template-columns: 1fr; } }

.plan-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan-card-top { display: flex; align-items: center; gap: 12px; }
.plan-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--paper-2);
  color: var(--ink-2);
}
.plan-card .icon svg { width: 19px; height: 19px; }
.plan-card .count {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}
.plan-card h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.plan-card p { color: var(--ink-2); font-size: 0.9375rem; text-wrap: pretty; }
.plan-card .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.plan-card .facts span { display: inline-flex; align-items: center; gap: 6px; }
/* Trailing separator stays attached to the preceding item, so a wrapped line
   never begins with a dangling middot. */
.plan-card .facts span:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--line-2); }

.pc-orange .icon { background: var(--orange-soft); color: var(--orange-deep); }
.pc-blue   .icon { background: var(--blue-soft);   color: var(--blue); }
.pc-indigo .icon { background: var(--indigo-soft); color: var(--indigo); }
.pc-purple .icon { background: var(--purple-soft); color: var(--purple); }
.pc-green  .icon { background: var(--green-soft);  color: #1f9d44; }

.plan-card .tag {
  position: absolute;
  top: -9px;
  left: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-card-custom {
  background: var(--paper-2);
  border-style: dashed;
  border-color: var(--line-2);
  box-shadow: none;
}

/* ---------- gym floor (dark) ---------- */

.floor {
  padding-block: clamp(52px, 5.5vw, 78px);
  background:
    radial-gradient(50% 60% at 70% 40%, rgba(255, 138, 31, 0.14), transparent 70%),
    var(--night);
  color: #fff;
  overflow: hidden;
}
.floor .eyebrow { color: var(--orange); }
.floor .lede { color: var(--night-ink-2); }
.floor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.floor-copy { display: grid; gap: 22px; }
.floor-list { display: grid; gap: 14px; margin-top: 6px; }
.floor-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--night-ink-2);
  font-size: 1rem;
}
.floor-list strong { color: #fff; font-weight: 600; }
.floor-list svg { width: 22px; height: 22px; color: var(--orange); margin-top: 1px; }
.floor-stage { display: grid; justify-items: center; }
.floor-stage .device { width: min(330px, 76vw); }
.floor-stage .device-frame {
  box-shadow:
    inset 0 0 0 0.6cqw rgba(255, 255, 255, 0.1),
    0 0 0 0.3cqw rgba(0, 0, 0, 0.9),
    0 60px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 120px -20px rgba(255, 138, 31, 0.25);
}
@media (max-width: 860px) {
  .floor-grid { grid-template-columns: 1fr; }
  .floor-stage { order: -1; }
}

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 340px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile-copy { display: grid; gap: 10px; padding: 26px 26px 0; align-content: start; }
.tile-copy p { color: var(--ink-2); font-size: 0.9875rem; text-wrap: pretty; }
.tile-art {
  position: relative;
  min-height: 170px;
  display: grid;
  align-items: end;
  justify-items: center;
  padding-top: 20px;
}
.tile-art .device {
  width: min(260px, 70%);
  margin-bottom: -46%;
}
.tile-alt { background: var(--paper-2); }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .span-7, .span-5, .span-4, .span-6, .span-8 { grid-column: span 6; }
}
@media (max-width: 620px) {
  .span-7, .span-5, .span-4, .span-6, .span-8, .span-12 { grid-column: span 12; }
}

/* privacy toggle visual */
.privacy-visual {
  align-self: center;
  width: min(300px, 88%);
  margin: 0 auto 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 0.9375rem;
}
.privacy-visual .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.privacy-visual .row:first-child { border-top: 0; }
.privacy-visual .row-head { background: var(--paper-2); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.privacy-visual .lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.privacy-visual .lock svg { width: 14px; height: 14px; }
.toggle {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--paper-3);
  position: relative;
  flex: none;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.toggle.on { background: var(--green); }
.toggle.on::after { left: 20px; }

/* ecosystem tile */
.eco {
  align-self: end;
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 24px 28px 28px;
}
.eco li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
}
.eco svg { width: 20px; height: 20px; color: var(--ink-2); flex: none; }

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 36px);
  display: grid;
  gap: 22px;
  align-content: start;
  box-shadow: var(--shadow-sm);
}
.plan-crew {
  background: var(--night);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.plan-crew .muted { color: var(--night-ink-2); }
.plan-head { display: grid; gap: 6px; }
.plan-name { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }
.plan-crew .plan-name { color: var(--orange); }
.price {
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price .per { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.plan-crew .price .per { color: var(--night-ink-2); }

/* CSS-only billing toggle */
.billing { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.billing label {
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--night-ink-2);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.billing input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.billing label:has(input:checked) { background: #fff; color: var(--ink); }
.billing label:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.price-monthly, .price-annual { display: none; }
.plan-crew:has(#bill-monthly:checked) .price-monthly { display: flex; }
.plan-crew:has(#bill-annual:checked) .price-annual { display: flex; }
.plan-crew:has(#bill-monthly:checked) .note-monthly { display: block; }
.plan-crew:has(#bill-annual:checked) .note-annual { display: block; }
.note-monthly, .note-annual { display: none; font-size: 0.875rem; color: var(--night-ink-2); }
/* If :has() is unsupported, show both prices stacked. */
@supports not selector(:has(a)) {
  .price-monthly, .price-annual, .note-monthly, .note-annual { display: flex; }
  .billing { display: none; }
}

.plan-list { display: grid; gap: 12px; }
.plan-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9875rem;
  color: var(--ink-2);
}
.plan-crew .plan-list li { color: #d6d6db; }
.plan-list svg { width: 20px; height: 20px; color: var(--green); margin-top: 1px; }
.plan-foot { margin-top: auto; padding-top: 6px; font-size: 0.875rem; color: var(--ink-3); }
.plan-crew .plan-foot { color: var(--night-ink-2); }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }

.preview-note {
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9875rem;
  text-wrap: pretty;
}
.preview-note strong { color: var(--ink); }
.preview-note .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  display: grid;
  place-items: center;
}
.preview-note .icon svg { width: 18px; height: 18px; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 10px; max-width: 52rem; }
.faq details {
  background: var(--paper-2);
  border-radius: 16px;
  padding: 0 22px;
  transition: background-color 0.2s ease;
}
.faq details[open] { background: var(--paper-3); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-2);
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-size: 10px 1.5px, 1.5px 10px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); text-wrap: pretty; max-width: 46rem; }
@supports (interpolate-size: allow-keywords) {
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.28s ease, content-visibility 0.28s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
  .faq { interpolate-size: allow-keywords; }
}

/* ---------- closing ---------- */

.closing {
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(255, 138, 31, 0.22), transparent 70%),
    var(--night);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.closing .wrap { display: grid; gap: 24px; justify-items: center; }
.closing .lede { color: var(--night-ink-2); max-width: 34rem; }
.closing .mark { width: 56px; height: 56px; border-radius: 14px; }
.closing .mark svg { width: 34px; height: 34px; }
.closing .fine { color: var(--ink-3); font-size: 0.875rem; }

/* ---------- footer ---------- */

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-3);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--ink-2); transition: color 0.15s ease; }
.foot a:hover { color: var(--ink); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- legal pages (content generated from backend/src/public-pages.ts) ---------- */

.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 112px); }
.legal .wrap { max-width: 46rem; }
.legal h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.legal .updated { color: var(--ink-3); font-size: 0.9375rem; margin-bottom: 36px; }
.legal h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal p { color: var(--ink-2); margin-bottom: 14px; text-wrap: pretty; }
.legal a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242, 106, 18, 0.35); }
.legal a:hover { text-decoration-color: currentColor; }

/* ---------- utility pages (404) ---------- */

.util {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}
.util .wrap { display: grid; gap: 18px; justify-items: center; max-width: 34rem; }
