:root {
  --ink: #0F172A;
  --muted: #64748B;
  --hairline: #E2E8F0;
  --canvas: #F8FAFC;
  --surface: #FFFFFF;
  --accent: #059669;
  --accent-soft: #D1FAE5;
  --accent-deep: #047857;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lift: 0 12px 32px rgba(15, 23, 42, 0.10);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.brand-name { font-size: 16px; letter-spacing: -0.01em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a:not(.btn) {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--accent-deep); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 16px rgba(5, 150, 105, 0.25);
}
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 400px at 110% -10%, rgba(5, 150, 105, 0.08), transparent 60%),
    radial-gradient(700px 380px at -10% 30%, rgba(5, 150, 105, 0.05), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.lede {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 56ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-note {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

/* ---------- Phone frames / screenshots ---------- */
.hero-visual { display: flex; justify-content: center; }

.phone-frame {
  position: relative;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  margin: 0;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #1f2937, #0f172a);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.phone-frame img,
.phone-frame .phone-placeholder {
  border-radius: 28px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(180deg, var(--accent-soft), #fff 65%);
}
.phone-frame .phone-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 10px;
  text-align: center;
}
.phone-placeholder-label {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 999px;
}
.phone-frame img { position: relative; z-index: 1; }
/* if image loaded successfully, hide placeholder */
.phone-frame img:not([style*="display: none"]) + .phone-placeholder { display: none; }
.phone-frame.phone-empty img { display: none; }

.phone-frame figcaption {
  position: absolute;
  bottom: -42px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: none;
}

.phone-frame-hero { width: 280px; }

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
}
.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
  margin: 0 0 40px;
}

/* ---------- Features ---------- */
.features { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #cbd5e1;
}
.feature-card-highlight {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--accent-soft), var(--canvas) 80%);
  border-color: rgba(5, 150, 105, 0.35);
}
.feature-card-highlight .feature-icon {
  margin-bottom: 0;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
}
.feature-card-highlight h3 { margin: 0 0 4px; font-size: 1.2rem; }
.feature-card-highlight p { font-size: 16px; }

@media (max-width: 600px) {
  .feature-card-highlight {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .feature-card-highlight .feature-icon { margin-bottom: 16px; }
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.075rem;
  letter-spacing: -0.005em;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Steps ---------- */
.steps {
  background: var(--canvas);
}
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step-list li {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.step-list h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Screenshots row ---------- */
.screenshots { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: center;
  padding-bottom: 48px;
}
.screenshot-row .phone-frame { width: 240px; }
.screenshot-row .phone-frame figcaption { white-space: nowrap; }

/* ---------- Reviews ---------- */
.reviews { background: var(--canvas); }

.reviews-header { margin-bottom: 32px; text-align: center; }
.reviews-header .section-title { margin-bottom: 8px; }
.reviews-header .section-lede { margin: 0 auto; }

.reviews-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}

.reviews-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.reviews-arrow:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.reviews-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.reviews-arrow:disabled { opacity: 0.3; cursor: default; }
.reviews-arrow:disabled:hover { background: var(--surface); border-color: var(--hairline); color: var(--ink); }

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  min-width: 0;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-lg); }

.review-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  box-shadow: var(--shadow-card);
}
.review-stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 4px;
  line-height: 1;
}
.review-card blockquote {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
}
.review-attribution {
  margin-top: auto;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.review-attribution span {
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 600px) {
  .reviews-carousel { gap: 8px; }
  .reviews-arrow { width: 38px; height: 38px; }
  .review-card { padding: 22px; min-height: 220px; }
  .review-card blockquote { font-size: 1rem; }
}

/* ---------- Install ---------- */
.install { background: var(--canvas); }
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.install-copy .btn { margin-top: 16px; }
.muted-note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.install-steps details {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.install-steps details[open] { border-color: var(--accent); box-shadow: var(--shadow-card); }
.install-steps summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.install-steps summary::-webkit-details-marker { display: none; }
.install-steps summary::after {
  content: "+";
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.install-steps details[open] summary::after { content: "−"; }
.install-steps ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
}
.install-steps ol li { margin-bottom: 6px; }
.install-steps ol li strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); border-top: 1px solid var(--hairline); }
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  margin: 0;
}
.faq-list dt {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.faq-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .phone-frame-hero { width: 240px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .screenshot-row { grid-template-columns: 1fr; gap: 64px; }
  .install-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-nav a:not(.btn) { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
