/* terralox.com home page. Uses the same light look as the programs (app-light.css on top of styles.css):
   Inter, white panels on #f4f6f8, the program colors. The one bold element is the section drawing in the hero. */
.home { --ink: #101828; --paper: #f4f6f8; }
.home main { display: block; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; }
.btn-lg { min-height: 46px; padding: 11px 20px; font-size: 15px; }

/* ---- hero ---- */
.h-hero { background: #fff; border-bottom: 1px solid var(--line); }
.h-hero-in { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.h-copy h1 { margin: 0 0 20px; font: 800 clamp(36px, 5vw, 58px)/1.02 Inter, system-ui, sans-serif; letter-spacing: -.035em; color: var(--ink); max-width: 13ch; }
.h-lead { margin: 0 0 28px; font-size: 18px; line-height: 1.6; color: var(--body); max-width: 52ch; }
.h-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.h-cta .btn-primary { --accent: #0e7490; }
.h-pro { margin: 22px 0 0; font-size: 15px; color: var(--dim); }
.h-pro a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.h-pro a:hover { text-decoration-color: currentColor; }

.h-section { margin: 0; }
.h-section svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 18px 40px -18px rgba(16, 24, 40, .22); }
.h-section .sx { transition: opacity .2s; }
.h-section[data-on] .sx { opacity: .18; }
.h-section[data-on="scan"] .sx-scan, .h-section[data-on="plan"] .sx-plan, .h-section[data-on="topo"] .sx-topo, .h-section[data-on="cam"] .sx-cam, .h-section[data-on="brain"] .sx-brain { opacity: 1; }
.h-section figcaption { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.h-section figcaption a { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 11px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.h-section figcaption a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); align-self: center; }
.h-section figcaption a span { font-weight: 400; color: var(--dim); }
.h-section figcaption a:hover, .h-section figcaption a:focus-visible { border-color: var(--c); }
@media (prefers-reduced-motion: reduce) { .h-section .sx { transition: none; } }

/* ---- sections ---- */
.h-block { padding: 80px 0; }
.h-head { max-width: 720px; margin-bottom: 36px; }
.h-head h2 { margin: 0 0 10px; font: 700 clamp(26px, 3.2vw, 36px)/1.15 Inter, system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.h-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--body); }
.h-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* homeowners */
.h-owners-grid { display: grid; gap: 24px; }
.h-brain { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.h-plogo { height: 36px; width: auto; display: block; margin-bottom: 14px; }
.h-brain-text > p { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--body); }
.h-facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--body); }
.h-facts b { display: inline-block; min-width: 3.4em; color: #6d28d9; font-weight: 700; font-variant-numeric: tabular-nums; }
.h-reads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.h-reads article { padding: 22px 22px 6px 0; }
.h-reads article + article { padding-left: 22px; border-left: 1px solid var(--line); }
.h-reads h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; color: var(--ink); }
.h-reads p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: var(--body); }
.h-reads a { font-weight: 600; font-size: 15px; }

/* program screens */
.h-shot { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.h-shot::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.h-shot img { display: block; width: 100%; height: auto; }

.h-programs { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-stage { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.h-stage:first-of-type { border-top: 0; padding-top: 6px; }
.h-stage-name { margin: 4px 0 0; font-size: 15px; font-weight: 650; color: var(--ink); }
.h-progs { display: grid; gap: 24px; }
.h-progs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.h-progs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-prog { min-width: 0; }
.h-progs:not(.two):not(.three) .h-prog { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.h-prog-text h4 { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.h-progs:not(.two):not(.three) .h-prog-text h4 { margin-top: 0; }
.h-prog-text h4 img { width: 28px; height: 28px; flex: none; }
.h-prog-text p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: var(--body); max-width: 56ch; }
.h-plinks { display: flex; gap: 18px; }
.h-plinks a { font-weight: 600; color: var(--c); text-decoration: none; }
.h-plinks a:hover { text-decoration: underline; text-underline-offset: 3px; }
.h-prog-text-only { padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 12px; background: #fff; }
.h-prog-text-only h4 { margin-top: 0; }
.h-next { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding-top: 30px; border-top: 1px solid var(--line); }
.h-next h3 { margin: 0; font-size: 15px; font-weight: 650; color: var(--ink); }
.h-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--body); }
.h-next li a, .h-next li span { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.h-next li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.h-next img { width: 22px; height: 22px; }

/* access */
.h-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h-tiers > div { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.h-tiers > div:last-child { border-color: #0e7490; box-shadow: 0 0 0 1px #0e7490; }
.h-tiers h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.h-tier-sub { margin: 2px 0 14px; font-size: 14px; color: var(--dim); }
.h-tiers ul { margin: 0 0 20px; padding-left: 18px; font-size: 15px; line-height: 1.55; color: var(--body); flex: 1; }
.h-tiers li + li { margin-top: 6px; }
.h-tiers .btn { align-self: flex-start; }
.h-tiers .btn-primary { --accent: #0e7490; }

/* consult */
.h-consult { padding: 0 0 80px; }
.h-consult-in { display: flex; gap: 32px; align-items: center; justify-content: space-between; padding: 34px 36px; background: var(--ink); border-radius: 18px; color: #fff; }
.h-consult h2 { margin: 0 0 8px; font: 700 clamp(22px, 2.6vw, 28px)/1.2 Inter, system-ui, sans-serif; letter-spacing: -.015em; color: #fff; }
.h-consult p { margin: 0; color: #d0d5dd; font-size: 16px; line-height: 1.55; max-width: 60ch; }
.h-consult .btn { background: transparent; color: #fff; border-color: #475467; box-shadow: none; }
.h-consult .btn:hover { border-color: #fff; color: #fff; }
.h-consult .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.h-consult .btn-primary:hover { color: var(--ink); filter: none; background: #f2f4f7; }

/* ---- tablet ---- */
@media (max-width: 1020px) {
  .h-hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
  .h-copy h1 { max-width: 16ch; }
  .h-brain { grid-template-columns: minmax(0, 1fr); }
  .h-reads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-reads article:nth-child(3) { padding-left: 0; border-left: 0; }
  .h-reads article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .h-stage, .h-next { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .h-progs.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-consult-in { flex-direction: column; align-items: flex-start; }
}
/* ---- phone ---- */
@media (max-width: 640px) {
  .h-hero-in { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .h-lead { font-size: 16.5px; }
  .h-cta .btn { flex: 1 1 auto; }
  .h-block { padding: 56px 0; }
  .h-brain { padding: 20px; gap: 22px; }
  .h-reads { grid-template-columns: minmax(0, 1fr); }
  .h-reads article, .h-reads article + article { padding: 18px 0 4px; border-left: 0; }
  .h-reads article + article { border-top: 1px solid var(--line); }
  .h-progs.two, .h-progs.three, .h-tiers { grid-template-columns: minmax(0, 1fr); }
  .h-progs:not(.two):not(.three) .h-prog { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .h-progs:not(.two):not(.three) .h-prog-text h4 { margin-top: 14px; }
  .h-consult { padding-bottom: 56px; }
  .h-consult-in { padding: 24px 20px; }
  .top nav a:not(.btn):not([role]) { display: none; }
}
