:root {
  --bg: #010303;
  --bg-soft: #050908;
  --surface: rgba(255, 255, 255, 0.032);
  --surface-strong: rgba(255, 255, 255, 0.052);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #f7fbfa;
  --muted: #8f9d9b;
  --muted-strong: #c5d0ce;
  --teal: #41e7cc;
  --teal-soft: rgba(65, 231, 204, 0.12);
  --shadow: rgba(0, 0, 0, 0.74);
  --max-width: 1200px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background:
    linear-gradient(180deg, #020404 0%, #050807 36%, #010303 100%),
    var(--bg);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 74%, transparent 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(65, 231, 204, 0.018) 0%, transparent 18%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.014) 48%, transparent 64%);
  opacity: 0.72;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #080d0d;
  color: var(--text);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: var(--header-height);
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(1, 3, 3, 0.84);
  backdrop-filter: blur(18px);
}

.nav-shell,
.section,
.site-footer {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(65, 231, 204, 0.28);
  border-radius: 8px;
  background: #050909;
  box-shadow: 0 0 16px rgba(65, 231, 204, 0.1);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-icon img.is-missing {
  display: none;
}

.brand-icon.has-missing-image::before {
  content: "D";
  color: var(--teal);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

/* Mobile inline nav (shown below 820px, hidden on desktop) */
.nav-mobile {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-mobile a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-mobile a:hover,
.nav-mobile a:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

/* ═══════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════ */

.section {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 24px);
  padding: 112px 0;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 82px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  width: 100%;
  gap: 72px;
}

.hero-copy {
  max-width: 660px;
}

/* ═══════════════════════════════════════
   EYEBROW
═══════════════════════════════════════ */

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   HEADINGS
═══════════════════════════════════════ */

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 650px;
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  line-height: 0.93;
  font-weight: 800;
  letter-spacing: -0.04em;
}

h1 span {
  display: block;
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3 {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 700;
}

/* ═══════════════════════════════════════
   HERO TEXT
═══════════════════════════════════════ */

.hero-text,
.philosophy-panel p,
.step-card p,
.feature-item p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.hero-clarity {
  max-width: 575px;
  margin: 26px 0 0;
  color: var(--muted-strong);
  font-size: 1.22rem;
  line-height: 1.52;
  font-weight: 500;
}

.hero-text {
  max-width: 575px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.68;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 24px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(65, 231, 204, 0.86);
  background: #4ef3d8;
  color: #021110;
  box-shadow:
    0 0 0 1px rgba(65, 231, 204, 0.16),
    0 0 28px rgba(65, 231, 204, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow:
    0 0 0 1px rgba(65, 231, 204, 0.24),
    0 0 38px rgba(65, 231, 204, 0.34);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.024);
  color: var(--muted-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.button-link {
  border: none;
  padding: 0 4px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 600;
  min-height: auto;
}

.button-link:hover,
.button-link:focus-visible {
  color: var(--teal);
  transform: translateY(0);
}

.proof-line {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hero-device {
  display: flex;
  justify-content: center;
}

/* ═══════════════════════════════════════
   PHONE FRAME
═══════════════════════════════════════ */

.phone-frame {
  position: relative;
  display: grid;
  width: min(100%, 268px);
  aspect-ratio: 9 / 19.35;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    #050909;
  box-shadow:
    0 28px 80px var(--shadow),
    0 0 30px rgba(65, 231, 204, 0.075);
}

.phone-frame::before {
  position: absolute;
  inset: 9px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 27px;
  content: "";
}

.phone-frame::after {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 74px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #020404;
  content: "";
}

.phone-frame img {
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border-radius: 27px;
  object-fit: cover;
}

.phone-frame img.is-missing {
  opacity: 0;
}

.phone-frame.has-missing-image {
  background:
    linear-gradient(180deg, rgba(65, 231, 204, 0.08), transparent 32%),
    linear-gradient(180deg, #07100f, #020404);
}

.phone-frame.has-missing-image::before {
  box-shadow: inset 0 0 40px rgba(65, 231, 204, 0.055);
}

.asset-label {
  position: absolute;
  z-index: 4;
  max-width: calc(100% - 56px);
  color: rgba(247, 251, 250, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
}

.phone-frame.has-missing-image .asset-label {
  opacity: 1;
}

/* ─── LARGE PHONE FRAME (hero + showcase) ─── */
/* FIX: removed scale(0.9) transform that was making it too small */
.phone-frame-large {
  width: min(100%, 370px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.78),
    0 0 40px rgba(65, 231, 204, 0.10);
}

.phone-frame-large::before {
  box-shadow: inset 0 0 0 1px rgba(65, 231, 204, 0.06);
}

/* FIX: removed scale(0.88) transform that compounded the shrink */
.phone-frame-video {
  /* no transform — let it render at full declared size */
}

/* ═══════════════════════════════════════
   HERO VIDEO PHONE
═══════════════════════════════════════ */

.hero-phone-video {
  position: absolute;
  inset: 9px;
  z-index: 1;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border-radius: 27px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.video-fallback-label {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 56px);
  color: rgba(247, 251, 250, 0.6);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.phone-frame-video.video-failed .video-fallback-label {
  opacity: 1;
}

.phone-frame-video.video-failed {
  background:
    linear-gradient(180deg, rgba(65, 231, 204, 0.1), transparent 40%),
    linear-gradient(180deg, #07100f, #020404);
}

.phone-frame-video.video-failed::before {
  box-shadow: inset 0 0 48px rgba(65, 231, 204, 0.07);
}

/* ═══════════════════════════════════════
   CONSTRAINT CALLOUT
═══════════════════════════════════════ */

.constraint-callout {
  padding: 0 0 72px;
}

.constraint-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid rgba(65, 231, 204, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(65, 231, 204, 0.04) 0%, rgba(255, 255, 255, 0.014) 100%);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.constraint-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 36px;
  text-align: center;
}

.constraint-number {
  display: block;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.04em;
}

.constraint-label {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.48;
}

.constraint-divider {
  width: 1px;
  height: 88px;
  background: rgba(65, 231, 204, 0.14);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   SHOWCASE
═══════════════════════════════════════ */

.section-heading {
  display: flex;
  max-width: 760px;
  flex-direction: column;
  margin-bottom: 58px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: end;
}

.screenshot-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 28px 18px 22px;
  background: rgba(255, 255, 255, 0.026);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.42);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.screenshot-card:nth-child(even) {
  transform: translateY(34px);
}

.screenshot-card:hover {
  border-color: rgba(65, 231, 204, 0.23);
  background: rgba(255, 255, 255, 0.042);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.5);
  transform: translateY(-8px);
}

.screenshot-card:nth-child(even):hover {
  transform: translateY(20px);
}

.screenshot-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════
   PHILOSOPHY
═══════════════════════════════════════ */

.philosophy {
  display: flex;
  justify-content: center;
}

.philosophy-panel,
.final-panel {
  width: 100%;
  border: 1px solid rgba(65, 231, 204, 0.12);
  border-radius: 8px;
  padding: 76px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(1, 3, 3, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 30px 84px rgba(0, 0, 0, 0.42);
}

.philosophy-panel p {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: 1.15rem;
}

/* ═══════════════════════════════════════
   EDITORIAL / WHY
═══════════════════════════════════════ */

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 80px;
  align-items: start;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 80px 0;
}

.editorial-heading {
  max-width: 620px;
}

.editorial-copy {
  max-width: 520px;
  color: var(--muted-strong);
  font-size: 1.18rem;
  line-height: 1.58;
}

.editorial-copy p {
  margin: 0;
}

.editorial-copy p + p {
  margin-top: 6px;
}

.editorial-copy .editorial-emphasis {
  margin-top: 28px;
  color: var(--text);
  font-weight: 700;
}

.editorial-copy .editorial-emphasis + p {
  margin-top: 28px;
}

/* ═══════════════════════════════════════
   STEPS
═══════════════════════════════════════ */

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card,
.feature-item {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
}

.step-card {
  min-height: 260px;
  padding: 32px;
}

.step-card span {
  display: block;
  margin-bottom: 72px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.step-card p,
.feature-item p {
  margin: 14px 0 0;
}

/* ═══════════════════════════════════════
   UNPLANNED TIME
═══════════════════════════════════════ */

.unplanned {
  position: relative;
}

.unplanned-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.unplanned-copy h2 {
  max-width: 560px;
  margin-bottom: 0;
}

.unplanned-copy p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.unplanned-emphasis {
  color: var(--muted-strong) !important;
  font-weight: 600 !important;
  border-left: 2px solid var(--teal);
  padding-left: 16px !important;
  margin-left: 0;
}

.unplanned-example {
  border: 1px solid rgba(65, 231, 204, 0.18);
  border-radius: 10px;
  padding: 28px 30px;
  background:
    linear-gradient(180deg, rgba(65, 231, 204, 0.05), rgba(255, 255, 255, 0.014));
  margin-bottom: 20px;
}

.unplanned-example-label {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.unplanned-example p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.65;
}

.unplanned-example p + p {
  margin-top: 8px;
}

.unplanned-example strong {
  color: var(--text);
}

.unplanned-example-rule {
  margin-top: 18px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--teal) !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
}

.unplanned-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
}

.breakdown-dot {
  display: block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  background: var(--teal);
}

.breakdown-dot-warn {
  background: #f59e6e;
}

.breakdown-dot-dim {
  background: rgba(255, 255, 255, 0.22);
}

.breakdown-row strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.breakdown-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.breakdown-structured {
  border-color: rgba(65, 231, 204, 0.15);
  background: rgba(65, 231, 204, 0.04);
}

.breakdown-unplanned {
  border-color: rgba(245, 158, 110, 0.2);
  background: rgba(245, 158, 110, 0.04);
}

/* ═══════════════════════════════════════
   FEATURES
═══════════════════════════════════════ */

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.34fr);
  gap: 72px;
  align-items: start;
}

.feature-copy {
  position: sticky;
  top: 118px;
  max-width: 520px;
}

.feature-copy h2 {
  max-width: 520px;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
}

.feature-copy-sub {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 440px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  padding: 0;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  overflow: hidden;
}

.feature-item:hover {
  border-color: rgba(65, 231, 204, 0.23);
  background: var(--surface-strong);
}

.feature-item-highlight {
  border-color: rgba(65, 231, 204, 0.16);
  background:
    linear-gradient(180deg, rgba(65, 231, 204, 0.036), rgba(255, 255, 255, 0.014));
}

.feature-item-highlight:hover {
  border-color: rgba(65, 231, 204, 0.32);
  background:
    linear-gradient(180deg, rgba(65, 231, 204, 0.065), rgba(255, 255, 255, 0.024));
}

/* ─── FEATURE EXPAND ACCORDION ─── */
.feature-expand-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 26px 30px 22px;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  color: inherit;
  font-family: inherit;
}

.feature-expand-trigger:focus-visible {
  outline: 2px solid rgba(65, 231, 204, 0.5);
  outline-offset: -2px;
  border-radius: 7px;
}

.feature-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
}

/* ─── FIX: Feature tags — pill style, not white rectangular bars ─── */
.feature-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: auto;
  width: auto;
  max-width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.feature-tag-accent {
  border-color: rgba(65, 231, 204, 0.28);
  background: rgba(65, 231, 204, 0.09);
  color: var(--teal);
}

.feature-tag-warning {
  border-color: rgba(255, 200, 130, 0.24);
  background: rgba(255, 200, 130, 0.07);
  color: rgba(245, 190, 120, 0.9);
}

.feature-item-header h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

/* Expand icon: plus/minus toggle */
.feature-expand-icon {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 240ms ease, background 240ms ease;
}

.feature-expand-icon::before,
.feature-expand-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--muted);
  content: "";
  transition: background 240ms ease, transform 240ms ease, opacity 240ms ease;
}

.feature-expand-icon::before {
  width: 10px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.feature-expand-icon::after {
  width: 1.5px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.feature-expand-trigger[aria-expanded="true"] .feature-expand-icon {
  border-color: rgba(65, 231, 204, 0.42);
  background: rgba(65, 231, 204, 0.08);
}

.feature-expand-trigger[aria-expanded="true"] .feature-expand-icon::before,
.feature-expand-trigger[aria-expanded="true"] .feature-expand-icon::after {
  background: var(--teal);
}

.feature-expand-trigger[aria-expanded="true"] .feature-expand-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

.feature-item:hover .feature-expand-icon {
  border-color: rgba(65, 231, 204, 0.3);
}

.feature-item:hover .feature-expand-icon::before,
.feature-item:hover .feature-expand-icon::after {
  background: var(--muted-strong);
}

/* Expand body: collapsed by default */
.feature-expand-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 380ms cubic-bezier(0.16, 1, 0.3, 1), opacity 260ms ease, padding 260ms ease;
  padding: 0 30px;
}

.feature-expand-body.is-open {
  max-height: 600px;
  opacity: 1;
  padding: 0 30px 26px;
}

.feature-expand-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008));
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.faq-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--teal);
  opacity: 0;
  content: "";
  transition: opacity 240ms ease;
}

.faq-item:hover {
  border-color: rgba(65, 231, 204, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.036), rgba(255, 255, 255, 0.012));
}

.faq-item[open] {
  border-color: rgba(65, 231, 204, 0.28);
  background: linear-gradient(180deg, rgba(65, 231, 204, 0.04), rgba(255, 255, 255, 0.012));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.faq-item[open]::before {
  opacity: 1;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 180ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
  display: none;
}

.faq-item summary:hover {
  color: var(--teal);
}

.faq-item summary > span:first-child {
  flex: 1;
}

.faq-icon {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease;
}

.faq-icon::before,
.faq-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--muted-strong);
  content: "";
  transition: background 240ms ease, transform 240ms ease;
}

.faq-icon::before {
  width: 11px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.5px;
  height: 11px;
  transform: translate(-50%, -50%);
}

.faq-item:hover .faq-icon {
  border-color: rgba(65, 231, 204, 0.42);
}

.faq-item:hover .faq-icon::before,
.faq-item:hover .faq-icon::after {
  background: var(--teal);
}

.faq-item[open] .faq-icon {
  border-color: rgba(65, 231, 204, 0.52);
  background: rgba(65, 231, 204, 0.12);
  transform: rotate(180deg);
}

.faq-item[open] .faq-icon::before {
  background: var(--teal);
}

.faq-item[open] .faq-icon::after {
  background: var(--teal);
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-body {
  padding: 0 30px 28px;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.72;
  animation: faqFadeIn 280ms ease;
}

.faq-body p {
  margin: 0;
  max-width: 640px;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════
   FINAL CTA
═══════════════════════════════════════ */

.final-cta {
  text-align: center;
}

.final-panel {
  position: relative;
  display: grid;
  justify-items: center;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(65, 231, 204, 0.08),
    0 34px 88px rgba(0, 0, 0, 0.5);
}

.final-panel::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 260px;
  height: 1px;
  transform: translateX(50%);
  background: linear-gradient(90deg, transparent, rgba(65, 231, 204, 0.42), transparent);
  content: "";
}

.final-panel h2 {
  max-width: 700px;
}

.final-panel p:not(.eyebrow) {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-row-center {
  justify-content: center;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-soft);
  padding: 28px 0 34px;
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a {
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

/* ═══════════════════════════════════════
   REVEAL / ANIMATION
═══════════════════════════════════════ */

.reveal {
  transform: translateY(24px);
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }

  .hero-device {
    animation: none;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE 1080px
═══════════════════════════════════════ */

@media (max-width: 1080px) {
  h1 {
    max-width: 590px;
  }

  .hero-grid {
    gap: 52px;
  }

  .feature-layout,
  .editorial-grid,
  .unplanned-grid {
    gap: 56px;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .screenshot-card:nth-child(even),
  .screenshot-card:nth-child(even):hover {
    transform: none;
  }

  .phone-frame-large {
    width: min(100%, 340px);
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE 820px (tablet + mobile)
═══════════════════════════════════════ */

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .nav-shell,
  .section,
  .site-footer {
    width: min(100% - 32px, var(--max-width));
  }

  .nav-links {
    display: none;
  }

  .nav-mobile {
    display: flex;
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 64px;
  }

  .hero-grid,
  .feature-layout,
  .editorial-grid,
  .step-grid,
  .unplanned-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 52px;
  }

  .hero-copy {
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 8.5vw, 3.6rem);
    line-height: 0.97;
  }

  h2,
  .feature-copy h2 {
    font-size: clamp(1.85rem, 6vw, 2.5rem);
  }

  .hero-clarity {
    font-size: 1.13rem;
  }

  .hero-text,
  .editorial-copy {
    font-size: 1.05rem;
  }

  .hero-device {
    justify-content: center;
  }

  .phone-frame-large {
    width: min(100%, 300px);
    max-width: 300px;
    margin: 0 auto;
  }

  .philosophy-panel,
  .final-panel {
    padding: 52px 36px;
  }

  .philosophy-panel p {
    max-width: 100%;
    font-size: 1.08rem;
  }

  .editorial-grid {
    gap: 40px;
    padding: 60px 0;
  }

  .editorial-heading {
    max-width: 100%;
  }

  .editorial-copy {
    max-width: 100%;
    font-size: 1.05rem;
  }

  .editorial-copy .editorial-emphasis {
    margin-top: 22px;
  }

  .editorial-copy .editorial-emphasis + p {
    margin-top: 22px;
  }

  .feature-copy {
    position: static;
    max-width: 100%;
  }

  .feature-copy h2 {
    max-width: 100%;
  }

  .feature-copy-sub {
    max-width: 100%;
  }

  .step-card {
    min-height: 0;
  }

  .step-card span {
    margin-bottom: 48px;
  }

  .unplanned-grid {
    gap: 40px;
  }

  .unplanned-copy h2 {
    max-width: 100%;
  }

  .unplanned-copy p {
    max-width: 100%;
  }

  .section-heading {
    margin-bottom: 46px;
  }

  .constraint-grid {
    flex-direction: row;
  }

  .constraint-item {
    padding: 34px 20px;
  }

  .constraint-number {
    font-size: 3.2rem;
  }

  .final-panel p:not(.eyebrow) {
    max-width: 100%;
  }

  .final-panel h2 {
    max-width: 100%;
  }

  .faq-list {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE 580px
═══════════════════════════════════════ */

@media (max-width: 580px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 60px;
  }

  h1 {
    font-size: clamp(2.2rem, 9.5vw, 2.9rem);
    line-height: 0.97;
  }

  h2,
  .feature-copy h2 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    line-height: 1.06;
  }

  .hero-clarity {
    font-size: 1.05rem;
    margin: 20px 0 0;
  }

  .hero-text {
    font-size: 0.99rem;
  }

  .editorial-copy {
    font-size: 1rem;
    line-height: 1.65;
  }

  .philosophy-panel p {
    font-size: 1rem;
    margin: 20px 0 0;
  }

  .cta-row {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
  }

  .button:not(.button-link) {
    width: 100%;
    min-height: 52px;
  }

  .cta-row-center {
    align-items: center;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .screenshot-card {
    padding: 20px 14px 16px;
    gap: 12px;
  }

  .phone-frame {
    width: min(100%, 252px);
  }

  .phone-frame-large {
    width: min(100%, 272px);
    max-width: 272px;
  }

  .hero-device {
    justify-content: center;
  }

  .philosophy-panel,
  .final-panel {
    padding: 44px 24px;
  }

  .editorial-grid {
    padding: 44px 0;
    gap: 30px;
  }

  .editorial-copy .editorial-emphasis {
    margin-top: 18px;
  }

  .editorial-copy .editorial-emphasis + p {
    margin-top: 18px;
  }

  .step-grid {
    gap: 12px;
  }

  .step-card {
    padding: 24px 22px 26px;
  }

  .step-card span {
    margin-bottom: 36px;
  }

  .unplanned-grid {
    gap: 30px;
  }

  .unplanned-example {
    padding: 22px 20px;
  }

  .unplanned-breakdown {
    gap: 10px;
  }

  .breakdown-row {
    padding: 14px 16px;
    gap: 12px;
  }

  .feature-list {
    gap: 10px;
  }

  .feature-expand-trigger {
    padding: 22px 22px 18px;
  }

  .feature-expand-body.is-open {
    padding: 0 22px 22px;
  }

  .feature-item-header {
    gap: 10px;
    flex-wrap: wrap;
  }

  .faq-item summary {
    padding: 20px 22px;
    font-size: 0.99rem;
    gap: 14px;
  }

  .faq-body {
    padding: 0 22px 22px;
    font-size: 0.95rem;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
  }

  .constraint-grid {
    flex-direction: column;
  }

  .constraint-divider {
    width: 80px;
    height: 1px;
  }

  .constraint-item {
    padding: 28px 22px;
  }

  .constraint-number {
    font-size: 3rem;
  }

  .constraint-callout {
    padding: 0 0 54px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0 28px;
  }

  .proof-line {
    font-size: 0.86rem;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE 430px (small phones)
═══════════════════════════════════════ */

@media (max-width: 430px) {
  .nav-shell,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    padding-top: 88px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2,
  .feature-copy h2 {
    font-size: 1.68rem;
  }

  h3 {
    font-size: 1rem;
  }

  .hero-clarity {
    font-size: 0.98rem;
  }

  .hero-grid {
    gap: 38px;
  }

  .phone-frame-large {
    width: min(100%, 252px);
    max-width: 252px;
  }

  .philosophy-panel,
  .final-panel {
    padding: 36px 20px;
  }

  .philosophy-panel p {
    font-size: 0.97rem;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .editorial-grid {
    padding: 36px 0;
    gap: 26px;
  }

  .constraint-callout {
    padding: 0 0 46px;
  }

  .constraint-item {
    padding: 24px 18px;
    gap: 8px;
  }

  .constraint-number {
    font-size: 2.55rem;
  }

  .constraint-label {
    font-size: 0.82rem;
  }

  .step-card {
    padding: 20px 18px 22px;
  }

  .step-card span {
    margin-bottom: 30px;
  }

  .feature-expand-trigger {
    padding: 18px 18px 16px;
    gap: 12px;
  }

  .feature-expand-body.is-open {
    padding: 0 18px 20px;
  }

  .unplanned-grid {
    gap: 26px;
  }

  .unplanned-example {
    padding: 18px 16px;
  }

  .breakdown-row {
    padding: 12px 14px;
  }

  .faq-item summary {
    padding: 18px 18px;
    font-size: 0.94rem;
  }

  .faq-body {
    padding: 0 18px 20px;
    font-size: 0.92rem;
  }

  .cta-row {
    gap: 12px;
    margin-top: 24px;
  }

  .button:not(.button-link) {
    font-size: 0.92rem;
    min-height: 50px;
  }

  .eyebrow {
    font-size: 0.7rem;
    margin: 0 0 14px;
  }
}

/* ═══════════════════════════════════════
   BUILD IN PUBLIC
═══════════════════════════════════════ */

.build-public {
  position: relative;
}

.build-public-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 560px;
}

.bip-eyebrow {
  margin: 0 0 10px;
}

/* Latest Update Card */
.bip-latest {
  position: relative;
  margin-bottom: 24px;
  border: 1px solid rgba(65, 231, 204, 0.13);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(65, 231, 204, 0.032) 0%, transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.012) 100%),
    #050909;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.bip-latest::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, transparent 60%);
  pointer-events: none;
}

.bip-latest:hover {
  border-color: rgba(65, 231, 204, 0.22);
  box-shadow: 0 16px 56px rgba(0,0,0,0.4), 0 0 32px rgba(65,231,204,0.04);
  transform: translateY(-3px);
}

.bip-latest-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 40px 48px;
}

.bip-latest-copy {
  flex: 1;
}

.bip-latest-title {
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.bip-latest-body {
  margin: 0 0 20px;
  color: var(--muted-strong);
  font-size: 1.01rem;
  line-height: 1.65;
  max-width: 680px;
}

.bip-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bip-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bip-pill-teal {
  border-color: rgba(65, 231, 204, 0.24);
  background: rgba(65, 231, 204, 0.06);
  color: rgba(65, 231, 204, 0.82);
}

/* Pulse dot */
.bip-latest-pulse-wrap {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.bip-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(65, 231, 204, 0.28);
  animation: bipPulseRing 2.2s ease-out infinite;
}

.bip-pulse-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(65, 231, 204, 0.32);
  animation: bipPulseDot 2.2s ease-in-out infinite;
}

@keyframes bipPulseRing {
  0% { transform: scale(0.7); opacity: 0.8; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes bipPulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Live badge */
.bip-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px 0 8px;
  border: 1px solid rgba(65, 231, 204, 0.2);
  border-radius: 20px;
  background: rgba(65, 231, 204, 0.06);
  color: rgba(65, 231, 204, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bip-live-badge::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 5px rgba(65, 231, 204, 0.4);
  animation: bipPulseDot 1.8s ease-in-out infinite;
}

/* 3-col grid */
.bip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.bip-card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 30px 28px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.01) 100%);
  overflow: hidden;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.bip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 80%);
}

.bip-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 18px 52px rgba(0,0,0,0.38);
}

.bip-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

/* Timeline */
.bip-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.bip-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  position: relative;
  transition: background 180ms ease;
}

.bip-timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 28px;
  bottom: -12px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-soft), transparent);
}

.bip-tl-dot {
  display: block;
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.bip-tl-dot-teal {
  background: var(--teal);
  border-color: rgba(65, 231, 204, 0.4);
  box-shadow: 0 0 6px rgba(65, 231, 204, 0.24);
}

.bip-tl-body {
  flex: 1;
  min-width: 0;
}

.bip-tl-version {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bip-tl-label {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.bip-timeline-item-active .bip-tl-label {
  color: var(--text);
}

.bip-timeline-item-active .bip-tl-version {
  color: var(--teal);
}

.bip-timeline-item:not(.bip-timeline-item-active) .bip-status-shipped {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

/* Status badges */
.bip-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bip-status-shipped {
  border: 1px solid rgba(65, 231, 204, 0.2);
  background: rgba(65, 231, 204, 0.06);
  color: rgba(65, 231, 204, 0.78);
}

.bip-status-progress {
  border: 1px solid rgba(120, 110, 190, 0.22);
  background: rgba(120, 110, 190, 0.06);
  color: #9d97cc;
}

.bip-status-testing {
  border: 1px solid rgba(190, 130, 80, 0.22);
  background: rgba(190, 130, 80, 0.06);
  color: #c49878;
}

.bip-status-active {
  border: 1px solid rgba(170, 140, 30, 0.22);
  background: rgba(170, 140, 30, 0.06);
  color: #b89a30;
}

.bip-status-planned {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

/* Roadmap */
.bip-roadmap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bip-roadmap-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  flex-wrap: wrap;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.bip-roadmap-item:hover {
  border-color: rgba(255, 255, 255, 0.09);
  background: var(--surface-strong);
  transform: translateX(3px);
}

.bip-rm-dot {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bip-rm-dot-progress {
  background: #9994bb;
  box-shadow: 0 0 4px rgba(120, 110, 180, 0.28);
}

.bip-rm-dot-testing {
  background: #b09070;
}

.bip-rm-dot-active {
  background: #a89040;
  animation: bipPulseDot 3s ease-in-out infinite;
}

.bip-rm-dot-planned {
  background: rgba(255, 255, 255, 0.2);
}

.bip-rm-label {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Milestones */
.bip-milestone-progress {
  margin-bottom: 22px;
}

.bip-mp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.bip-mp-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bip-mp-pct {
  color: var(--muted-strong);
  font-size: 1.15rem;
  font-weight: 800;
}

.bip-mp-track {
  height: 5px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  max-width: 100%;
}

.bip-mp-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(65,231,204,0.5), rgba(65,231,204,0.75));
  box-shadow: 0 0 7px rgba(65, 231, 204, 0.18);
  animation: bipBarGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.4s;
}

@keyframes bipBarGrow {
  from { width: 0; }
  to { width: 75%; }
}

.bip-milestone-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bip-ml-heading {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bip-ml-heading-next {
  margin-top: 16px;
}

.bip-ml-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bip-ml-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.35;
}

.bip-ml-done {
  color: var(--muted-strong);
}

.bip-ml-next {
  color: var(--muted);
}

.bip-ml-check,
.bip-ml-arrow {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: relative;
}

.bip-ml-check {
  border: 1.5px solid rgba(65, 231, 204, 0.32);
  background: rgba(65, 231, 204, 0.05);
}

.bip-ml-check::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-46%, -60%) rotate(-45deg);
  width: 6px;
  height: 4px;
  border-left: 1.5px solid rgba(65, 231, 204, 0.62);
  border-bottom: 1.5px solid rgba(65, 231, 204, 0.62);
}

.bip-ml-arrow {
  border: 1.5px solid var(--line-soft);
}

.bip-ml-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%) rotate(-45deg);
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--muted);
  border-top: 1.5px solid var(--muted);
}

/* Follow the build CTA */
.bip-cta {
  display: flex;
  justify-content: flex-start;
}

/* ═══════════════════════════════════════
   BUILD IN PUBLIC RESPONSIVE
═══════════════════════════════════════ */

@media (max-width: 1080px) {
  .bip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bip-grid > .bip-card:last-child {
    grid-column: 1 / -1;
  }

  .bip-milestone-list {
    flex-direction: row;
    gap: 32px;
  }

  .bip-ml-heading-next {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .bip-latest-inner {
    padding: 32px 28px;
    gap: 24px;
  }

  .bip-latest-title {
    font-size: 1.28rem;
  }

  .bip-grid {
    grid-template-columns: 1fr;
  }

  .bip-grid > .bip-card:last-child {
    grid-column: auto;
  }

  .bip-milestone-list {
    flex-direction: column;
    gap: 0;
  }

  .bip-ml-heading-next {
    margin-top: 16px;
  }

  .bip-card {
    padding: 26px 22px;
  }

  .bip-cta {
    justify-content: stretch;
  }

  .bip-cta .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 580px) {
  .bip-latest-inner {
    padding: 24px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .bip-latest-pulse-wrap {
    display: none;
  }

  .bip-card {
    padding: 22px 18px 20px;
  }

  .bip-latest-title {
    font-size: 1.18rem;
  }

  .bip-cta {
    justify-content: stretch;
  }

  .bip-cta .button {
    width: 100%;
    justify-content: center;
  }

  .bip-pills {
    max-width: 100%;
    gap: 6px;
  }

  .bip-tl-body {
    min-width: 0;
  }

  .bip-tl-label {
    word-break: break-word;
  }
}

@media (max-width: 430px) {
  .bip-card {
    padding: 18px 14px;
  }

  .bip-latest-title {
    font-size: 1.08rem;
  }

  .bip-mp-pct {
    font-size: 1rem;
  }

  .bip-pill {
    font-size: 0.67rem;
    padding: 0 8px;
    height: 22px;
  }
}

/* ═══════════════════════════════════════
   HERO HOOK
═══════════════════════════════════════ */

.hero-hook {
  max-width: 460px;
  margin: 24px 0 0;
}

.hero-hook p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
}

.hero-hook p + p {
  margin-top: 2px;
}

/* ═══════════════════════════════════════
   MICRO-PUNCH
═══════════════════════════════════════ */

.micro-punch {
  display: block;
  margin: 22px 0 0;
  padding-left: 14px;
  border-left: 2px solid rgba(65, 231, 204, 0.38);
  color: var(--muted-strong);
  font-size: 0.97rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
}

/* Override philosophy-panel p specificity for micro-punch */
.philosophy-panel p.micro-punch {
  margin-top: 28px;
}

/* ═══════════════════════════════════════
   PHILOSOPHY SHORT-PARA SPACING
═══════════════════════════════════════ */

.philosophy-panel p + p {
  margin-top: 10px;
}

/* Keep first p with larger top margin for breathing room */
.philosophy-panel h2 + p {
  margin-top: 28px;
}

/* ═══════════════════════════════════════
   DEMO VIDEO SHOWCASE
═══════════════════════════════════════ */

.demo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  padding: 48px 0 32px;
}

/* FIX: Demo phone was 280px — now properly sized for desktop */
.demo-wrapper .phone-frame-large {
  width: min(100%, 340px);
  transform: none;
  filter: drop-shadow(0 0 60px rgba(65, 231, 204, 0.09));
}

.demo-video {
  position: absolute;
  inset: 9px;
  z-index: 1;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border-radius: 27px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

@media (max-width: 580px) {
  .demo-wrapper .phone-frame-large {
    width: min(100%, 270px);
  }
}

@media (min-width: 581px) and (max-width: 820px) {
  .demo-wrapper .phone-frame-large {
    width: min(100%, 300px);
  }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .demo-wrapper .phone-frame-large {
    width: min(100%, 330px);
  }
}

@media (min-width: 1081px) {
  .demo-wrapper .phone-frame-large {
    width: 360px;
  }
}

/* ═══════════════════════════════════════
   BUILD IN PUBLIC — SCOPED COLOUR OVERRIDES
═══════════════════════════════════════ */

.build-public .eyebrow {
  color: var(--teal);
}

.build-public .bip-status-shipped {
  border: 1px solid rgba(65, 231, 204, 0.2);
  background: rgba(65, 231, 204, 0.06);
  color: rgba(65, 231, 204, 0.78);
}

.build-public .bip-timeline-item:not(.bip-timeline-item-active) .bip-status-shipped {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.build-public .bip-tl-version {
  color: var(--muted);
}

.build-public .bip-timeline-item-active .bip-tl-version {
  color: var(--teal);
}

.build-public .bip-tl-dot-teal {
  box-shadow: 0 0 6px rgba(65, 231, 204, 0.24);
}

.build-public .bip-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.build-public .bip-roadmap-item:hover {
  border-color: rgba(255, 255, 255, 0.09);
}

.build-public .bip-mp-fill {
  background: linear-gradient(90deg, rgba(65, 231, 204, 0.5), rgba(65, 231, 204, 0.75));
  box-shadow: 0 0 7px rgba(65, 231, 204, 0.18);
}

.build-public .bip-ml-check {
  border: 1.5px solid rgba(65, 231, 204, 0.32);
  background: rgba(65, 231, 204, 0.05);
}

.build-public .bip-ml-check::after {
  border-left-color: rgba(65, 231, 204, 0.62);
  border-bottom-color: rgba(65, 231, 204, 0.62);
}

/* ═══════════════════════════════════════
   GLOBAL EYEBROW COLOUR ENFORCEMENT
═══════════════════════════════════════ */

main .eyebrow,
section .eyebrow,
.section-heading .eyebrow,
.philosophy .eyebrow,
.unplanned .eyebrow,
.build-public .eyebrow,
.bip-eyebrow {
  color: var(--teal) !important;
  text-shadow: 0 0 6px rgba(65, 231, 204, 0.18);
}

/* ═══════════════════════════════════════
   TABLET OPTIMISATION (821px–1180px)
═══════════════════════════════════════ */

@media (min-width: 821px) and (max-width: 1180px) {
  .nav-shell,
  .section,
  .site-footer {
    width: min(100% - 56px, var(--max-width));
  }

  .hero {
    min-height: auto;
    padding-top: 124px;
    padding-bottom: 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr minmax(280px, 360px);
    gap: 44px;
  }

  .phone-frame-large {
    width: min(100%, 340px);
  }

  .constraint-item {
    padding: 38px 22px;
  }

  .constraint-number {
    font-size: 3.8rem;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .screenshot-card:nth-child(even),
  .screenshot-card:nth-child(even):hover {
    transform: none;
  }

  .step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .step-card {
    padding: 26px 24px;
  }

  .feature-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-copy {
    position: static;
    max-width: 720px;
  }

  .feature-copy h2,
  .feature-copy-sub {
    max-width: 720px;
  }

  .unplanned-grid,
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .bip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .bip-grid > .bip-card:last-child {
    grid-column: 1 / -1;
  }

  .bip-card {
    padding: 26px 24px 24px;
  }

  .bip-latest-inner {
    padding: 36px 36px;
  }

  .bip-status {
    white-space: nowrap;
  }
}

/* iPad portrait comfort */
@media (min-width: 700px) and (max-width: 820px) {
  .nav-shell,
  .section,
  .site-footer {
    width: min(100% - 48px, var(--max-width));
  }

  .hero-device {
    justify-content: center;
  }

  .phone-frame-large {
    width: min(100%, 310px);
    max-width: 310px;
  }

  .constraint-grid {
    flex-direction: row;
  }

  .constraint-divider {
    width: 1px;
    height: 72px;
  }

  .constraint-item {
    padding: 32px 20px;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bip-grid {
    grid-template-columns: 1fr;
  }

  .bip-card {
    padding: 28px 26px;
  }
}

/* Final CTA mobile row */
@media (max-width: 820px) {
  .final-panel .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .final-panel .cta-row .button:not(.button-link) {
    width: 100%;
  }

  .demo-wrapper {
    justify-content: center;
  }
}