/* static/css/pages/homepage_sam.css
   The marketing homepage, built around the "Just tell SAM" film.

   Layout: the film is the hero. A split headline (the spoken line on the left,
   the pitch on the right) sits over the 2:1 film, sized so the whole frame is
   on the first screen. The four story beats under it are the film's timeline.
   Night ground for the film, daylight paper for the product, and the film's
   sunrise returns behind the closing section. Anything said out loud is serif
   italic, the system speaks in grotesk, and records (work order numbers,
   times, prices) are mono.

   How this file stays out of the way of the rest of the site
   ----------------------------------------------------------
   home/base.html is shared by every marketing, blog, login and legal page and
   loads Bootstrap, css/main.css and css/pages/homepage.css for all of them.
   So this stylesheet is loaded by templates/home/index.html only, and:

   - every class here starts with "hp-" (state hooks are "is-*", script hooks
     are "js-*"), and every rule is written under the .hp wrapper, so nothing
     here can restyle another page and no Bootstrap or site class rule
     (.btn, .eyebrow, .hero-section ...) reaches the new markup by accident;
   - tokens are "--hp-*" on body.hp-body, because the site already owns
     --radius, --white and friends;
   - element resets use :where(.hp), which adds no specificity, so they beat
     the site's bare element rules by source order and lose to every class;
   - the shared navbar and footer partials are restyled, not copied, through
     body.hp-body. base.html gained a body_class block for that.
   ------------------------------------------------------------------------ */

body.hp-body {
  --hp-night: #14122b;
  --hp-night-2: #1e1b3d;
  --hp-night-line: rgba(255, 255, 255, .16);
  --hp-night-text: rgba(255, 255, 255, .8);
  --hp-dawn: #f3b76a;
  --hp-sam: #6f42c2;
  --hp-sam-deep: #4b2a8f;
  --hp-sam-soft: #cbbcf6;
  --hp-go: #2c7a38;
  --hp-go-deep: #1d5727;
  --hp-go-bright: #5db435;
  --hp-dyn: #b85a14;
  --hp-dyn-ink: #9c4a0e;
  --hp-dyn-wash: #fcefe0;
  --hp-paper: #f8f7fc;
  --hp-paper-2: #f0eef8;
  --hp-card: #ffffff;
  --hp-ink: #18162d;
  --hp-ink-2: #37344f;
  --hp-muted: #5c5873;
  --hp-line: #e2dfee;
  --hp-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hp-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hp-voice: "Newsreader", "Iowan Old Style", Georgia, serif;
  --hp-data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hp-gutter: clamp(16px, 4vw, 32px);
  --hp-radius: 18px;
  --hp-nav-h: 66px;   /* height of the shared navbar; lines up the glow behind it */
  background-color: var(--hp-night);
  background-image: none;
}

/* ---------- Shared navbar, on the night ground ---------- */
body.hp-body .navbar {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-color: var(--hp-night);
  background-image: radial-gradient(52rem 30rem at 4% 0%, rgba(111, 66, 194, .26), transparent 72%);
  box-shadow: none;
}
body.hp-body .navbar > .container {
  max-width: 1264px;
  padding-left: max(var(--hp-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--hp-gutter), env(safe-area-inset-right, 0px));
}
body.hp-body .navbar .navbar-brand {
  color: #fff !important;
  font-family: var(--hp-display); font-weight: 700; letter-spacing: -.01em;
}
body.hp-body .navbar .navbar-brand .text-green { color: #7ed957; }
body.hp-body .navbar .navbar-brand .text-deep-purple { color: #fff; }
body.hp-body .navbar .nav-link { color: var(--hp-night-text) !important; font-weight: 500; }
body.hp-body .navbar .navbar-nav .nav-link:hover,
body.hp-body .navbar .navbar-nav .nav-link:focus { color: #fff !important; }
body.hp-body .navbar :focus-visible { outline: 3px solid var(--hp-dawn); outline-offset: 2px; border-radius: 6px; }
body.hp-body .navbar .btn {
  height: 40px; padding: 0 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; box-shadow: none;
}
body.hp-body .navbar .btn-hoa-deep-purple {
  background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff;
}
body.hp-body .navbar .btn-hoa-deep-purple:hover,
body.hp-body .navbar .btn-hoa-deep-purple:focus {
  background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff;
}
body.hp-body .navbar .btn-hoa-forest-green {
  background: var(--hp-go-bright); border-color: var(--hp-go-bright); color: #0e230f;
}
body.hp-body .navbar .btn-hoa-forest-green:hover,
body.hp-body .navbar .btn-hoa-forest-green:focus {
  background: #6cc644; border-color: #6cc644; color: #0e230f;
}
body.hp-body .navbar .navbar-toggler {
  padding: .4rem .6rem; border: 1px solid rgba(255, 255, 255, .4); border-radius: 10px;
}
body.hp-body .navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(243, 183, 106, .55); }
@media (max-width: 991.98px) {
  /* components/sidebar.css hides every .navbar-toggler above 768px, which
     leaves this menu unreachable on tablets. Bring it back on this page. */
  body.hp-body .navbar .navbar-toggler { display: block !important; }
  body.hp-body .navbar .navbar-collapse { padding-bottom: .75rem; }
  body.hp-body .navbar .navbar-nav { align-items: stretch; }
  body.hp-body .navbar .nav-link { min-height: 44px; display: flex; align-items: center; }
  body.hp-body .navbar .nav-item .btn { width: 100%; margin: 0; }
  /* The always-visible "Owner login" beside the toggler covers this one. */
  body.hp-body .navbar .navbar-nav .nav-item:has(> .btn-hoa-deep-purple) { display: none; }
}
@media (max-width: 768px) {
  /* components/sidebar.css indents every .navbar-brand by 60px on phones to
     clear the app's sidebar button, which the marketing pages do not have. */
  body.hp-body .navbar .navbar-brand { margin-left: 0 !important; }
}
@media (max-width: 767.98px) {
  body.hp-body { --hp-nav-h: 61px; }   /* the logo drops to 35px here */
}

/* ---------- Shared footer ---------- */
body.hp-body > footer { margin-top: 0; background-color: #0f0d22; color: rgba(255, 255, 255, .75); }
body.hp-body > footer > .container {
  max-width: 1264px;
  padding-left: max(var(--hp-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--hp-gutter), env(safe-area-inset-right, 0px));
}
@media (max-width: 640px) {
  body.hp-body > footer li a { display: inline-block; padding-block: .35rem; }
}

/* ---------- Page ground and resets ---------- */
.hp {
  width: 100%; min-width: 0;   /* body is a flex column */
  background: var(--hp-paper);
  color: var(--hp-ink);
  font-family: var(--hp-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}
:where(.hp) :is(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
:where(.hp) :is(h1, h2, h3, h4) { color: inherit; font: inherit; letter-spacing: normal; text-transform: none; }
:where(.hp) :is(ul, ol) { padding: 0; list-style: none; }
:where(.hp) a { color: inherit; text-decoration: none; }
:where(.hp) a:hover { color: inherit; text-decoration: none; }
:where(.hp) :is(img, video) { display: block; max-width: 100%; }
:where(.hp) button { font: inherit; color: inherit; cursor: pointer; }
.hp [id] { scroll-margin-top: calc(var(--hp-nav-h) + .75rem); }
.hp :focus-visible { outline: 3px solid var(--hp-dawn); outline-offset: 3px; border-radius: 6px; }
.hp main :focus-visible { outline-color: var(--hp-sam); }

.hp .hp-wrap {
  width: 100%;
  max-width: 1264px;
  margin-inline: auto;
  padding-left: max(var(--hp-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--hp-gutter), env(safe-area-inset-right, 0px));
}
.hp .hp-label { font-family: var(--hp-body); font-weight: 600; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.hp .hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.25rem;
  border-radius: 12px; border: 1px solid transparent;
  font-family: var(--hp-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; text-align: center; line-height: 1.2; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.hp .hp-btn:hover { transform: translateY(-1px); }
.hp .hp-btn-go, .hp .hp-btn-go:hover { color: #fff; }
.hp .hp-btn-go { background: var(--hp-go); }
.hp .hp-btn-go:hover { background: var(--hp-go-deep); }
.hp .hp-btn-go-bright, .hp .hp-btn-go-bright:hover { color: #0e230f; }
.hp .hp-btn-go-bright { background: var(--hp-go-bright); }
.hp .hp-btn-go-bright:hover { background: #6cc644; }
.hp .hp-btn-ghost-light, .hp .hp-btn-ghost-light:hover { color: #fff; }
.hp .hp-btn-ghost-light { border-color: rgba(255, 255, 255, .4); background: transparent; }
.hp .hp-btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.hp .hp-btn-outline, .hp .hp-btn-outline:hover { color: var(--hp-go-deep); }
.hp .hp-btn-outline { border-color: var(--hp-go); background: transparent; }
.hp .hp-btn-outline:hover { background: #e8f4eb; }
.hp .hp-btn-dyn, .hp .hp-btn-dyn:hover { color: #fff; }
.hp .hp-btn-dyn { background: var(--hp-dyn); }
.hp .hp-btn-dyn:hover { background: var(--hp-dyn-ink); }
.hp .hp-btn-sm { min-height: 44px; padding: .45rem .95rem; font-size: .92rem; }
.hp .hp-btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hp .hp-hero {
  position: relative; color: #fff;
  background:
    radial-gradient(52rem 30rem at 4% calc(var(--hp-nav-h) * -1), rgba(111, 66, 194, .26), transparent 72%),
    linear-gradient(180deg, var(--hp-night) 0%, var(--hp-night-2) 100%);
  padding-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
  overflow: hidden;
}
.hp .hp-hero-grid {
  --hp-w: 100%;
  width: var(--hp-w); margin-inline: auto; container-type: inline-size;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  grid-template-areas: "h1 side" "film film" "under under" "beats beats" "now now" "disc owner";
  column-gap: 1.5rem; align-items: end;
  padding-top: 1.25rem;
}
@media (min-width: 1041px) {
  /* Size the film by the height that is left, so the whole frame is on the
     first screen: navbar + headline row + film + a glimpse of the beats. */
  .hp .hp-hero-grid { --hp-w: min(100%, max(760px, calc((100vh - 21rem) * 2))); }
  @supports (height: 100svh) { .hp .hp-hero-grid { --hp-w: min(100%, max(760px, calc((100svh - 21rem) * 2))); } }
  .hp .hp-hero { background:
    radial-gradient(64rem 30rem at 78% 62%, rgba(243, 183, 106, .18), transparent 70%),
    radial-gradient(52rem 30rem at 4% calc(var(--hp-nav-h) * -1), rgba(111, 66, 194, .26), transparent 72%),
    linear-gradient(180deg, var(--hp-night) 0%, var(--hp-night-2) 100%); }
}
.hp .hp-hero h1 { grid-area: h1; display: flex; flex-direction: column; gap: .7rem; }
.hp .hp-eyebrow { font-family: var(--hp-body); font-weight: 600; font-size: .9375rem; line-height: 1.6; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.hp .hp-tagline {
  font-family: var(--hp-voice); font-style: italic; font-weight: 400;
  font-size: clamp(3.25rem, 7.6cqi, 6rem); line-height: .92; letter-spacing: -.035em;
  white-space: nowrap;
}
.hp .hp-hero-side { grid-area: side; }
.hp .hp-lede { font-size: 1.0625rem; line-height: 1.5; color: var(--hp-night-text); }
.hp .hp-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.hp .hp-ctas .hp-btn { padding-inline: 1.05rem; }
.hp .hp-hero-note { margin-top: .7rem; font-size: .875rem; line-height: 1.45; color: rgba(255, 255, 255, .7); }

.hp .hp-film {
  grid-area: film; margin-top: 1.5rem;
  position: relative; aspect-ratio: 2 / 1; width: 100%; max-width: 100%;
  border-radius: var(--hp-radius); overflow: hidden; background: #0b0a17;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 120px -30px rgba(0, 0, 0, .75), 0 0 140px -20px rgba(243, 183, 106, .25);
}
.hp .hp-film video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.hp .hp-film-cap {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: max-content; max-width: 70%;
  padding: .35em .8em; border-radius: 8px;
  background: rgba(12, 10, 26, .8); color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.35; text-align: center; text-wrap: balance;
  pointer-events: none;
}
.hp .hp-film-cap b { font-family: var(--hp-body); font-weight: 600; font-size: .78em; margin-right: .4em; color: var(--hp-sam-soft); }
.hp .hp-film-cap i { font-family: var(--hp-voice); font-style: italic; font-weight: 500; }
.hp .hp-film-ctl { position: absolute; right: clamp(.6rem, 1.6vw, 1.1rem); top: clamp(.6rem, 1.6vw, 1.1rem); display: flex; gap: .5rem; }
.hp .hp-fbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(12, 10, 26, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-family: var(--hp-body); font-weight: 600; font-size: .92rem; line-height: 1.2; white-space: nowrap;
}
.hp .hp-fbtn:hover { background: rgba(12, 10, 26, .85); border-color: #fff; }
.hp .hp-fbtn svg { width: 18px; height: 18px; flex: none; }
.hp .hp-fbtn-icon { width: 44px; padding: 0; }
.hp .hp-fbtn-sound, .hp .hp-fbtn-sound:hover { background: #fff; color: var(--hp-ink); border-color: #fff; }
.hp .hp-film-end {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.75rem, 2.4cqi, 1.75rem);
  padding: 1rem; text-align: center;
  background: linear-gradient(rgba(20, 18, 43, .55), rgba(20, 18, 43, .88)), url("../../images/home/sam-film-poster.4bd010c690a5.jpg") center / cover;
}
.hp .hp-film-end p { font-family: var(--hp-voice); font-style: italic; font-size: clamp(2.25rem, 7cqi, 5rem); line-height: 1; letter-spacing: -.03em; }
.hp .hp-film-end div { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.hp .hp-film-under { grid-area: under; display: none; }
/* Shown only when scripts are off, where the film has no controls. */
.hp .hp-film-fallback a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.hp .hp-beats { grid-area: beats; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2rem); margin-top: clamp(1.1rem, 2vw, 1.6rem); }
.hp .hp-beats li { display: flex; }
.hp .hp-beat {
  position: relative; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start;
  width: 100%; height: 100%; padding: 1rem 0 0; border: 0; border-radius: 0; background: none; text-align: left; color: #fff;
  transition: opacity .25s ease;
}
.hp .hp-beat::before, .hp .hp-beat-fill { content: ""; position: absolute; left: 0; top: 0; height: 3px; border-radius: 3px; }
.hp .hp-beat::before { width: 100%; background: rgba(255, 255, 255, .3); }
.hp .hp-beat-fill { width: 0; background: var(--hp-dawn); }
.hp .hp-beats.is-playing .hp-beat { opacity: .75; }
.hp .hp-beats.is-playing .hp-beat.is-on, .hp .hp-beats.is-playing .hp-beat:hover { opacity: 1; }
.hp .hp-beat-when { font-family: var(--hp-data); font-size: .8125rem; letter-spacing: .04em; color: var(--hp-dawn); }
.hp .hp-beat-said { font-family: var(--hp-voice); font-style: italic; font-weight: 500; font-size: clamp(1.1rem, 1.9cqi, 1.3rem); line-height: 1.3; text-wrap: pretty; }
.hp .hp-beat-said b { font-family: var(--hp-body); font-style: normal; font-weight: 600; font-size: .76em; margin-right: .2em; color: var(--hp-sam-soft); }
.hp .hp-beat-said.hp-plain { font-family: var(--hp-body); font-style: normal; font-weight: 400; font-size: 1rem; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.hp .hp-beat-rec {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: auto;
  font-family: var(--hp-data); font-size: .8125rem; line-height: 1.6; color: rgba(255, 255, 255, .88);
  padding: .28rem .6rem; border-radius: 6px; background: rgba(255, 255, 255, .1);
}
.hp .hp-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.hp .hp-dot-listen, .hp .hp-dot-ok { color: var(--hp-go-bright); }
.hp .hp-dot-assigned { color: var(--hp-sam-soft); }
.hp .hp-now { grid-area: now; display: none; }
.hp .hp-disclosure { grid-area: disc; align-self: start; margin-top: 1.4rem; font-size: .8125rem; color: rgba(255, 255, 255, .62); }
/* Owner sign-in: the one thing a unit owner comes to this page for. */
.hp .hp-owner { grid-area: owner; align-self: start; margin-top: 1.4rem; font-size: .8125rem; color: rgba(255, 255, 255, .72); }
.hp .hp-owner a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Sections on paper ---------- */
.hp .hp-band { padding-block: clamp(3.5rem, 7vw, 6rem); }
.hp .hp-band-tint { background: var(--hp-paper-2); }
.hp .hp-sec-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.hp .hp-sec-head h2, .hp .hp-h2 {
  font-family: var(--hp-display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08; letter-spacing: -.018em; text-wrap: balance;
}
.hp .hp-sec-sub { margin-top: .9rem; font-size: 1.1rem; color: var(--hp-muted); max-width: 60ch; }
.hp .hp-link, .hp .hp-link:hover { color: var(--hp-sam-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hp .hp-link { font-weight: 600; }

/* SAM */
.hp .hp-sam { overflow-x: clip; }
.hp .hp-sam-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hp .hp-sam-label { color: var(--hp-sam-deep); margin-bottom: 1.1rem; }
.hp .hp-sam-title { font-family: var(--hp-voice); font-style: italic; font-weight: 400; font-size: clamp(3rem, 5.6vw, 4.6rem); line-height: .95; letter-spacing: -.03em; white-space: nowrap; }
.hp .hp-sam-lede { margin-top: 1.1rem; font-size: 1.15rem; color: var(--hp-ink-2); max-width: 30ch; }
.hp .hp-screens { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.hp .hp-screens::before {
  content: ""; position: absolute; inset: 6% -6% 10%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(111, 66, 194, .2), rgba(243, 183, 106, .12) 62%, transparent);
}
.hp .hp-screens li { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .8rem; }
.hp .hp-screens img { width: 100%; height: auto; filter: drop-shadow(0 22px 28px rgba(24, 22, 45, .26)); }
.hp .hp-screens span { font-family: var(--hp-data); font-size: .8125rem; color: var(--hp-muted); text-align: center; }
.hp .hp-screens span b { font-weight: 500; color: var(--hp-ink); }
.hp .hp-sam-more { margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--hp-line); }
.hp .hp-sam-more h3 { font-family: var(--hp-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.018em; line-height: 1.15; }
.hp .hp-sam-more > p { margin-top: .5rem; color: var(--hp-muted); max-width: 62ch; }
.hp .hp-asks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 4rem); margin-top: 1.5rem; }
.hp .hp-asks li { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 0; border-top: 1px solid var(--hp-line); }
.hp .hp-asks q { quotes: "\201C" "\201D"; font-family: var(--hp-voice); font-style: italic; font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.25; }
.hp .hp-ask-src { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--hp-data); font-size: .8125rem; color: var(--hp-muted); }
.hp .hp-ask-src.hp-reads .hp-dot { color: var(--hp-sam); }
.hp .hp-ask-src.hp-drafts .hp-dot { color: var(--hp-go); }
.hp .hp-sam-more > .hp-sam-foot { margin-top: 0; padding-top: 1.1rem; border-top: 1px solid var(--hp-line); font-size: .95rem; color: var(--hp-muted); max-width: none; }
.hp .hp-sam-foot strong { color: var(--hp-ink); font-weight: 600; }

/* Proof */
.hp .hp-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--hp-line); }
.hp .hp-proof > div { padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(.9rem, 2vw, 1.75rem); border-left: 1px solid var(--hp-line); }
.hp .hp-proof > div:first-child { border-left: 0; padding-left: 0; }
.hp .hp-proof-v { font-family: var(--hp-display); font-weight: 700; font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hp .hp-proof-l { margin-top: .5rem; font-size: .95rem; color: var(--hp-muted); max-width: 22ch; }

/* Features */
.hp .hp-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3rem); }
.hp .hp-feat h3 { font-family: var(--hp-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.015em; padding-bottom: .9rem; border-bottom: 2px solid var(--hp-ink); }
.hp .hp-feat li { padding: .72rem 0; border-bottom: 1px solid var(--hp-line); font-size: 1rem; line-height: 1.45; }

/* Fork */
.hp .hp-fork { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.hp .hp-fork-card { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3.2vw, 2.5rem); border-radius: 20px; background: var(--hp-card); border: 1px solid var(--hp-line); }
.hp .hp-fork-fiscal .hp-label { color: var(--hp-go-deep); }
.hp .hp-fork-dyn .hp-label, .hp .hp-dyn .hp-label { color: var(--hp-dyn-ink); }
.hp .hp-fork-card h3 { font-family: var(--hp-voice); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; }
.hp .hp-fork-card p { color: var(--hp-ink-2); }
.hp .hp-ticks { display: grid; gap: .55rem; }
.hp .hp-ticks li { position: relative; padding-left: 1.6rem; line-height: 1.45; }
.hp .hp-ticks li::before { content: ""; position: absolute; left: .15rem; top: .42em; width: .62rem; height: .34rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); color: var(--hp-go); }
.hp .hp-fork-dyn .hp-ticks li::before, .hp .hp-price-managed .hp-ticks li::before { color: var(--hp-dyn); }
.hp .hp-fork-card .hp-btn { margin-top: auto; }
.hp .hp-fork-bridge { margin-top: 1.5rem; color: var(--hp-muted); }
.hp .hp-fork-bridge strong { color: var(--hp-ink); }

/* How */
.hp .hp-how-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin-top: 1.25rem; }
.hp .hp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); counter-reset: hp-step; }
.hp .hp-steps li { counter-increment: hp-step; padding-top: 1rem; border-top: 2px solid var(--hp-ink); }
.hp .hp-steps li::before { content: counter(hp-step); display: block; font-family: var(--hp-display); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--hp-sam); margin-bottom: 1.1rem; }
.hp .hp-steps h3 { font-family: var(--hp-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.2; margin-bottom: .5rem; }
.hp .hp-steps p { color: var(--hp-muted); font-size: .98rem; }
/* .step-video is the class the setup-video tests look for; it is styled here. */
.hp .hp-steps .step-video, .hp .hp-steps .step-video:hover { color: var(--hp-sam-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hp .hp-steps .step-video { display: inline-block; margin-top: .75rem; font-size: .95rem; font-weight: 600; }
.hp .hp-reassure { margin-top: clamp(1.75rem, 3vw, 2.5rem); padding: 1.25rem 1.5rem; border-radius: 16px; background: var(--hp-card); border: 1px solid var(--hp-line); max-width: 62rem; color: var(--hp-ink-2); }
.hp .hp-reassure strong { color: var(--hp-ink); }

/* Pricing */
.hp .hp-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.8vw, 1.5rem); align-items: stretch; }
.hp .hp-price { position: relative; display: flex; flex-direction: column; gap: 1.1rem; padding: 3.25rem clamp(1.4rem, 2.4vw, 2rem) clamp(1.4rem, 2.4vw, 2rem); border-radius: 20px; background: var(--hp-card); border: 1px solid var(--hp-line); }
.hp .hp-price-flag { position: absolute; top: 1.4rem; left: clamp(1.4rem, 2.4vw, 2rem); color: var(--hp-dawn); }
.hp .hp-price-name { font-family: var(--hp-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.015em; line-height: 1.1; }
.hp .hp-price-for { color: var(--hp-muted); font-size: .98rem; margin-top: .25rem; }
.hp .hp-price-per { font-size: .875rem; color: var(--hp-muted); margin-bottom: -.5rem; }
.hp .hp-price-grid { display: grid; grid-template-columns: 1fr auto; gap: 0; border-top: 1px solid var(--hp-line); }
.hp .hp-price-grid span, .hp .hp-price-grid b { min-height: 3.45rem; padding: .6rem 0; border-bottom: 1px solid var(--hp-line); display: flex; align-items: center; }
.hp .hp-price-grid span { color: var(--hp-muted); font-size: .95rem; }
.hp .hp-price-grid b { padding-left: 1rem; justify-content: flex-end; font-family: var(--hp-data); font-weight: 500; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.hp .hp-price-grid b.hp-words { font-family: var(--hp-body); font-weight: 600; font-size: 1.05rem; }
.hp .hp-inc summary { display: none; }
.hp .hp-price .hp-ticks { font-size: .96rem; }
.hp .hp-price .hp-lead-in { padding-left: 0; font-weight: 600; }
.hp .hp-price .hp-lead-in::before { display: none; }
.hp .hp-price .hp-not-inc { color: var(--hp-muted); }
.hp .hp-price .hp-not-inc::before { width: .62rem; height: 0; border-left: 0; transform: none; top: .72em; color: var(--hp-muted); }
.hp .hp-price > .hp-btn { margin-top: auto; }
.hp .hp-price-featured { background: var(--hp-night); color: #fff; border-color: var(--hp-night); box-shadow: 0 30px 60px -30px rgba(20, 18, 43, .6); }
.hp .hp-price-featured .hp-price-for, .hp .hp-price-featured .hp-price-per, .hp .hp-price-featured .hp-price-grid span { color: var(--hp-night-text); }
.hp .hp-price-featured .hp-price-grid, .hp .hp-price-featured .hp-price-grid span, .hp .hp-price-featured .hp-price-grid b { border-color: var(--hp-night-line); }
.hp .hp-price-featured .hp-ticks li::before { color: var(--hp-go-bright); }
.hp .hp-price-featured :focus-visible { outline-color: var(--hp-dawn); }
.hp .hp-sam-line { color: var(--hp-sam-soft); }
.hp .hp-every { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(2rem, 3.5vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--hp-line); }
.hp .hp-every b { display: block; font-family: var(--hp-data); font-weight: 500; font-size: 1.5rem; color: var(--hp-go-deep); margin-bottom: .3rem; }
.hp .hp-every b.hp-words { font-family: var(--hp-display); font-weight: 700; letter-spacing: -.015em; }
.hp .hp-every p { color: var(--hp-ink-2); font-size: .98rem; }
.hp .hp-every strong { color: var(--hp-ink); }
.hp .hp-price-note { margin-top: 1.5rem; color: var(--hp-muted); }
.hp .hp-price-note strong { color: var(--hp-ink); }

/* Dynamite */
.hp .hp-band-dyn { background: var(--hp-dyn-wash); }
.hp .hp-dyn { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hp .hp-dyn-copy { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.hp .hp-dyn-copy p { color: var(--hp-ink-2); max-width: 48ch; }
.hp .hp-dyn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 3vw, 2.5rem); }
.hp .hp-dyn-grid div { padding: 1.15rem 0; border-top: 1px solid #e6c9aa; }
.hp .hp-dyn-grid h3 { font-family: var(--hp-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: .3rem; }
.hp .hp-dyn-grid p { color: #4b4034; font-size: .97rem; }

/* FAQ */
.hp .hp-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.hp .hp-faq .hp-sec-head { margin-bottom: 0; }
.hp .hp-faq-aside { margin-top: 1.25rem; color: var(--hp-muted); }
.hp .hp-faq-aside .hp-mono { display: block; width: fit-content; margin-top: .35rem; font-family: var(--hp-data); font-size: .95rem; color: var(--hp-ink); }
.hp .hp-faq-aside .hp-mono:hover { color: var(--hp-sam-deep); text-decoration: underline; text-underline-offset: 3px; }
.hp .hp-faq-list { border-top: 1px solid var(--hp-line); }
.hp .hp-faq-list details { border-bottom: 1px solid var(--hp-line); }
.hp .hp-faq-list summary { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; cursor: pointer; list-style: none; font-family: var(--hp-voice); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.25; }
.hp .hp-faq-list summary::-webkit-details-marker { display: none; }
.hp .hp-faq-list summary::after { content: "+"; font-family: var(--hp-data); font-style: normal; font-size: 1.2rem; color: var(--hp-sam); flex: none; }
.hp .hp-faq-list details[open] summary::after { content: "\2212"; }
.hp .hp-faq-list details p { padding: 0 2.5rem 1.3rem 0; color: var(--hp-ink-2); max-width: 66ch; }

/* Tools + guides */
.hp .hp-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.hp .hp-tool { display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem 1.6rem; border-radius: 20px; background: var(--hp-card); border: 1px solid var(--hp-line); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.hp .hp-tool:hover { border-color: var(--hp-sam); transform: translateY(-2px); }
.hp .hp-tool h3 { font-family: var(--hp-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.015em; }
.hp .hp-tool p { color: var(--hp-muted); }
.hp .hp-tool span { margin-top: .5rem; font-weight: 600; color: var(--hp-sam-deep); }
.hp .hp-tools-note { margin-top: 1rem; color: var(--hp-muted); font-size: .95rem; }
.hp .hp-h3-plain { font-family: var(--hp-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.018em; margin-top: clamp(2.5rem, 5vw, 4rem); }
.hp .hp-h3-plain + .hp-sec-sub { margin-top: .4rem; }
.hp .hp-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 3rem); margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.hp .hp-guides h4 { color: var(--hp-muted); padding-bottom: .75rem; border-bottom: 1px solid var(--hp-line); }
.hp .hp-guides li { padding: .6rem 0; border-bottom: 1px solid var(--hp-line); }
.hp .hp-guides a, .hp .hp-guides a:hover { color: var(--hp-sam-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Start */
.hp .hp-start {
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 18, 43, .72) 0%, rgba(20, 18, 43, .9) 55%, rgba(20, 18, 43, .97) 100%), url("../../images/home/sam-film-closing.81bc1683ef76.jpg") center 30% / cover, var(--hp-night);
}
.hp .hp-start-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.hp .hp-start-copy { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.hp .hp-start-copy h2 { font-family: var(--hp-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.02; letter-spacing: -.02em; }
.hp .hp-start-copy p { color: rgba(255, 255, 255, .86); max-width: 40ch; }
.hp .hp-start-copy :focus-visible { outline-color: var(--hp-dawn); }
.hp .hp-start-contact { margin-top: .75rem; padding-top: 1.1rem; border-top: 1px solid var(--hp-night-line); width: 100%; font-size: .95rem; }
.hp .hp-start-contact a { display: block; width: fit-content; font-family: var(--hp-data); color: #fff; }
.hp .hp-start-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hp .hp-form { position: relative; display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 20px; background: var(--hp-card); color: var(--hp-ink); }
.hp .hp-form h3 { font-family: var(--hp-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.015em; }
.hp .hp-form > label { display: grid; gap: .4rem; font-size: .92rem; font-weight: 600; }
.hp .hp-form > label input, .hp .hp-form > label textarea { width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid #8d88a6; background: #fff; color: var(--hp-ink); font: inherit; font-weight: 400; }
.hp .hp-form > label input:focus, .hp .hp-form > label textarea:focus { outline: 3px solid rgba(111, 66, 194, .35); outline-offset: 0; border-color: var(--hp-sam); }
.hp .hp-form :focus-visible { outline-color: var(--hp-sam); }
.hp .hp-form-foot { color: var(--hp-muted); font-size: .88rem; }
/* The contact view answers the htmx post with a Bootstrap card in place of the form. */
.hp .hp-start .contact-card { border: 0; border-radius: 20px; color: var(--hp-ink); }
.hp .hp-start .contact-card .card-title { font-family: var(--hp-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.015em; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hp .hp-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h1" "film" "under" "beats" "now" "side" "owner" "disc"; }
  .hp .hp-tagline { font-size: min(15.5cqi, 6rem); }
  .hp .hp-film { margin-top: 1.25rem; }
  .hp .hp-hero-side { margin-top: 1.75rem; max-width: 34rem; }
  .hp .hp-owner { max-width: 34rem; }
  .hp .hp-disclosure { margin-top: .9rem; }
  .hp .hp-beats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp .hp-sam-top { grid-template-columns: minmax(0, 1fr); }
  .hp .hp-sam-lede { max-width: 52ch; }
}
@media (max-width: 900px) {
  .hp .hp-feat, .hp .hp-guides { grid-template-columns: minmax(0, 1fr); }
  .hp .hp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp .hp-prices { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
  .hp .hp-dyn, .hp .hp-faq, .hp .hp-start-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hp { font-size: 1rem; }
  .hp .hp-eyebrow { font-size: .8125rem; letter-spacing: .04em; }
  .hp .hp-film { width: calc(100% + 2 * var(--hp-gutter)); max-width: none; margin-inline: calc(-1 * var(--hp-gutter)); border-radius: 0; box-shadow: none; }
  .hp .hp-film-ctl, .hp .hp-film-cap { display: none; }
  .hp .hp-film-under { display: block; margin-top: .75rem; }
  .hp .hp-film-under .hp-btn { background: #fff; color: var(--hp-ink); }
  .hp .hp-film-under svg { width: 18px; height: 18px; }
  .hp .hp-film-end button { display: none; }
  .hp .hp-beats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: .5rem; }
  .hp .hp-beat { height: 44px; padding: 0; }
  .hp .hp-beat::before, .hp .hp-beat-fill { top: 20px; height: 4px; }
  .hp .hp-beat > :not(.hp-beat-fill) { display: none; }
  .hp .hp-beats.is-playing .hp-beat { opacity: 1; }
  .hp .hp-now { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; min-height: 8.6rem; }
  .hp .hp-now .hp-beat-said { font-size: 1.15rem; }
  .hp .hp-now .hp-beat-rec { margin-top: .15rem; }
  .hp .hp-hero-side { margin-top: 1.25rem; }
  .hp .hp-ctas .hp-btn { flex: 1 1 100%; }
  .hp .hp-owner { font-size: .875rem; }
  .hp .hp-owner a { display: inline-block; padding-block: .35rem; }
  .hp .hp-screens { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--hp-gutter)); padding: 0 var(--hp-gutter) 1rem; scrollbar-width: none; }
  .hp .hp-screens::before { display: none; }
  .hp .hp-screens li { scroll-snap-align: center; }
  .hp .hp-asks { grid-template-columns: minmax(0, 1fr); }
  .hp .hp-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp .hp-proof > div { padding-left: 1rem; }
  .hp .hp-proof > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hp .hp-proof > div:nth-child(n+3) { border-top: 1px solid var(--hp-line); }
  .hp .hp-fork, .hp .hp-tools, .hp .hp-every, .hp .hp-dyn-grid { grid-template-columns: minmax(0, 1fr); }
  .hp .hp-steps { grid-template-columns: minmax(0, 1fr); }
  .hp .hp-steps li::before { margin-bottom: .6rem; }
  .hp .hp-steps .step-video, .hp .hp-guides a { display: block; padding-block: .65rem; }
  .hp .hp-steps .step-video { margin-top: 0; }
  .hp .hp-guides li { padding: 0; }
  .hp .hp-faq-aside .hp-mono, .hp .hp-start-contact a { padding-block: .45rem; }
  .hp .hp-inc summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; list-style: none; border-bottom: 1px solid var(--hp-line); }
  .hp .hp-inc summary::-webkit-details-marker { display: none; }
  .hp .hp-inc summary::after { content: "+"; font-family: var(--hp-data); font-size: 1.2rem; }
  .hp .hp-inc[open] summary::after { content: "\2212"; }
  .hp .hp-inc[open] summary { margin-bottom: 1rem; }
  .hp .hp-price-featured .hp-inc summary { border-color: var(--hp-night-line); }
  .hp .hp-faq-list details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hp *, .hp *::before, .hp *::after { transition: none !important; scroll-behavior: auto !important; }
}
