/* Page-specific tweaks */
.page-about .about-grid { padding: 0; }
.page-about .about { padding-top: 80px; padding-bottom: 80px; }

/* ==========================================================================
   HOME — Apple-esque spacing & flow
   One idea per fold. Big type. Generous vertical rhythm.
   Scoped to body.page-home only so no other page is affected.
   ========================================================================== */

.page-home {
  --home-pad-y: clamp(120px, 16vh, 200px);
  --home-pad-y-sm: clamp(80px, 10vh, 140px);
  --home-max: 1240px;
  --home-text: 760px;
}

.page-home main { background: var(--white); }

/* Every top-level home section gets the rhythm */
.page-home > main > section {
  padding-top: var(--home-pad-y);
  padding-bottom: var(--home-pad-y);
  padding-left: 24px;
  padding-right: 24px;
}

/* Tighten a bit on phones */
@media (max-width: 720px) {
  .page-home > main > section {
    padding-top: var(--home-pad-y-sm);
    padding-bottom: var(--home-pad-y-sm);
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Bigger, more confident display type on home only */
.page-home .display {
  font-size: clamp(48px, 9vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}
.page-home .kicker {
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: var(--home-text);
  margin: 0 auto;
}
.page-home .cta-row { margin-top: 44px; gap: 14px; }
.page-home .btn { padding: 14px 28px; font-size: 16px; }

/* ---------- Home store-header (Apple "Shop Mac" pattern) ---------- */
.page-home .home-header {
  background: var(--panel);
  padding: 128px 22px 72px;
  border-bottom: 1px solid transparent;
}
.page-home .home-header-inner {
  max-width: var(--home-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.page-home .home-header-title {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.page-home .home-header-title .accent { color: var(--blue); font-style: normal; }
.page-home .home-header-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 14px;
}
.page-home .home-header-links a {
  color: var(--blue);
  opacity: 0.95;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.page-home .home-header-links a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 720px) {
  .page-home .home-header {
    padding: 72px 22px 40px;
  }
  .page-home .home-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .page-home .home-header-links { flex-direction: row; gap: 20px; align-self: flex-start; }
}

/* ---------- Featured project ---------- */
.page-home .home-feature {
  text-align: center;
  background: var(--panel);
}
.page-home .home-feature-inner {
  max-width: var(--home-max);
  margin: 0 auto;
}
.page-home .home-feature .eyebrow { margin-bottom: 18px; }
.page-home .home-feature-media {
  margin: 64px auto 40px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-about);
  max-width: var(--home-max);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e3ecff, #f5f5f7);
}
.page-home .home-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .home-feature-price {
  color: var(--blue);
  font-weight: 500;
  font-size: 18px;
  margin: 0;
}

/* ---------- Project stack (one panel per project, alternating) ---------- */
.page-home .home-stack {
  padding: 0 !important;
  background: var(--white);
}
.page-home .home-panel {
  padding-top: var(--home-pad-y);
  padding-bottom: var(--home-pad-y);
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
}
.page-home .home-panel--light { background: var(--white); color: var(--ink); }
.page-home .home-panel--dark  { background: #0a0a0b; color: #f5f5f7; }
.page-home .home-panel--dark .eyebrow { color: var(--blue-soft); }
.page-home .home-panel--dark .kicker  { color: #a1a1a6; }
.page-home .home-panel--dark .btn-ghost { color: var(--blue-soft); }
.page-home .home-panel-inner {
  max-width: var(--home-max);
  margin: 0 auto;
}
.page-home .home-panel .eyebrow { margin-bottom: 16px; }
.page-home .home-panel-media {
  margin: 64px auto 40px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-about);
  max-width: var(--home-max);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e3ecff, #f5f5f7);
}
.page-home .home-panel--dark .home-panel-media {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #2a2a2c, #1d1d1f);
}
.page-home .home-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .home-panel-meta {
  font-size: 14px;
  color: var(--mute);
  margin: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---------- Stats — borrow the existing component, just breathe more ---------- */
.page-home .stats { padding-top: var(--home-pad-y) !important; padding-bottom: var(--home-pad-y) !important; background: var(--panel); }

/* ---------- Ryan ---------- */
.page-home .home-ryan {
  text-align: center;
  background: var(--white);
}
.page-home .home-ryan-inner {
  max-width: 880px;
  margin: 0 auto;
}
.page-home .home-ryan-photo {
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  height: auto;
  margin: 0 auto 48px;
  display: block;
  filter: saturate(0.95) contrast(1.02);
  box-shadow: var(--shadow-about);
}
.page-home .home-ryan .eyebrow { margin-bottom: 16px; }

/* ---------- Dark Platinum panel ---------- */
.page-home .home-platinum {
  padding-top: var(--home-pad-y) !important;
  padding-bottom: var(--home-pad-y) !important;
}
.page-home .home-platinum .kicker { color: #a1a1a6; }

/* ---------- Wordmark footer flourish ---------- */
.page-home .home-wordmark {
  padding-top: var(--home-pad-y-sm);
  padding-bottom: var(--home-pad-y-sm);
  background: var(--panel);
}
.page-home .home-wordmark img { width: min(720px, 72vw); }

.page-platinum .dark-hero { padding-top: 140px; padding-bottom: 100px; }
.page-platinum .how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 720px) {
  .page-platinum .how { grid-template-columns: 1fr; }
}
.page-platinum .how .step {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.page-platinum .how .step .n {
  font-size: 48px;
  font-weight: 300;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.page-resale .resale-shell {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 22px;
}
.page-resale .resale-shell h2 { margin-bottom: 14px; }
.page-resale .resale-shell p { color: var(--mute); font-size: 17px; }

.page-contact .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 820px) {
  .page-contact .contact-grid { grid-template-columns: 1fr; }
}
.page-contact .contact-details h3 { margin-bottom: 8px; }
.page-contact .contact-details p { color: var(--mute); font-size: 15px; margin: 0 0 6px; }
.page-contact .map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
  border: 1px solid var(--hair);
  aspect-ratio: 16 / 9;
  background: #eaeaea;
}

/* ---------- Mortgage page ---------- */
.mortgage-section {
  background: var(--panel);
  padding: 40px 22px calc(var(--home-pad-y) * 0.7);
}
.mortgage-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .mortgage-grid { grid-template-columns: 1fr; }
}
.mortgage-calc, .mortgage-broker {
  background: var(--white);
  border-radius: 22px;
  padding: 40px 36px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mortgage-calc-title {
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.mortgage-calc-sub {
  font-size: 14px;
  color: var(--mute);
  margin: 0 0 28px;
}
.mortgage-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.mortgage-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mute); }
.mortgage-form label > span { font-weight: 500; color: var(--ink); }
.mortgage-form .field {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 0 12px;
  height: 44px;
}
.mortgage-form .field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,124,241,0.15); }
.mortgage-form .field input,
.mortgage-form .field select {
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  flex: 1;
  min-width: 0;
  height: 100%;
}
.mortgage-form .prefix, .mortgage-form .suffix { color: var(--mute); font-size: 14px; }
.mortgage-form .prefix { margin-right: 6px; }
.mortgage-form .suffix { margin-left: 6px; }
.mortgage-form .hint { color: var(--mute); font-size: 12px; }
@media (max-width: 560px) {
  .mortgage-form { grid-template-columns: 1fr; }
}
.mortgage-result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.mortgage-result-label { margin: 0 0 6px; color: var(--mute); font-size: 13px; }
.mortgage-result-amount {
  margin: 0 0 20px;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.mortgage-result-amount .per { font-size: 18px; color: var(--mute); font-weight: 400; margin-left: 4px; }
.mortgage-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin: 0 0 18px;
}
.mortgage-meta > div { display: flex; flex-direction: column; }
.mortgage-meta dt { color: var(--mute); font-size: 12px; margin: 0; }
.mortgage-meta dd { margin: 2px 0 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.mortgage-disclaimer { font-size: 12px; color: var(--mute); margin: 8px 0 0; }

/* Broker card */
.mortgage-broker { text-align: left; }
.mortgage-broker-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 18px;
  position: relative;
}
.mortgage-broker-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mortgage-broker-fallback {
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 600;
  color: var(--blue);
  background: linear-gradient(135deg, #e5eefc, #f5f5f7);
  letter-spacing: -0.02em;
}
.mortgage-broker .eyebrow { margin: 0 0 6px; font-size: 12px; }
.mortgage-broker-name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.mortgage-broker-role { color: var(--mute); font-size: 14px; margin: 0 0 14px; }
.mortgage-broker-logo { max-width: 220px; height: auto; margin-bottom: 16px; display: block; }
.mortgage-broker-blurb { font-size: 14px; line-height: 1.5; color: var(--ink); opacity: 0.85; margin: 0 0 22px; }
.mortgage-broker-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--hair);
  padding-top: 18px;
}
.mortgage-broker-contact li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  font-size: 14px;
  align-items: baseline;
}
.mortgage-broker-contact li > span:first-child { color: var(--mute); font-size: 12px; }
.mortgage-broker-contact a { color: var(--blue); }
.mortgage-broker-cta { width: 100%; }

/* ---------- Home: 4-tile category row (Apple buy-mac pattern) ---------- */
.page-home .home-categories {
  background: var(--panel);
  padding-top: 40px;
  padding-bottom: calc(var(--home-pad-y) * 0.55);
}
.page-home .home-categories-head {
  max-width: 1800px;
  margin: 0 auto 44px;
  padding: 0 16px;
  text-align: left;
}
.page-home .home-categories-title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--mute);
}
.page-home .home-categories-title strong { color: var(--ink); font-weight: 600; }
.page-home .home-categories-title span { color: var(--mute); }

/* Horizontal rail — Apple buy-mac carousel with prev/next arrows */
.page-home .home-categories-rail {
  position: relative;
  max-width: 1900px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}
.page-home .home-categories-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
  /* slight side-padding so first/last tile shadows aren't clipped */
  padding-left: 2px;
  padding-right: 2px;
}
.page-home .home-categories-scroller::-webkit-scrollbar { display: none; }
/* Sizing: show exactly 4.5 tiles per viewport across desktop sizes */
.page-home .home-categories-scroller .cat-tile {
  flex: 0 0 calc((100vw - 96px) / 4.5);
  min-height: 480px;
  scroll-snap-align: start;
}
/* Apple-style size rhythm: some tiles are 2x wide to break up the row.
   Width = two standard slots plus one gap (16px). */
.page-home .home-categories-scroller .cat-tile--wide {
  flex: 0 0 calc(((100vw - 96px) / 4.5) * 2 + 16px);
}
/* Wide tile media stays flat — don't let 5:3 ratio balloon it vertically */
.page-home .cat-tile--wide .cat-tile-media {
  aspect-ratio: 16 / 7;
  max-height: 200px;
}
@media (max-width: 900px) {
  .page-home .home-categories-scroller .cat-tile {
    flex: 0 0 calc((100vw - 64px) / 2.5);
    min-height: 440px;
  }
  .page-home .home-categories-scroller .cat-tile--wide {
    flex: 0 0 calc(((100vw - 64px) / 2.5) * 2 + 16px);
  }
}
@media (max-width: 720px) {
  .page-home .home-categories-scroller .cat-tile {
    flex: 0 0 84vw;
    max-width: 84vw;
    min-height: 400px;
  }
  .page-home .home-categories-scroller .cat-tile--wide {
    flex: 0 0 84vw;
    max-width: 84vw;
  }
}

/* Rail navigation arrows — Apple-style circular buttons */
.page-home .rail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #e8e8ed;
  color: #1d1d1f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14),
              0 2px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}
.page-home .rail-nav svg {
  width: 26px;
  height: 26px;
}
.page-home .rail-nav svg path {
  stroke-width: 2.2;
}
.page-home .rail-nav:hover {
  background: #1d1d1f;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.page-home .rail-nav:active { transform: translateY(-50%) scale(0.96); }
.page-home .rail-nav[hidden] { display: none; }
.page-home .rail-nav--prev { left: 8px; }
.page-home .rail-nav--next { right: 8px; }
@media (max-width: 720px) {
  .page-home .rail-nav {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  }
  .page-home .rail-nav svg {
    width: 18px;
    height: 18px;
  }
  .page-home .rail-nav--prev { left: 4px; }
  .page-home .rail-nav--next { right: 4px; }
}

.page-home .cat-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  min-height: 460px;
  padding: 28px 24px 22px;
  border-radius: 18px;
  scroll-snap-align: start;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.page-home .cat-tile:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.18),
              0 12px 24px -8px rgba(0, 0, 0, 0.08);
}
.page-home .cat-tile:active {
  transform: translateY(-4px) scale(1.005);
  transition-duration: 120ms;
}
.page-home .cat-tile-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--blue);
  margin: 0 0 10px;
}
.page-home .cat-tile-title {
  font-family: inherit;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.page-home .cat-tile-sub {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0.78;
  margin: 0 auto 14px;
  max-width: 34ch;
}
.page-home .cat-tile-media {
  margin: 6px auto auto;
  width: 100%;
  aspect-ratio: 5 / 3;
  max-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-home .cat-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.page-home .cat-tile:hover .cat-tile-media img {
  transform: scale(1.06);
}
.page-home .cat-tile-meta {
  display: block;
  font-size: 13px;
  color: var(--mute);
  margin-top: 20px;
  margin-bottom: 28px;
}
.page-home .cat-tile-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
}
.page-home .cat-tile-cta span { transition: transform 180ms ease; }
.page-home .cat-tile:hover .cat-tile-cta span { transform: translateX(3px); }

/* "Take a closer look" — black pill centered over image on hover, Apple buy-mac style */
.page-home .cat-tile-closer {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 8px));
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  background: #1d1d1f;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  border-radius: 980px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  z-index: 2;
}
.page-home .cat-tile:hover .cat-tile-closer {
  opacity: 1;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .cat-tile,
  .page-home .cat-tile-media img,
  .page-home .cat-tile-closer {
    transition: none !important;
  }
  .page-home .cat-tile:hover {
    transform: none;
  }
  .page-home .cat-tile:hover .cat-tile-media img {
    transform: none;
  }
}

/* Tile backgrounds — white cards on grey panel, like Apple's Shop Mac */
.page-home .cat-tile--new-homes,
.page-home .cat-tile--new-condos,
.page-home .cat-tile--resale-homes,
.page-home .cat-tile--resale-condos,
.page-home .cat-tile--hot-deals,
.page-home .cat-tile--assignments,
.page-home .cat-tile--first-time,
.page-home .cat-tile--afford,
.page-home .cat-tile--mortgage-rates,
.page-home .cat-tile--assignment-explainer {
  background: var(--white);
  border: 1px solid transparent;
}
.page-home .cat-tile-media--first-time,
.page-home .cat-tile-media--afford,
.page-home .cat-tile-media--mortgage-rates,
.page-home .cat-tile-media--assignment-explainer {
  background: linear-gradient(180deg, #eaf2ff 0%, #dbe8fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-home .cat-tile-media--first-time svg,
.page-home .cat-tile-media--afford svg,
.page-home .cat-tile-media--mortgage-rates svg,
.page-home .cat-tile-media--assignment-explainer svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Dark tile variant — Apple buy-mac "Creator Studio" / "Small Business" pattern.
   Black background, white type, inverted media gradient. Breaks up the row rhythm. */
.page-home .cat-tile--dark {
  background: #1d1d1f !important;
  color: #ffffff;
  border-color: transparent;
}
.page-home .cat-tile--dark .cat-tile-title,
.page-home .cat-tile--dark .cat-tile-sub,
.page-home .cat-tile--dark .cat-tile-meta,
.page-home .cat-tile--dark .cat-tile-closer {
  color: #ffffff;
}
.page-home .cat-tile--dark .cat-tile-sub,
.page-home .cat-tile--dark .cat-tile-meta {
  opacity: 0.72;
}
.page-home .cat-tile--dark .cat-tile-closer {
  color: #6fa8ff;
  opacity: 1;
}
.page-home .cat-tile--dark .cat-tile-media {
  background: linear-gradient(180deg, #2a2a2d 0%, #141416 100%) !important;
  border-color: #2a2a2d;
}
.page-home .cat-tile--dark img {
  filter: brightness(0.92) contrast(1.05);
}

/* "Coming soon" state for resale tiles — still clickable, just muted */
.page-home .cat-tile--soon .cat-tile-meta { color: var(--blue); opacity: 0.8; }
.page-home .cat-tile--soon .cat-tile-cta { opacity: 0.9; }

@media (max-width: 720px) {
  .page-home .home-categories-scroller {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 8px 18px 28px;
  }
  .page-home .cat-tile {
    min-height: 420px;
    padding: 44px 28px 32px;
  }
}

/* Hot Deals + Assignments pages (shared layout) */
.deals-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.deals-intro {
  text-align: center;
  margin-bottom: 56px;
}
.deals-intro h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.deals-intro p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.78;
  max-width: 62ch;
  margin: 0 auto;
}
.deals-empty {
  text-align: center;
  padding: 48px 24px;
  border-radius: 18px;
  background: #f5f5f7;
}
.deals-empty p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.82;
  max-width: 56ch;
  margin: 0 auto 24px;
}

/* Second row header spacing */
.page-home .home-categories-head--row2 {
  margin-top: 48px;
}

/* Feature panel — Apple "Customise your Mac" wide hero card.
   Rich Signal-Blue gradient, white type, stylized Ontario map art.
   Left-snapped to match the rail gutter. */
.page-home .feature-panel {
  display: block;
  margin: 40px 16px 8px;
  max-width: 960px;
  background:
    radial-gradient(120% 180% at 85% 20%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(90% 120% at 15% 100%, #1e5fd1 0%, #2d7cf1 55%, #4f97ff 100%);
  color: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 2px rgba(45, 124, 241, 0.12),
              0 6px 24px -8px rgba(45, 124, 241, 0.28);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.page-home .feature-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(45, 124, 241, 0.18),
              0 22px 48px -12px rgba(45, 124, 241, 0.38);
}
.page-home .feature-panel-head {
  text-align: left;
  padding: 28px 28px 6px;
  position: relative;
  z-index: 1;
}
.page-home .feature-panel-title {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ffffff;
}
.page-home .feature-panel-sub {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 17px);
  color: #ffffff;
  opacity: 0.82;
  font-weight: 400;
}
.page-home .feature-panel-media {
  margin: 10px 0 0;
  width: 100%;
  aspect-ratio: 1200 / 300;
  background: transparent;
  display: block;
  overflow: hidden;
}
.page-home .feature-panel-media svg {
  width: 100%;
  height: 100%;
  display: block;
}
.page-home .feature-panel-cta {
  position: absolute;
  bottom: 16px;
  right: 20px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 600;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 2;
}
@media (max-width: 720px) {
  .page-home .feature-panel {
    margin: 28px 16px 4px;
    border-radius: 16px;
  }
  .page-home .feature-panel-head {
    padding: 22px 20px 4px;
  }
  .page-home .feature-panel-cta {
    bottom: 12px;
    right: 12px;
    font-size: 13px;
    padding: 7px 13px;
  }
}

/* Branded bullet lists for content pages (e.g. /what-is-an-assignment/) */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.bullet-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  border-bottom: 1px solid #ececef;
}
.bullet-list li:last-child {
  border-bottom: 0;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d7cf1;
}
.bullet-list li strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* Blank placeholder tiles (Ryan will fill these in) */
.page-home .cat-tile--blank {
  background: var(--white);
  border: 1px dashed #d2d2d7;
}
.page-home .cat-tile--blank .cat-tile-title {
  color: #86868b;
  font-weight: 500;
}
.page-home .cat-tile-media--blank {
  background: repeating-linear-gradient(
    135deg,
    #f5f5f7,
    #f5f5f7 10px,
    #eceef0 10px,
    #eceef0 20px
  );
}

/* Map tile — branded, no external image needed */
.page-home .cat-tile--map {
  background: #f0f4fb;
  border: 1px solid #e5ecf8;
}
.page-home .cat-tile--map .cat-tile-title {
  color: #1d1d1f;
  font-weight: 600;
}
.page-home .cat-tile-media--map {
  position: relative;
  background:
    radial-gradient(circle at 28% 38%, #2d7cf1 3px, transparent 3.5px),
    radial-gradient(circle at 42% 52%, #2d7cf1 4px, transparent 4.5px),
    radial-gradient(circle at 55% 44%, #e04a4a 4px, transparent 4.5px),
    radial-gradient(circle at 36% 60%, #2d7cf1 3px, transparent 3.5px),
    radial-gradient(circle at 48% 32%, #0a3d8a 3px, transparent 3.5px),
    radial-gradient(circle at 62% 58%, #2d7cf1 3px, transparent 3.5px),
    radial-gradient(circle at 72% 42%, #0a3d8a 3px, transparent 3.5px),
    radial-gradient(circle at 30% 48%, #2d7cf1 3px, transparent 3.5px),
    linear-gradient(180deg, #eaf2ff 0%, #dbe8fb 100%);
  background-repeat: no-repeat;
}
.page-home .cat-tile-media--map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(29,29,31,0.08) 1px, transparent 0);
  background-size: 16px 16px;
  pointer-events: none;
}
