:root {
  --bg: #ffffff;
  --surface: #FAF6F2;
  --surface-strong: #EAE4DE;
  --text: #3D2518;
  --text-muted: #8B7B73;
  --border: #E8DDD0;
  --primary: #5A4A42;
  --primary-strong: #3D2518;
  --shadow: 0 8px 28px rgba(90, 74, 66, 0.10);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1120px;
  --accent-success: #2D7A4F;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
}

/* Page background hero image — set --page-bg-image per page for unique images */
body::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background-image: var(--page-bg-image, url('/countertop-hero-phone.png'));
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

/* ─── Mobile-only header sign-in button ──────────────────────── */
.mobile-header-signin {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  min-height: 38px;
  border-radius: 999px;
}

/* ─── Sticky bottom CTA bar ──────────────────────────────────── */
.sticky-bottom-cta {
  display: none;
}

@media (max-width: 760px) {
  .sticky-bottom-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    z-index: 35;
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }

  .sticky-bottom-cta.visible {
    transform: translateY(0);
  }

  .sticky-bottom-cta-btn {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* Ensure all content sits above the background */
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

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

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

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

.section {
  padding: 3.75rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-header {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-logo {
  height: 44px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  font-weight: 700;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.94rem;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-header-inner .mobile-header-signin {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.hero-wrap {
  padding: 2rem 0 1rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 370px);
  gap: 1.25rem;
  align-items: start;
}

.hero-visual {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #FEFCFA, #FAF6F2);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.19rem, 1.19vw + 0.595rem, 1.785rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  white-space: normal;
}

@media (min-width: 1024px) {
  .hero-copy h1 {
    white-space: nowrap;
  }
}

.hero-copy .hero-sub,
.hero-copy p {
  margin: 0.85rem 0 1.1rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 56ch;
  font-size: 1.02rem;
}

.hero-cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-support {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  padding: 0;
}

.hero-meta-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.hero-meta-item strong {
  color: var(--text);
  font-weight: 700;
}

.hero-shot {
  margin-top: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.shot-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.7rem;
  background: #FAF6F2;
  border-bottom: 1px solid var(--border);
}

.shot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C8B5A0;
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.75rem;
}

.shot-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  background: #FEFCFA;
}

.shot-card h3 {
  margin: 0;
  font-size: 0.82rem;
}

.shot-card p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

/* ─── Hero pitch block ───────────────────────────────────────── */
.hero-pitch {
  margin: 1rem 0 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(145deg, #F5F0EA, #EDE6DD);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hero-pitch-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hero-pitch-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-pitch-signup-btn {
  flex-shrink: 0;
}

.hero-pitch-trust {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-pitch-trial-heading {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-pitch-list {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  counter-reset: pitch-counter;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-pitch-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}

.hero-pitch-list li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background-color: var(--accent-success);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

.hero-pitch-closer {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--accent-success);
  line-height: 1.3;
}

/* ─── Animation placeholder slot ────────────────────────────── */
.hero-anim-slot {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #F5F0EA, #EDE6DD);
  border-radius: 10px;
}

.hero-anim-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Auth card enhancements ─────────────────────────────────── */

.auth-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0.6rem 0 0.75rem;
}

.auth-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.auth-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  display: block;
}

.auth-progress-step--active .auth-progress-dot {
  background: var(--accent-success);
  border-color: var(--accent-success);
}

.auth-progress-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.auth-progress-step--active .auth-progress-label {
  color: var(--accent-success);
}

.auth-progress-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 0.2rem;
  margin-bottom: 0.9rem;
}

.auth-badge-row {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.auth-badge {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-success);
  line-height: 1.3;
}

.auth-section-label {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
}

.auth-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem 1.1rem;
}

.auth-panel h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.auth-panel .card-sub {
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.auth-panel .form-group {
  margin-bottom: 0.6rem;
}

.auth-panel .form-row {
  display: flex;
  gap: 0.55rem;
}

.auth-panel .form-row .form-group {
  flex: 1;
  min-width: 0;
}

.auth-panel label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
}

.auth-panel input[type="text"],
.auth-panel input[type="email"],
.auth-panel input[type="password"],
.auth-panel input[type="tel"] {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 9px;
  padding: 0.5rem 0.65rem;
  color: var(--text);
  min-height: 40px;
  font-size: 0.92rem;
}

.auth-panel input:focus {
  outline: 2px solid rgba(200, 181, 160, 0.35);
  outline-offset: 1px;
  border-color: #C8B5A0;
}

.auth-panel .field-hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0.6rem 0;
}

.auth-panel .section-label {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
}

.auth-panel .auth-submit {
  width: 100%;
  border-radius: 9px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  padding: 0.65rem;
  font-weight: 700;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.95rem;
}

.auth-switch {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}


.auth-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(61, 37, 24, 0.62);
  z-index: 1200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem;
}

.auth-mobile-sheet {
  width: min(100%, 500px);
  max-height: min(88vh, 780px);
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 20px 48px rgba(61, 37, 24, 0.24);
  padding: 0.85rem 0.95rem 1rem;
}

.auth-mobile-sheet .auth-panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* On desktop the sheet lives inside the hero grid — restore normal panel
   sizing so there is no internal scroll and the Sign In button stays visible */
@media (min-width: 761px) {
  .auth-mobile-sheet {
    max-height: none;
    overflow-y: visible;
    border-radius: var(--radius);
    padding: 1rem 1.1rem 1.1rem;
  }
}

.auth-mobile-sheet-head {
  display: none;
}

.signup-no-cc-tagline {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 761px) {
  .signup-no-cc-tagline {
    display: none;
  }
}

.auth-mobile-close {
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

body.auth-mobile-open {
  overflow: hidden;
}

body.auth-mobile-open .auth-mobile-backdrop {
  display: flex;
}

/* Desktop modal mode — centered overlay triggered by Start free on desktop */
body.auth-desktop-modal-open {
  overflow: hidden;
}

body.auth-desktop-modal-open .auth-mobile-backdrop {
  display: flex;
  align-items: center;
}

body.auth-desktop-modal-open .auth-panel.auth-mobile-sheet {
  position: fixed;
  z-index: 1210;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 500px);
  max-height: min(90vh, 780px);
  overflow-y: auto;
  border-radius: var(--radius);
  background: #fff;
}

body.auth-desktop-modal-open .auth-mobile-sheet-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}

.alert {
  padding: 0.7rem;
  border-radius: 10px;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
}

.alert-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}

.alert-success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
}

.loading {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  display: inline-block;
  margin-right: 0.35rem;
  animation: spin 0.75s linear infinite;
  vertical-align: text-bottom;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.value-pill {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem;
  text-align: center;
  font-weight: 600;
}

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

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

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

.feature-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(90, 74, 66, 0.06);
  padding: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

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

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

.step {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--primary-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

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

.audience-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.95rem;
}

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

.audience-card p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: clip;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1rem;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 0 1rem 1rem;
}

.cta-band {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.3rem;
  background: linear-gradient(160deg, #FEFCFA 0%, #FAF6F2 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 0.45rem;
  font-size: 1.4rem;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
}

.screenshot-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screenshot-caption {
  border-top: 1px solid var(--border);
  padding: 0.8rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.pricing-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 380px);
  gap: 1rem;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.price {
  font-size: 2.2rem;
  margin: 0;
}

.price-sub {
  color: var(--text-muted);
  margin: 0.3rem 0 1rem;
}

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

.check-list li {
  color: var(--text-muted);
  line-height: 1.45;
  padding-left: 1.1rem;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.53rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C8B5A0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.lede {
  color: var(--text-muted);
  line-height: 1.55;
}

.stack {
  display: grid;
  gap: 1rem;
}

.menu-toggle {
  display: none;
}

@media (max-width: 980px) {
  .hero-shell,
  .pricing-wrap {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .feature-grid.feature-grid-6,
  .value-row,
  .steps,
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 60px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    order: 3;
    margin-left: 0.35rem;
  }

  .site-actions {
    display: none;
  }

  .site-header-inner .mobile-header-signin {
    display: inline-flex;
    order: 2;
  }

  .brand {
    order: 1;
    margin-right: auto;
  }

  .site-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 320px);
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 28px rgba(61, 37, 24, 0.16);
    transform: translateX(100%);
    transition: transform 0.24s ease;
    z-index: 50;
    padding: 4.75rem 1.1rem 1.5rem;
    padding-top: calc(4.75rem + env(safe-area-inset-top, 0px));
    overflow-y: auto;
    visibility: hidden;
  }

  .site-nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.95rem 0.4rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 600;
  }

  .site-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(61, 37, 24, 0.42);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .site-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  body.site-nav-locked {
    overflow: hidden;
  }

  .section {
    padding: 2.75rem 0;
  }

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

  .feature-card {
    box-shadow: none;
  }

  .section-header {
    margin-bottom: 1rem;
  }

  .feature-grid,
  .feature-grid.feature-grid-6,
  .value-row,
  .steps,
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    padding: 0.6rem;
  }

  .auth-panel .form-row {
    flex-direction: column;
    gap: 0;
  }

  .hero-wrap {
    padding: 1rem 0 0.5rem;
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  }

  .hero-shell {
    gap: 0.9rem;
  }

  .hero-visual {
    padding: 1.05rem;
  }

  body::before {
    opacity: 0;
  }

  body {
    padding-bottom: 72px;
  }

  .hero-copy h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.15;
    white-space: normal;
  }

  .hero-copy .hero-sub,
  .hero-copy p {
    margin: 0.65rem 0 0.9rem;
    font-size: 0.98rem;
    max-width: 100%;
  }

  .hero-cta-row {
    flex-direction: column;
    gap: 0.55rem;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .hero-meta {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    gap: 0.5rem;
  }

  .hero-meta-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero-shot {
    margin-top: 1.25rem;
    box-shadow: none;
    border-color: var(--border);
  }

  .shot-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .shot-card {
    box-shadow: none;
  }

  .cta-band {
    padding: 1.1rem;
  }

  .cta-band h2 {
    font-size: 1.2rem;
  }

  .auth-panel {
    display: none;
  }

  body.auth-mobile-open .auth-panel.auth-mobile-sheet {
    display: block;
    position: fixed;
    z-index: 1210;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 1rem);
    max-width: 480px;
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1rem);
    overflow-y: auto;
    background: #fff;
  }

  .auth-mobile-sheet-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.55rem;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
  }

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

  .mobile-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    backdrop-filter: saturate(140%) blur(8px);
    border-top: 1px solid var(--border, #e9dfd6);
    box-shadow: 0 -6px 18px rgba(61, 37, 24, 0.08);
    pointer-events: auto;
  }

  body.auth-mobile-open .mobile-sticky-cta {
    display: none;
  }

  .mobile-sticky-cta-btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 999px;
    background: var(--primary, #C8553D);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(200, 85, 61, 0.25);
  }

  .mobile-sticky-cta-btn:active {
    transform: translateY(1px);
  }
}

@media (min-width: 761px) {
  .mobile-sticky-cta {
    display: none;
  }
}

/* ── Mobile entry screen shared styles ───────────────────────────────────────
   Used inside the native iOS/Android shell auth entry gateway (#mobile-entry).
   Platform-specific layout (flex sizing, safe-area padding, show/hide rules)
   lives in platform-ios.css / platform-android.css. These rules cover shared
   visual styling that is identical across both platforms.
*/

/* Inner column that stacks: wordmark slot, copy, CTAs.
   Sits above the .mobile-entry-hero-wrap watermark (z-index handled in
   platform-ios.css / platform-android.css). */
.mobile-entry-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 0.75rem;
}

/* Wordmark at the top of the entry screen. Uses the non-breaking hyphen
   entity so "Countertop-App" never wraps across lines. */
.mobile-entry-wordmark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.25rem 0 0.65rem;
}
.mobile-entry-wordmark-img {
  height: 30px;
  width: auto;
  display: block;
}
.mobile-entry-wordmark-text {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: #3D2518;
  text-transform: none;
  line-height: 1;
}

/* Hero illustration is rendered as a faded watermark that sits behind the
   entry copy/CTAs rather than as an inline image. Positioned absolutely
   inside .mobile-entry-inner (which fills #mobile-entry) so it spans the
   whole entry screen, centered and contained. Opacity ~15% keeps it as a
   subtle background; pointer-events:none prevents it from intercepting taps. */
.mobile-entry-hero-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  opacity: 0.15;
  padding: 0;
  overflow: hidden;
}
.mobile-entry-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.mobile-entry-copy {
  flex: 0 0 auto;
  padding: 0.65rem 0 0.5rem;
  text-align: center;
}
.mobile-entry-headline {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.15;
  color: #3D2518;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
  text-align: center;
}
.mobile-entry-sub {
  font-size: 1rem;
  line-height: 1.5;
  color: #6B5A52;
  margin: 0 0 1.1rem;
  text-align: center;
}

.mobile-entry-ctas {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 0.25rem;
  padding-top: 1.1rem;
  gap: 0.6rem;
  min-height: 0;
}

/* Primary CTA — warm orange, prominent, premium feel.
   Buttons are constrained to ~50% width and centered so they no longer
   stretch edge-to-edge. */
.mobile-entry-btn-primary {
  width: 50%;
  max-width: 220px;
  min-width: 160px;
  min-height: 54px;
  border: none;
  border-radius: 16px;
  background: #C8654A;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(200, 101, 74, 0.38);
  transition: background 0.12s, box-shadow 0.12s;
}
.mobile-entry-btn-primary:active {
  background: #B5583F;
  box-shadow: 0 2px 8px rgba(200, 101, 74, 0.28);
}

/* Secondary CTA — outlined, clearly secondary but still polished */
.mobile-entry-btn-secondary {
  width: 50%;
  max-width: 220px;
  min-width: 160px;
  min-height: 52px;
  border: 2px solid rgba(200, 101, 74, 0.65);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  color: #C8654A;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.01em;
  transition: background 0.12s, border-color 0.12s;
}
.mobile-entry-btn-secondary:active {
  background: rgba(200, 101, 74, 0.08);
  border-color: #C8654A;
}

/* Back button inside the auth panel — hidden by default (browsers never see it) */
.mobile-entry-back-btn {
  display: none;
}

