:root {
  --home-dark: #27312f;
  --home-light: #cae7da;
  --home-surface: #ffffff;
  --home-text: #27312f;
  --home-muted: #41524e;
  --home-border: #b9d7c8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--home-text);
  background: #eff8f3;
  scroll-behavior: smooth;
}

.home-container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(239, 248, 243, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--home-border);
}

.home-header-inner {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--home-text);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-brand-logo {
  width: clamp(34px, 3.2vw, 44px);
  height: auto;
  max-height: 44px;
  flex: 0 0 auto;
  max-width: 100%;
  object-fit: contain;
}

.home-top-nav {
  margin-left: auto;
  display: inline-flex;
  gap: 14px;
}

.home-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--home-border);
  background: #fff;
  padding: 8px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.home-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #27312f;
}

.home-top-nav a {
  text-decoration: none;
  color: var(--home-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

.home-btn:hover {
  transform: translateY(-1px);
}

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

.home-header-cta {
  margin-left: 10px;
  min-height: 40px;
  padding: 0 11px;
  font-size: 0.76rem;
  white-space: nowrap;
}

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

.home-section {
  padding: 80px 0;
}

.home-hero {
  padding-top: 48px;
}

.home-hero-section {
  background: linear-gradient(180deg, #eef8f3 0%, #f7fcf9 100%);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

.home-eyebrow {
  margin: 0 0 8px;
  color: var(--home-muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.home-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.home-hero-copy p {
  margin: 16px 0 0;
  color: var(--home-muted);
  line-height: 1.72;
  font-size: 1.06rem;
}

.home-cta-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-hero-preview {
  border: 1px solid var(--home-border);
  background: #f9fffc;
  border-radius: 16px;
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-preview-card h3 {
  margin: 0 0 10px;
}

.home-preview-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--home-muted);
  display: grid;
  gap: 10px;
}

.home-section:nth-child(even) {
  background: #f6fcf9;
  border-top: 1px solid #e3f0e9;
  border-bottom: 1px solid #e3f0e9;
}

.home-problem-section {
  background: #f9fdfb;
}

.home-problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.home-problem-card {
  display: grid;
  align-content: start;
}

.home-problem-card h2 {
  margin: 0;
  line-height: 1.2;
  min-height: 58px;
}

.home-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--home-muted);
  display: grid;
  gap: 8px;
}

.home-versus-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  background: #f2faf6;
}

.home-versus-pane {
  border: 1px solid #cfe2da;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.home-pane-head {
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.home-pane-head-manual {
  background: #cae7da;
}

.home-pane-head-pilot {
  background: #27312f;
}

.home-pane-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #5a6f68;
  text-transform: uppercase;
}

.home-pane-head-manual .home-pane-label {
  color: #27312f;
}

.home-pane-head-pilot .home-pane-label {
  color: #f3fff9;
}

.home-versus-pane h2 {
  margin: 0;
  line-height: 1.25;
  min-height: 52px;
  font-size: 1.08rem;
}

.home-versus-mid {
  align-self: center;
  justify-self: center;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #bcd8cb;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.home-check-list {
  list-style: none;
  padding-left: 0;
}

.home-check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #cae7da;
  padding: 2px;
  stroke: #27312f;
  flex: 0 0 auto;
}

.home-feature-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.home-features-dark {
  background: #27312f;
  border-top: 1px solid #33403d;
  border-bottom: 1px solid #33403d;
}

.home-features-dark h2 {
  color: #eef8f3;
}

.home-features-dark .home-card {
  background: #32413d;
  border-color: #465854;
}

.home-features-dark .home-card h3 {
  color: #f4fffa;
}

.home-features-dark .home-card p {
  color: #cfe2da;
}

.home-mini-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
  background: #cae7da;
  color: #27312f;
  font-size: 0.7rem;
  font-weight: 800;
  vertical-align: middle;
}

.home-features-dark .home-mini-icon {
  background: #cae7da;
  color: #27312f;
}

.home-card {
  border: 1px solid var(--home-border);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  height: 100%;
}

.home-card h3 {
  margin: 0 0 8px;
}

.home-card p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.55;
}

.home-steps {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.home-step span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--home-light);
  font-weight: 800;
  margin-bottom: 10px;
}

.home-flow-section {
  background: #f4fbf7;
}

.home-flow-section h2 {
  text-align: center;
}

.home-steps-flow {
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
}

.home-step-flow {
  min-height: 180px;
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: start;
}

.home-step-circle {
  width: 42px !important;
  height: 42px !important;
  font-size: 1rem;
  margin-bottom: 12px !important;
  margin-left: auto;
  margin-right: auto;
}

.home-step-icon svg {
  width: 20px;
  height: 20px;
  stroke: #27312f;
}

.home-step-arrow {
  color: #5b726a;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 2px;
  align-self: center;
}

.home-trust-section {
  background: #f8fdf9;
}

.home-qr-section {
  background: #eff8f3;
}

.home-step h3 {
  margin: 0 0 6px;
}

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

.home-trust p {
  margin: 12px 0 0;
  color: var(--home-muted);
}

.home-stat-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-stat-grid article {
  border: 1px solid var(--home-border);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.home-stat-grid strong {
  font-size: 1rem;
}

.home-stat-grid span {
  color: var(--home-muted);
  font-size: 0.86rem;
}

.home-support-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-support-note {
  margin-top: 12px;
  font-size: 0.92rem;
}

.home-start-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
}

#startGoogleBtn {
  min-height: 44px;
  display: flex;
  align-items: center;
}

#startGoogleBtn > div {
  width: 100%;
}

.home-start-locked {
  opacity: 0.64;
  pointer-events: none;
}

.home-support-form-wrap {
  margin-top: 14px;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.home-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-support-form-wrap label {
  display: grid;
  gap: 6px;
}

.home-support-form-wrap span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--home-muted);
}

.home-support-form-wrap input,
.home-support-form-wrap textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--home-border);
  padding: 10px 12px;
  font: inherit;
  color: var(--home-text);
  background: #fff;
}

.home-support-form-wrap textarea {
  resize: vertical;
}

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

.home-form-msg {
  margin: 0;
  font-size: 0.88rem;
}

.home-form-msg.ok {
  color: #0f7250;
}

.home-form-msg.err {
  color: #b42318;
}

.home-section.home-final-cta {
  padding-top: 60px;
  padding-bottom: 92px;
  background: #27312f;
  border-top: 1px solid #33403d;
  border-bottom: 1px solid #33403d;
}

.home-final-cta h2 {
  color: #eef8f3;
}

.home-final-cta p {
  color: #cae7da;
}

.home-final-cta .home-btn-primary {
  background: #cae7da;
  color: #27312f;
  border-color: #cae7da;
}

.home-footer {
  border-top: 1px solid var(--home-border);
  padding: 20px 0 34px;
  background: #eff8f3;
}

.home-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 12px;
}

.home-footer-links a {
  color: var(--home-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.home-footer-links a:hover {
  color: var(--home-ink);
  text-decoration: underline;
}

.home-footer p {
  margin: 0;
  color: var(--home-muted);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 960px) {
  .home-menu-toggle {
    display: inline-flex;
    margin-left: 8px;
    order: 3;
  }

  .home-top-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    margin-left: 0;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(39, 49, 47, 0.12);
    z-index: 25;
    flex-direction: column;
    gap: 2px;
  }

  .home-header.menu-open .home-top-nav {
    display: flex;
  }

  .home-top-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .home-top-nav a:hover {
    background: #eff8f3;
  }

  .home-hero-grid,
  .home-feature-grid,
  .home-steps,
  .home-stat-grid,
  .home-support-grid,
  .home-start-grid,
  .home-form-grid {
    grid-template-columns: 1fr;
  }

  .home-steps-flow {
    grid-template-columns: 1fr;
  }

  .home-step-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .home-versus-card {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .home-versus-pane h2 {
    min-height: 0;
    font-size: 0.92rem;
  }

  .home-check-list li {
    font-size: 0.78rem;
    align-items: flex-start;
  }

  .home-check-icon {
    margin-top: 1px;
  }

  .home-versus-mid {
    width: 8px;
    height: 8px;
    font-size: 0;
  }

  .home-header-inner {
    min-height: 66px;
    gap: 10px;
  }

  .home-section {
    padding: 56px 0;
  }

  .home-brand span {
    font-size: 1rem;
  }

  .home-brand-logo {
    width: 34px;
    max-height: 34px;
  }

  .home-header-inner .home-btn-primary {
    min-height: 38px;
    padding: 0 9px;
    font-size: 0.72rem;
    order: 2;
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .home-container {
    width: min(1180px, 94vw);
  }

  .home-hero-copy h1 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .home-hero-copy p {
    font-size: 0.98rem;
  }

  .home-btn {
    width: 100%;
  }

  .home-header-inner .home-btn {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
  }

  .home-problem-card h2 {
    min-height: 0;
  }
}
