/* inRange home page styles. Linked after site.css on "/" only.
   Owned by the home page builder. Use the components and tokens from site.css;
   see docs/redesign/COMPONENTS.md. No inline styles anywhere (CSP). */

/* ------------------------------------------------------------ Hero */
.home-hero .photo-hero__inner { gap: 48px; padding-top: 56px; padding-bottom: 80px; }
.home-hero .photo-hero__copy { max-width: 38rem; }
.home-hero .lede { margin-bottom: 28px; }
.home-hero__tasks { margin-bottom: 32px; max-width: 30rem; }
.home-hero__tasks .switcher__item { padding-top: 12px; padding-bottom: 12px; }
.home-hero__tasks .switcher__label { font-size: clamp(1.4rem, 3.4vw, 1.75rem); }
.home-hero__tasks .switcher__desc { display: none; }
.home-hero__tasks .is-active .switcher__desc { display: block; }
.home-hero .actions { margin-bottom: 20px; }
.home-hero .store-slot { margin: 0; }
.home-hero .photo-hero__aside { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .home-hero .photo-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .home-hero .photo-hero__aside { justify-content: flex-end; }
}
/* JS off: show the first task description too, hero keeps one phone */
html:not(.has-js) .home-hero__tasks .switcher__desc { display: block; }
html:not(.has-js) .home-hero__tasks .switcher__item { cursor: default; border-left-color: var(--line); color: var(--fg); }
html:not(.has-js) .home-hero__tasks .switcher__item.is-active { border-left-color: var(--line); }
html:not(.has-js) .home-hero__tasks .switcher__desc { color: var(--fg-mute); }

.home-facts { padding-block: 48px; }

/* -------------------------------------------------------- Built for */
.pursuit { display: grid; gap: 28px; align-items: center; }
.pursuit__photo { border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.pursuit__photo img, .pursuit__photo .ph { display: block; width: 100%; height: auto; }
.pursuit__body h3 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 6px 0 16px; }
.pursuit__body p { max-width: 34rem; }
.pursuit__body p + p { margin-top: 12px; }
.pursuit__links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.section--light .tabs__list { justify-content: safe center; margin-bottom: 40px; }
@media (min-width: 860px) {
  .pursuit { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

/* ------------------------------------------------ Round the phone */
.round { display: grid; gap: 36px; margin-top: 8px; }
.round__phone { display: flex; justify-content: center; order: -1; }
.round__list { gap: 0; }
.round__list .switcher__item { grid-template-columns: 28px minmax(0, 1fr); padding: 14px 0 14px 18px; }
.round__list .switcher__icon { grid-row: 1 / span 2; align-self: start; margin-top: 4px; }
.round__list .switcher__label { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.round__list .switcher__desc { grid-column: 2; }
.round__list .switcher__item { color: var(--fg-mute); }
.round__list .switcher__item.is-active { color: var(--fg); }
@media (min-width: 640px) {
  .round { grid-template-columns: 1fr 1fr; }
  .round__phone { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .round { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 56px; align-items: center; }
  .round__phone { grid-column: auto; order: 0; }
  .round__list--left .switcher__item { border-left: 0; border-right: 2px solid var(--line); padding: 20px 20px 20px 0; text-align: right; grid-template-columns: minmax(0, 1fr) 28px; }
  .round__list--left .switcher__item.is-active { border-right-color: var(--fg); }
  .round__list--left .switcher__icon { grid-column: 2; grid-row: 1; order: 2; }
  .round__list--left .switcher__label { grid-column: 1; grid-row: 1; }
  .round__list--left .switcher__desc { grid-column: 1; grid-row: 2; }
  .round__list--right .switcher__item { padding-block: 20px; }
}

/* ----------------------------------------------------- Property band */
#property-lines { min-height: clamp(620px, 80svh, 820px); }
.lines-copy { max-width: 38rem; }
.lines-copy > p { margin-bottom: 22px; }
.lines-stats { display: grid; gap: 14px; margin: 0 0 22px; }
.lines-stats > div { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 14px; align-items: baseline; padding-top: 14px; border-top: 1px solid rgba(242, 239, 230, .25); }
.lines-stats dt { font: 700 2.4rem/1 var(--head); color: var(--bone); }
.lines-stats dd { margin: 0; color: #DCDDD6; font-size: .96875rem; line-height: 1.5; }
.lines-note { font-size: .875rem; color: #C9CCC6; }

/* ----------------------------------------------------------- Terrain */
.home-terrain { min-height: 0; padding-block: clamp(64px, 9vw, 112px); }
.home-terrain .band__scrim { background: rgba(13, 16, 18, .72); }
.home-terrain__split { gap: 48px; }
.home-terrain .split__media { overflow: visible; }
.home-terrain .band__copy { max-width: 32rem; }
.home-terrain .band__copy p + p { margin-top: 12px; }
.home-terrain .actions { margin-top: 24px; }

/* ----------------------------------------------------------- Offline */
.steps { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.steps__no { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--fg); font: 700 1.5rem/1 var(--head); }
.steps h3 { font-size: 1.5rem; margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--fg-mute); }
#offline .actions { margin-top: 8px; }

/* --------------------------------------------------------- Notebook */
.nb-row { list-style: none; margin: 0; padding: 0; }
.nbcard { height: 100%; text-decoration: none; }
.nbcard .card__media { aspect-ratio: 9 / 14; position: relative; overflow: hidden; margin-bottom: 18px; }
.nbcard .card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nbcard .card__media .ph { height: 100%; }

/* ------------------------------------------------------------ Guides */
.guides-section { overflow-x: clip; }
.guides-wrap { overflow: visible; }
.guides-row { grid-auto-columns: min(250px, 68vw); }
.guides-row:focus-within { scroll-snap-type: x mandatory; }
@media (min-width: 1000px) {
  .guides-row { grid-auto-columns: 260px; }
}
/* --------------------------------------------------------------- FAQ */
.faq--light { border-top-color: var(--light-line); }
.faq--light .faq__item { border-bottom-color: var(--light-line); }
.faq--light .faq__item summary { color: var(--light-ink); }
.faq--light .faq__item summary:hover { color: #000; }
.faq--light .faq__item p { color: var(--light-mute); }
.faq--light .faq__item summary::before, .faq--light .faq__item summary::after { background: var(--light-ink); }
.faq--light .faq__item summary:hover { color: var(--gold-on-light); }

/* Headings: no stranded last word */
.home h2, .home h3 { text-wrap: balance; }
@media (max-width: 639px) { .nbcard .card__media { aspect-ratio: 16 / 11; } }

/* Pursuit tab icons: ink icons, inverted to bone on the active (ink) pill. */
.tabs__icon { width: 22px; height: 22px; margin: 0 8px 0 -4px; flex: none; }
.tabs__tab.is-active .tabs__icon, .tabs__tab[aria-selected="true"] .tabs__icon { filter: invert(1); }

/* Hero photo: the hunter sits right of centre; keep him in frame when the crop is narrow (phones). */
.photo-hero__media > img[src$="hero-ridge.jpg"] { object-position: 72% 60%; }
@media (min-width: 900px) {
  .tabs .tabs__tab { padding: 0 15px; letter-spacing: .07em; font-size: 1rem; }
  .tabs__list { gap: 6px; }
}
