/*
 * css/landing.css: index.html only. Flovia's hero, badge row, framed dashboard, stock strip, three columns,
 * five-step loop, CTA band and FAQ, with Ponlink's green tokens. Shared primitives come from css/site.css.
 */

/* ---------------------------------------------------------------- hero */
.hero-section { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(2.6rem, 4.7vw, 3.4rem); }
.hero-shell { display: flex; flex-direction: column; align-items: center; }
.hero-title { width: 100%; max-width: 68rem; text-align: center; text-wrap: balance; font-size: clamp(2.35rem, 5vw, 3.75rem); font-weight: 600; line-height: 1.04; letter-spacing: -.042em; }
.hero-title .hl { color: var(--accent); }
/* the words share one grid cell, so the box is as wide as the widest word and nothing overflows the viewport */
.hero-rotate { display: inline-grid; vertical-align: baseline; white-space: nowrap; }
.hero-rotate-word { grid-area: 1 / 1; display: inline-flex; align-items: baseline; justify-content: space-between; color: var(--accent); transition: opacity .45s, transform .45s, visibility 0s linear .45s; }
.hero-rotate-word i { color: var(--muted); font-style: normal; font-weight: 380; }
.hero-rotate-word i:first-child { margin-right: .24em; }
.hero-rotate-word i:last-child { margin-left: .24em; }
.hero-rotate-word:not(.is-active) { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(.3em); }
.hero-rotate-word.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s, transform .45s, visibility 0s; }
.hero-copy { width: 100%; max-width: 40rem; margin-top: 1.375rem; color: var(--body); text-align: center; text-wrap: balance; font-size: 1.17rem; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .625rem; margin-top: 1.75rem; }
.hero-awards { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 1rem; width: 100%; max-width: 62rem; margin-top: 2.25rem; }
.hero-awards .badge-card { flex: 1 1 12rem; max-width: 24rem; }
.hero-frame { max-width: 62rem; margin: 3rem 0 0; }
@media (max-width: 760px) {
  .hero-title br { display: none; }
  .hero-awards { flex-direction: column; align-items: stretch; gap: .75rem; }
  .hero-awards .badge-card { flex: none; max-width: none; }
  .hero-frame { margin-top: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-rotate-word { transition: none; transform: none; } }

/* the frame: sidebar hidden under 900, table scrolls inside the card on phones (css/site.css) */
.hero-frame .app-body { min-height: 22rem; }
.hero-frame .app-card-chart { display: flex; flex-direction: column; }
.hero-frame .app-chart { flex: 1; min-height: 9rem; }

/* ---------------------------------------------------------------- stock strip (flovia .hero-trust) */
.hero-trust { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; width: 100%; margin-top: 3.75rem; }
.hero-trust-label { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--body); font-size: .92rem; font-weight: 500; text-align: center; }
.hero-trust-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 3.5rem; width: 100%; }
.hero-trust-item { display: inline-flex; align-items: center; gap: .9rem; min-height: 44px; color: var(--dim); font-size: 1.5rem; font-weight: 550; letter-spacing: -.01em; white-space: nowrap; transition: color .18s; }
.hero-trust-item:hover { color: var(--ink); }
.hero-trust-mark { position: relative; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; overflow: hidden; background: #f1f1f1; box-shadow: inset 0 0 0 1px rgba(23, 23, 23, .08); display: grid; place-items: center; }
.hero-trust-mark img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .85; transition: filter .18s, opacity .18s; }
.hero-trust-item:hover .hero-trust-mark img { filter: none; opacity: 1; }
.hero-trust-mark span { font-weight: 650; font-size: 1rem; color: var(--dim); }
.hero-trust-sym { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 760px) {
  .hero-trust { margin-top: 3rem; gap: 1.1rem; }
  .hero-trust-label { font-size: .74rem; }
  .hero-trust-logos { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 0; overflow: hidden; width: 100vw; margin-inline: calc(50% - 50vw); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .hero-trust-track { display: flex; flex: none; align-items: center; gap: 2rem; padding-right: 2rem; animation: strip 36s linear infinite; }
  .hero-trust-logos:hover .hero-trust-track { animation-play-state: paused; }
  .hero-trust-item { font-size: 1.15rem; gap: .6rem; }
  .hero-trust-mark { width: 2rem; height: 2rem; }
  @keyframes strip { to { transform: translateX(-100%); } }
  @media (prefers-reduced-motion: reduce) { .hero-trust-track { animation: none; } .hero-trust-logos { overflow-x: auto; } }
}
@media (min-width: 761px) { .hero-trust-track { display: contents; } .hero-trust-track.is-copy { display: none; } }

/* ---------------------------------------------------------------- three ways (flovia .problem-*) */
.section-warm { background: var(--bg); }
.problem-grid { display: grid; gap: 0; margin-top: 2.75rem; border-top: 1px solid var(--line); }
.problem-card { position: relative; padding: 1.75rem 0 1.5rem; border-bottom: 1px solid var(--line-soft); }
.problem-card-eyebrow { font-family: var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--accent-text); font-size: .95rem; font-weight: 600; }
.problem-card svg { display: block; margin-top: 1.25rem; max-width: 100%; height: auto; }
.problem-card h3 { margin-top: .875rem; font-size: 1.22rem; line-height: 1.3; letter-spacing: -.02em; }
.problem-card p:last-child { text-wrap: pretty; color: var(--body); margin-top: .625rem; font-size: .92rem; line-height: 1.65; }
.problem-card .arrow { position: absolute; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; background: var(--bg); color: var(--muted); bottom: 0; left: .55rem; transform: translateY(50%); }
.problem-card .arrow svg { width: 1rem; height: 1rem; margin: 0; }
.problem-card:last-child .arrow { display: none; }
@media (min-width: 1024px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .problem-card { border-bottom: 0; padding: 2rem 1.75rem .5rem; }
  .problem-card:first-child { padding-left: 0; }
  .problem-card + .problem-card { border-left: 1px solid var(--line-soft); }
  .problem-card .arrow { inset: 1.85rem 0 auto auto; left: auto; transform: translate(50%); }
  .problem-card .arrow svg { transform: rotate(-90deg); }
}

/* ---------------------------------------------------------------- loop heading */
.how-story-heading h2 { max-width: 48rem; margin-inline: auto; }
.hv-mark-row { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.hv-mark-row strong { font-size: .8rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-mark-row small { color: var(--dim); font-size: .62rem; }
.hv-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.hv-kv > div { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .65rem; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface-2); min-width: 0; }
.hv-kv small { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); font-size: .52rem; }
.hv-kv strong { font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-kv strong.is-accent { color: var(--accent-text); }
@media (max-width: 760px) {
  .hv-kv { gap: .4rem; }
  .hv-kv > div { padding: .45rem .5rem; }
  .hv-kv strong { font-size: .72rem; }
}
/* the stock chips inside step 01's form (step 04's whole visual is also .hv-stocks: an unscoped flex-wrap made it a
   multi-line flex box as wide as its widest row's min-content, which the stage clipped at 320 px) */
.hv-form-row > .hv-stocks { flex-wrap: wrap; }
.hv-form-row > .hv-stocks .chip { min-height: 26px; padding: .1rem .5rem .1rem .2rem; font-size: .66rem; gap: .3rem; }
.hv-chips { display: inline-flex; gap: 2px; padding: 2px; border-radius: 6px; background: #f1f1f1; }
.hv-chips span { padding: .2rem .55rem; border-radius: 5px; color: var(--dim); font-size: .66rem; font-weight: 500; }
.hv-chips span.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-soft); }
.hv-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; flex: 1; min-height: 6rem; padding: 1rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--dim); font-size: .7rem; }
.hv-empty strong { color: var(--ink); font-size: .76rem; font-weight: 550; }
.hv-wide { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- cta, faq */
.cta-shell { max-width: 40rem; margin-inline: auto; text-align: center; }
.cta-copy h2 { text-wrap: balance; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.035em; }
.cta-copy p { text-wrap: pretty; color: var(--body); margin-top: 1rem; font-size: 1.02rem; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .625rem; margin-top: 1.75rem; }
.faq-section { border-top: 1px solid var(--line); }
