/* The homepage's editorial composition. Shared support and account pages keep
   their existing layout; installation links retain their availability policy. */
.home-editorial {
  --bg: #f7f5ee;
  --text: #173b2c;
  --text-muted: #4e6154;
  --brand: #214e38;
  --brand-deep: #153d2a;
  --line: rgba(23, 59, 44, 0.13);
  background: var(--bg);
}

.home-editorial .page-shell {
  width: min(1360px, calc(100% - 80px));
}

.home-editorial .topbar {
  z-index: 40;
  background: rgba(247, 245, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.home-editorial .topbar-inner {
  min-height: 84px;
  gap: 24px;
}

.home-editorial .brand-logo--wordmark {
  width: 156px;
}

.home-editorial .nav-links {
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.home-editorial .nav-links a {
  padding: 10px 14px;
  border-radius: 6px;
}

.home-editorial .nav-links .nav-cta,
.home-editorial .btn-primary {
  border: 1px solid var(--brand-deep);
  border-radius: 6px;
  background: var(--brand-deep);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(15, 38, 27, 0.14),
    0 10px 22px -8px rgba(21, 61, 42, 0.28);
  font-weight: 600;
  letter-spacing: 0.005em;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.home-editorial .nav-links .nav-cta {
  padding: 11px 18px;
  margin-left: 14px;
}

.home-editorial .nav-links .nav-cta:hover,
.home-editorial .btn-primary:hover {
  background: #23533b;
  border-color: #23533b;
  box-shadow:
    0 2px 4px rgba(15, 38, 27, 0.16),
    0 14px 26px -8px rgba(21, 61, 42, 0.34);
  transform: translateY(-1px);
}

.home-editorial .language-switch {
  order: 0;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-editorial .language-link {
  min-height: 44px;
  min-width: 36px;
  padding: 0 6px;
  border-radius: 0;
}

.home-editorial .language-link.active {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}

.home-mobile-menu {
  display: none;
}

.home-editorial .hero--launch {
  padding: 36px 0 8px;
}

.home-editorial .hero-launch-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.18fr);
  gap: 24px 52px;
  align-items: center;
}

.home-editorial .hero-launch-intro {
  padding: 16px 0 0;
}

.home-editorial .home-signature,
.home-editorial .home-eyebrow {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-editorial .home-signature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.home-editorial .home-signature::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--brand);
  flex: 0 0 auto;
}

.home-editorial .home-signature span {
  color: var(--brand);
}

.home-editorial h1,
.home-editorial .home-section-heading h2,
.home-editorial .home-tour-copy h2,
.home-editorial .home-closing-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.028em;
}

.home-editorial .hero-launch-intro h1 {
  max-width: 11.5ch;
  margin: 0 0 22px;
  font-size: clamp(3.35rem, 5vw, 5.25rem);
  line-height: 1.03;
}

.home-editorial h1 em {
  font-weight: inherit;
  color: var(--brand);
}

.home-editorial .hero-launch-intro > p:last-child {
  margin: 0;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.home-editorial .hero-launch-start {
  padding-bottom: 24px;
}

.home-editorial .btn-primary {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 0.95rem;
  text-align: center;
}

.home-editorial .home-access-note {
  margin: 14px 0 0;
  max-width: 36ch;
  padding-left: 12px;
  border-left: 2px solid rgba(33, 78, 56, 0.24);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
}

.home-editorial .hero-launch-start .hero-launch-free {
  max-width: 36ch;
  margin: 8px 0 20px;
  padding-left: 12px;
  border-left: 2px solid rgba(33, 78, 56, 0.14);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.home-editorial .text-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.home-tour-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-size: 0.92rem;
}

.home-tour-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(23, 59, 44, 0.22);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1;
  padding-left: 2px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-tour-link:hover span {
  background: #fff;
  border-color: var(--brand);
  transform: scale(1.04);
}

.home-editorial .home-garden {
  overflow: visible;
  align-self: stretch;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-garden-frame {
  position: relative;
  height: calc(100% - 38px);
  min-height: 580px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(23, 59, 44, 0.12);
  box-shadow:
    0 2px 6px rgba(18, 40, 31, 0.05),
    0 24px 52px -14px rgba(18, 40, 31, 0.16);
}

.home-editorial .home-garden img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: cover;
  object-position: 50% 50%;
}

.home-editorial .home-garden figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 2px 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.home-editorial .home-garden figcaption::before {
  content: "";
  width: 14px;
  height: 1px;
  background: rgba(23, 59, 44, 0.32);
  flex: 0 0 auto;
}

.home-garden-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
  padding: 9px 14px 9px 10px;
  border-radius: 6px;
  border: 1px solid rgba(23, 59, 44, 0.14);
  background: rgba(252, 251, 247, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(18, 40, 31, 0.14);
  color: #173b2c;
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.35;
  pointer-events: none;
}

.home-garden-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(33, 78, 56, 0.11);
  color: #173b2c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-garden-label--living {
  right: 20px;
  top: 26%;
}

.home-garden-label--green {
  left: 20px;
  bottom: 18%;
}

.home-story,
.home-questions {
  padding: 80px 0;
}

.home-editorial .home-section-heading h2,
.home-editorial .home-tour-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3.4vw, 3.45rem);
  line-height: 1.08;
}

.home-editorial .home-eyebrow {
  margin-bottom: 14px;
}

.home-editorial .hero-launch-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 36px 0 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.home-editorial .hero-launch-points .hero-point {
  padding: 0 32px 0 0;
  border-right: 1px solid var(--line);
  backdrop-filter: none;
}

.home-editorial .hero-launch-points .hero-point:last-child {
  padding-right: 0;
  border-right: 0;
}

.home-point-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(23, 59, 44, 0.18);
  background: rgba(255, 255, 255, 0.64);
  color: var(--brand-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.home-editorial .hero-point h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.62rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.home-editorial .hero-point p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.home-tour-section {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
  padding: 52px;
  border-radius: 10px;
  border: 1px solid rgba(23, 59, 44, 0.1);
  background: linear-gradient(145deg, #ecefe3 0%, #e4e9d9 100%);
  scroll-margin-top: 108px;
}

.home-tour-copy > p:not(.home-eyebrow) {
  margin: 22px 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.home-tour-media {
  min-width: 0;
  margin: 0;
  scroll-margin-top: 108px;
}

.home-editorial .home-tour-frame {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px 64px;
  aspect-ratio: auto;
  border-radius: 8px;
  border: 1px solid rgba(18, 40, 31, 0.14);
  background: #12281f;
  box-shadow:
    0 2px 6px rgba(18, 40, 31, 0.08),
    0 22px 48px -12px rgba(18, 40, 31, 0.22);
}

.home-editorial .home-tour-video {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Keep the film's captions clear, with controls in their own row. */
.home-editorial .home-tour-toggle {
  position: static;
  grid-row: 2;
  grid-column: 1;
  width: 48px;
  height: 48px;
  margin: 8px auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  transition: background 160ms ease, border-color 160ms ease;
}

.home-editorial .home-tour-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
}

.home-editorial .home-tour-sound { grid-column: 3; }
.home-editorial .home-tour-fullscreen { grid-column: 4; }

.home-editorial .home-tour-frame:fullscreen {
  grid-template-rows: minmax(0, 1fr) 64px;
}

.home-editorial .home-tour-frame:fullscreen .home-tour-video {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

@media (max-width: 700px) {
  .home-editorial .home-tour-video { aspect-ratio: 4 / 5; }
}

.home-questions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 60px;
}

.home-question-list details {
  border-bottom: 1px solid var(--line);
}

.home-question-list details:first-child {
  border-top: 1px solid var(--line);
}

.home-question-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 160ms ease;
}

.home-question-list summary:hover {
  color: var(--brand);
}

.home-question-list summary::-webkit-details-marker {
  display: none;
}

.home-question-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(23, 59, 44, 0.16);
  background: rgba(255, 255, 255, 0.5);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease;
}

.home-question-list summary:hover::after,
.home-question-list details[open] summary::after {
  background: rgba(33, 78, 56, 0.1);
  border-color: rgba(33, 78, 56, 0.28);
}

.home-question-list details[open] summary::after {
  content: "−";
}

.home-question-list details p {
  margin: 0 36px 24px 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.home-question-list > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 18px;
}

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

.home-editorial .home-closing-card {
  padding: 56px 60px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 18%, rgba(233, 238, 222, 0.1), transparent 42%),
    linear-gradient(135deg, #143627 0%, #1c4734 100%);
  box-shadow:
    0 4px 12px rgba(18, 40, 31, 0.08),
    0 28px 60px -16px rgba(18, 40, 31, 0.24);
}

.home-editorial .home-closing-card .section-title {
  margin: 14px 0 16px;
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
}

.home-editorial .home-closing-actions {
  justify-items: end;
}

.home-editorial .home-closing-card .btn-primary {
  min-width: 260px;
  padding: 16px 32px;
  background: #f7f5ee;
  color: #173b2c;
  border-color: #f7f5ee;
  box-shadow: 0 12px 28px rgba(9, 24, 17, 0.22);
}

.home-editorial .home-closing-card .btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.home-closing-access {
  margin-bottom: 0;
  color: #e1e8df;
  font-size: 0.88rem;
}

.home-editorial .home-resources {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}

.home-editorial .home-resources h2 {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-editorial .home-resource-links {
  gap: 10px 12px;
  font-size: 0.86rem;
}

.home-editorial .home-resource-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23, 59, 44, 0.13);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.home-editorial .home-resource-links a:hover {
  background: #ffffff;
  border-color: rgba(23, 59, 44, 0.28);
}

.home-editorial .footer {
  padding: 0 0 40px;
}

.home-editorial .footer-card {
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.home-editorial .footer-card small,
.home-editorial .footer-links {
  color: var(--text-muted);
}

.home-editorial .footer-card small a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(23, 59, 44, 0.32);
}

.home-editorial .footer-card small a:hover,
.home-editorial .footer-card small a:focus-visible,
.home-editorial .footer-links a:hover {
  color: var(--brand-deep);
  text-decoration-color: var(--brand-deep);
}

@media (min-width: 761px) and (max-width: 1150px) {
  .home-editorial .page-shell { width: calc(100% - 48px); }
  .home-editorial .nav-links a { padding: 10px 8px; }
  .home-editorial .nav-links .nav-cta { margin-left: 4px; padding: 12px; }
  .home-editorial .topbar-inner { gap: 12px; }
  .home-editorial .brand-logo--wordmark { width: 135px; }
  .home-editorial .hero-launch-grid { column-gap: 28px; }
  .home-editorial .hero-launch-intro h1 { font-size: clamp(3.2rem, 5.5vw, 4.6rem); }
  .home-tour-section { gap: 28px; padding: 32px; }
}

@media (max-width: 960px) {
  .home-editorial .nav-links { display: none; }
  .home-editorial .nav-select-wrap { display: none; }
  .home-editorial .language-switch { display: inline-flex; margin-left: auto; }
  .home-editorial .topbar-inner { display: flex; flex-wrap: nowrap; min-height: 72px; }
  .home-mobile-menu { display: block; }
  .home-mobile-menu summary { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.8rem; cursor: pointer; list-style: none; }
  .home-mobile-menu summary::-webkit-details-marker { display: none; }
  .home-mobile-menu summary span { font-size: 1.35rem; }
  .home-mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; padding: 16px 24px 24px; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 18px 24px rgba(18, 40, 31, 0.08); }
  .home-mobile-menu nav a { min-height: 44px; padding: 12px; }
  .home-mobile-menu .home-menu-action { margin-top: 8px; background: var(--brand-deep); color: #fff; border-radius: 4px; text-align: center; }
}

@media (max-width: 760px) {
  .home-editorial .page-shell { width: calc(100% - 40px); }
  .home-editorial .topbar-inner { min-height: 66px; gap: 10px; }
  .home-editorial .brand-logo--wordmark { width: 124px; max-width: 35vw; }
  .home-editorial .language-link { min-width: 32px; font-size: 0.75rem; }
  .home-mobile-menu summary { gap: 6px; font-size: 0.72rem; }
  .home-editorial .hero--launch { padding: 28px 0 0; }
  .home-editorial .hero-launch-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "start" "image"; gap: 18px; }
  .home-editorial .hero-launch-intro { padding: 0; }
  .home-editorial .home-signature { margin: 0 0 16px; font-size: 0.63rem; letter-spacing: 0.11em; }
  .home-editorial .hero-launch-intro h1 { max-width: 13ch; margin: 0 0 16px; font-size: clamp(2.7rem, 10.6vw, 4.5rem); line-height: 1.02; }
  .home-editorial .hero-launch-intro > p:last-child { max-width: 40ch; font-size: 1rem; line-height: 1.55; }
  .home-editorial .hero-launch-start { padding: 0; }
  .home-editorial .hero-launch-start .hero-launch-free { max-width: none; margin: 8px 0 4px; font-size: 0.75rem; }
  .home-editorial .home-access-note { max-width: none; margin-top: 9px; font-size: 0.8rem; }
  .home-editorial .hero-launch-start .btn-primary { width: 100%; }
  .home-tour-link { min-height: 40px; font-size: 0.86rem; }
  .home-garden-frame { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .home-editorial .home-garden img { height: 100%; min-height: 0; }
  .home-editorial .home-garden figcaption { font-size: 0.7rem; }
  .home-garden-label { display: none; }
  .home-story, .home-questions { padding: 48px 0; }
  .home-editorial .home-section-heading h2, .home-editorial .home-tour-copy h2 { font-size: 2.35rem; }
  .home-editorial .home-eyebrow { font-size: 0.66rem; margin-bottom: 12px; }
  .home-editorial .hero-launch-points { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 24px 0 0; padding-top: 0; border-top: 1px solid var(--line); }
  .home-editorial .hero-launch-points .hero-point { position: relative; padding: 22px 0 22px 42px; border-right: 0; border-bottom: 1px solid var(--line); }
  .home-editorial .hero-launch-points .hero-point:last-child { border-bottom: 0; }
  .home-point-number { position: absolute; left: 0; top: 22px; width: 28px; height: 28px; margin-bottom: 0; font-size: 0.72rem; }
  .home-editorial .hero-point h3 { font-size: 1.5rem; margin-bottom: 8px; }
  .home-editorial .hero-point p { font-size: 0.95rem; line-height: 1.6; }
  .home-tour-section { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 20px; margin: 0 -20px; border-radius: 0; border-left: 0; border-right: 0; scroll-margin-top: 82px; }
  .home-tour-copy > p:not(.home-eyebrow) { margin: 16px 0; }
  .home-tour-media { max-width: 440px; width: 100%; justify-self: center; scroll-margin-top: 82px; }
  .home-questions { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-question-list summary { font-size: 0.96rem; padding-top: 20px; padding-bottom: 20px; }
  .home-question-list details p { margin-right: 0; font-size: 0.93rem; }
  .home-editorial .home-closing-section { padding-bottom: 40px; }
  .home-editorial .home-closing-card { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding: 28px 24px; }
  .home-editorial .home-closing-card .section-title { font-size: 2.8rem; }
  .home-editorial .home-closing-card .section-lead { font-size: 0.95rem; }
  .home-editorial .home-closing-actions { width: 100%; justify-items: stretch; align-items: stretch; }
  .home-editorial .home-closing-card .btn-primary { min-width: 0; width: 100%; }
  .home-editorial .home-closing-note { font-size: 0.8rem; }
  .home-editorial .footer-card { gap: 24px; }
  .home-editorial .mobile-install-toast { border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-editorial { scroll-behavior: auto; }
  .home-editorial .btn-primary { transition: none; }
}
