/* Creating Tomorrow homepage, Version 4. Loaded only by index.html, after the shared style.css.
   Everything is scoped to body.home-v4 or to the hv- classes, so no other page is affected.
   Same look as the dashboard (career/dashboard-v4.css): raised cards, glossy colored icons,
   gradient buttons, navy and gold. Pictures: img/home/ (one CSS variable for the Chicago band). */

body.home-v4 {
  /* ASSET SLOT: the Chicago picture in the bottom-right card. Swap this one line for the final file
     (about 1800x576, no text baked in). */
  --hv-closing-image: url("img/home/team-people.jpg"); /* was img/home/chicago-2150.jpg */
  --ink: #14213d;
  --muted: #5a6478;
  --blue: #0a35a8;
  --blue-deep: #072a86;
  --gold: #efae09;
  --gold-text: #a96f00;
  --line: #e6e9ef;
  --line-soft: #eef0f5;
  --cream: #fdfaf3;
  --sky: #f3f7fd;
  --lavender: #f6f4fc;
  --mint: #f1f8f3;
  --butter: #fdf8ea;
  --blush: #fdf3f0;
  --radius: 14px;
  --radius-sm: 10px;
  --lit: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow: 0 1px 1px rgba(20, 33, 61, 0.04), 0 3px 6px rgba(20, 33, 61, 0.04), 0 12px 26px -4px rgba(20, 33, 61, 0.08), 0 28px 50px -22px rgba(20, 33, 61, 0.12);
  --shadow-lift: 0 2px 4px rgba(20, 33, 61, 0.06), 0 16px 32px -6px rgba(20, 33, 61, 0.14), 0 0 0 1px rgba(70, 150, 255, 0.12), 0 14px 40px -14px rgba(70, 150, 255, 0.22);
}

body.home-v4, body.home-v4 *, body.home-v4 *::before, body.home-v4 *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---------- Header: white bar, hairline, navy type, thin gold marker ---------- */
body.home-v4 .site-nav {
  max-width: none;
  padding: 0.9rem max(1.5rem, calc((100% - 1120px) / 2 + 1.5rem));
  gap: 0.5rem 1rem;
  border-bottom: 1px solid var(--v4-line-soft);
}
body.home-v4 .nav-links { gap: 0.1rem 0.25rem; align-items: center; }
body.home-v4 .nav-links a {
  color: var(--v4-ink);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
body.home-v4 .nav-links a:hover { color: var(--v4-blue); background: none; }
body.home-v4 .nav-links a.nav-active { color: var(--v4-ink); border-bottom-color: var(--v4-gold); }
/* Career Tools reads as part of the row, marked by an arrow and a blue label */
body.home-v4 .nav-links a.nav-cta { background: none; color: var(--v4-blue); border-radius: 0; padding: 0.55rem 0.7rem; font-weight: 700; }
body.home-v4 .nav-links a.nav-cta:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
body.home-v4 .nav-wordmark-title { color: var(--v4-ink); }
body.home-v4 .nav-logo img { height: 38px; }

@media (max-width: 640px) {
  body.home-v4 .site-nav { padding: 0.75rem 1rem; }
  body.home-v4 .nav-links { justify-content: flex-start; gap: 0.05rem 0.15rem; }
  body.home-v4 .nav-links a { padding: 0.55rem 0.5rem; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.home-v4 {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 88% -80px, rgba(96, 170, 255, 0.16), rgba(96, 170, 255, 0) 70%),
    radial-gradient(700px 320px at 0 0, rgba(239, 174, 9, 0.07), rgba(239, 174, 9, 0) 70%),
    linear-gradient(180deg, #ffffff 0, #ffffff 300px, #f5f8fc 100%) fixed;
  line-height: 1.5;
}
body.home-v4 main a { color: inherit; }
body.home-v4 main img { max-width: 100%; height: auto; display: block; }
.hv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons: a lit top edge and a soft drop ---------- */
.hv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hv-btn:hover { transform: translateY(-1px); }
.hv-btn:active { transform: none; }
.hv-btn:focus-visible { outline: 3px solid rgba(10, 53, 168, 0.28); outline-offset: 2px; }
body.home-v4 .hv-btn-outline:hover, body.home-v4 .hv-btn-outline:active, body.home-v4 .hv-btn-outline:focus-visible { background: linear-gradient(180deg, #ffffff 0%, #f3f6fc 100%); color: var(--blue); }
.hv-btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
body.home-v4 .hv-btn-primary { background: linear-gradient(180deg, #1a50cf 0%, #0a35a8 100%); color: #ffffff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 12px -5px rgba(10, 53, 168, 0.55); }
body.home-v4 .hv-btn-primary:hover { background: linear-gradient(180deg, #1448c4 0%, #072a86 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 9px 16px -6px rgba(10, 53, 168, 0.6); }
body.home-v4 .hv-btn-outline { background: linear-gradient(180deg, #ffffff 0%, #f3f6fc 100%); color: var(--blue); border-color: #c3cde6; box-shadow: var(--lit), 0 3px 8px -4px rgba(20, 33, 61, 0.18); }
body.home-v4 .hv-btn-outline:hover { border-color: var(--blue); }
body.home-v4 .hv-btn-gold { background: linear-gradient(180deg, #f8c43a 0%, #e8a309 100%); color: #2b1d00; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 12px -5px rgba(196, 135, 5, 0.6); }
body.home-v4 .hv-btn-gold:hover { background: linear-gradient(180deg, #f2b823 0%, #d99600 100%); }

/* ---------- Hero: one raised card, copy on the left, the person on the right ---------- */
.hv-hero {
  max-width: 1072px;
  width: calc(100% - 3rem);
  margin: 0.5rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: linear-gradient(120deg, #ffffff 40%, var(--cream) 100%);
  border: 1px solid #dfe5f1;
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--lit), 0 22px 54px -26px rgba(239, 174, 9, 0.55);
  overflow: hidden;
}
.hv-hero-copy { padding: 1.6rem 1rem 1.6rem 2.25rem; align-self: center; }
.hv-hero h1 { margin: 0 0 0.7rem; font-size: var(--fs-h1); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-serif); }
.hv-hero h1 span { color: var(--gold-text); }
.hv-hero p { margin: 0 0 1.2rem; max-width: 28rem; font-size: 1.02rem; color: #3d4963; }
.hv-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hv-hero .hv-free { display: flex; align-items: center; gap: 0.5rem; margin: 0.95rem 0 0; font-size: 0.93rem; color: #3d4963; }
.hv-free svg { flex: none; width: 22px; height: 22px; fill: none; stroke: #047857; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(4, 120, 87, 0.3)); }
.hv-free b { color: var(--ink); }
.hv-hero-photo { position: relative; min-height: 250px; }
.hv-hero-photo > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hv-hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 6% 38%, rgba(255, 207, 110, 0.55) 0%, rgba(255, 207, 110, 0) 55%); mix-blend-mode: soft-light; pointer-events: none; }
.hv-hero-photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, #fdfbf6 0%, rgba(253, 251, 246, 0) 24%); pointer-events: none; }

/* ---------- Sections ---------- */
.hv-section { max-width: 1120px; margin: 1.5rem auto 0; padding: 0 1.5rem; }
.hv-h2 { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.8rem; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; font-family: var(--font-serif); }
.hv-h2::before {
  content: "";
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--hv-badge-bg, #bcd0fb) var(--hv-badge-icon) center / 64% no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -4px 7px rgba(10, 42, 122, 0.14), 0 0 0 1px rgba(10, 42, 122, 0.14), 0 7px 13px -5px rgba(20, 33, 61, 0.34);
}
#how-h { --hv-badge-bg: #bcd0fb; --hv-badge-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%231d4ed8%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%226%22 cy=%2219%22 r=%223%22/%3E%3Cpath d=%22M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15%22/%3E%3Ccircle cx=%2218%22 cy=%225%22 r=%223%22/%3E%3C/svg%3E"); }
#tools-h { --hv-badge-bg: #fbd170; --hv-badge-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23b45309%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%227%22 height=%227%22 rx=%221%22/%3E%3Crect x=%2214%22 y=%223%22 width=%227%22 height=%227%22 rx=%221%22/%3E%3Crect x=%2214%22 y=%2214%22 width=%227%22 height=%227%22 rx=%221%22/%3E%3Crect x=%223%22 y=%2214%22 width=%227%22 height=%227%22 rx=%221%22/%3E%3C/svg%3E"); }
#basics-h { --hv-badge-bg: #a9e4c8; --hv-badge-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23047857%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M2 4h6a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2z%22/%3E%3Cpath d=%22M22 4h-6a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h7z%22/%3E%3C/svg%3E"); }

.hv-c-blue { stroke: #1d4ed8 !important; }
.hv-c-gold { stroke: #b45309 !important; }
.hv-c-green { stroke: #047857 !important; }

/* Tools: six small raised cards, each with its own colored glossy icon */
.hv-tools { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.hv-tool, .hv-guide {
  --tool: #1d4ed8;
  --tool-bg: #e3ebfb;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.8rem 0.9rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--tool);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: var(--lit), 0 1px 2px rgba(20, 33, 61, 0.05), 0 8px 16px -10px rgba(20, 33, 61, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.hv-tool:hover, .hv-guide:hover { transform: translateY(-3px); border-color: #c9d3ea; border-top-color: var(--tool); box-shadow: var(--lit), var(--shadow-lift); }
.hv-tool:active, .hv-guide:active { transform: none; }
.hv-tool:focus-visible, .hv-guide:focus-visible { outline: 3px solid rgba(10, 53, 168, 0.28); outline-offset: 2px; }
.hv-vtop { display: flex; align-items: center; gap: 0.5rem; }
.hv-vicon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tool-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(20, 33, 61, 0.08);
}
.hv-vicon svg { width: 20px; height: 20px; fill: none; stroke: var(--tool); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hv-vtype { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tool); }
.hv-tool b, .hv-guide b { font-size: 0.98rem; line-height: 1.25; color: var(--ink); }
.hv-vdesc { font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.hv-vfoot { margin-top: auto; padding-top: 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--blue); }
.hv-t-sky { --tool: #1d4ed8; --tool-bg: #e3ebfb; }
.hv-t-butter { --tool: #b45309; --tool-bg: #fdf0d3; }
.hv-t-lavender { --tool: #6d28d9; --tool-bg: #ece6fb; }
.hv-t-mint { --tool: #047857; --tool-bg: #e3f3e8; }
.hv-t-blush { --tool: #be185d; --tool-bg: #fce7f1; }

/* ---------- Career Basics: four clickable guide tiles in a green-topped card ---------- */
.hv-basics {
  position: relative;
  padding-top: 1.1rem;
  padding-bottom: 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--line);
  border-top: 3px solid #10a37a;
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--lit);
}
.hv-basics .hv-h2 { margin-bottom: 0.1rem; font-size: var(--fs-xl); }
.hv-basics-sub { margin: 0 0 0.85rem calc(40px + 0.65rem); color: #3d4963; font-size: 0.92rem; }
.hv-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
body.home-v4 .hv-seeall { display: inline-block; margin-top: 0.9rem; font-weight: 700; font-size: 0.95rem; color: var(--blue); text-decoration: none; }
body.home-v4 .hv-seeall:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- How It Works: number + big colored icon, arrows between, title and explanation below ---------- */
.hv-how {
  position: relative;
  margin-top: 1.1rem;
  padding: 1.1rem 1.6rem 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--lit);
}
.hv-section.hv-card { max-width: 1072px; width: calc(100% - 3rem); padding-left: 1.6rem; padding-right: 1.6rem; }
.hv-toolscard {
  position: relative;
  padding-top: 1.1rem;
  padding-bottom: 1.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--lit);
}
.hv-toolscard .hv-h2 { margin-bottom: 0.4rem; }
.hv-toolscard .hv-quote { width: auto; max-width: none; margin: 0.1rem 0 1rem; }
.hv-how .hv-h2 { margin-bottom: 0.1rem; font-size: var(--fs-xl); }
.hv-how-sub { margin: 0 0 0.95rem calc(40px + 0.65rem); color: #3d4963; font-size: 0.95rem; }
.hv-sprout { position: absolute; top: 0.7rem; right: 1.4rem; width: 42px; height: auto; filter: drop-shadow(0 3px 7px rgba(20, 33, 61, 0.25)); }
.hv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.2rem; }
.hv-steps li { position: relative; }
.hv-step-link { display: block; margin: -0.7rem -0.8rem; padding: 0.7rem 0.8rem; border: 1px solid transparent; border-radius: 12px; text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease; }
.hv-step-link:hover { transform: translateY(-3px); background: #fbfcfe; border-color: #c9d3ea; box-shadow: var(--lit), var(--shadow-lift); }
.hv-step-link:active { transform: none; }
.hv-step-link:focus-visible { outline: 3px solid rgba(10, 53, 168, 0.28); outline-offset: 2px; }
.hv-step-top { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 0.6rem; }
.hv-step-n {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #1d4ed8;
  background: #e3ecfd;
  box-shadow: inset 0 1px 0 #ffffff, 0 4px 9px -4px rgba(29, 78, 216, 0.4);
}
.hv-steps li:nth-child(2) .hv-step-n { color: #b45309; background: #fdecc2; box-shadow: inset 0 1px 0 #ffffff, 0 4px 9px -4px rgba(180, 83, 9, 0.4); }
.hv-steps li:nth-child(3) .hv-step-n { color: #4338ca; background: #e6e5fb; box-shadow: inset 0 1px 0 #ffffff, 0 4px 9px -4px rgba(67, 56, 202, 0.4); }
.hv-step-icon { width: 46px; height: 46px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 5px rgba(20, 33, 61, 0.18)); }
.hv-step-icon.hv-c-blue { stroke: #1d4ed8; }
.hv-step-icon.hv-c-gold { stroke: #d9960b; }
.hv-step-icon.hv-c-navy { stroke: #1b2f7a; }
/* a thin arrow in the gap between steps, so they read as a flow and not as more tool cards */
.hv-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 0.45rem;
  right: -2.4rem;
  width: 1.6rem;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 300;
  color: #7b87a3;
}
.hv-steps b { display: block; font-size: 1.02rem; margin-bottom: 0.2rem; }
.hv-steps p { margin: 0; font-size: 0.9rem; color: #3d4963; line-height: 1.45; }

/* ---------- Quote: a single centered line with a gold rule either side (no box) ---------- */
.hv-quote { max-width: 1072px; width: calc(100% - 3rem); margin: 1.2rem auto 0; padding: 0; text-align: center; }
.hv-quote blockquote { margin: 0; display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.hv-quote blockquote::before,
.hv-quote blockquote::after { content: ""; flex: 1 1 0; max-width: 220px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(239, 174, 9, 0), rgba(239, 174, 9, 0.85)); }
.hv-quote blockquote::after { transform: scaleX(-1); }
.hv-quote p { margin: 0; font-size: clamp(1.15rem, 2vw, 1.55rem); font-style: italic; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.hv-quote figcaption { margin-top: 0.3rem; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; color: var(--gold-text); }

/* ---------- A note from the founder ---------- */
.hv-note { max-width: 42rem; width: calc(100% - 3rem); margin: 1.9rem auto 0; text-align: center; }
.hv-note-label { margin: 0 0 0.35rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold-text); }
.hv-note-text { margin: 0; font-size: 1.12rem; line-height: 1.6; color: #2a3552; }
body.home-v4 .hv-note-link { display: inline-block; margin-top: 0.45rem; font-size: 0.92rem; font-weight: 700; color: var(--blue); text-decoration: none; }
body.home-v4 .hv-note-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- One panel: the three middle sections share one white panel, divided by thin lines ---------- */
body.home-v4 .hv-panel {
  max-width: 1072px;
  width: calc(100% - 3rem);
  margin: 0.5rem auto 0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--lit), 0 22px 54px -26px rgba(239, 174, 9, 0.45);
  overflow: hidden;
}
body.home-v4 .hv-panel > .hv-section.hv-card {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 1.5rem 1.8rem 1.6rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.home-v4 .hv-panel > .hv-section.hv-card + .hv-section.hv-card { border-top: 1px solid var(--line-soft); }
/* the hero is the top of the same box: no card of its own, no gap, and the picture reaches the corner */
body.home-v4 .hv-panel > .hv-hero { width: auto; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
/* her line sits in the space between the hero and How It Works */
body.home-v4 .hv-panel > .hv-quote { width: auto; max-width: none; margin: 0; padding: 1.1rem 1.8rem 1.15rem; border-top: 1px solid var(--line-soft); }
body.home-v4 .hv-panel > .hv-quote + .hv-section.hv-card { border-top: 1px solid var(--line-soft); }

/* ---------- Bottom: a full-width Chicago band; the promise reads over its calm left side ---------- */
.hv-bottom { max-width: 1120px; margin: 1.1rem auto 0; padding: 0 1.5rem; }
.hv-closing {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 214px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #dfe5f1;
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 40%, rgba(255, 255, 255, 0.85) 46%, rgba(255, 255, 255, 0) 58%),
    var(--hv-closing-image) right 6% / 64% auto no-repeat,
    #ffffff;
  box-shadow: var(--shadow), var(--lit), 0 22px 54px -28px rgba(239, 174, 9, 0.5);
}
.hv-closing::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 -46px 56px -46px rgba(10, 42, 122, 0.28); }
.hv-closing-inner { position: relative; z-index: 1; padding: 1.1rem 2.25rem; max-width: 29rem; display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.hv-closing h2 { margin: 0; font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.14; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.hv-closing h2 span { color: var(--gold-text); }
.hv-closing p { margin: 0; color: #3d4963; font-size: 0.95rem; }

/* the shared stylesheet narrows every <main> to 700px; the homepage lays out its own full-width cards */
body.home-v4 main { max-width: none; margin: 0; padding: 0; }

/* buttons that open Guide, and the footer */
body.home-v4 button.hv-btn { font-family: inherit; cursor: pointer; }
body.home-v4 .hv-footer-brand { font-weight: 800; color: var(--ink); margin-bottom: 0.15rem; }
body.home-v4 .hv-footer-privacy { max-width: 62ch; margin: 0.6rem auto 0; line-height: 1.55; }
.hv-footer { max-width: 1120px; margin: 1.25rem auto 0; padding: 1rem 1.5rem 1.75rem; text-align: center; color: var(--muted); font-size: 0.86rem; }
.hv-footer p { margin: 0; }
.hv-footer a { color: var(--blue); text-decoration: none; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .hv-tool, .hv-guide, .hv-btn, .hv-step-link { transition: none; }
  .hv-tool:hover, .hv-guide:hover, .hv-btn:hover, .hv-step-link:hover { transform: none; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 1000px) {
  .hv-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hv-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-hero-copy { padding-left: 1.75rem; }
}
@media (max-width: 800px) {
  .hv-hero { grid-template-columns: 1fr; width: calc(100% - 2rem); }
  .hv-hero-copy { padding: 1.25rem 1.25rem 0.5rem; }
  .hv-hero-photo { min-height: 190px; }
  .hv-hero-photo::after { background: linear-gradient(180deg, #fdfbf6 0%, rgba(253, 251, 246, 0) 22%); }
  .hv-section, .hv-bottom { padding: 0 1rem; }
  .hv-note { width: calc(100% - 2rem); }
  body.home-v4 .hv-panel { width: calc(100% - 2rem); }
  body.home-v4 .hv-panel > .hv-section.hv-card { padding: 1.2rem 1.1rem 1.3rem; }
  .hv-section.hv-card { width: calc(100% - 2rem); padding-left: 1.1rem; padding-right: 1.1rem; }
  .hv-steps { grid-template-columns: 1fr; gap: 1.1rem; }
  .hv-quote blockquote::before, .hv-quote blockquote::after { display: none; }
  .hv-steps li:not(:last-child)::after { display: none; }
  .hv-sprout { right: 1rem; }
  .hv-closing { min-height: 330px; align-items: flex-start; background: #ffffff; }
  .hv-closing::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 190px;
    background: var(--hv-closing-image) 50% 8% / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 42%);
  }
  .hv-closing-inner { max-width: none; padding: 1.25rem 1.25rem 0; }
}
@media (max-width: 520px) {
  .hv-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-guides { grid-template-columns: 1fr; }
}

/* ---------- Soft edge: the big box melts into the page instead of being outlined (easy to remove) ---------- */
body.home-v4 .hv-panel {
  border-color: transparent;
  box-shadow: 0 30px 80px -46px rgba(20, 33, 61, 0.13);
}
body.home-v4 .site-nav { border-bottom-color: rgba(20, 33, 61, 0.035); }

/* ---------- The not-found page (404.html) ---------- */
.hv-notfound { max-width: 40rem; width: calc(100% - 3rem); margin: 3.5rem auto 1rem; padding: 2.5rem 2rem 2.4rem; text-align: center; background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow), var(--lit); }
.hv-notfound-code { margin: 0; font-size: 4.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--gold); font-family: var(--font-serif); }
.hv-notfound h1 { margin: 0.4rem 0 0.5rem; font-size: var(--fs-h2); letter-spacing: -0.015em; color: var(--ink); font-family: var(--font-serif); }
.hv-notfound p { margin: 0 auto 1.4rem; max-width: 30rem; color: #3d4963; }
.hv-notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
@media (max-width: 800px) { .hv-notfound { width: calc(100% - 2rem); margin-top: 2rem; padding: 2rem 1.2rem; } }
