:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5b6b7f;
  --accent: #0b7fd4;
  --accent-soft: #e8f4fd;
  --border: #d9e2ec;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(26, 35, 50, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-icon {
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.2rem 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--muted);
  max-width: 42rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.hero-price {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.hero-price strong {
  color: var(--text);
}

.trust-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.trust-head .lead {
  margin-bottom: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.trust-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.trust-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.audience-grid {
  margin-top: 1.75rem;
}

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
}

.audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.audience-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.audience-card .audience-tag {
  margin-bottom: 0.5rem;
}

.audience-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.waitlist-inner {
  max-width: 36rem;
  text-align: center;
}

.waitlist-inner .eyebrow {
  margin-bottom: 0.75rem;
}

.waitlist-inner .lead {
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.waitlist-form input {
  flex: 1 1 16rem;
  min-width: 0;
  background: var(--surface);
}

.waitlist-form .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.waitlist-form .form-status {
  flex-basis: 100%;
  margin: 0;
}

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

.section {
  padding: 3rem 0;
}

section[id] {
  scroll-margin-top: 80px;
}

.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.45rem, 4vw, 1.8rem);
}

.grid-3,
.grid-2,
.grid-4,
.split,
.demo-layout,
.hero-grid {
  min-width: 0;
}

.card,
.form-card,
.community-callout {
  min-width: 0;
  overflow-wrap: anywhere;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h3 {
  margin-top: 0;
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.quote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  text-align: center;
  border: none;
  cursor: pointer;
  font: inherit;
}

button.button {
  width: auto;
}

.button.secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
}

.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  font-size: 2rem;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.demo-layout-spaced {
  margin-top: 2rem;
}

.gallery-spaced {
  margin-top: 2.5rem;
}

.cta-spaced {
  margin-top: 2rem;
}

.icon-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.icon-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.audience-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select,
textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  font-size: 0.92rem;
  margin-top: 0.75rem;
}

.form-status.success {
  color: #0d7a3f;
}

.form-status.error {
  color: #b42318;
}

.community-callout {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.page-hero {
  padding: 3rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.subnav a {
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
}

.subnav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.demo-section {
  padding: 3rem 0;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.demo-layout > div {
  min-width: 0;
}

.phone-frame {
  background: #111;
  border-radius: 16px;
  padding: 6px;
  box-shadow: var(--shadow);
  max-width: min(100%, 280px);
  margin: 0 auto;
  overflow: hidden;
}

.phone-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  background: #fff;
  height: auto;
}

.phone-frame img.is-placeholder {
  opacity: 0.55;
  filter: grayscale(0.2);
}

.phone-frame-sm {
  max-width: min(100%, 200px);
}

#hero-phone {
  justify-self: center;
  max-width: min(100%, 280px);
}

.reel-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  max-width: 100%;
  min-width: 0;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
  scrollbar-width: none;
  cursor: grab;
}

.reel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.reel-track::-webkit-scrollbar {
  display: none;
}

.reel-slide {
  flex: 0 0 min(78%, 260px);
  scroll-snap-align: center;
  scroll-snap-stop: normal;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  user-select: none;
  -webkit-user-drag: none;
}

.reel-slide .phone-frame {
  max-width: 200px;
}

.reel-copy h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}

.reel-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.reel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.reel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  padding: 0;
  cursor: pointer;
}

.reel-dot.active {
  background: var(--accent);
  width: 22px;
}

.demo-video-wrap {
  max-width: 240px;
  margin: 0 auto;
}

.demo-video-wrap video {
  width: 100%;
  border-radius: 20px;
  background: #000;
  box-shadow: var(--shadow);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
  gap: 1rem;
  justify-content: center;
}

.screenshot-card {
  margin: 0;
  text-align: center;
}

.screenshot-card figcaption {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.screenshot-card strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}

.capture-note {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Tablet */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .demo-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-copy {
    order: 2;
  }

  #hero-phone {
    order: 1;
    max-width: min(100%, 260px);
    margin-bottom: 0.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    width: min(1080px, calc(100% - 1.5rem));
  }

  .nav {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  #primary-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  }

  #primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  #primary-nav a {
    white-space: normal;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    text-align: left;
  }

  .hero {
    padding: 1.75rem 0 1.25rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-copy {
    order: 1;
  }

  #hero-phone {
    order: 2;
    max-width: min(100%, 320px);
    width: 82%;
  }

  .section,
  .demo-section {
    padding: 2rem 0;
  }

  .page-hero {
    padding: 1.75rem 0 1.25rem;
  }

  .demo-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .demo-layout > div:last-child {
    order: -1;
  }

  #screenshot-gallery {
    display: none;
  }

  .grid-3,
  .grid-2,
  .grid-4,
  .split,
  .story {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .waitlist-form .button {
    width: 100%;
    flex-basis: 100%;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row .button {
    width: 100%;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-grid .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.35rem;
  }

  .footer-grid .nav-links a {
    background: transparent;
    border: none;
    padding: 0.35rem 0;
  }

  .steps li {
    padding: 1rem 1rem 1rem 3.25rem;
  }

  .steps li::before {
    left: 0.85rem;
    top: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.85rem;
  }

  .reel-slide {
    flex: 0 0 92%;
  }

  .reel-copy p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .phone-frame {
    background: transparent;
    padding: 0;
    box-shadow: 0 10px 28px rgba(26, 35, 50, 0.14);
    border-radius: 18px;
  }

  .phone-frame img {
    border-radius: 18px;
  }

  .form-card,
  .community-callout,
  .card {
    padding: 1rem;
  }

  .legal-page {
    padding: 2rem 0 3rem;
  }

  .legal-page h1 {
    font-size: 1.6rem;
  }

  .icon-card {
    padding: 1.25rem 1rem;
  }

  .icon-card .icon {
    font-size: 1.75rem;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .subnav {
    gap: 0.4rem;
  }

  .site-footer {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
  }
}

/* Small phones */
@media (max-width: 380px) {
  .brand {
    font-size: 0.95rem;
  }

  .screenshot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phone-frame,
  #hero-phone {
    max-width: min(100%, 200px);
  }
}
