/* HyperC Market Store — the SITE frame (bizhub/web.py shell(frame="site"): the signed-out store's teaser, item 80).
 * Loaded after store.css on site-frame pages only, so it re-points store.css's tokens to hyperc.com's light ones and
 * the cards, the register dialog and the toasts follow the site's look.
 *
 * A hand port, kept in step by hand (a change on hyperc.com does not reach the hub):
 *   - the header, its breakpoints (1241 / 1240 / 560 px) and the mobile menu: website-membership
 *     site-b/assets/css/landing.css:108-196, with the light header of site-c/assets/css/hustle.css:62;
 *   - the light tokens: site-c/assets/css/hustle.css:20-56 (gold as a fill stays bright: hustle.css:76-85);
 *   - the front page's sections — kicker, lede, buttons, steps, tagline, price cards, beta chip, footer:
 *     landing.css:57-106, 454-470, 561-580, 607-632, 650-680, and the spend strip hustle.css:258-274.
 * Every selector of the header is scoped under .site-header so the hub's own .btn, nav and .logo rules do not leak
 * in. Fonts are the hub's own files (scripts/build_hub_fonts.py, SIL OFL 1.1, bizhub/web/fonts-OFL.txt), relative to
 * /hub/web/: nothing is loaded from elsewhere (CSP font-src = the hub's /web/). No landing.js, no newsletter, no
 * sticky call to action, no fundraising banner. No horizontal scroll from 360 px up; reduced motion respected. */

@font-face { font-family: "Inter"; src: url("inter-v4.woff") format("woff"); font-weight: 400 700;
  font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fraunces-v1.woff") format("woff"); font-weight: 400 700;
  font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("jetbrains-mono-v2.woff") format("woff"); font-weight: 400 600;
  font-style: normal; font-display: swap; }

/* ---------- tokens: hyperc.com's light page, in both colour schemes (this file comes after store.css's dark
   :root, so it wins) ---------- */
:root, :host {
  color-scheme: light;
  --site-bg: #FBFAF7; --site-panel: #FFFFFF; --site-panel-2: #F4F1EA; --site-line: #E2DDD1;
  --site-gold: #7E5E10; --site-gold-fill: #E9AF45; --site-gold-soft: #F3C96E;
  --site-gold-line: rgba(126, 94, 16, .34); --site-gold-wash: rgba(126, 94, 16, .07);
  --site-ink: #161C28; --site-ink-dim: #4B5464; --site-ink-faint: #5E6776;
  --site-paper: #F1EDE3; --site-paper-2: #EAEFF5; --site-green: #276B38; --site-red: #A63E29;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* store.css's tokens, re-pointed: cards, badges, dialogs and toasts take the site's look */
  --bg: var(--site-bg); --panel: var(--site-panel); --ink: var(--site-ink); --ink2: var(--site-ink-dim);
  --ink3: var(--site-ink-faint); --line: var(--site-line); --accent: #7E5E10; --accent-ink: #1A1405;
  --accent-soft: rgba(126, 94, 16, .07); --good: #276B38; --warn: #8A5A00; --bad: #A63E29;
  --shadow: 0 1px 2px rgba(19, 25, 38, .05);
}
body.site, :host {
  color-scheme: light;
  background: var(--site-bg); color: var(--site-ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.site .site-main { padding: 0; }
.site-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.site h1, .site h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.site .btn.primary, .site button.primary { background: var(--site-gold-fill); border-color: var(--site-gold-fill);
  color: var(--accent-ink); }
.site .btn.primary:hover, .site button.primary:hover { background: var(--site-gold-soft); border-color: var(--site-gold-soft); }
.site .btn-gold { background: var(--site-gold-fill); border-color: var(--site-gold-fill); color: #1A1405; }
.site .btn-gold:hover { background: var(--site-gold-soft); border-color: var(--site-gold-soft); }
.site .btn-ghost { background: transparent; color: var(--site-ink); border-color: var(--site-line); }
.site .btn-ghost:hover { border-color: var(--site-ink-faint); }
.site .btn, .site button { transition: background .12s ease, border-color .12s ease, box-shadow .12s ease; }
.site dialog { border-color: var(--site-line); }

/* ---------- header / nav (landing.css:108-196, light per hustle.css) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, .90); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--site-line);
}
/* wider than the content wrap: the logo, nine links and three CTAs need ~1173 px (hyperc.com since 2026-10-16) */
.site-header .site-wrap { display: flex; align-items: center; gap: 22px; height: 66px; max-width: 1280px; }
.site-header .logo { display: flex; align-items: baseline; gap: 9px; width: auto; height: auto; background: none;
  border-radius: 0; text-decoration: none; font-weight: 700; white-space: nowrap; flex: none; }
.site-header .logo:hover { text-decoration: none; }
.site-header .logo-hc { font-family: var(--serif); font-size: 1.25rem; color: var(--site-ink); }
.site-header .logo-p34 { font-family: var(--mono); font-size: .8rem; color: var(--site-gold);
  border: 1px solid var(--site-gold); border-radius: 4px; padding: 1px 6px; letter-spacing: .06em; }
.site-header .logo-beta { font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--site-ink-faint); border: 1px solid var(--site-line); border-radius: 999px;
  padding: 1px 7px; }
.site-header .main-nav { display: flex; gap: 2px; margin-left: 6px; flex: 1; }
.site-header .main-nav a { text-decoration: none; color: var(--site-ink-dim); font-size: .92rem; font-weight: 500;
  padding: 8px 10px; border-radius: 7px; white-space: nowrap; }
.site-header .main-nav a:hover { color: var(--site-ink); background: var(--site-panel); }
.site-header .main-nav a[aria-current="page"] { color: var(--site-ink); }
.site-header .header-ctas { display: flex; gap: 10px; align-items: center; }
.site-header .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 0;
  font-family: var(--sans); font-weight: 700; font-size: .9rem; line-height: 1.3; text-decoration: none;
  border-radius: 8px; padding: 10px 18px; border: 1px solid transparent; white-space: nowrap; }
.site-header .btn-gold { background: var(--site-gold-fill); border-color: var(--site-gold-fill); color: #1A1405; }
.site-header .btn-gold:hover { background: var(--site-gold-soft); border-color: var(--site-gold-soft);
  box-shadow: 0 8px 26px rgba(233, 175, 69, .30); }
.site-header .btn-ghost { background: transparent; color: var(--site-ink); border-color: var(--site-line); }
.site-header .btn-ghost:hover { border-color: var(--site-ink-faint); }
.site-header .nav-toggle { display: none; min-height: 0; background: none; border: 1px solid var(--site-line);
  color: var(--site-ink); border-radius: 8px; padding: 8px 12px; font-size: 1rem; line-height: 1.2; cursor: pointer; }
/* Business Builder / Sign in / Get started, mirrored into the mobile menu (server-rendered here: no landing.js);
   hidden on a desktop, where the real .header-ctas are visible */
.site-header .nav-auth-group { display: none; }
/* above the hamburger breakpoint the row is tightened at every width (three CTAs since 2026-10-16) */
@media (min-width: 1241px) {
  .site-header .site-wrap { gap: 16px; }
  .site-header .main-nav { gap: 0; margin-left: 0; }
  .site-header .main-nav a { padding: 8px 7px; font-size: .88rem; }
  .site-header .header-ctas { gap: 8px; }
  .site-header .header-ctas .btn { padding-left: 13px; padding-right: 13px; font-size: .88rem; }
}
@media (min-width: 1241px) and (max-width: 1440px) {
  .site-header .site-wrap { max-width: none; }
}
@media (min-width: 1241px) and (max-width: 1300px) {
  .site-header .main-nav a { padding-left: 5px; padding-right: 5px; }
}
@media (max-width: 1240px) {
  .site-header .main-nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0; margin-left: 0;
    background: var(--site-bg); border-bottom: 1px solid var(--site-line);
    flex-direction: column; padding: 12px 24px 20px; gap: 2px;
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .site-header .main-nav.open { display: flex; }
  .site-header .main-nav a { padding: 12px 10px; font-size: 1.05rem; }
  .site-header .nav-toggle { display: block; margin-left: auto; }
  .site-header .header-ctas .btn-ghost { display: none; }
  .site-header .main-nav .nav-auth-group {
    display: flex; flex-direction: column; gap: 9px;
    margin-top: 12px; padding-top: 15px; border-top: 1px solid var(--site-line);
  }
  .site-header .main-nav .nav-auth-group .btn {
    display: flex; padding: 13px 10px; text-align: center; font-size: 1rem; font-weight: 600;
    color: var(--site-ink); border: 1px solid var(--site-line); border-radius: 8px; white-space: normal;
  }
  .site-header .main-nav .nav-auth-group .btn:hover { border-color: var(--site-ink-faint); background: var(--site-panel); }
  .site-header .main-nav .nav-auth-group .btn-gold { background: var(--site-gold-fill); border-color: var(--site-gold-fill);
    color: #1A1405; }
  .site-header .main-nav .nav-auth-group .btn-gold:hover { background: var(--site-gold-soft); border-color: var(--site-gold-soft); }
}
@media (max-width: 560px) {
  .site-wrap { padding: 0 16px; }
  .site-header .site-wrap { gap: 12px; }
  .site-header .header-ctas { display: none; }
  .site-header .main-nav { padding: 10px 16px 18px; }
}

/* ---------- the question and [Run business] (the teaser's hero; store.css lays it out) ---------- */
.site .ask { max-width: 860px; margin: 0 auto; padding: 56px 16px 28px; }
.site .ask h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; margin: 0 auto 1.1rem; max-width: 20em; }
.site .ask-form textarea { min-height: 7.5em; font-size: 1.05rem; line-height: 1.5; padding: .75rem .9rem;
  border-radius: 12px; border-color: var(--site-line); background: var(--site-panel);
  box-shadow: 0 10px 34px rgba(19, 25, 38, .06); }
.site .ask-form textarea:focus { border-color: var(--site-gold-fill); outline: none;
  box-shadow: 0 0 0 3px rgba(233, 175, 69, .28); }
.site .ask-form .ask-sub { color: var(--site-ink-faint); }
.site .ask-form button[type=submit] { font-weight: 700; padding: .65rem 1.4rem; }

/* ---------- the teaser's 3 × 3 grid of cards, the third row fading out under "See every market" ---------- */
.teaser { padding-top: 4px; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.teaser-grid .card:nth-child(n+7) {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 85%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 85%);
}
.teaser-more { position: relative; z-index: 1; display: flex; justify-content: center; padding: 18px 0 8px;
  pointer-events: none; }
.teaser-more .btn { pointer-events: auto; font-weight: 700; padding: .65rem 1.3rem; text-align: center;
  box-shadow: 0 8px 26px rgba(233, 175, 69, .28); }
/* the button sits over the faded row — only when there is one (fewer cards: it stays under the grid) */
.teaser-grid:has(.card:nth-child(7)) + .teaser-more { margin-top: -132px; padding-bottom: 32px; }
.teaser-list { list-style: none; padding: 0; margin: 0; }
@media (max-width: 820px) {
  .teaser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teaser-grid .card:nth-child(n+7) { display: none; }
  .teaser-grid .card:nth-child(n+5) {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 85%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 85%);
  }
  .teaser-grid:has(.card:nth-child(7)) + .teaser-more { margin-top: 0; padding-bottom: 8px; }
  .teaser-grid:has(.card:nth-child(5)) + .teaser-more { margin-top: -132px; padding-bottom: 32px; }
}
@media (max-width: 480px) {
  .teaser-grid { grid-template-columns: minmax(0, 1fr); }
  .teaser-grid .card:nth-child(n+4) { display: none; }
  .teaser-grid .card:nth-child(3) {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 85%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 85%);
  }
  .teaser-grid:has(.card:nth-child(5)) + .teaser-more { margin-top: 0; padding-bottom: 8px; }
  .teaser-grid:has(.card:nth-child(3)) + .teaser-more { margin-top: -132px; padding-bottom: 32px; }
  .teaser-more .btn { width: 100%; justify-content: center; }
}

/* ---------- the front page's sections (landing.css, hustle.css) ---------- */
.front { padding-top: 72px; }
.front h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; margin: 0; max-width: 22em; }
.site .kicker { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--site-gold); margin-bottom: 1rem; }
.site .lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--site-ink-dim); max-width: 44em; margin: 1rem 0 0; }
.site .lede strong { color: var(--site-ink); font-weight: 600; }
.site .cta-micro { font-size: .8rem; color: var(--site-ink-faint); max-width: 42em; margin: .9rem 0 0; line-height: 1.55; }
.site .cta-micro strong { color: var(--site-ink-dim); }
.beta-chip { display: inline-block; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--site-gold); border: 1px solid var(--site-gold-line);
  background: var(--site-gold-wash); border-radius: 999px; padding: 2px 9px; vertical-align: 1px; line-height: 1.5; }

/* the agent → menu → decision → scale strip: across on a wide screen, 2 × 2, then stacked; the arrows leave */
.spend-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: 14px;
  margin-top: 2.2rem; background: var(--site-panel); border: 1px solid var(--site-line); border-radius: 16px;
  padding: 22px 26px; }
.spend-strip .ss { min-width: 0; }
.spend-strip .ss-v { font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; display: block; }
.spend-strip .ss-n { font-size: .86rem; color: var(--site-ink-faint); margin: .4rem 0 0; }
.spend-strip .arrow { color: var(--site-ink-faint); font-size: 1.3rem; padding-top: 2px; }
@media (max-width: 1040px) {
  .spend-strip { grid-template-columns: 1fr 1fr; gap: 20px 26px; }
  .spend-strip .arrow { display: none; }
}
@media (max-width: 620px) { .spend-strip { grid-template-columns: minmax(0, 1fr); padding: 18px; } }

/* five steps (store.css's .steps is the guide's list: reset here) */
.site .steps { display: grid; gap: 16px; margin: 2.2rem 0 0; padding: 0; }
.site .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start;
  background: var(--site-panel); border: 1px solid var(--site-line); border-radius: 10px; padding: 22px 24px; }
.site .step .n { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; line-height: 1.2; color: var(--site-gold);
  border-right: 1px solid var(--site-line); padding-right: 14px; }
.site .step h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.15;
  margin: 0 0 .35rem; }
.site .step p { color: var(--site-ink-dim); font-size: .95rem; margin: 0; }
.site .step p strong { color: var(--site-ink); }
.tagline-strip { margin: 34px 0 0; text-align: center; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.4; }
.tagline-strip strong { color: var(--site-gold); font-weight: 600; }
@media (max-width: 560px) {
  .site .step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .site .step .n { font-size: 1.35rem; padding-right: 10px; }
}

/* the plans: the console's offers side by side, then pay-as-you-go */
.front-pricing { padding-bottom: 72px; }
.price-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: start;
  margin-top: 2rem; }
.price-card { min-width: 0; background: var(--site-panel); border: 2px solid var(--site-gold-fill); border-radius: 16px;
  padding: 28px 28px 24px; box-shadow: 0 24px 70px rgba(19, 25, 38, .10); }
.price-card.payg, .price-card[data-plan="invite"] { border-color: var(--site-line); box-shadow: none; }
.price-card .plan-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--site-gold); }
.price-card .amount { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1.1;
  margin: .4rem 0 .9rem; overflow-wrap: anywhere; }
.price-card .amount small { font-size: 1rem; font-weight: 400; color: var(--site-ink-dim); }
.amount-bonus { font-size: .5em; color: var(--site-gold); font-weight: 700; white-space: nowrap; }
.price-card .check-list { margin: 0 0 1.4rem; }
.price-card .check-list li { padding: 7px 0 7px 28px; font-size: .94rem; border-bottom: 1px dashed var(--site-line); }
.price-card .check-list li:last-child { border-bottom: none; }
.price-card .check-list li::before { left: 2px; color: var(--site-green); }
.price-card .btn { display: flex; width: 100%; justify-content: center; text-align: center; padding: 14px 20px;
  font-size: 1rem; font-weight: 700; white-space: normal; }
.price-card .cta-micro { text-align: center; }
.price-card .invite-line { font-weight: 600; color: var(--site-ink-dim); margin: 0; }
.founding-note { margin-top: 1.2rem; font-size: .86rem; color: var(--site-ink-dim); background: var(--site-paper);
  border-radius: 10px; padding: 14px 16px; }
.front-pricing > .cta-micro a { color: var(--site-gold); }

/* ---------- footer (landing.css:607-632; no newsletter, no sticky CTA) ---------- */
.site-footer { border-top: 1px solid var(--site-line); padding: 44px 0 56px; font-size: .85rem; color: var(--site-ink-faint); }
.site-footer .disclosure { max-width: 62em; margin: 0 0 1.6rem; line-height: 1.7; }
.site-footer .disclosure strong { color: var(--site-ink-dim); }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 1.2rem; }
.site-footer a { color: var(--site-ink-dim); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--site-ink); text-decoration: underline; }
.site-footer .copyright { margin: 0; }

/* ---------- reduced motion: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { transition: none !important; animation: none !important; }
  .site .btn:hover, .site .card.linked:hover { transform: none; }
}
