/* ============================================================
   Smart Dwellio — "Ecobee Bright" direction: light/white, charcoal
   ink, warm orange accent, real lifestyle photography instead of
   line-art/SVG icons for hero and card media. Sourced from live
   web research (WebSearch/WebFetch, 2026-07-21):
     - ecobee.com — white/charcoal/orange palette, lifestyle hero photo
     - evehome.com — considered, not used (dark/graph direction)
     - commercial.lutron.com — considered, not used (warm-ambient/luxury direction)
   Photos are real, free-tier Unsplash images downloaded once and
   self-hosted in assets/img/ (not hotlinked).
   ============================================================ */

/* Pillar icons — flat colored circle badges (Ecobee-style), replacing
   the gradient-square treatment used in earlier white-pages in this
   batch: a light brand-tint circle with a brand-colored glyph,
   not a bold filled shape needing an inverted icon color. */
.pillar__icon {
  background: var(--brand-tint) !important;
  border: none !important;
  border-radius: 999px !important;
  color: var(--brand) !important;
}
.pillar__icon--accent {
  background: var(--accent-tint) !important;
  color: var(--accent) !important;
}
.pillar__icon--ink {
  background: var(--surface-3) !important;
  color: var(--ink-soft) !important;
}
/* animations.css defines a later, higher-priority rule that forces
   .licon--invert (and .licon--on-light) glyphs to a fixed white/brand
   color regardless of context — invisible here since pillar__icon is
   now a light pastel circle, not a dark gradient tile. Override at
   equal specificity (two classes + !important, loaded after
   animations.css) so each pillar variant's icon glyph actually matches
   its own badge color instead of rendering near-white-on-white. */
.pillar__icon .licon__bi,
.pillar__icon .licon > .bi {
  color: var(--brand) !important;
}
.pillar__icon--accent .licon__bi,
.pillar__icon--accent .licon > .bi {
  color: var(--accent) !important;
}
.pillar__icon--ink .licon__bi,
.pillar__icon--ink .licon > .bi {
  color: var(--ink-soft) !important;
}

.pillar__more {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--brand) !important;
  margin-top: auto;
  padding-top: 0.6rem !important;
}
.pillar__more:hover {
  background: none !important;
  color: var(--accent) !important;
}

.pillars--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .pillars--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars--4 { grid-template-columns: 1fr; } }

/* ============================================================
   Hero — split composition: real lifestyle photo filling a full-height
   column on the right, copy sitting in its own plain white column on
   the left — not a floating glass card centered over a full-bleed photo
   (the pattern every earlier white-page hero in this batch used,
   this site's first orbit-hero draft). Different placement AND style,
   not just a different palette/photo dropped into the same layout.
   ============================================================ */
.hero {
  display: flex;
  align-items: stretch;
  min-height: calc(100svh - var(--topbar-h));
  padding: 0;
  overflow: hidden;
  background: var(--surface);
}
.hero__media {
  position: relative;
  inset: auto;
  order: 2;
  flex: 1 1 56%;
  min-height: 22rem;
  opacity: 1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 12%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.1) 100%);
}
.hero .container.hero__inner {
  order: 1;
  flex: 1 1 44%;
  width: auto;
  max-width: 30rem;
  margin: 0;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.75rem, 6vw, 4.5rem);
}
.hero__inner {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 860px) {
  .hero { flex-direction: column; min-height: auto; }
  .hero__media { flex-basis: 16rem; min-height: 16rem; order: 1; }
  .hero__media::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.08) 100%); }
  .hero .container.hero__inner { order: 2; flex-basis: auto; max-width: none; }
}

/* ============================================================
   Photo covers — post-card / article media now hold a real <img>
   instead of an icon-on-gradient block. The base .post-card__media
   and .article__media rules already size/clip an <img> correctly
   (see style.css); only the article-page aspect ratio is new.
   ============================================================ */
.article__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Compare matrix — a real HTML table contrasting an uncoordinated
   smart home with a coordinated one. Structurally distinct from the
   pillar grid / step list / FAQ accordion used elsewhere on this site.
   ============================================================ */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare caption {
  text-align: left;
  padding: 1rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.compare th,
.compare td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.96rem;
}
.compare thead th {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  font-size: 0.92rem;
}
.compare tbody th {
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.compare tbody tr:last-child td,
.compare tbody tr:last-child th { border-bottom: none; }
.compare td.is-no {
  color: var(--muted);
}
.compare td.is-yes {
  color: var(--brand);
  font-weight: 600;
}
.compare td.is-yes .bi { margin-right: 0.35rem; }
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  .compare th, .compare td { padding: 0.7rem 0.8rem; font-size: 0.88rem; }
}

/* ============================================================
   Brand wordmark — no pictorial mark (a small hand-drawn house+dot
   icon read as generic/placeholder here); a tight-tracked wordmark is
   the more credible pattern for this batch's logo treatment.
   ============================================================ */
.brand--wordmark .brand__name {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
