/* Buildlogg landing v43 — Lovable foundation + acquisition fixes
   - Correct phone aspect (9/19.5)
   - Hook premium chips
   - How tiles contained (no overflow bleed)
   - No early-beta strip styles
   - Improved HTML mockups
*/

:root {
  --radius: 0.5rem;
  --canvas: #fff;
  --surface-soft: #f8f9fa;
  --surface-card: #f5f5f5;
  --surface-strong: #e5e7eb;
  --surface-dark: #101010;
  --surface-dark-elevated: #1a1a1a;
  --hairline: #e5e7eb;
  --hairline-soft: #f3f4f6;
  --ink: #111;
  --body: #374151;
  --muted-soft: #898989;
  --on-dark: #fff;
  --on-dark-soft: #a1a1aa;
  --brand-accent: #3b82f6;
  --success: #10b981;
  --warning: #f59e0b;
  --wa: #25d366;
  --danger: #dc2626;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Cal Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --phone-ratio: 9 / 19.5;
  --phone-w: 290px;
  --phone-w-sm: 260px;
  --max: 1200px;
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
  --shadow-phone: 0 50px 100px -30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.font-display,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ——— Layout ——— */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 2rem;
  }
}

.section {
  border-bottom: 1px solid var(--hairline-soft);
  padding: 5rem 0;
}

.section--soft {
  background: color-mix(in srgb, var(--surface-soft) 40%, transparent);
}

.section--tight {
  padding: 4rem 0;
}

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.center {
  text-align: center;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-md {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 14px;
}

.btn-lg {
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 15px;
}

.btn-primary {
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: #242424;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--ink) 30%, transparent);
  background: var(--surface-soft);
}

.btn-on-dark {
  background: var(--on-dark);
  color: var(--ink);
  box-shadow: var(--shadow-btn);
}

.btn-on-dark:hover {
  background: #f3f4f6;
}

.btn-block {
  width: 100%;
}

.lucide {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--hairline-soft) 70%, transparent);
  background: color-mix(in srgb, var(--canvas) 80%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .nav-inner {
    padding: 0 2rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom right, var(--ink), #2a2a2a);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.brand-mark img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .nav-cta {
    gap: 0.75rem;
  }
}

.nav-signin {
  display: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
}

@media (min-width: 640px) {
  .nav-signin {
    display: inline;
  }
}

.nav-signin:hover {
  color: var(--ink);
}

.nav-burger {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  color: var(--ink);
}

@media (min-width: 768px) {
  .nav-burger {
    display: none;
  }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--canvas);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 0.75rem 0.5rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 0.5rem;
}

.mobile-menu a:hover {
  background: var(--surface-soft);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline-soft);
  padding: 3.5rem 0 4rem;
}

@media (min-width: 640px) {
  .hero {
    padding: 5rem 0 6rem;
  }
}

.hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: -15%;
  width: min(900px, 100%);
  height: 600px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08), transparent 60%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.hero-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--canvas) 70%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 600px;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  color: var(--body);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-trust {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 13px;
  color: var(--muted-soft);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-trust .check {
  width: 14px;
  height: 14px;
  color: var(--success);
}

.hero-visual {
  position: relative;
  margin: 3.5rem auto 0;
  display: flex;
  justify-content: center;
  max-width: 1000px;
}

.hero-visual::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -2rem 0;
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--brand-accent) 6%, transparent),
    transparent
  );
  filter: blur(40px);
}

/* ——— Phone frame (true aspect) ——— */
.phone {
  position: relative;
  width: var(--phone-w-sm);
  aspect-ratio: var(--phone-ratio);
  border-radius: 46px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: #0b0b0c;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .phone {
    width: var(--phone-w);
  }
}

.phone--sm {
  width: 240px;
}

@media (min-width: 640px) {
  .phone--sm {
    width: 260px;
  }
}

.phone-glass {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: var(--canvas);
  display: flex;
  flex-direction: column;
}

.phone-island {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 10;
  width: 92px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: #000;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.phone-status .spacer {
  width: 92px;
  height: 26px;
}

.phone-screen {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 4px 16px 18px;
}

/* ——— Mock UI shared ——— */
.mock-ref {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-soft);
}

.mock-title {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mock-badge {
  border-radius: 9999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.mock-badge--accent {
  background: color-mix(in srgb, var(--brand-accent) 10%, transparent);
  color: var(--brand-accent);
}

.mock-badge--green {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: #059669;
}

.mock-badge--amber {
  background: color-mix(in srgb, var(--warning) 15%, transparent);
  color: #d97706;
}

.mock-badge--red {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
}

.mock-badge--soft {
  background: var(--surface-soft);
  color: var(--body);
}

.mock-total-card {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline-soft);
  background: var(--surface-soft);
  padding: 12px;
}

.mock-total-card .label {
  font-size: 11px;
  color: var(--muted-soft);
}

.mock-total-card .amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.mock-total-card .meta {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted-soft);
}

.mock-lines {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--body);
}

.mock-line strong {
  font-weight: 500;
  color: var(--ink);
}

.mock-footer {
  margin-top: auto;
  padding-top: 12px;
  flex-shrink: 0;
}

.mock-wa {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  background: var(--wa);
  color: #fff;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  border: none;
}

.mock-hint {
  margin-top: 8px;
  text-align: center;
  font-size: 10px;
  color: var(--muted-soft);
}

/* Jobs mock */
.mock-stat-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-stat {
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-soft);
}

.mock-stat--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.mock-stat .k {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
}

.mock-stat--dark .k {
  color: var(--on-dark-soft);
}

.mock-stat .v {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.mock-stat--dark .v {
  color: var(--on-dark);
}

.mock-job {
  border-radius: 10px;
  border: 1px solid var(--hairline-soft);
  padding: 10px;
  background: var(--canvas);
}

.mock-job + .mock-job {
  margin-top: 6px;
}

.mock-job-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  min-width: 2.5rem;
}

.mock-job-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.mock-job-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

/* Booking mock */
.mock-slots {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mock-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--canvas);
}

.mock-slot.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-dark);
}

.mock-service-pill {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid var(--hairline-soft);
  background: var(--surface-soft);
  padding: 8px 12px;
  font-size: 10px;
  color: var(--muted-soft);
}

.mock-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-dark);
  flex-shrink: 0;
}

/* Payments mock */
.mock-owed-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
}

.mock-owed-amt {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.mock-inv {
  border-radius: 10px;
  border: 1px solid var(--hairline-soft);
  padding: 10px 12px;
}

.mock-inv + .mock-inv {
  margin-top: 8px;
}

.mock-inv-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.mock-inv-amt {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.mock-inv-meta {
  margin-top: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-inv-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  color: var(--muted-soft);
}

.mock-pay-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-dark);
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  border: none;
}

/* ——— Hook ——— */
.hook {
  padding: 5rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.hook-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .hook-inner {
    padding: 0 2rem;
  }
}

.hook h2 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hook h2 .muted {
  color: var(--muted-soft);
}

.hook-lead {
  margin: 1.25rem auto 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.hook-cards {
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 900px;
  text-align: left;
}

@media (min-width: 720px) {
  .hook-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.hook-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow-card);
  min-height: 100%;
}

.hook-card-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
}

.hook-from {
  font-size: 14px;
  color: var(--muted-soft);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--muted-soft) 50%, transparent);
}

.hook-arrow {
  font-size: 12px;
  color: var(--brand-accent);
  font-weight: 600;
}

.hook-to {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ——— How it works ——— */
.how {
  padding: 5rem 0;
  border-bottom: 1px solid var(--hairline-soft);
  background: color-mix(in srgb, var(--surface-soft) 40%, transparent);
}

.how-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}

.how-head h2 {
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .how-grid {
    padding: 0 2rem;
  }
}

@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.how-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  box-shadow: var(--shadow-card);
  overflow: hidden; /* contain mockups */
  min-height: 100%;
}

.how-visual {
  position: relative;
  height: 200px;
  padding: 1.25rem 1.25rem 0;
  background: linear-gradient(180deg, var(--surface-soft) 0%, var(--canvas) 100%);
  overflow: hidden;
  flex-shrink: 0;
}

.how-visual .ui-frag {
  height: 100%;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--hairline);
  border-bottom: none;
  background: var(--canvas);
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  padding: 12px 14px;
}

.how-copy {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
}

.how-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
}

.how-copy h3 {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.how-copy p {
  margin-top: 0.5rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}

/* Compact fragments for how tiles */
.frag-quote-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
}

.frag-quote-total .amt {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.frag-wa-mini {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  background: var(--wa);
  color: #fff;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
}

.frag-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.frag-job-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 11px;
}

.frag-job-row:first-of-type {
  border-top: none;
}

.frag-owed {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0 10px;
}

/* ——— Features ——— */
.features {
  padding: 5rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.features-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.features-head h2 {
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.feature-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem 0.25rem;
}

.feature-tabs::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .feature-tabs {
    justify-content: center;
    padding: 0 2rem;
  }
}

.feature-tab {
  flex-shrink: 0;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.feature-tab:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.feature-tab.active,
.feature-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: var(--shadow-btn);
}

.feature-stage {
  max-width: 1000px;
  margin: 2rem auto 0;
  padding: 0 1.25rem;
  min-height: 420px;
}

@media (min-width: 640px) {
  .feature-stage {
    padding: 0 2rem;
    min-height: 460px;
  }
}

.feature-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  animation: featIn 0.2s ease;
}

.feature-panel.active {
  display: grid;
}

@media (min-width: 860px) {
  .feature-panel {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .feature-panel.active {
    display: grid;
  }
}

@keyframes featIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.feature-panel-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.feature-panel-copy > p {
  margin-top: 0.75rem;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  max-width: 36ch;
}

.feature-bullets {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.feature-bullets .bullet-ic {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 1px;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--on-dark);
  flex-shrink: 0;
}

.feature-bullets .bullet-ic .lucide {
  width: 12px;
  height: 12px;
}

.feature-panel-visual {
  display: flex;
  justify-content: center;
}

@media (min-width: 860px) {
  .feature-panel-visual {
    justify-content: flex-end;
  }
}

/* ——— Pricing ——— */
.pricing {
  padding: 5rem 0;
  border-bottom: 1px solid var(--hairline-soft);
  background: color-mix(in srgb, var(--surface-soft) 40%, transparent);
}

.pricing-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.pricing-head h2 {
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.pricing-sub {
  margin: 1.25rem auto 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 820px;
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 0 2rem;
  }
}

.tier {
  border-radius: 1.25rem;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.tier--pro {
  background: var(--surface-dark);
  border-color: #1a1a1a;
  color: var(--on-dark-soft);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5);
}

.tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tier-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.tier--pro .tier-name {
  color: var(--on-dark-soft);
}

.tier-badge {
  border-radius: 9999px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
}

.tier-price {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.tier-price span {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-soft);
  letter-spacing: 0;
}

.tier--pro .tier-price {
  color: var(--on-dark);
}

.tier-price-pro {
  margin-top: 1rem;
}

.tier-price-pro .worth {
  display: block;
  font-size: 13px;
  color: var(--on-dark-soft);
}

.tier-price-pro .free {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tier-price-pro .free em {
  font-style: normal;
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--on-dark-soft);
  margin-left: 0.35rem;
}

.tlist {
  margin: 1.5rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.tlist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.tier--pro .tlist li {
  color: color-mix(in srgb, var(--on-dark) 90%, transparent);
}

.tlist .lucide {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--success);
  flex-shrink: 0;
}

.pricing-note {
  margin: 1.5rem auto 0;
  max-width: 640px;
  padding: 0 1.25rem;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-soft);
}

.trust-row {
  margin: 1.75rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 0 1.25rem;
  font-size: 13px;
  color: var(--muted-soft);
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-row .dot {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--muted-soft);
}

/* ——— Final CTA ——— */
.cta {
  padding: 5rem 0;
  border-bottom: 1px solid var(--hairline-soft);
  text-align: center;
}

.cta-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.cta h2 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.cta > .cta-inner > p {
  margin: 1.25rem auto 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.cta-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.cta-support {
  margin-top: 1.5rem;
  font-size: 13px;
  color: var(--muted-soft);
}

.cta-support a {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 4px;
}

.cta-support a:hover {
  text-decoration-color: var(--ink);
}

/* ——— Footer ——— */
.footer {
  padding: 3.5rem 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .footer-grid {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-blurb {
  margin-top: 1rem;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}

.footer-support {
  margin-top: 0.75rem;
  font-size: 13px;
  color: var(--muted-soft);
}

.footer-support a:hover {
  color: var(--ink);
}

.footer-col h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.footer-col ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a,
.footer-col button {
  font-size: 14px;
  color: var(--body);
  text-align: left;
  padding: 0;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--ink);
}

.footer-bot {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.25rem 0;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted-soft);
}

@media (min-width: 640px) {
  .footer-bot {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* ——— Install modal (minimal) ——— */
.install-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.install-modal.open {
  display: flex;
}

.install-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
}

.install-modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: 1rem;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.3);
}

.install-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  color: var(--muted-soft);
}

.install-modal-close:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.install-modal-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--surface-soft);
  color: var(--ink);
  margin-bottom: 1rem;
}

.install-modal h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.install-modal-subtitle {
  margin-top: 0.35rem;
  font-size: 14px;
  color: var(--body);
}

.install-steps {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.install-step {
  display: flex;
  gap: 0.75rem;
  font-size: 14px;
  color: var(--body);
  line-height: 1.45;
}

.install-step .num {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.install-modal-note {
  margin-top: 1rem;
  font-size: 12px;
  color: var(--muted-soft);
  line-height: 1.45;
}

.install-modal-action {
  margin-top: 1.25rem;
  width: 100%;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 14px;
}

.install-modal-installed {
  margin-top: 1rem;
  font-size: 14px;
  color: var(--body);
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.d1 {
  transition-delay: 0.06s;
}

.reveal.d2 {
  transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-panel {
    animation: none;
  }
}
