/* Home page (EN). Loaded render-blocking from layouts/index.html only, so the
   hero paints styled; every other page is untouched. Tokens come from
   critical.css (:root). */

.h-wrap { max-width: var(--max-width-content, 1200px); margin: 0 auto; padding: 0 24px; }
.h-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary-dark); }
.h-h2 { margin: 0; font-size: 36px; line-height: 1.2; font-weight: 800; color: var(--color-text); letter-spacing: -.01em; }
.h-head { margin-bottom: 40px; max-width: 720px; }
.h-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h-link { color: var(--color-primary-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }
.h-link:hover { text-decoration: underline; }
.h-stars { color: #F5A524; letter-spacing: 1px; }

.h-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 10px; font-size: 16px; font-weight: 700; text-decoration: none; transition: background .15s, box-shadow .15s, transform .15s; }
.h-btn:hover { transform: translateY(-1px); }
.h-btn:focus-visible, .h-tab:focus-visible, .h-faq summary:focus-visible { outline: 3px solid #A5ABFF; outline-offset: 2px; }
.h-btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 8px 20px rgba(92, 101, 245, .3); }
.h-btn--primary:hover { background: var(--color-primary-hover); }
.h-btn--ghost { background: #fff; color: var(--color-primary-dark); border: 2px solid var(--color-border); }
.h-btn--ghost:hover { border-color: var(--color-primary); }
.h-btn--light { background: #fff; color: #1D2088; }
.h-btn--outline-light { color: #fff; border: 2px solid rgba(255, 255, 255, .5); }
.h-btn--outline-light:hover { border-color: #fff; }

/* Text in the brand colour uses the darker shade: #5c65f5 falls to 4.0:1 on the
   tinted section backgrounds, below WCAG AA (Lighthouse a11y is a required check).
   Links inside running text are underlined, not told apart by colour alone. */
.h-card p a, .h-faq__list p a, .h-faq__more a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Hero ── */
.h-hero { background: linear-gradient(180deg, #F5F6FF 0%, #fff 100%); padding: 72px 0 56px; }
.h-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.h-hero__title { margin: 0 0 20px; font-size: 38px; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: var(--color-text); }
/* Second line of the H1 on wide screens; a CSS break, not <br>, so the Markdown twin keeps one heading line. */
@media (min-width: 641px) { .h-hero__line { display: block; } }
.h-hero__lead { margin: 0 0 32px; font-size: 18px; line-height: 1.6; color: var(--color-text-secondary); }
.h-hero__hosts { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; padding: 0; list-style: none; }
.h-hero__hosts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--color-border); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--color-text); }
.h-hero__hosts img { width: 20px; height: 20px; }
.h-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.h-hero__fineprint { margin: 14px 0 0; font-size: 14px; color: var(--color-text-muted); }
.h-hero__proof { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--color-border-light); font-size: 14px; color: var(--color-text-secondary); }
.h-hero__proof strong { color: var(--color-text); }
.h-hero__visual img { display: block; width: 100%; height: auto; }

/* ── Apps ── */
.h-apps { padding: 88px 0; background: #fff; }
.h-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 32px; background: var(--color-bg-light); border-radius: 12px; }
.h-tab { padding: 10px 20px; border: 0; border-radius: 9px; background: none; font-size: 15px; font-weight: 600; color: var(--color-text-secondary); cursor: pointer; }
.h-tab[aria-selected="true"] { background: #fff; color: var(--color-primary-dark); box-shadow: 0 1px 4px rgba(29, 32, 136, .12); }
.h-panel:focus { outline: none; }
.h-panel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.h-panel__title { margin: 0 0 6px; font-size: 22px; color: var(--color-text); }
.h-panel__lead { margin: 0; color: var(--color-text-secondary); max-width: 640px; }
.h-apps__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.h-app { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--color-border-light); border-radius: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.h-app:hover { border-color: var(--color-border); box-shadow: 0 10px 30px rgba(29, 32, 136, .08); }
.h-app__icon { width: 44px; height: 44px; margin-bottom: 16px; }
.h-app__name { margin: 0 0 8px; font-size: 17px; line-height: 1.3; }
.h-app__name a { color: var(--color-text); text-decoration: none; }
.h-app__name a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.h-app__desc { flex: 1; margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--color-text-secondary); }
.h-chip { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--color-bg-light); color: var(--color-primary-dark); font-size: 12.5px; font-weight: 600; }
.h-chip--free { background: #DCFCE7; color: #166534; }
.h-kit { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 18px 24px; border-radius: 14px; background: var(--color-bg-light); color: var(--color-text); text-decoration: none; }
.h-kit span { color: var(--color-primary-dark); font-weight: 600; }
.h-kit:hover { background: var(--color-bg-card); }

/* ── Why ── */
.h-why { padding: 88px 0; background: var(--color-bg-section); }
.h-why__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.h-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border-radius: 18px; background: #fff; }
.h-card h3 { margin: 16px 0 10px; font-size: 20px; color: var(--color-text); }
.h-card p { margin: 0 0 12px; line-height: 1.6; color: var(--color-text-secondary); }
.h-card p a { color: var(--color-primary-dark); }
.h-card .h-link { margin-top: auto; padding-top: 8px; }
.h-card--feature { background: #1D2088; }
.h-card--feature h3 { color: #fff; }
.h-card--feature p { color: #D6D9FF; }
.h-card--feature p a, .h-card--feature .h-link { color: #fff; }
.h-card--feature img { padding: 6px; border-radius: 12px; background: #fff; }
.h-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.h-logos li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--color-text); }
.h-logos img { width: 28px; height: 28px; object-fit: contain; }

/* ── Reviews ── */
.h-reviews { padding: 88px 0; background: #fff; }
.h-ratings { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 32px; padding: 0; list-style: none; }
.h-ratings li { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border: 1px solid var(--color-border-light); border-radius: 14px; }
.h-ratings__score { font-size: 30px; font-weight: 800; color: var(--color-text); }
.h-ratings__label { font-size: 14px; line-height: 1.4; color: var(--color-text); font-weight: 600; }
.h-ratings__label small { font-weight: 400; color: var(--color-text-muted); font-size: 13px; }
.h-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.h-quote { display: flex; flex-direction: column; margin: 0; padding: 28px; border-radius: 18px; background: var(--color-bg-light); }
.h-quote blockquote { flex: 1; margin: 12px 0 20px; }
.h-quote blockquote p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--color-text); }
.h-quote figcaption { font-size: 14px; color: var(--color-text-secondary); }
.h-quote figcaption strong { color: var(--color-text); }
.h-quote figcaption a { display: block; margin-top: 4px; color: var(--color-primary-dark); font-weight: 600; text-decoration: none; }

/* ── Use cases ── */
.h-uc { padding: 88px 0; background: var(--color-bg-section); }
.h-uc__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.h-uc__card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 16px; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.h-uc__card a:hover { box-shadow: 0 12px 30px rgba(29, 32, 136, .1); transform: translateY(-2px); }
.h-uc__img { display: block; aspect-ratio: 331 / 180; overflow: hidden; background: var(--color-bg-light); }
.h-uc__img img { width: 100%; height: 100%; object-fit: cover; }
.h-uc__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.h-uc__body strong { font-size: 17px; color: var(--color-text); }
.h-uc__body span { font-size: 14.5px; line-height: 1.55; color: var(--color-text-secondary); }

/* ── News ── */
.h-news { padding: 88px 0; background: #fff; }
.h-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.h-news__card a { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.h-news__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 8px; border-radius: 14px; background: var(--color-bg-light); }
.h-news__img img { width: 100%; height: 100%; object-fit: cover; }
.h-news__card time { font-size: 13px; color: var(--color-text-muted); }
.h-news__card strong { font-size: 17px; line-height: 1.4; color: var(--color-text); }
.h-news__card a:hover strong { color: var(--color-primary-dark); }

/* ── FAQ ── */
.h-faq { padding: 88px 0; background: var(--color-bg-section); }
.h-faq__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.h-faq__more { margin-top: 16px; color: var(--color-text-secondary); }
.h-faq__more a { color: var(--color-primary-dark); }
.h-faq__list details { border-bottom: 1px solid var(--color-border); }
.h-faq__list summary { position: relative; padding: 20px 40px 20px 0; font-size: 17px; font-weight: 700; color: var(--color-text); cursor: pointer; list-style: none; }
.h-faq__list summary::-webkit-details-marker { display: none; }
.h-faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--color-primary-dark); }
.h-faq__list details[open] summary::after { content: "–"; }
.h-faq__list p { margin: 0 0 20px; line-height: 1.65; color: var(--color-text-secondary); }
.h-faq__list p a { color: var(--color-primary-dark); }

/* ── Final CTA ── */
.h-final { padding: 72px 0; background: #1D2088; background-image: radial-gradient(circle at 85% 20%, rgba(92, 101, 245, .55), transparent 55%); }
.h-final__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.h-final__title { margin: 0 0 10px; font-size: 34px; font-weight: 800; color: #fff; }
.h-final__lead { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: #D6D9FF; }
.h-final__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.h-final__link { color: #fff; font-weight: 600; text-decoration: none; }
.h-final__link:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .h-apps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-why__grid { grid-template-columns: 1fr 1fr; }
  .h-card--feature { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .h-hero { padding: 40px 0 40px; }
  .h-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .h-hero__title { font-size: 34px; }
  .h-hero__lead { font-size: 17px; }
  .h-h2 { font-size: 28px; }
  .h-quotes, .h-uc__grid, .h-news__grid { grid-template-columns: 1fr 1fr; }
  .h-faq__grid { grid-template-columns: 1fr; gap: 8px; }
  .h-apps, .h-why, .h-reviews, .h-uc, .h-news, .h-faq { padding: 64px 0; }
}
@media (max-width: 640px) {
  .h-wrap { padding: 0 16px; }
  .h-hero__title { font-size: 29px; }
  .h-hero__actions .h-btn, .h-final__actions .h-btn { width: 100%; }
  .h-tabs { display: flex; overflow-x: auto; max-width: 100%; }
  .h-tab { flex: 0 0 auto; padding: 10px 14px; font-size: 14px; }
  .h-apps__grid, .h-why__grid, .h-quotes, .h-uc__grid, .h-news__grid { grid-template-columns: 1fr; }
  .h-card { padding: 24px; }
  .h-final__title { font-size: 28px; }
  .h-apps, .h-why, .h-reviews, .h-uc, .h-news, .h-faq { padding: 48px 0; }
  .h-head { margin-bottom: 24px; }
  .h-hero__lead { margin-bottom: 24px; }
  /* Phone: keep the page scannable — compact rows instead of stacked cards. */
  .h-apps__grid { gap: 10px; }
  .h-app { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; }
  .h-app__icon { grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; }
  .h-app__name { font-size: 16px; margin-bottom: 4px; }
  .h-app__desc { display: none; }
  .h-chip { grid-column: 2; }
  .h-why__grid { gap: 12px; }
  .h-quotes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; }
  .h-quote { flex: 0 0 85%; scroll-snap-align: start; padding: 22px; }
  .h-ratings li { flex: 1 1 100%; padding: 12px 16px; }
  .h-uc__card:nth-child(n+5) { display: none; }
  .h-uc__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .h-uc__body { padding: 12px 14px 16px; }
  .h-uc__body strong { font-size: 15px; }
  .h-uc__body span { display: none; }
  .h-news__img { display: none; }
  .h-news__grid { gap: 0; }
  .h-news__card a { padding: 14px 0; border-bottom: 1px solid var(--color-border-light); gap: 4px; }
  .h-news__card strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-btn, .h-uc__card a { transition: none; }
  .h-btn:hover, .h-uc__card a:hover { transform: none; }
}

/* ── Productivity Kits ── */
.h-kits { padding: 88px 0; background: #1D2088; background-image: radial-gradient(circle at 10% 0%, rgba(92, 101, 245, .5), transparent 50%), radial-gradient(circle at 95% 100%, rgba(92, 101, 245, .35), transparent 45%); }
.h-kits .h-h2 { color: #fff; }
.h-eyebrow--light { color: #A5ABFF; }
.h-kits__head { max-width: 780px; }
.h-kits__lead { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: #D6D9FF; }
.h-kits__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.h-kit-card { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: 20px; background: #fff; }
.h-kit-card__platform { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--color-primary-dark); }
.h-kit-card__name { margin: 0 0 16px; font-size: 21px; line-height: 1.3; color: var(--color-text); }
.h-kit-card__price { margin: 0; font-size: 15px; color: var(--color-text-secondary); }
.h-kit-card__price strong { font-size: 30px; font-weight: 800; color: var(--color-text); margin-right: 4px; }
.h-kit-card__save { margin: 8px 0 20px; padding: 10px 12px; border-radius: 10px; background: var(--color-bg-light); color: var(--color-primary-darker); font-size: 14px; font-weight: 600; line-height: 1.4; }
.h-kit-card__count { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.h-kit-card__apps, .h-kit-card__points { flex: 1; margin: 0 0 24px; padding: 0; list-style: none; }
.h-kit-card__apps li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14.5px; color: var(--color-text); }
.h-kit-card__apps img { width: 24px; height: 24px; flex: none; }
.h-kit-card__apps .h-kit-card__more { padding-left: 34px; font-size: 13.5px; color: var(--color-text-muted); }
.h-kit-card__points li { position: relative; padding: 6px 0 6px 26px; font-size: 14.5px; line-height: 1.5; color: var(--color-text); }
.h-kit-card__points li::before { content: "✓"; position: absolute; left: 2px; top: 6px; color: #2BB062; font-weight: 800; }
.h-kit-card__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.h-kit-card__actions .h-btn { min-height: 46px; padding: 0 22px; font-size: 15px; }
@media (max-width: 1100px) {
  .h-kits__grid { grid-template-columns: 1fr 1fr; }
  .h-kit-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .h-kits { padding: 48px 0; }
  /* Three tall cards stacked are 2,000 px on a phone: swipe between them instead. */
  .h-kits__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 16px 16px 12px; }
  .h-kit-card { flex: 0 0 86%; scroll-snap-align: center; }
  .h-kit-card { padding: 28px 20px 22px; }
  .h-kit-card__apps li { padding: 4px 0; font-size: 14px; }
}

/* Anchored sections clear the sticky header. */
#apps, #kits { scroll-margin-top: 110px; }
