/* PivotX marketing site - mobile-first. Base rules below ARE the phone
   styles; @media (min-width: ...) only ADDS more room, never removes it,
   so there's no fixed-width rule anywhere that can force horizontal
   overflow on a narrow screen. Light theme, bold real borders, fluid
   clamp()-based type/spacing instead of hard breakpoints wherever possible. */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f2;
  --surface: #ffffff;
  --ink: #0f1017;
  --border: #d8d5cb;
  --border-strong: #1c1d24;
  --text: #17181f;
  --text-dim: #52545f;
  --text-faint: #848691;
  --brand: #c97a2e;
  --brand-strong: #f0a13e;
  --good: #2f9e63;
  --bad: #d64545;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-display: "Newsreader Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 24px);
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(48px, 9vw, 96px) 0; }
.alt { background: var(--bg-alt); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px; }
h2 { font-size: clamp(26px, 4.4vw, 40px); }
h3 { font-size: 18px; }
p { color: var(--text-dim); margin: 0 0 16px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 10px;
  font-weight: 500;
}
.section-head { max-width: 640px; margin: 0 auto clamp(32px, 6vw, 48px); text-align: center; }
.section-head p { margin: 0; }

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 2px solid var(--border-strong);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-strong); color: #201200; border-color: var(--border-strong); box-shadow: 3px 3px 0 var(--border-strong); }
.btn-primary:hover { box-shadow: 4px 4px 0 var(--border-strong); }
.btn-secondary { background: var(--surface); color: var(--text); }
.btn-secondary:hover { background: var(--bg-alt); }
.btn-block { width: 100%; }

/* -- Header -- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-strong);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand img { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--text-dim); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav .btn { padding: 10px 16px; font-size: 13px; white-space: nowrap; }

/* -- Hero -- */
.hero { padding-top: clamp(32px, 7vw, 64px); }
.hero-grid { display: grid; gap: clamp(32px, 6vw, 56px); align-items: start; }
.hero-title { font-size: clamp(30px, 6vw, 48px); line-height: 1.12; }
.hero-title em { font-style: italic; color: var(--brand); }
.hero-sub { font-size: clamp(15px, 2vw, 17px); max-width: 480px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 11px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-dim);
}

/* -- Live session clock widget (real, ticking - not a screenshot) -- */
.clock-widget {
  background: var(--ink);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 6px 6px 0 var(--border-strong);
  color: #eef0f6;
  max-width: 380px;
}
.clock-widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.clock-widget-head span:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8d90a3; }
.clock-live-dot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; color: #6fdb9a; }
.clock-live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6fdb9a; box-shadow: 0 0 0 0 rgba(111,219,154,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111,219,154,.55);} 70% { box-shadow: 0 0 0 8px rgba(111,219,154,0);} 100% { box-shadow: 0 0 0 0 rgba(111,219,154,0);} }
.clock-zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.clock-zone { text-align: center; padding: 10px 4px; border-radius: var(--radius-sm); border: 1.5px solid #2a2c38; }
.clock-zone.active { border-color: var(--brand-strong); background: rgba(240,161,62,.08); }
.clock-zone-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: #8d90a3; margin-bottom: 4px; }
.clock-zone-time { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.clock-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; padding: 10px; border-radius: var(--radius-sm);
  background: rgba(240,161,62,.1); border: 1.5px solid var(--brand-strong); color: #f3c98a;
}
.clock-widget-foot { margin-top: 12px; font-size: 10.5px; color: #6a6c7c; text-align: center; }

/* -- Bold app-window chrome around static screenshots -- */
.app-window {
  background: var(--ink);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--border-strong);
}
.app-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #171923;
  border-bottom: 1.5px solid #2a2c38;
}
.app-window-bar span { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #e2665f; }
.dot-yellow { background: #eec065; }
.dot-green { background: #59c48c; }
.app-window-title { margin-left: 6px; font-family: var(--font-mono); font-size: 11px; color: #6f7285; }
.app-window img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }

/* -- "Tour the app" bento gallery -- */
.tour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.tour-tile {
  position: relative;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
  cursor: zoom-in;
  box-shadow: 4px 4px 0 var(--border-strong);
}
.tour-tile img { width: 100%; height: 220px; object-fit: cover; object-position: top; display: block; }
.tour-tile.featured img { height: 320px; }
.tour-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 10px;
  background: linear-gradient(0deg, rgba(5,6,10,.92) 30%, transparent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

/* -- Deep-dive rows -- */
.showcase-row {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(32px, 6vw, 54px) 0;
  border-top: 2px solid var(--border);
}
.showcase-row:first-of-type { border-top: none; padding-top: 0; }
.showcase-copy .eyebrow { margin-bottom: 8px; }
.showcase-copy ul { margin: 18px 0 0; padding: 0; list-style: none; }
.showcase-copy li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14.5px; color: var(--text-dim); }
.showcase-copy li::before { content: "\2713"; color: var(--good); font-weight: 700; }

/* -- PivotX Lite section -- */
.lite-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.phone-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.phone-frame {
  border: 3px solid var(--border-strong);
  border-radius: 26px;
  overflow: hidden;
  width: min(180px, 42vw);
  /* Locked to the real phone aspect ratio (and hard-capped) so this box can
     never render taller than intended regardless of what the surrounding
     layout does - width alone wasn't a strong enough constraint. */
  aspect-ratio: 9 / 20;
  max-height: 420px;
  box-shadow: 5px 5px 0 var(--border-strong);
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.widget-frame {
  margin: 22px auto 0;
  max-width: 340px;
  width: 100%;
  aspect-ratio: 700 / 434;
  max-height: 220px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--border-strong);
}
.widget-frame img { width: 100%; height: 100%; object-fit: cover; }
.widget-caption { text-align: center; font-size: 12.5px; color: var(--text-faint); margin: 10px 0 0; }

/* -- Pricing -- */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 780px; margin: 0 auto; }
.price-card {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 32px);
  display: flex;
  flex-direction: column;
}
.price-card.featured { box-shadow: 6px 6px 0 var(--brand-strong); position: relative; }
.tier-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--brand-strong);
  color: #201200;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  letter-spacing: .05em;
}
.tier-label { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); letter-spacing: .08em; text-transform: uppercase; }
.price-tag { font-family: var(--font-display); font-size: 38px; margin: 10px 0 4px; }
.price-tag span { font-family: var(--font-sans); font-size: 13px; color: var(--text-faint); font-weight: 400; margin-left: 6px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14px; color: var(--text-dim); margin-bottom: 11px; }
.price-card li::before { content: "\2713"; color: var(--good); font-weight: 700; }

/* -- FAQ -- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-top: 1.5px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: 1.5px solid var(--border); }
.faq-item h3 { margin-bottom: 8px; font-size: 16px; }
.faq-item p { margin: 0; font-size: 14.5px; }

/* -- Disclaimer -- */
.disclaimer { background: var(--bg-alt); border-top: 2px solid var(--border-strong); }
.disclaimer p { font-size: 12.5px; color: var(--text-faint); margin: 0; }

/* -- Footer -- */
footer { border-top: 2px solid var(--border-strong); padding: 36px 0; }
.footer-row { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13.5px; color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12.5px; color: var(--text-faint); }

/* -- Lightbox -- */
.zoomable { cursor: zoom-in; }
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 16, 23, 0.88);
  padding: clamp(16px, 5vw, 40px);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  border: 2px solid #333;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ============ Responsive: progressively add room, never remove it ============ */
@media (min-width: 640px) {
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-row { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .clock-zones { gap: 12px; }
}

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .showcase-row { grid-template-columns: 1fr 1fr; }
  .showcase-row.reverse .showcase-media { order: 2; }
  .lite-grid { grid-template-columns: 1fr 1.1fr; }
}

@media (min-width: 980px) {
  .tour-grid { grid-template-columns: repeat(4, 1fr); }
  .tour-tile.featured { grid-column: span 2; grid-row: span 2; }
}
