:root {
  --duration-enter: 0.6s;
  --duration-stagger: 0.08s;
}

.page-smart-home {
  --accent: #8c6a4f;
  --accent-dark: #76533d;
  --accent-light: #c49a7a;
  --accent-glow: rgba(140, 106, 79, 0.1);
  --accent-glow-strong: rgba(140, 106, 79, 0.18);
  background: var(--bg);
}

.page-smart-home .hero.smart-hero {
  min-height: clamp(460px, 56vh, 620px);
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
}

.page-smart-home .hero .container.smart-hero__layout,
.smart-trust {
  display: grid;
  gap: var(--spacing-xl);
}

.smart-badge,
.smart-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(140, 106, 79, 0.32);
  border-radius: var(--radius-full);
  background: rgba(140, 106, 79, 0.08);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.smart-hero__content h1,
.smart-section-heading h2,
.smart-cta h2,
.smart-hero__panel h2,
.smart-trust__content h2 {
  color: var(--text);
}

.smart-hero__content .sub {
  max-width: 720px;
}

.smart-hero__trust {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.smart-hero__panel,
.smart-tabs,
.smart-cta,
.smart-benefit,
.smart-package,
.smart-stat,
.smart-process__step {
  margin-bottom: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.smart-checklist,
.smart-package__list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-lg) 0 0;
}

.smart-checklist li,
.smart-package__list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: var(--spacing-sm);
  color: var(--muted);
}

.smart-checklist li::before,
.smart-package__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.smart-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.smart-hero__stats div {
  padding: var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

.smart-hero__stats strong {
  display: block;
  color: var(--accent-dark);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1;
}

.smart-hero__stats span,
.smart-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.smart-section-heading {
  max-width: 760px;
  margin-bottom: var(--spacing-lg);
}

.smart-section-heading .kicker,
.smart-cta .kicker {
  margin-bottom: var(--spacing-sm);
  color: var(--accent-dark);
}

.smart-benefits {
  margin-bottom: 0;
}

.smart-benefit {
  position: relative;
  overflow: hidden;
}

.smart-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(140, 106, 79, 0.24);
  border-radius: 14px;
  background: rgba(140, 106, 79, 0.08);
  color: var(--accent-dark);
  font-size: 1.55rem;
}

.smart-benefit--highlight,
.smart-package--featured {
  border-color: rgba(140, 106, 79, 0.5);
  box-shadow: 0 0 0 1px rgba(140, 106, 79, 0.12), var(--shadow-md);
}

.smart-packages {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.smart-package {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.smart-package__name {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.smart-package__name span {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: rgba(140, 106, 79, 0.1);
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
}

.smart-package__name span {
  display: inline-block;
  margin-left: 6px;
}

.smart-package__price {
  margin: auto 0 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
}

.smart-package--featured {
  position: relative;
}

.smart-tabs__header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.smart-tabs__button {
  appearance: none;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.smart-tabs__button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.smart-tabs__button:hover,
.smart-tabs__button:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.smart-tabs__panel {
  padding: var(--spacing-md) 0 0;
}

.smart-process {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  padding: 0;
  margin: 0;
  list-style: none;
}

.smart-process__step {
  position: relative;
  padding-top: calc(var(--spacing-lg) + 10px);
}

.smart-process__number {
  position: absolute;
  top: -16px;
  left: var(--spacing-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.smart-quote {
  margin: 0;
  padding: var(--spacing-lg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--surface);
}

.smart-quote p {
  margin-bottom: var(--spacing-md);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.smart-quote footer {
  color: var(--accent-dark);
  font-weight: 700;
}

.smart-trust__stats {
  display: grid;
  gap: var(--spacing-md);
}

.smart-stat strong {
  color: var(--text);
  font-size: 1.05rem;
}

.smart-faq {
  max-width: 900px;
}

.smart-faq .faq-item {
  background: var(--surface);
}

.smart-faq .faq-item summary h3 {
  margin: 0;
  color: inherit;
  font: inherit;
}

.smart-faq .faq-item p {
  margin: 0;
}

.smart-cta {
  text-align: center;
  padding: calc(var(--spacing-xl) * 1.1) var(--spacing-lg);
  background: var(--bg-secondary);
}

.smart-cta p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.js-enabled [data-tabs] .smart-tabs__panel[hidden] {
  display: none;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--duration-enter) ease, transform var(--duration-enter) cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-index, 0) * var(--duration-stagger));
}

[data-reveal-delay="1"] { --reveal-index: 1; }
[data-reveal-delay="2"] { --reveal-index: 2; }

@media (min-width: 720px) {
  .smart-benefits,
  .smart-process,
  .smart-trust__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-smart-home .hero .container.smart-hero__layout,
  .smart-trust {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
    align-items: center;
  }

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

  .smart-process {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (max-width: 719px) {
  .page-smart-home .hero.smart-hero {
    min-height: auto;
  }

  .smart-hero__stats,
  .smart-tabs__header {
    grid-template-columns: 1fr;
  }

  .smart-tabs__header {
    display: grid;
  }

  .smart-tabs__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smart-tabs__button,
  .smart-package,
  .smart-benefit,
  .smart-process__step,
  .smart-stat,
  .smart-cta,
  .smart-hero__panel {
    animation: none !important;
    transition: none !important;
  }

  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
