/* MOnalytics shared components: badges, proof strip, home sections.
Loaded raw after brand-dark.css by default.hbs (no rebuild needed). Colours come from the tokens in brand-dark.css. */

/* ---------- Badges: status (from the tracker) and access level ---------- */
.mo-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; border-radius: 4px; border: 1px solid transparent; }
.mo-badge[hidden] { display: none; }
.mo-badge--hit { color: var(--mo-hit); background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.35); }
.mo-badge--miss { color: var(--mo-miss); background: rgba(244, 63, 94, 0.14); border-color: rgba(244, 63, 94, 0.35); }
.mo-badge--pending { color: var(--mo-pending); background: rgba(96, 165, 250, 0.14); border-color: rgba(96, 165, 250, 0.35); }
.mo-badge--removed { color: var(--mo-removed); background: rgba(251, 146, 60, 0.14); border-color: rgba(251, 146, 60, 0.35); }
.mo-badge--mixed { color: var(--color-text-acc); background: rgba(136, 153, 170, 0.14); border-color: rgba(136, 153, 170, 0.35); }
.mo-badge--free { color: var(--mo-gate-free); background: rgba(0, 0, 0, 0.7); border-color: rgba(0, 200, 150, 0.45); }
.mo-badge--paid { color: var(--mo-gate-paid); background: rgba(0, 0, 0, 0.7); border-color: rgba(240, 165, 0, 0.5); }

/* Badges on an analysis card sit on top of the chart image. */
.card-analysis__badges { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 20px); }
.card-analysis__badges:empty { display: none; }
.card-analysis__badges .mo-badge--hit,
.card-analysis__badges .mo-badge--miss,
.card-analysis__badges .mo-badge--pending,
.card-analysis__badges .mo-badge--removed,
.card-analysis__badges .mo-badge--mixed { background-color: rgba(0, 0, 0, 0.72); }

/* ---------- Home sections ---------- */

/* Hero: a soft dark vignette behind the text so the animated candles never fight the headline. */
.hero--chart-bg > .hero__content::before { content: ""; position: absolute; inset: -48px -96px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 78%); }
.hero--chart-bg .hero__title { text-wrap: balance; }

/* Sector tiles: navy surface instead of Fumio's neutral grey. */
.tag-card { --color-accent: var(--mo-surface-raised); box-shadow: inset 0 0 0 1px var(--mo-border); transition: box-shadow var(--trans-default); }
.tag-card:after { background: linear-gradient(135deg, rgba(0, 200, 150, 0.08), transparent 65%); }
.tag-card:hover, .tag-card:focus-visible { box-shadow: inset 0 0 0 1px var(--color-primary); }

.mo-performance__label,
.mo-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--color-primary); margin-bottom: 12px; }
.mo-performance__text { max-width: 560px; color: var(--color-grey-light); font-size: 15px; line-height: 1.7; margin-top: 12px; }

.mo-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 6px; background: var(--color-primary); color: var(--color-black); font-weight: 700; font-size: 14px; text-decoration: none; transition: opacity .2s, transform .2s; }
.mo-btn:hover { opacity: .9; transform: translateY(-1px); }
.mo-btn--lg { padding: 16px 32px; font-size: 15px; }
.mo-btn--ghost { background: transparent; color: var(--color-text); border: 1px solid var(--mo-border); }
.mo-btn--ghost:hover { border-color: var(--color-primary); opacity: 1; }

/* Proof strip directly under the hero: the track record at a glance. */
.mo-proof { margin: 0 auto 3rem; }
.mo-proof__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--mo-border); border: 1px solid var(--mo-border); border-radius: var(--global-radius); overflow: hidden; }
.mo-proof__item { background: var(--mo-surface); padding: 20px 16px; text-align: center; }
.mo-proof__num { display: block; font-size: 30px; font-weight: 800; line-height: 1; color: var(--color-text); font-variant-numeric: tabular-nums; }
.mo-proof__num--accent { color: var(--color-primary); }
.mo-proof__num--hit { color: var(--mo-hit); }
.mo-proof__num--miss { color: var(--mo-miss); }
.mo-proof__num--date { font-size: 20px; padding: 5px 0; }
.mo-proof__label { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--color-text-acc); }
.mo-proof__note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 12px; font-size: 13px; color: var(--color-text-acc); }
.mo-proof__note a { color: var(--color-primary); font-weight: 600; white-space: nowrap; }

/* Hero microcopy under the signup form. */
.hero__note { margin-top: 14px; font-size: 12px; letter-spacing: 0.02em; color: var(--color-text-acc); }

/* Method */
.mo-method { flex-direction: column; align-items: flex-start; }
.mo-steps { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.mo-step__num { display: block; font-size: 40px; font-weight: 900; color: rgba(0, 200, 150, 0.4); line-height: 1; font-family: monospace; }
.mo-step__title { margin: 14px 0 10px; font-size: 18px; font-weight: 600; color: var(--color-white); }
.mo-step__desc { font-size: 14px; line-height: 1.7; color: var(--color-grey-light); }

/* Final call to action */
.cta-final__card { position: relative; width: 100%; overflow: hidden; background: var(--color-bg-acc); border: 1px solid var(--color-border); border-radius: 16px; padding: 72px 40px; text-align: center; }
.cta-final__glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse, var(--color-primary) 0%, transparent 65%); opacity: .12; pointer-events: none; }
.cta-final__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.cta-final__content { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.cta-final__text { max-width: 480px; margin: 16px auto 28px; color: var(--color-grey-light); font-size: 15px; line-height: 1.7; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-final__note { margin-top: 18px; font-size: 12px; color: var(--color-text-acc); }

@media (max-width: 900px) {
  .mo-proof__bar { grid-template-columns: repeat(2, 1fr); }
  .mo-proof__item:last-child { grid-column: 1 / -1; }
  .mo-steps { grid-template-columns: 1fr; gap: 28px; }
  .cta-final__card { padding: 56px 24px; }
}

/* Home rhythm: even space between sections; six sector tiles fit one row on desktop. */
.home-template .section.tags,
.home-template .section.mo-method { margin-bottom: 3rem; }
.home-template .grid-tags { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px) { .home-template .grid-tags { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .home-template .grid-tags { grid-template-columns: repeat(2, 1fr); } }

.home-template .section__heading { margin-bottom: 1rem; }

/* ---------- Start-here guide cards (home) ---------- */
.home-template .section.guides { margin-bottom: 3rem; }
.guide-grid { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.guide-card { position: relative; display: flex; gap: 24px; align-items: center; padding: 24px; background: var(--mo-surface); border: 1px solid var(--mo-border); border-radius: 12px; transition: border-color var(--trans-default), transform var(--trans-default); }
.guide-card:hover, .guide-card:focus-within { border-color: var(--color-primary); transform: translateY(-2px); }
.guide-card__media { flex: 0 0 148px; width: 148px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; border: 1px solid var(--mo-border); border-radius: 14px; }
.guide-card__img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.guide-card__step-big { font-size: 56px; font-weight: 900; color: rgba(0, 200, 150, 0.4); font-family: monospace; }
.guide-card__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.guide-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-acc); }
.guide-card__step { color: var(--color-primary); }
.guide-card__title { margin: 0; font-size: 1.15rem; line-height: 1.35; }
/* the whole card is clickable through the title link */
.guide-card__link { color: var(--color-text); }
.guide-card__link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.guide-card__excerpt { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--color-text-acc); }
.guide-card__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--color-primary); }
.guide-card__cta i { margin: 0; transition: transform var(--trans-default); }
.guide-card:hover .guide-card__cta i { transform: translateX(3px); }

@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .guide-card { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
  .guide-card__media { flex: none; width: 100%; aspect-ratio: 16 / 9; }
}

/* ---------- Site-wide disclaimer (footer, and under the sign-in/sign-up forms) ---------- */
.site-disclaimer { max-width: 860px; margin: 0 auto; padding: var(--gap) 0 0; font-size: 0.72rem; line-height: 1.6; text-align: center; color: var(--color-text-acc); }
.site-disclaimer-wrap { padding-bottom: var(--gap-lg); }

/* ---------- Phones (iPhone widths, 320-430px) ---------- */
@media (max-width: 600px) {
  /* Cards: less inner padding so text uses the width. */
  .card-analysis .card-analysis__body { padding: 18px; }
  .guide-card { padding: 18px; }
  .post-card .post-card__content { padding: 18px; }
  .home-template .section__heading { margin-bottom: 0.75rem; }

  /* Hero: on phones the animated chart is its own strip below the form instead of a
     background behind the text, so the headline and form sit on plain black. */
  .hero.is-home.hero--chart-bg { min-height: 0; padding-top: 8px; padding-bottom: 0; }
  .hero--chart-bg > .hero__content { padding-bottom: 28px; }
  .hero--chart-bg > .hero__content::before { display: none; }
  .hero--chart-bg > .hb-stage { position: relative; inset: auto; order: 2; height: 120px; margin: 0 calc(var(--gap) * -1); border-top: 1px solid var(--mo-border); border-bottom: 1px solid var(--mo-border); opacity: 0.55;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); border-color: transparent; }
  .hero--chart-bg > .hero__content { order: 1; }
  /* calmer: no glow on candles and zones */
  .hero--chart-bg .hb-bull, .hero--chart-bg .hb-bear, .hero--chart-bg .hb-zone { box-shadow: none !important; }
  .hero--chart-bg .hb-zone .hb-lbl { display: none; }

  /* Method steps: number and title side by side instead of three stacked blocks. */
  .mo-steps { gap: 20px; margin-top: 20px; }
  .mo-step { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; align-items: baseline; }
  .mo-step__num { font-size: 30px; grid-row: 1 / span 2; }
  .mo-step__title { margin: 0 0 6px; font-size: 17px; }

  /* Proof strip: smaller numbers, last item spans the row. */
  .mo-proof__num { font-size: 26px; }
  .mo-proof__item { padding: 16px 10px; }

  /* Final CTA: buttons full width. */
  .cta-final__card { padding: 40px 20px; }
  .cta-final__actions .mo-btn { width: 100%; justify-content: center; }

  /* Taps: at least ~44px high where it matters. */
  .mo-btn { min-height: 44px; justify-content: center; }
  .site-disclaimer { font-size: 0.7rem; padding-inline: 2px; }
}

/* ==========================================================================
   Terminal look (site-wide, Nov 2026)
   A monochrome, editorial "terminal" style: square corners, hairline borders, no shadows, tight
   headings, monospace labels/data/buttons, mint only as a sparing accent. Colours come from the
   tokens in brand-dark.css. Loaded after Fumio's app.min.css, so Fumio's source stays untouched;
   square corners use !important because many components (and the custom templates' inline
   styles) hard-code their own radius.
   ========================================================================== */

/* Square corners everywhere; only tiny dots and markers stay round. */
*, *::before, *::after { border-radius: 0 !important; }
.vm-dot, .vm-scale__marker, .mo-dot, input[type="radio"] { border-radius: 50% !important; }

/* No soft shadows or glows on panels and buttons: depth comes from hairlines. */
.post-card, .card-analysis, .guide-card, .mo-proof, .mo-proof__item, .btn, .mo-btn, .vm-card, .vm-outlook,
.fd-card, .pt-kpi, .membership-card, .tier-card, .header__search, .notification { box-shadow: none !important; }

/* Headings: tight and medium-weight, like an editorial grotesk. */
h1, h2, h3, .section__title, .hero__title, .post__title, .page__title, .post-card__title, .card-analysis__title {
  letter-spacing: -0.025em;
}
h1, .hero__title, .post__title, .page__title { font-weight: 600; }
/* Fumio paints the hero title by clipping the accent colour to the text; make it plain off-white. */
.hero__title, .hero[data-image-style] .hero__title { color: var(--color-text); background: none !important; -webkit-text-fill-color: var(--color-text) !important; }
/* Fumio's gradient button adds a shine layer; the terminal look is a flat fill. */
.btn--gradient::before { display: none; }

/* Labels and eyebrows: small monospace caps with wide tracking. */
.section__eyebrow, .mo-label, .fd-label, .chg-label, .vm-eyebrow, .vm-lbl, .mo-performance__label, .vm-tile__k, .vm-step__tag,
.vm-sig-group__title, .vm-sig__s, .vm-scale__labels, .pt-kpi__label, .pt-donut__lbl, .mo-proof__label,
.mo-performance__label, .membership-stat__label, .card-analysis__meta, .card-analysis__ticker,
.guide-card__meta, .about-tag, .badge-tag-filter, .mo-badge, .post-card__tag, .post__meta, .post-card__meta,
.fd-card__kpis dt, .fd-card__asof, .site-disclaimer__title {
  font-family: var(--mo-font-mono);
  letter-spacing: 0.08em;
}
/* An eyebrow reads like a path: "/ RESEARCH". */
.section__eyebrow::before, .mo-label::before, .fd-label::before, .chg-label::before, .vm-eyebrow::before, .mo-performance__label::before {
  content: "/ ";
  color: var(--mo-text-dim);
}

/* Data: numbers in tables, stats and tickers are monospace. */
[data-stat], [data-filter-count], .mo-stat__num, .mo-proof__num, .pt-kpi__num, .pt-table td, .vm-sig__v,
.vm-num, .fd-card__kpis dd, .fd-card__ticker, .vm-scale__marker b, .membership-stat__num {
  font-family: var(--mo-font-mono);
  letter-spacing: -0.01em;
}

/* Buttons: rectangles with monospace caps. Primary = mint fill (the one accent); everything else is
   an outline that turns off-white on hover. */
.btn, .mo-btn, .vm-btn, .pt-cta a, .about-cta__btn, .membership-cta__btn, .guide-card__cta,
.signup-link, .signin-link, .fdd-depth__summary, .gh-portal-triggerbtn-wrapper {
  font-family: var(--mo-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 12.5px;
}
.btn--primary, .btn--accent, .btn--gradient, .mo-btn:not(.mo-btn--ghost), .vm-btn--primary, .about-cta__btn, .membership-cta__btn {
  background: var(--color-primary) !important;
  background-image: none !important;
  color: #000 !important;
  border: 1px solid var(--color-primary) !important;
}
.mo-btn--ghost, .vm-btn:not(.vm-btn--primary), .btn--view {
  background: transparent !important;
  color: var(--color-text) !important;
  border: 1px solid var(--mo-border) !important;
}
.mo-btn--ghost:hover, .vm-btn:not(.vm-btn--primary):hover, .btn--view:hover { border-color: var(--color-text) !important; }

/* Forms: square, hairline, transparent fields. */
input[type="email"], input[type="text"], input[type="search"], input[type="password"], textarea, select {
  background-color: transparent;
  border: 1px solid var(--mo-border);
}
input[type="email"]:focus, input[type="text"]:focus, input[type="search"]:focus, textarea:focus { border-color: var(--color-text); }

/* Panels and cards: near-black with a hairline, a lighter hairline on hover. */
.post-card, .card-analysis, .guide-card, .fd-card { border: 1px solid var(--mo-border-soft); background-color: var(--mo-surface-raised); }
a.post-card:hover, a.card-analysis:hover, .card-analysis:hover, a.guide-card:hover, a.fd-card:hover { border-color: var(--mo-border); }

/* Header: a hairline instead of a filled bar. */
.header { border-bottom: 1px solid var(--mo-border-soft); }

/* Monochrome: no mint glows or tinted gradients behind sections and cards. */
.cta-final__glow { display: none; }
.tag-card:after { background: none; }
