/* ==========================================================================
   PayPress — components.css
   Reusable components: browser frame, hero, feature rows, cards, pricing,
   FAQ, CTA band, support help cards, contact form, policies.
   Depends on tokens defined in main.css.
   ========================================================================== */

/* ---------- BROWSER FRAME (screenshot wrapper) ---------- */
.browser {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--color-line); box-shadow: var(--shadow-lg);
}
.browser__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: linear-gradient(180deg, #fff, #FBFBFE); border-bottom: 1px solid var(--color-line);
}
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser__dots i:nth-child(1) { background: #FF5F57; }
.browser__dots i:nth-child(2) { background: #FEBC2E; }
.browser__dots i:nth-child(3) { background: #28C840; }
.browser__url {
  margin-left: 6px; flex: 1; max-width: 340px; height: 26px; border-radius: 7px;
  background: var(--color-canvas); border: 1px solid var(--color-line);
  display: flex; align-items: center; gap: 7px; padding: 0 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--color-muted-2);
}
.browser__url svg { width: 11px; height: 11px; opacity: .7; }
.browser__body { background: #fff; }
.browser__body img { width: 100%; display: block; }

/* ---------- HERO — full-bleed showcase (home) ---------- */
.hero-fb {
  background: radial-gradient(1100px 540px at 50% -6%, rgba(99,102,241,.18), transparent 58%), #ffffff;
  overflow: hidden;
}
.hero-fb__copy {
  max-width: 1100px; margin: 0 auto; padding: 60px 40px 44px; text-align: center;
}
.hero-fb__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 22px;
}
.hero-fb__eyebrow::before { content: ""; width: 22px; height: 1.5px; background: #A5B4FC; }
.hero-fb__h1 {
  font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.035em; color: var(--color-heading); text-wrap: balance;
  margin: 0 auto 22px; max-width: 15ch;
}
.hero-fb__accent { color: var(--color-primary); }
.hero-fb__sub {
  font-size: clamp(17px, 1.4vw, 19px); color: var(--color-muted); line-height: 1.6;
  max-width: 640px; margin: 0 auto 30px;
}
.hero-fb__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-fb__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px;
  font-size: 16px; font-weight: 600; border-radius: 12px; text-decoration: none;
  transition: .15s ease; white-space: nowrap;
}
.hero-fb__btn--primary {
  background: var(--color-primary); color: #fff;
  box-shadow: 0 8px 22px -10px rgba(79,70,229,.7);
}
.hero-fb__btn--primary:hover { background: var(--color-primary-dark, #4338CA); transform: translateY(-1px); }
.hero-fb__btn--ghost { background: #fff; color: var(--color-heading); border: 1px solid var(--color-line); }
.hero-fb__btn--ghost:hover { border-color: #A5B4FC; color: var(--color-primary); }
.hero-fb__badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
  list-style: none; margin: 0; padding: 0;
}
.hero-fb__badges li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--color-heading); }
.hero-fb__badges li svg { color: var(--color-primary); flex-shrink: 0; }
.hero-fb__shot { position: relative; width: 100%; border-top: 1px solid rgba(14,21,37,.08); box-shadow: 0 -1px 40px rgba(79,70,229,.10); line-height: 0; }
.hero-fb__shot img { width: 100%; height: auto; display: block; }
.hero-fb__shot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, #ffffff); pointer-events: none;
}

/* ---------- PAGE HERO (interior pages) ---------- */
.page-hero { padding: 72px 0 24px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; background: radial-gradient(circle, rgba(99,102,241,.12), transparent 64%);
}
.page-hero__inner { max-width: 720px; margin: 0 auto; position: relative; }
.page-hero__inner--narrow { max-width: 660px; }
.page-hero__title { margin: 18px 0 18px; }

/* ---------- FEATURE ROWS ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; scroll-margin-top: 90px; }
.feature-row + .feature-row { margin-top: 104px; }
.feature-row--flip .feature-row__media { order: -1; }
.feature-row__copy .eyebrow { margin-bottom: 18px; }
.feature-row__copy h2 { margin-bottom: 16px; }
.feature-row__copy .lead { margin-bottom: 26px; }
.feature-list { display: flex; flex-direction: column; gap: 13px; margin: 0 0 28px; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; color: var(--color-ink-soft); }
.feature-list li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--color-primary); }
.feature-row__media { position: relative; }
.feature-row__inset {
  position: absolute; right: -22px; bottom: -26px; width: 46%; border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--color-line); overflow: hidden; background: #fff;
}
.feature-row--flip .feature-row__inset { right: auto; left: -22px; }

/* ---------- CARD GRIDS (trust / capability) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.info-card {
  background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.info-card__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--color-primary-tint);
  color: var(--color-primary); display: grid; place-items: center; margin-bottom: 16px;
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.02em; }
.info-card p { font-size: 14.5px; color: var(--color-muted); line-height: 1.5; }
.info-card--sm { padding: 24px; }
.info-card--sm .info-card__icon { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px; }
.info-card--sm .info-card__icon svg { width: 20px; height: 20px; }
.info-card--sm h3 { font-size: 17px; }

/* ---------- FEATURE PAGE: anchor nav ---------- */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.anchor-nav a {
  font-size: 14px; font-weight: 600; color: var(--color-ink-soft); background: var(--color-paper);
  border: 1px solid var(--color-line); border-radius: var(--radius-pill); padding: 9px 16px;
  box-shadow: var(--shadow-sm); transition: .15s;
}
.anchor-nav a:hover { border-color: var(--color-primary-200); color: var(--color-primary-dark); background: var(--color-primary-tint); }

/* ---------- PRICING ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; align-items: start; }
.plan {
  background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius-xl);
  padding: 36px; box-shadow: var(--shadow); position: relative;
}
.plan--pro { border-color: var(--color-primary-200); box-shadow: 0 0 0 3px var(--color-primary-tint), var(--shadow-lg); }
.plan__tag { position: absolute; top: -13px; left: 36px; }
.plan h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.plan__blurb { color: var(--color-muted); font-size: 15px; margin: 6px 0 22px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan__amount { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; }
.plan__per { color: var(--color-muted-2); font-size: 15px; font-weight: 600; }
.plan__note { font-size: 13.5px; color: var(--color-muted-2); margin-bottom: 24px; font-family: var(--font-mono); }
.plan .btn { width: 100%; justify-content: center; margin-bottom: 26px; }
.plan__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.plan__list li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--color-ink-soft); }
.plan__list li svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; color: var(--color-primary); }
.plan__list strong { font-weight: 700; }
.fee-note {
  max-width: 880px; margin: 28px auto 0; text-align: center; font-size: 14.5px; color: var(--color-muted);
  background: var(--color-canvas); border: 1px solid var(--color-line); border-radius: var(--radius); padding: 18px 24px;
}
.fee-note strong { color: var(--color-ink); }

/* ---------- FAQ / ACCORDION ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid var(--color-line); }
.acc-item__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 0;
  font-size: 18px; font-weight: 700; color: var(--color-ink); display: flex; align-items: center;
  justify-content: space-between; gap: 16px; letter-spacing: -0.01em;
}
.acc-item__chev { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s; color: var(--color-muted-2); }
.acc-item.is-open .acc-item__chev { transform: rotate(180deg); }
.acc-item__a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.acc-item.is-open .acc-item__a { max-height: 260px; }
.acc-item__a p { padding: 0 0 22px; color: var(--color-muted); font-size: 16px; line-height: 1.6; }

/* ---------- CTA BAND ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 72px 56px;
  background: linear-gradient(150deg, var(--color-primary), var(--color-primary-dark)); color: #fff; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.13) 1px, transparent 0);
  background-size: 26px 26px; opacity: .6;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 14px; }
.cta-band p { font-size: 19px; color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 30px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- SUPPORT: help cards ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.help-card {
  background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: .15s; display: block;
}
.help-card:hover { border-color: var(--color-primary-200); transform: translateY(-2px); box-shadow: var(--shadow); }
.help-card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--color-primary-tint);
  color: var(--color-primary); display: grid; place-items: center; margin-bottom: 16px;
}
.help-card__icon svg { width: 23px; height: 23px; }
.help-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 7px; }
.help-card p { font-size: 14.5px; color: var(--color-muted); line-height: 1.5; }

/* ---------- SUPPORT: layout, contact form, policies ---------- */
.support-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.support-search {
  display: flex; align-items: center; gap: 12px; background: var(--color-paper); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 15px 18px; box-shadow: var(--shadow-sm); max-width: 520px; margin: 0 auto;
}
.support-search svg { width: 20px; height: 20px; color: var(--color-muted-2); flex-shrink: 0; }
.support-search input { border: 0; outline: 0; font-family: var(--font-sans); font-size: 16px; color: var(--color-ink); width: 100%; background: none; }

.contact-card {
  background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius-xl);
  padding: 36px; box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 24px; margin-bottom: 6px; }
.contact-card__sub { color: var(--color-muted); font-size: 15px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--color-ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15px; color: var(--color-ink);
  border: 1px solid var(--color-line); border-radius: 10px; padding: 12px 14px; background: var(--color-paper);
  outline: none; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary-light); box-shadow: 0 0 0 3px var(--color-primary-tint); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12.5px; color: var(--color-muted-2); margin-top: 6px; font-family: var(--font-mono); }
.form-sent { display: none; color: var(--color-success); font-size: 14px; font-weight: 600; margin-top: 10px; }
.form-sent.is-visible { display: block; }

.policy { margin-bottom: 36px; scroll-margin-top: 90px; }
.policy h2 { font-size: 22px; margin-bottom: 12px; letter-spacing: -0.02em; }
.policy p { color: var(--color-muted); font-size: 15.5px; line-height: 1.65; margin-bottom: 12px; }
.policy ul { margin: 0 0 12px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.policy ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--color-ink-soft); }
.policy ul li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--color-primary); }

.req-table { background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.req-table__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--color-line); }
.req-table__row:last-child { border-bottom: 0; }
.req-table__k { font-size: 14.5px; color: var(--color-muted); font-weight: 500; }
.req-table__v { font-size: 14.5px; color: var(--color-ink); font-weight: 600; font-family: var(--font-mono); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row--flip .feature-row__media { order: 0; }
  .feature-row + .feature-row { margin-top: 72px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid--3 { grid-template-columns: 1fr; }
  .hero-fb__copy { padding: 44px 24px 32px; }
  .support-layout { grid-template-columns: 1fr; gap: 40px; }
  .help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .plans { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 28px; }
  .feature-row__inset { position: static; width: 70%; margin: 16px auto 0; right: auto; }
  .hero-fb__btn { width: 100%; justify-content: center; }
}
