/* -----------------------------------------------------------------------------
   EFR homepage, v2: the layout approved as "A: Full homepage" on the design
   canvas "EFR homepage hero options", 14 November 2026. Live on / since the
   cutover of 20 November 2026.

   Deliberately plain CSS, not Tailwind, for the same reason as assets/hub.css
   and assets/company.css: there is no Node on this machine, so
   assets/built/app.css cannot be rebuilt and a new Tailwind class would do
   nothing. This file is loaded straight from assets/ by home.hbs.
   Edit it, re-zip the theme, upload.

   Everything is scoped under .hv2, the class on the wrapper in home.hbs, so
   none of it reaches an article or any other layout.

   WHAT IS NOT HERE. The three product pills (.hub-pill-payments, -banking,
   -lending) come from assets/hub.css, which home.hbs loads alongside
   this file: those classes are unscoped and their colours sit on :root, so
   they are reused rather than restated. The header and the footer come from
   default.hbs and are untouched: the mockup drew its own only to show the
   whole page.

   Colours are the design system's tokens (Embedded Finance Review, v1):
   ground #FFF7F3, peach #FFEEE6, line #EEDFD6, muted #CBBBB0, ink #101A2E,
   ink-soft #4E5871, efr-blue #1E6BE6, orange #FF6B2C. The blue used for links
   and numbers is the site's own Ghost accent (--ghost-accent-color), which is
   #0C67DF, not efr-blue: on the website the accent wins, and the signup band
   is the one place the brand blue appears as a surface.
----------------------------------------------------------------------------- */

.hv2 {
  --hv2-ground: #fff7f3;
  --hv2-peach: #ffeee6;
  --hv2-line: #eedfd6;
  --hv2-muted: #cbbbb0;
  --hv2-ink: var(--color-typ, #101a2e);
  --hv2-ink-soft: var(--color-typ-tone, #4e5871);
  --hv2-blue: var(--ghost-accent-color, #0c67df);
  --hv2-brand-blue: #1e6be6;
  --hv2-orange: #ff6b2c;
  --hv2-site: 1200px;
  --hv2-gutter: 40px;
}

.hv2 a { text-decoration: none; color: inherit; }
.hv2 a:hover { color: var(--hv2-blue); }

.hv2-wrap {
  max-width: var(--hv2-site);
  margin: 0 auto;
  padding-left: var(--hv2-gutter);
  padding-right: var(--hv2-gutter);
}

/* Section heads. A 2px ink rule above the title is the page's only repeating
   ornament; the hero has none because it opens the page. */
.hv2-head {
  border-top: 2px solid var(--hv2-ink);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.hv2-head h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.hv2-head a { font-size: 14px; color: var(--hv2-blue); }
.hv2-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--hv2-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------- 1. hero --- */
.hv2-hero { padding-top: 40px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
/* 999 1 560px against 1 1 320px is the mockup's two-thirds / one-third split,
   expressed so the panel drops below the story on its own at phone width
   rather than at a breakpoint. */
.hv2-hero-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hv2-lead { display: flex; flex-direction: column; gap: 16px; }
.hv2-lead-cover { aspect-ratio: 1200 / 630; background: var(--hv2-peach); overflow: hidden; }
.hv2-lead-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv2-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--hv2-ink-soft); }
.hv2-lead h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hv2-lead p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--hv2-ink-soft); max-width: 62ch; }

/* The three text-only rows under the lead story. */
.hv2-hero-more {
  border-top: 1px solid var(--hv2-line);
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.hv2-row { display: flex; flex-direction: column; gap: 8px; }
.hv2-row-meta { font-size: 12px; color: var(--hv2-ink-soft); }
.hv2-row-title { font-size: 16px; line-height: 1.35; font-weight: 700; }

/* The right column: guides box on top, slim signup at the bottom
   (partials/home-v2/guides.hbs, 19 November 2026). The column stretches to
   the height of the story beside it and the guides box takes the spare
   height, so the two columns end level. When the columns wrap at phone width
   the stretch has nothing to match and the column is just its content. */
.hv2-side {
  flex: 1 1 340px;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hv2-guides {
  flex: 1 1 auto;
  background: var(--hv2-ground);
  border: 1px solid var(--hv2-line);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hv2-guides h2 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; }
.hv2 .hv2-gc {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--hv2-line);
  border-radius: 10px;
  padding: 18px;
  color: var(--hv2-ink);
}
.hv2 .hv2-gc:hover { border-color: var(--hv2-gc, var(--hv2-muted)); color: var(--hv2-ink); }
.hv2 .hv2-gc:hover .hv2-gc-title { color: var(--hv2-gc); }
/* Product colours, the same three as the product pills. --hv2-gc is the
   stroke and arrow colour, --hv2-gc-tile the icon tile behind it. */
.hv2-gc-payments { --hv2-gc: #6a3fd1; --hv2-gc-tile: #f0ebfb; }
.hv2-gc-banking  { --hv2-gc: #8e1b45; --hv2-gc-tile: #f6e7ed; }
.hv2-gc-lending  { --hv2-gc: #127a5a; --hv2-gc-tile: #e7f4ef; }
.hv2-gc-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--hv2-gc-tile);
  color: var(--hv2-gc);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hv2-gc-icon svg { display: block; }
.hv2-gc-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hv2-gc-title { font-size: 19px; line-height: 1.3; font-weight: 700; }
.hv2-gc-line { font-size: 15px; line-height: 1.45; color: var(--hv2-ink-soft); }
.hv2-gc-arrow { margin-left: auto; font-size: 20px; line-height: 1.3; color: var(--hv2-gc); }

/* Slim signup. The form is partials/subscribe-form.hbs with no newsletter
   boxes; only its skin is here. Its success/error notice is positioned by the
   shared partial and lands in the gap above the News row. */
.hv2-slim {
  background: #fff;
  border: 1px solid var(--hv2-line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hv2-slim-label { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.hv2-slim form { width: 100%; }
.hv2-slim .hv2-slim-fields {
  display: flex;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}
.hv2-slim .hv2-slim-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d9cfc8;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--hv2-ink);
  background: #fff;
}
.hv2-slim .hv2-slim-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--hv2-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
}
.hv2-slim .hv2-slim-btn:hover { filter: brightness(1.1); }

/* ------------------------------------------------- 2 and 3. card grids --- */
.hv2-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.hv2-card { display: flex; flex-direction: column; gap: 10px; }
.hv2-card-cover { aspect-ratio: 1200 / 630; background: var(--hv2-peach); overflow: hidden; }
.hv2-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv2-card-meta { font-size: 12px; color: var(--hv2-ink-soft); }
.hv2-card-title { font-size: 16px; line-height: 1.35; font-weight: 700; }

.hv2-news { padding-top: 64px; }

.hv2-podcast { padding-top: 64px; }
/* Episode covers are 1080x1080 squares (title, guest photo, company logo),
   so they are shown square, as the live homepage's podcast row does. The
   mockup drew a 16:9 thumbnail; at 16:9 object-fit cut the title off the top
   of every cover (seen in the home-v2 preview, 19 November 2026). Since
   20 November 2026 the row sits on white like the News row: no #FFEEE6 band. */
.hv2-podcast .hv2-card-cover { aspect-ratio: 1 / 1; }

/* ------------------------------------------------------------- 4. about --- */
.hv2-about { padding-top: 80px; }
.hv2-about-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hv2-portrait {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--hv2-orange);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hv2-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv2-about-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hv2-about-text h2 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 700; }
.hv2-about-text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--hv2-ink-soft); max-width: 64ch; }
.hv2 a.hv2-about-more { align-self: flex-start; font-size: 16px; font-weight: 500; color: var(--hv2-blue); }
.hv2 a.hv2-about-more:hover { text-decoration: underline; }
.hv2-stats { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 8px; }
.hv2-stat { display: flex; flex-direction: column; gap: 2px; }
.hv2-stat-n { font-size: 28px; font-weight: 700; color: var(--hv2-blue); line-height: 1.1; }
.hv2-stat-label { font-size: 13px; color: var(--hv2-ink-soft); }

.hv2-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.hv2-quote {
  margin: 0;
  background: var(--hv2-ground);
  border: 1px solid var(--hv2-line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hv2-quote blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: var(--hv2-ink-soft); }
.hv2-quote figcaption { font-size: 14px; font-weight: 500; color: var(--hv2-ink-soft); }

/* -------------------------------------------------- 5. work with EFR --- */
.hv2-work { padding-top: 72px; }
/* The three cards are editor content from the Ghost page with slug "actions",
   rendered by partials/sections/actions.hbs, which brings its own grid and
   its own hairlines. Only the heading above it belongs to this file. */
.hv2-work-head { margin-bottom: 4px; }

/* ----------------------------------------------------------- 6. signup --- */
.hv2-signup { background: var(--hv2-brand-blue); margin-top: 80px; color: #fff; }
.hv2-signup-inner {
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.hv2-signup-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.hv2-signup-copy h2 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; }
.hv2-signup-copy p { margin: 0; font-size: 16px; line-height: 1.5; }
.hv2-signup-copy .hv2-eyebrow { color: #fff; }
.hv2-signup-form { flex: 1 1 360px; min-width: 0; }

/* The form itself is partials/subscribe-form.hbs, so Ghost's data-members-form
   markup, the members JS in assets/built/app.js and the success/error
   notification behave exactly as they do everywhere else. Only the skin is
   here. The notification is positioned absolutely by the shared partial and
   is white on white text, which reads fine on this band. */
/* subscribe-form.hbs emits the newsletter checkboxes BEFORE the email row.
   The mockup has them after it, so the two are ordered here instead of
   reordering a partial that the hub pages also use. */
.hv2-signup-form form { width: 100%; display: flex; flex-direction: column; }
.hv2-signup-form .hv2-signup-fields { order: 1; }
.hv2-signup-form .hv2-editions { order: 2; }
.hv2-signup-form [data-notification] { order: 3; }
.hv2-signup-form .hv2-signup-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}
.hv2-signup-form input[type="email"],
.hv2-signup-form input[type="text"] {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  color: var(--hv2-ink);
  background: #fff;
}
.hv2-signup-form button[type="submit"] {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--hv2-ink);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
}
.hv2-signup-form button[type="submit"]:hover { filter: brightness(1.15); }

/* The edition checkboxes: one wrapped row, not the stacked list with
   descriptions that the hub pages use. Markup in
   partials/home-v2/newsletter-checkboxes.hbs. */
.hv2-editions { border: 0; margin: 12px 0 0; padding: 0; width: 100%; }
.hv2-editions legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.hv2-editions-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hv2-edition {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 14px;
  cursor: pointer;
}
.hv2-edition input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--hv2-ink); }

/* ------------------------------------------------------------- phone --- */
/* One breakpoint, and only for the grids: every flex row above already wraps
   on its own basis values. */
@media (max-width: 900px) {
  .hv2 { --hv2-gutter: 20px; }
  .hv2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv2-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv2-lead h1 { font-size: 30px; }
  .hv2-about { padding-top: 56px; }
  .hv2-news, .hv2-podcast { padding-top: 48px; }
}
@media (max-width: 600px) {
  .hv2-grid { grid-template-columns: minmax(0, 1fr); }
  .hv2-quotes { grid-template-columns: minmax(0, 1fr); }
  .hv2-hero-more { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hv2-lead h1 { font-size: 26px; }
  .hv2-about-row { gap: 28px; }
  .hv2-portrait { flex-basis: 140px; width: 140px; height: 140px; }
  .hv2-stats { gap: 20px 28px; }
  .hv2-signup-inner { padding-top: 36px; padding-bottom: 36px; }
}
