/* Verdexa — editorial data observatory: white canvas, ash bands, one ember accent, zero elevation */

:root {
  --graphite: #202020;
  --white: #ffffff;
  --ash: #efefef;
  --fog: #f5f5f5;
  --ivory: #ebe6dd;
  --steel: #4d4d4d;
  --slate: #828282;
  --mist: #e8e8e8;
  --ember: #ff682c;
  --brass: #816729;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-20: 20px;
  --sp-36: 36px;
  --sp-40: 40px;
  --sp-60: 60px;
  --sp-80: 80px;

  --page: 1200px;
  --r-card: 8px;
  --r-tag: 20px;
  --r-pill: 200px;
  --r-widget: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--graphite); color: var(--white); padding: var(--sp-12) var(--sp-20); z-index: 60; }
.skip:focus { left: var(--sp-20); top: var(--sp-12); }

.container { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--sp-20); }
.container--narrow { max-width: 780px; }

/* ——— logo ——— */

.logo { text-decoration: none; }
.logo__text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.logo__accent { color: var(--ember); }
.logo__text--footer { font-size: 26px; }

/* ——— header: wordmark left, floating pill nav, dark CTA right ——— */

.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--mist); }
.header__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: var(--sp-16) var(--sp-20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-20);
}
.navpill {
  display: flex;
  align-items: center;
  gap: var(--sp-20);
  background: var(--ash);
  border-radius: var(--r-pill);
  padding: var(--sp-8) 18px;
}
.navpill__link {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.navpill__link:hover { color: var(--ember); }
.header__cta { flex: none; }

.burger { display: none; background: none; border: 1px solid var(--graphite); color: var(--graphite); padding: var(--sp-8) var(--sp-12); cursor: pointer; }

.mobile-nav { display: none; flex-direction: column; padding: 0 var(--sp-20) var(--sp-20); }
.mobile-nav__link { text-decoration: none; padding: var(--sp-12) 0; border-bottom: 1px solid var(--mist); font-family: var(--font-display); }

/* ——— buttons ——— */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  background: none;
  color: var(--graphite);
}
.btn--dark { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: var(--graphite); }
.btn--ghost:hover { background: var(--ash); }
.btn--sm { padding: 7px 14px; font-size: 14px; }

.link { text-decoration: none; border-bottom: 1px solid var(--ember); padding-bottom: 2px; }
.link:hover { color: var(--ember); }

/* ——— typography ——— */

.eyebrow { font-family: var(--font-display); font-size: 13px; color: var(--brass); letter-spacing: -0.02em; margin-bottom: var(--sp-20); }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.section__note { color: var(--slate); margin-top: var(--sp-12); max-width: 68ch; font-size: 15px; }
.prose { color: var(--steel); font-size: 17px; line-height: 1.55; margin-bottom: var(--sp-16); max-width: 62ch; }

.section { padding-block: var(--sp-80); scroll-margin-top: 84px; }
.section--ash { background: var(--ash); }
.section__head { margin-bottom: var(--sp-40); }

/* ——— hero ——— */

.hero { padding-block: var(--sp-80) var(--sp-60); scroll-margin-top: 84px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-60); align-items: center; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero__lead { color: var(--steel); font-size: 18px; line-height: 1.45; margin-top: var(--sp-20); max-width: 52ch; }
.hero__actions { display: flex; gap: var(--sp-12); flex-wrap: wrap; margin-top: var(--sp-36); }

.cluster { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
.cluster .datacard--chart { grid-column: 1 / -1; }

.datacard {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-widget);
  padding: var(--sp-20);
}
.section--ash .datacard, .cluster .datacard { border-color: var(--mist); }
.datacard__label { font-family: var(--font-display); font-size: 13px; color: var(--slate); letter-spacing: -0.02em; }
.datacard__big {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-block: var(--sp-8);
}
.datacard__foot { font-size: 13px; color: var(--slate); }
.chart { width: 100%; height: auto; margin-block: var(--sp-12); }
.ring { width: 78px; height: 78px; margin-block: var(--sp-12); }

/* ——— genre strip ——— */

.strip { padding-block: var(--sp-40); border-block: 1px solid var(--mist); }
.strip__caption { font-family: var(--font-display); font-size: 13px; color: var(--brass); margin-bottom: var(--sp-16); }
.strip__list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-36); }
.strip__item { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; color: var(--graphite); }

/* ——— filters ——— */

.filters { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-bottom: var(--sp-36); }
.pill {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.02em;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  color: var(--graphite);
  cursor: pointer;
}
.pill:hover { border-color: var(--graphite); }
.pill--active { background: var(--ash); border-color: var(--graphite); }

/* ——— entries: horizontal editorial rows ——— */

.entries { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-20); }
.entry {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: var(--ash);
  border-radius: 6px 0 0;
  overflow: hidden;
}
.entry[hidden] { display: none; }
.entry__media { display: block; }
.entry__media img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.entry__body { padding: var(--sp-20); display: flex; flex-direction: column; }
.entry__head { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-12); align-items: start; }
.entry__icon { width: 44px; height: 44px; border-radius: var(--r-card); }
.entry__title { font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
.entry__dev { font-size: 13px; color: var(--slate); }
.tag {
  font-family: var(--font-display);
  font-size: 12px;
  border-radius: var(--r-tag);
  border: 1px solid var(--brass);
  color: var(--brass);
  padding: 2px 10px;
  white-space: nowrap;
}
.entry__text { color: var(--steel); font-size: 14px; margin-top: var(--sp-12); flex: 1; }
.entry__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-12); margin-top: var(--sp-16); flex-wrap: wrap; }
.grid__empty { color: var(--slate); }

/* ——— stars ——— */

.rating { display: flex; align-items: center; gap: var(--sp-8); }
.rating__value { font-size: 13px; color: var(--steel); }
.rating__free { font-size: 12px; color: var(--brass); border-left: 1px solid var(--mist); padding-left: var(--sp-8); }
.stars { position: relative; display: inline-flex; line-height: 0; }
.stars__base, .stars__fill { display: inline-flex; gap: 2px; }
.stars__base svg { fill: #d6d6d6; }
.stars__fill { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; }
.stars__fill svg { fill: var(--ember); flex: none; }

/* ——— steps ——— */

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-20); }
.steps__item { background: var(--white); border-radius: 6px 0 0; padding: var(--sp-20); }
.steps__num { font-family: var(--font-display); font-size: 13px; color: var(--ember); }
.steps__title { font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: -0.02em; margin-block: var(--sp-8); }
.steps__text { color: var(--steel); font-size: 14px; }

/* ——— dashboard ——— */

.dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-20); align-items: start; }
.dashboard .datacard:first-child { grid-column: span 2; }

/* ——— feature (asymmetric card) ——— */

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-60); align-items: center; }
.feature__text { background: var(--ivory); border-radius: 6px 0 0; padding: var(--sp-40); }
.feature__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px 0 0; }
.feature__caption { font-size: 13px; color: var(--slate); margin-top: var(--sp-12); }
.bullets { list-style: none; display: grid; gap: var(--sp-12); margin-bottom: var(--sp-16); }
.bullets__item { color: var(--steel); font-size: 15px; padding-left: var(--sp-20); position: relative; }
.bullets__item::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--ember); }

/* ——— trio ——— */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-20); }
.trio__item { background: var(--white); border-radius: var(--r-widget); padding: var(--sp-40) var(--sp-20); }
.trio__icon { color: var(--graphite); margin-bottom: var(--sp-16); }
.trio__title { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: -0.02em; margin-bottom: var(--sp-8); }
.trio__text { color: var(--steel); font-size: 14px; }

/* ——— reviews ——— */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-20); }
.reviews__card { background: var(--fog); border-radius: 6px 0 0; padding: var(--sp-36) var(--sp-20) var(--sp-20); }
.reviews__quote { font-family: var(--font-display); font-size: 17px; line-height: 1.35; letter-spacing: -0.02em; margin-bottom: var(--sp-20); }
.reviews__author { display: flex; align-items: center; gap: var(--sp-12); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--graphite); color: var(--white); display: grid; place-items: center; font-size: 12px; flex: none; }
.reviews__name { display: block; font-size: 14px; }
.reviews__role { display: block; font-size: 13px; color: var(--slate); }

/* ——— subscribe ——— */

.subscribe { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-60); align-items: start; }
.form { display: grid; gap: var(--sp-16); background: var(--white); border-radius: 6px 0 0; padding: var(--sp-40); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
.form__row { display: grid; gap: var(--sp-8); }
.form__label { font-family: var(--font-display); font-size: 13px; }
.form__opt { color: var(--slate); }
.form__input { border: 1px solid var(--mist); border-radius: 0; background: var(--white); padding: 11px 14px; font-family: inherit; font-size: 15px; color: var(--graphite); width: 100%; }
.form__input:focus { border-color: var(--graphite); }
.form__consent { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-12); align-items: start; color: var(--steel); font-size: 13px; }
.form__consent input { margin-top: 3px; accent-color: var(--ember); }
.form button[type="submit"] { justify-self: start; }
.form__error { font-size: 14px; border-left: 2px solid var(--ember); padding-left: var(--sp-12); }
.form__success { font-size: 14px; border-left: 2px solid var(--ember); padding-left: var(--sp-12); color: var(--steel); }

/* ——— faq ——— */

.faq__item { border-bottom: 1px solid var(--mist); }
.faq__item:first-child { border-top: 1px solid var(--mist); }
.faq__q { font-weight: 400; }
.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
  background: none;
  border: none;
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.02em;
  text-align: left;
  padding: var(--sp-20) 0;
  cursor: pointer;
}
.faq__chevron { transition: transform .2s ease; flex: none; }
.faq__item--open .faq__chevron { transform: rotate(180deg); }
.faq__a { padding-bottom: var(--sp-20); color: var(--steel); font-size: 15px; max-width: 68ch; }

/* ——— footer ——— */

.footer { padding-block: var(--sp-60); background: var(--ash); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-36); }
.footer__tag { color: var(--steel); font-size: 14px; margin-top: var(--sp-12); max-width: 34ch; }
.footer__col { display: flex; flex-direction: column; gap: var(--sp-8); }
.footer__title { font-family: var(--font-display); font-size: 13px; font-weight: 400; color: var(--brass); margin-bottom: var(--sp-8); }
.footer__link { text-decoration: none; color: var(--steel); font-size: 14px; }
.footer__link:hover { color: var(--ember); }
.footer__bottom { margin-top: var(--sp-40); padding-top: var(--sp-20); border-top: 1px solid var(--mist); color: var(--slate); font-size: 13px; }

/* ——— to top + cookie ——— */

.totop { position: fixed; right: var(--sp-20); bottom: var(--sp-20); z-index: 40; width: 42px; height: 42px; display: grid; place-items: center; background: var(--graphite); color: var(--white); border: none; border-radius: 0; cursor: pointer; }
.totop[hidden] { display: none; }

.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--white); border-top: 1px solid var(--graphite); padding: var(--sp-16) var(--sp-20); display: flex; align-items: center; justify-content: center; gap: var(--sp-20); flex-wrap: wrap; }
.cookie[hidden] { display: none; }
.cookie__text { color: var(--steel); font-size: 14px; max-width: 70ch; }
.cookie__actions { display: flex; gap: var(--sp-8); }

/* ——— legal ——— */

.legal { padding-block: var(--sp-60) var(--sp-80); }
.legal__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.legal__updated { color: var(--slate); font-size: 14px; margin-top: var(--sp-12); }
.legal__back { margin-top: var(--sp-20); }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: -0.02em; margin-top: var(--sp-40); margin-bottom: var(--sp-12); }
.legal h3 { font-family: var(--font-display); font-weight: 400; font-size: 18px; margin-top: var(--sp-20); margin-bottom: var(--sp-8); }
.legal p, .legal li { color: var(--steel); font-size: 15px; max-width: 74ch; }
.legal p { margin-bottom: var(--sp-12); }
.legal ul { margin: 0 0 var(--sp-16) var(--sp-20); }
.legal li { margin-bottom: var(--sp-8); }

/* ——— responsive ——— */

@media (max-width: 1100px) {
  .navpill { display: none; }
  .header__cta { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  .steps, .dashboard { grid-template-columns: repeat(2, 1fr); }
  .dashboard .datacard:first-child { grid-column: span 2; }
}

@media (max-width: 960px) {
  .hero__inner, .feature, .feature--reverse, .subscribe { grid-template-columns: 1fr; gap: var(--sp-36); }
  .feature--reverse .feature__figure { order: 2; }
  .entries { grid-template-columns: 1fr; }
  .reviews, .trio { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-60); }
}

@media (max-width: 620px) {
  .entry { grid-template-columns: 1fr; }
  .entry__media img { aspect-ratio: 16 / 10; }
  .steps, .dashboard { grid-template-columns: 1fr; }
  .dashboard .datacard:first-child { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form, .feature__text { padding: var(--sp-20); }
  .form__grid { grid-template-columns: 1fr; }
  .strip__list { gap: var(--sp-16); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq__chevron { transition: none; }
}
