/* ==========================================================================
   ADPOS — Features page (builds on site.css)
   ========================================================================== */

.page-features .site-header { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--line); }
.nav__links a[aria-current="page"] { color: var(--orange-600); font-weight: 700; }

/* ---------- Sub-page hero (shared by Features, Who It's For, Pricing): centred, no image ---------- */
.fx-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px); background: var(--paper); }
.fx-hero::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: -35%; width: 90vw; height: 105%; max-width: 1200px;
  background: radial-gradient(closest-side, #FFE7CC, rgba(255, 244, 232, .6) 60%, transparent); pointer-events: none;
}
.fx-hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.fx-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 20ch; text-wrap: balance; }
.fx-hero h1 span { display: block; color: var(--orange); text-wrap: balance; }
.fx-hero .lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); margin-inline: auto; max-width: 38em; }
.fx-hero__ctas { justify-content: center; }

/* ---------- Device figures ---------- */
.fx-fig { margin: 0; min-width: 0; }
.fx-fig--phone { width: min(260px, 70%); justify-self: center; }
.fx-fig canvas { width: 100%; height: auto; display: block; }

/* ---------- Section menu ---------- */
.fx-subnav { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-block: 1px solid var(--line); }
.fx-subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.fx-subnav ul::-webkit-scrollbar { display: none; }
.fx-subnav a { display: block; white-space: nowrap; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--muted); padding: 7px 14px; border-radius: 999px; transition: background-color .2s, color .2s; }
.fx-subnav a:hover { color: var(--ink); background: var(--stone); }
.fx-subnav a.is-active { color: #fff; background: var(--ink); }
/* Section jumps: smooth, and land the eyebrow ~28px under the section menu (not the section's top padding) */
html:has(.page-features) { scroll-padding-top: calc(var(--header-h) + 58px); scroll-behavior: smooth; }
.page-features .fx-section { scroll-margin-top: calc(28px - clamp(72px, 9vw, 128px)); }
.page-features .section--faq { scroll-margin-top: calc(28px - clamp(80px, 11vw, 150px)); }

/* ---------- Sections ---------- */
.fx-section { padding-block: clamp(72px, 9vw, 128px); }
.fx-section--tint { background: var(--stone); }
.fx-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.fx-split--rev > :first-child { order: 2; }
.fx-split--wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.fx-copy h2 { max-width: 14ch; }
.fx-copy .lede { max-width: 32em; }
.fx-copy .checks { margin-top: 26px; }
.fx-copy .checks li { align-items: flex-start; font-weight: 600; line-height: 1.45; }
.fx-copy .checks li::before { margin-top: 1px; }
.fx-benefit { margin-top: 26px; padding: 14px 18px; border-left: 3px solid var(--orange); background: rgba(243, 146, 43, .07); border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--body); max-width: 34em; }
.fx-benefit strong { color: var(--ink); }
.fx-note { margin-top: 22px; font-size: .88rem; color: var(--muted); }

/* Overview cards */
.fx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fx-card {
  display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.fx-card:hover { transform: translateY(-4px); border-color: #F3C894; box-shadow: 0 24px 40px -28px rgba(226, 126, 20, .55); }
.fx-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(160deg, #FFF1E2, #FFE5C8); color: var(--orange-600); }
.fx-card__icon svg, .fx-ui__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fx-card h3 { font-size: 1.15rem; margin-top: 6px; }
.fx-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.fx-card__more { font-weight: 700; font-size: .9rem; color: var(--orange-600); }
.fx-card__more span { display: inline-block; transition: transform .2s; }
.fx-card:hover .fx-card__more span { transform: translateX(4px); }

/* Definition lists */
.fx-defs { display: grid; gap: 0; margin: 26px 0 0; }
.fx-defs > div { padding: 14px 0; border-top: 1px solid var(--line); }
.fx-defs > div:last-child { border-bottom: 1px solid var(--line); }
.fx-defs dt { font-weight: 700; color: var(--ink); }
.fx-defs dd { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* Stacked visuals (screen + floating card) */
.fx-stack { position: relative; padding: 0 12% 16% 0; }
.fx-duo { position: relative; padding: 0 10% 8% 0; }
.fx-duo .fx-fig--phone { position: absolute; right: 0; bottom: 0; width: 24%; }

/* Recreated dashboard cards */
.fx-ui { background: #fff; border: 1px solid #E7EAEF; border-radius: 16px; padding: 18px 20px; box-shadow: 0 30px 60px -40px rgba(18, 20, 22, .4); font-size: .92rem; color: #16233A; }
.fx-ui--float { position: absolute; right: -4%; bottom: -4%; width: min(330px, 60%); padding: 14px 16px; font-size: .86rem; }
.fx-ui__title { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1rem; padding-bottom: 12px; border-bottom: 1px solid #E7EAEF; margin-bottom: 4px; }
.fx-ui__title a { margin-left: auto; font-size: .8rem; font-weight: 600; color: #A8641A; }
.fx-ui__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #FCEBD7; color: #D97B10; font-weight: 800; }
.fx-ui__icon svg { width: 18px; height: 18px; }
.fx-ui__icon--warn { background: #FDE4E4; color: #DC3D43; }
.fx-ui ul { display: grid; }
.fx-ui li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #F0F2F5; }
.fx-ui li:last-child { border-bottom: 0; }
.fx-ui li strong { display: block; font-weight: 700; }
.fx-ui li small { display: block; color: #6B7480; font-size: .8rem; }
.fx-ui li em { font-style: normal; font-weight: 800; color: #DC3D43; text-align: right; }
.fx-ui li em::before { content: "In stock"; display: block; font-size: .7rem; font-weight: 500; color: #6B7480; }
.fx-ui li b { white-space: nowrap; }
.fx-ui__foot { margin-top: 10px; padding-top: 12px; border-top: 1px solid #E7EAEF; color: #6B7480; font-size: .84rem; }
.fx-ui__foot strong { color: #16233A; }

/* Screenshot placeholder (replace before launch) */
.ph {
  margin: 0; aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 32px; border-radius: 18px; border: 2px dashed #D9CFC2;
  background: repeating-linear-gradient(135deg, rgba(243, 146, 43, .05) 0 14px, transparent 14px 28px), #fff;
  color: var(--muted); font-size: .92rem;
}
.ph strong { color: var(--ink); font-size: 1.15rem; }
.ph span:last-child { max-width: 28em; }
.ph__tag { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); background: var(--orange-50); padding: 5px 10px; border-radius: 6px; }

/* Mobile & cloud: phone first, then the laptop */
.fx-access { background: linear-gradient(180deg, var(--paper), var(--cream)); overflow: hidden; }
.fx-stage { position: relative; padding: 0 12% 6% 0; }
.fx-stage__phone { position: absolute; right: 0; bottom: 0; width: 26%; }
.js-reveal .fx-stage__phone { opacity: 0; transform: translate3d(0, 18%, 0) rotate(4deg); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.js-reveal .fx-stage__laptop { opacity: 0; transform: translate3d(-8%, 4%, 0) scale(.94); transition: opacity .8s var(--ease) .35s, transform 1.1s var(--ease) .35s; }
.js-reveal .fx-stage.is-in .fx-stage__phone,
.js-reveal .fx-stage.is-in .fx-stage__laptop { opacity: 1; transform: none; }

/* Comparison table */
.fx-table { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.fx-table table { width: 100%; border-collapse: collapse; }
.fx-table th, .fx-table td { text-align: left; padding: 16px 22px; border-top: 1px solid var(--line); vertical-align: top; }
.fx-table thead th { border-top: 0; background: var(--ink); color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.fx-table tbody th { width: 30%; font-weight: 700; color: var(--ink); white-space: nowrap; }
.fx-table tbody th a { color: inherit; text-decoration: none; border-bottom: 1.5px solid #F3C894; }
.fx-table tbody th a:hover { color: var(--orange-600); }
.fx-table tbody tr:hover { background: var(--cream); }
.fx-table td { color: var(--body); }
.fx-pro-note { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: .82rem; color: var(--muted); }

/* Lightweight reveals (only when JS + motion are available) */
.js-reveal .fx-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js-reveal .fx-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .fx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .fx-split, .fx-split--wide { grid-template-columns: 1fr; }
  .fx-split--rev > :first-child { order: 0; }
  .fx-copy h2 { max-width: none; }
  .fx-ui--float { position: relative; right: auto; width: 100%; margin-top: -8%; }
  .fx-stack { padding: 0; }
  .fx-table th, .fx-table td { padding: 14px 16px; }
  .fx-table tbody th { white-space: normal; width: 38%; }
}
@media (max-width: 560px) {
  .fx-cards { grid-template-columns: 1fr; }
  .ph { aspect-ratio: 4 / 3; padding: 22px; }
  .fx-table thead { display: none; }
  .fx-table tr { display: block; padding: 14px 16px; border-top: 1px solid var(--line); }
  .fx-table tr:first-child { border-top: 0; }
  .fx-table th, .fx-table td { display: block; padding: 0; border: 0; width: auto; }
  .fx-table td { margin-top: 4px; font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-card:hover { transform: none; }
}
