/* homepage-v3 - white, image-led homepage. MOCKUP ONLY.
   Loaded only by homepage-v3-mockup.html. Tokens scoped to .hp3 so nothing
   can leak into styles.css or homepage-test.css consumers. */

.hp3 {
  --ink: #0f2430;
  --ink-soft: #4a6472;
  --ink-faint: #8098a5;
  --accent: #0e7490;
  --accent-deep: #155e75;
  --gold: #9a7420;
  --rule: #e6ecf0;
  --rule-soft: #f1f5f7;
  --urgent: #b3402f;
  --urgent-bg: #fffaf9;
  --urgent-rule: #f2d3cd;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.hp3 *, .hp3 *::before, .hp3 *::after { box-sizing: border-box; }
.hp3 img { max-width: 100%; height: auto; }

/* ── nav ───────────────────────────────────────────────────────────────── */
.hp3-nav {
  position: sticky; top: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 13px clamp(16px, 4vw, 56px);
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.hp3-nav-brand { font-family: var(--serif); font-weight: 900; font-size: 1.3rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.hp3-nav-links { display: flex; gap: 26px; }
.hp3-nav-links a { font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.hp3-nav-links a:hover { color: var(--accent); }

.hp3-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; background: var(--ink); color: #fff;
  text-decoration: none; font-size: .75rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  transition: background .18s ease, transform .18s ease;
}
.hp3-pill:hover { background: var(--accent-deep); transform: translateY(-1px); }
.hp3-pill-ghost { background: #fff; color: var(--ink); border: 1px solid var(--rule); }
.hp3-pill-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hp3-hero { position: relative; overflow: hidden; min-height: 88vh; display: grid; place-items: center; padding: 72px 20px 88px; text-align: center; background: #fff; }
.hp3-hero-inner { position: relative; z-index: 3; max-width: 900px; }
.hp3-wordmark { font-family: var(--serif); font-weight: 900; font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -.03em; margin: 0 0 16px; }
.hp3-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5.4vw, 4.1rem); line-height: 1.08; letter-spacing: -.022em; margin: 0 0 24px; }
.hp3-hero h1 em { font-style: italic; color: var(--accent-deep); }
.hp3-meta { font-size: .71rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 32px; }
.hp3-ctas { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

.hp3-scatter { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hp3-scatter img {
  position: absolute; opacity: .55;
  animation: hp3-drift 16s ease-in-out infinite alternate; animation-delay: var(--d, 0s);
}
@keyframes hp3-drift {
  from { transform: translateY(0) rotate(var(--r, 0deg)); }
  to   { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 3deg)); }
}

/* ── section shell ─────────────────────────────────────────────────────── */
.hp3-section { padding: clamp(64px, 8vw, 104px) clamp(16px, 5vw, 56px); border-top: 1px solid var(--rule); background: #fff; }
.hp3-head { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.hp3-eyebrow { font-size: .71rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.hp3-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.9vw, 2.9rem); line-height: 1.13; letter-spacing: -.02em; margin: 0 0 16px; }
.hp3-head h2 .beat { display: block; color: var(--accent-deep); }
.hp3-head p { font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); margin: 0 auto; max-width: 600px; }

/* ── cards ─────────────────────────────────────────────────────────────── */
.hp3-grid { display: grid; gap: 20px; max-width: 1140px; margin: 0 auto; }
.hp3-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.hp3-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.hp3-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

.hp3-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.hp3-card:hover { transform: translateY(-3px); border-color: #cfdde4; box-shadow: 0 14px 34px rgba(15,36,48,.10); }
.hp3-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.hp3-card-label { font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hp3-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; line-height: 1.22; margin: 0; }
.hp3-card p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--ink-soft); }
.hp3-card-go { margin-top: auto; padding-top: 15px; font-size: .71rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.hp3-card.is-urgent { border-color: var(--urgent-rule); }
.hp3-card.is-urgent .hp3-card-label, .hp3-card.is-urgent .hp3-card-go { color: var(--urgent); }
.hp3-card.is-urgent .hp3-visual { background: var(--urgent-bg); }

/* ── card visuals, built from cutouts so each one shows the actual job ── */
.hp3-visual {
  position: relative; height: 178px; background: var(--rule-soft);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hp3-visual img { position: relative; z-index: 2; }

/* shoal: overlapping row, for the species library */
.hp3-v-shoal { gap: 0; }
.hp3-v-shoal img { margin-left: -16px; filter: drop-shadow(0 4px 9px rgba(15,36,48,.15)); }
.hp3-v-shoal img:first-child { margin-left: 0; }

/* versus: two fish at true relative scale, each labelled. No verdict shown -
   a verdict here reads as a judgement on the tool rather than on the pairing. */
.hp3-v-versus { gap: 16px; }
.hp3-v-pair { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.hp3-v-pair b {
  font-size: .63rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.hp3-v-plus { font-family: var(--serif); font-size: 1.5rem; color: var(--ink-faint); padding-bottom: 18px; }

/* tank outline: fish beside a drawn tank with a litre figure */
.hp3-v-tank { gap: 18px; }
.hp3-tankbox {
  position: relative; width: 132px; height: 92px; border: 2px solid var(--ink);
  border-radius: 3px; background: linear-gradient(180deg, #fff 38%, #e4f0f5 38%);
}
.hp3-tankbox b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--ink);
}
.hp3-arrow { font-size: 1.3rem; color: var(--ink-faint); }

/* photo visual: real tank imagery filling the card head */
.hp3-v-photo { padding: 0; background: #0f2430; }
.hp3-v-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp3-photo-chip {
  position: absolute; z-index: 4; left: 12px; bottom: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--ink);
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  box-shadow: 0 2px 10px rgba(15,36,48,.22);
}

/* bioload bar, for the stocking calculator */
.hp3-v-load { flex-direction: column; gap: 14px; }
.hp3-loadrow { display: flex; align-items: flex-end; gap: 0; }
.hp3-loadrow img { margin-left: -14px; filter: drop-shadow(0 4px 9px rgba(15,36,48,.15)); }
.hp3-loadrow img:first-child { margin-left: 0; }
.hp3-bar { width: 190px; height: 9px; border-radius: 999px; background: #dde7ec; overflow: hidden; }
.hp3-bar i { display: block; height: 100%; width: 62%; border-radius: 999px; background: linear-gradient(90deg, #22a06b, #4cc38a); }

/* thread digest visual: stacked quote lines */
.hp3-v-thread { flex-direction: column; gap: 7px; padding: 0 26px; align-items: stretch; }
.hp3-threadline { height: 9px; border-radius: 999px; background: #d7e3e9; }
.hp3-threadline.a { width: 86%; } .hp3-threadline.b { width: 64%; background: #c2d6de; }
.hp3-threadline.c { width: 92%; } .hp3-threadline.d { width: 48%; background: var(--accent); opacity: .5; }

/* ── expandable app block ──────────────────────────────────────────────── */
.hp3-app { max-width: 1140px; margin: 0 auto; }
.hp3-app-lead { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hp3-app-list { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 12px; }
.hp3-app-list li { position: relative; padding-left: 25px; font-size: .98rem; line-height: 1.55; color: var(--ink-soft); }
.hp3-app-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hp3-app-list strong { color: var(--ink); font-weight: 700; }
.hp3-app-shot img { border-radius: 10px; box-shadow: 0 16px 44px rgba(15,36,48,.14); }

.hp3-more { margin-top: 44px; border-top: 1px solid var(--rule); }
.hp3-more > summary {
  list-style: none; cursor: pointer; padding: 22px 0 0; text-align: center;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.hp3-more > summary::-webkit-details-marker { display: none; }
.hp3-more > summary::after { content: " +"; }
.hp3-more[open] > summary::after { content: " -"; }
.hp3-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.hp3-feature { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: #fff; }
.hp3-feature img { display: block; width: 100%; border-bottom: 1px solid var(--rule); background: var(--rule-soft); }
.hp3-feature div { padding: 16px 18px 18px; }
.hp3-feature h4 { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; margin: 0 0 6px; }
.hp3-feature p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--ink-soft); }

/* ── proof ─────────────────────────────────────────────────────────────── */
.hp3-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(26px, 6vw, 76px); }
.hp3-proof-n { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; }
.hp3-proof-l { margin-top: 8px; font-size: .69rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-faint); text-align: center; }

/* ── close ─────────────────────────────────────────────────────────────── */
.hp3-close { text-align: center; padding: clamp(72px, 10vw, 128px) 20px; background: var(--ink); }
.hp3-close h2 { font-family: var(--serif); font-weight: 500; color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.14; margin: 0 0 14px; }
.hp3-close p { color: #a9c3ce; margin: 0 auto 30px; max-width: 520px; line-height: 1.65; }
.hp3-close .hp3-pill { background: #fff; color: var(--ink); }
.hp3-badges { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.hp3-badges img { height: 46px; width: auto; }

/* ── reveal ────────────────────────────────────────────────────────────── */
.hp3-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.hp3-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hp3-reveal { opacity: 1; transform: none; transition: none; }
  .hp3-scatter img { animation: none; }
}

/* ── sticky download bar ───────────────────────────────────────────────────
   Same class names and markup as the sitewide bar scripts.js injects (see
   styles.css ~2490 and scripts.js ~568), so the production homepage picks it
   up unchanged. Reproduced here only because the mockup omits styles.css. */
.hp3.has-sticky-download-bar {
  padding-bottom: calc(var(--sticky-download-bar-h, 64px) + env(safe-area-inset-bottom, 0px));
}
.hp3 .sticky-download-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 940;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, #fff 40%);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 28px rgba(15,36,48,.10);
}
.hp3 .sticky-download-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 12px 16px; flex-wrap: wrap; padding: 10px 16px 12px;
  max-width: 1140px; margin: 0 auto;
}
.hp3 .sticky-download-bar-label { font-size: .9rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.hp3 .sticky-download-bar-badges { display: flex; align-items: center; gap: 10px; }
.hp3 .sticky-download-bar .store-badge img { height: 40px; width: auto; display: block; }
.hp3 .sticky-download-bar-dismiss {
  flex-shrink: 0; width: 36px; height: 36px; margin-left: 4px;
  border: 0; border-radius: 10px; background: #f1f5f9; color: var(--ink-faint);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.hp3 .sticky-download-bar-dismiss:hover { background: #e2e8f0; color: var(--ink); }
@media (max-width: 600px) {
  .hp3 .sticky-download-bar-label { display: none; }
  .hp3 .sticky-download-bar-inner { padding: 8px 12px 10px; gap: 10px; }
  .hp3 .sticky-download-bar .store-badge img { height: 34px; }
  .hp3 .sticky-download-bar-dismiss { width: 32px; height: 32px; }
}

/* language switcher, shown on localised pages only */
.hp3 .hp3-langswitch {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  padding: 10px 16px; border-bottom: 1px solid var(--rule);
  background: var(--rule-soft);
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.hp3 .hp3-langswitch a { color: var(--ink-soft); text-decoration: none; }
.hp3 .hp3-langswitch a:hover { color: var(--accent); }
.hp3 .hp3-langswitch [aria-current] { color: var(--ink); }
.hp3 .hp3-en-tag {
  display: inline-block; margin-left: 5px; padding: 1px 5px;
  border: 1px solid var(--rule); border-radius: 3px;
  font-size: .62rem; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-faint); vertical-align: middle;
}

.mockup-flag { position: sticky; top: 0; z-index: 9999; background: #7c2d12; color: #fff; font: 600 .85rem/1.5 system-ui, sans-serif; text-align: center; padding: 7px 14px; }
.mockup-flag strong { color: #fed7aa; }

@media (max-width: 960px) {
  .hp3-grid[data-cols="3"], .hp3-grid[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
  .hp3-app-lead { grid-template-columns: 1fr; gap: 30px; }
  .hp3-more-grid { grid-template-columns: repeat(2, 1fr); }
  /* Do NOT display:none this - it is the only nav on the page. Below 960px the
     row becomes a horizontal scroll strip so all six stay reachable. */
  .hp3-nav { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .hp3-nav-links {
    display: flex; gap: 18px; flex: 1 1 auto; min-width: 0;
    overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -ms-overflow-style: none;
    /* fade the right edge so a clipped label reads as "more", not as broken.
       mask, not an overlay - an overlay would swallow taps on the last link. */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  }
  .hp3-nav-links::-webkit-scrollbar { display: none; }
  .hp3-nav-links a {
    white-space: nowrap;
    /* 44px tap target without changing the desktop rhythm */
    display: inline-flex; align-items: center; min-height: 44px;
  }
}
@media (max-width: 600px) {
  /* The nav's trailing pill duplicates the hero CTA and the sticky app
     bar; on a phone it is the third copy and it steals the width the
     scroll strip needs. Drop the pill, keep every link. */
  .hp3-nav > .hp3-pill { display: none; }
  .hp3-nav-brand { font-size: 1.1rem; }
}
@media (max-width: 600px) {
  /* Condense hard on phones: shorter hero, tighter sections, smaller visuals,
     and keep text-only cards two-up so the page does not become a mile long. */
  .hp3-hero { min-height: 64vh; padding: 40px 18px 52px; }
  .hp3-scatter img { opacity: .3; }
  .hp3-hero h1 { font-size: clamp(1.75rem, 8.6vw, 2.3rem); margin-bottom: 18px; }
  .hp3-wordmark { font-size: 1.5rem; margin-bottom: 10px; }
  .hp3-meta { margin-bottom: 22px; letter-spacing: .16em; font-size: .64rem; }
  .hp3-ctas { flex-direction: column; align-items: stretch; }
  .hp3-ctas .hp3-pill { justify-content: center; }

  .hp3-section { padding: 34px 16px; }
  .hp3-head { margin-bottom: 20px; }
  .hp3-eyebrow { margin-bottom: 9px; font-size: .64rem; letter-spacing: .2em; }
  .hp3-head h2 { margin-bottom: 10px; }
  .hp3-head h2 { font-size: clamp(1.55rem, 7.2vw, 2rem); }
  .hp3-head p { font-size: .95rem; }

  /* Phones get list rows, not stacked cards. A stacked card is ~330px tall;
     a row is ~120px, which is the difference between 10 screens and 6. */
  .hp3-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .hp3-card { flex-direction: row; align-items: stretch; }
  .hp3-visual {
    height: auto; width: 108px; flex: 0 0 108px;
    border-bottom: 0; border-right: 1px solid var(--rule);
  }
  .hp3-visual img { max-height: 76px; width: auto; }
  .hp3-card-body { padding: 11px 13px; gap: 3px; justify-content: center; }
  .hp3-card h3 { font-size: 1rem; line-height: 1.2; }
  .hp3-card p {
    font-size: .82rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;                      /* two lines is enough on a phone */
  }
  .hp3-card-label { font-size: .58rem; letter-spacing: .14em; }
  .hp3-card-go { display: none; }          /* whole row is the link */
  .hp3-visual { width: 92px; flex: 0 0 92px; }

  /* compact versions of the composed visuals */
  .hp3-v-shoal img:not(:first-child):not(:nth-child(2)) { display: none; }
  .hp3-v-shoal img { margin-left: -10px; max-height: 44px; }
  .hp3-v-versus { flex-direction: column; gap: 4px; }
  .hp3-v-versus img { max-height: 34px; }
  .hp3-v-pair b { font-size: .55rem; letter-spacing: .06em; }
  .hp3-v-plus { display: none; }
  .hp3-v-photo img { height: 100%; }
  .hp3-photo-chip { display: none; }
  .hp3-v-tank { gap: 8px; }
  .hp3-v-tank img { max-height: 42px; }
  .hp3-tankbox { width: 58px; height: 42px; }
  .hp3-tankbox b { font-size: .72rem; }
  .hp3-arrow { display: none; }
  .hp3-v-load .hp3-loadrow img { max-height: 34px; margin-left: -8px; }
  .hp3-v-load { gap: 8px; }
  .hp3-bar { width: 78px; height: 6px; }
  .hp3-v-thread { padding: 0 14px; gap: 5px; }
  .hp3-threadline { height: 6px; }

  .hp3-more-grid { grid-template-columns: 1fr; }
  .hp3-proof { gap: 22px 34px; }
  .hp3-close { padding: 56px 18px; }
}
