/* Feature pages (/features/..., /pl/funkcje/...) and the feature hubs.
   Loaded after style.css, plan/landing.css and assets/site.css; only adds what those lack. */

.feature-page {
  --feature-space: clamp(64px, 7vw, 96px);
  --feature-lavender: #f3f1fc;
  --feature-line: #e6e2f0;
}
.feature-page { background: #fff; }
.feature-page > main > section { scroll-margin-top: 100px; }
.feature-section { padding: var(--feature-space) 0; border-top: 1px solid rgba(97, 75, 219, .07); }
.feature-section--alt { background: var(--feature-lavender); }
.feature-section .section__header { text-align: left; max-width: 800px; margin: 0 0 40px; }
.feature-section .section__eyebrow { display: block; margin-bottom: 16px; }
.feature-section .section__title { font-size: clamp(32px, 3.5vw, 46px); margin: 0; text-wrap: balance; }
.feature-section .section__desc { margin: 18px 0 0; }

/* ---- Hero: centred copy, the feature film below ---- */
.feature-hero.hero.hero--product { padding-bottom: var(--feature-space); }
.feature-breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; font-size: 13px; color: #686274; }
.feature-breadcrumb li + li::before { content: '/'; margin-right: 8px; color: #b9b3c7; }
.feature-breadcrumb a { color: #614bdb; text-decoration: none; font-weight: 600; }
.feature-breadcrumb a:hover { text-decoration: underline; }
.feature-hero .hero__microcopy { text-align: center; margin: 20px 0 0; }
.feature-hero__stores { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin: 28px 0 0; font-size: 13px; color: #686274; }
.feature-hero__stores img { display: block; height: 40px; width: auto; }
/* googlePlayIcon.svg has whitespace inside its viewBox: draw it 1.5x taller and pull the margins in, as the footer does (style.css .footer__store--google), so both badges look the same height */
.feature-hero__stores img[src*="googlePlayIcon"] { height: 60px; margin: -10px 0; }
.feature-hero__visual { max-width: 960px; margin: 0 auto; border: 1px solid #ded9ef; border-radius: 24px; overflow: hidden; background: var(--feature-lavender); }
.feature-hero__visual .product-media video { border-radius: 0; aspect-ratio: 8 / 5; object-fit: contain; }
/* A still instead of a film: the app frame centred at a readable width (--still-max per page); a tall still is cut to its top part (--still-max-h), the full image goes in a how-to step. */
.feature-hero__visual--still { display: flex; justify-content: center; box-sizing: border-box; width: min(100%, calc(var(--still-max, 440px) + 2 * clamp(20px, 4vw, 48px))); padding: clamp(20px, 4vw, 48px); }
.feature-hero__visual--still img { display: block; width: 100%; max-width: var(--still-max, 440px); height: auto; max-height: var(--still-max-h, none); object-fit: cover; object-position: top; border-radius: 12px; }

/* ---- What it does: copy beside an interactive demo ---- */
.feature-what { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.feature-what__copy p { font-size: 16px; line-height: 1.75; color: #4c455a; margin: 0 0 18px; }
.feature-what__copy p:last-child { margin-bottom: 0; }
.feature-what__copy strong { color: #211a35; font-weight: 600; }
.feature-what__media { border: 1px solid #ded9ef; border-radius: 24px; overflow: hidden; }
.feature-what__media.product-media--industries { display: flex; flex-direction: column; }
.feature-what__media .product-media__video { border-radius: 0; }
.feature-what--single { grid-template-columns: minmax(0, 1fr); max-width: 800px; }
.feature-what__figure { margin: 0; background: #fff; }
.feature-what__figure img { display: block; width: 100%; height: auto; }
.feature-what__caption { font-size: 12px; color: #8a8396; margin: 12px 0 0; text-align: center; }
/* Example comments and what happens to them (profile protection), in place of a demo */
.feature-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-status__card { background: #fff; border: 1px solid var(--feature-line); border-radius: 20px; padding: 24px; }
.feature-status__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 7px 10px; border-radius: 8px; margin-bottom: 16px; }
.feature-status__badge .lucide { width: 16px; height: 16px; }
.feature-status__card--allowed .feature-status__badge { background: #e9f7f2; color: #176b55; }
.feature-status__card--review .feature-status__badge { background: #fff3df; color: #925408; }
.feature-status__card--hidden .feature-status__badge { background: #fff0f0; color: #b13342; }
.feature-status__text { font-size: 17px; font-weight: 500; color: #393346; line-height: 1.55; margin: 0 0 10px; }
.feature-status__desc { font-size: 14px; color: #686274; line-height: 1.65; margin: 0; }

/* ---- Why it helps: four benefit cards (benefit-card from plan/landing.css) ---- */
.feature-page .benefit-card:hover { transform: none; box-shadow: none; border-color: #d4cdf0; }
.feature-page .benefit-card__icon { background: #ece8ff; border: 0; color: #614bdb; }
.feature-page .benefit-card__desc { font-weight: 400; font-size: 15px; color: #686274; }
.feature-page .benefit-card__pain { font-size: 13px; font-style: italic; color: #8a8396; margin: 0; }

/* ---- How to use it: numbered steps, each with a visual slot ---- */
.feature-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: none; }
.feature-step { scroll-margin-top: 100px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: #fff; border: 1px solid var(--feature-line); border-radius: 24px; padding: 32px; }
.feature-step__body { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; align-items: start; }
.feature-step__num { grid-row: span 3; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #ece8ff; color: #614bdb; font: 700 20px/1 var(--font-display); }
.feature-step__title { font: 700 clamp(20px, 2vw, 24px)/1.25 var(--font-display); letter-spacing: -.03em; color: #211a35; margin: 6px 0 12px; }
.feature-step__text { font-size: 15px; line-height: 1.7; color: #686274; margin: 0; }
.feature-step__text + .feature-step__text { margin-top: 10px; }
.feature-ui { font-weight: 600; color: #393346; white-space: normal; }
.feature-step__title .feature-ui { font: inherit; color: inherit; }
.feature-step__visual { margin: 0; background: var(--feature-lavender); border-radius: 18px; overflow: hidden; display: flex; justify-content: center; align-items: center; padding: 20px; min-height: 0; }
.feature-step__visual img { display: block; width: 100%; max-width: 380px; height: auto; border-radius: 12px; }
.feature-step__visual--wide { padding: 0; }
.feature-step__visual--wide img { width: 100%; max-width: none; max-height: none; border-radius: 0; }
.feature-step__body > :not(.feature-step__num) { grid-column: 2; }
/* A step with no picture is one column of text; a hint points at the visual higher up the page */
.feature-step--text { grid-template-columns: minmax(0, 1fr); }
.feature-step--text .feature-step__body { max-width: 760px; }
.feature-step__hint { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #8a8396; }

/* ---- Good to know ---- */
.feature-limits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-limits li { background: #fff; border: 1px solid var(--feature-line); border-radius: 18px; padding: 22px 24px; }
.feature-limits strong { display: block; font: 600 16px/1.35 var(--font-display); color: #211a35; margin-bottom: 6px; }
.feature-limits li > span { display: block; font-size: 14px; line-height: 1.65; color: #686274; }
.feature-limits a { color: #614bdb; font-weight: 600; }
.feature-step__text a { color: #614bdb; font-weight: 600; }

/* ---- Related features and the hub grid share one card ---- */
.feature-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-tile { height: 100%; }
.feature-tile a { display: flex; flex-direction: column; height: 100%; gap: 10px; background: #fff; border: 1px solid var(--feature-line); border-radius: 20px; padding: 26px 24px; text-decoration: none; transition: border-color .15s; }
.feature-tile a:hover { border-color: #b9aef0; }
.feature-tile a:focus-visible { outline: 3px solid #614bdb; outline-offset: 3px; }
.feature-tile__title { font: 700 19px/1.3 var(--font-display); letter-spacing: -.02em; color: #211a35; }
.feature-tile__desc { font-size: 14px; line-height: 1.65; color: #686274; flex: 1; }
.feature-tile__more { font-size: 14px; font-weight: 600; color: #614bdb; }
.feature-tile--hub a { background: var(--feature-lavender); border-color: #ded9ef; }

.feature-hub__group + .feature-hub__group { margin-top: 48px; }
.feature-hub__group-title { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--font-display); letter-spacing: -.03em; color: #211a35; margin: 0 0 8px; }
.feature-hub__group-desc { font-size: 15px; line-height: 1.6; color: #686274; margin: 0 0 20px; max-width: 640px; }

@media (max-width: 1000px) {
  .feature-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .feature-what { grid-template-columns: 1fr; gap: 32px; }
  .feature-step { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}
@media (max-width: 640px) {
  .feature-section .section__header { margin-bottom: 28px; }
  .feature-step__body { grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; }
  .feature-step__num { width: 44px; height: 44px; font-size: 17px; }
  .feature-step__visual { padding: 14px; }
  .feature-limits, .feature-tiles { grid-template-columns: 1fr; }
  .feature-hero__visual { border-radius: 18px; }
  .feature-hero__stores img { height: 36px; }
  .feature-hero__stores img[src*="googlePlayIcon"] { height: 54px; margin: -9px 0; }
  .feature-page .footer__inner > * { min-width: 0; max-width: 100%; }
  .feature-page .footer__stores { flex-wrap: wrap; }
}
