.hero {
  padding-top: 80px;
  padding-bottom: 72px;
  position: relative;
}
.hero > * {
  position: relative;
  z-index: 2;
}
.hero__rain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__rain .rain {
  position: absolute;
  inset: 0;
  transform: rotate(12deg);
  transform-origin: center;
}
.hero__rain .rain.back-row {
  z-index: 0;
  bottom: 60px;
  opacity: 0.4;
}
.hero__rain .rain.front-row {
  z-index: 1;
  opacity: 0.85;
}
.hero__rain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(252, 242, 235) 0%, rgba(252, 242, 235, 0) 80%);
  z-index: 3;
  pointer-events: none;
}
.hero__rain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(252, 242, 235, 0) 0%, rgba(252, 242, 235, 0) 50%, rgba(252, 242, 235, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero__rain {
    display: none;
  }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.hero__title {
  margin: 0 0 20px;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 14ch;
  color: var(--ink);
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
}
.hero__hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}

.search {
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 640px;
  box-shadow: 0 1px 0 rgba(14, 17, 17, 0.02);
  position: relative;
}
.search__icon {
  width: 20px;
  height: 20px;
  margin-left: 12px;
  color: var(--ink-3);
  flex: none;
}
.search__input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 12px 4px;
  outline: none;
  min-width: 0;
}
.search__input::placeholder {
  color: var(--ink-4);
}
.search__btn {
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}
.search__btn:hover {
  filter: brightness(1.05);
}
.search__results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(14, 17, 17, 0.08);
  overflow: hidden;
  z-index: 5;
}
.search__results[hidden] {
  display: none;
}
.search__result {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  border-top: 1px solid var(--line-2);
  font: inherit;
}
.search__result:first-child {
  border-top: 0;
}
.search__result:hover {
  background: var(--surface-2);
}
.search__result-pin {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}
.search__result-title {
  font-size: 14px;
  color: var(--ink);
}
.search__result-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.search__result-grade {
  font-size: 11px;
  color: var(--ink-3);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
@media (max-width: 760px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
}
.stat__num {
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.stat__label {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
}
@media (max-width: 760px) {
  .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0;
  }
  .stat:nth-child(odd) {
    padding-right: 16px;
  }
  .stat:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }
  .stat:nth-child(-n+2) {
    border-top: 0;
  }
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}
.section--no-top-pad {
  padding-top: 0;
}
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section__title {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink);
  max-width: 18ch;
}
.section__lead {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0;
  line-height: 1.55;
}
.section__more {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.section__more:hover {
  text-decoration: underline;
}

.how {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 800px) {
  .how__grid {
    grid-template-columns: 1fr;
  }
}
.how__step {
  padding: 32px 36px 32px 0;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.how__step:first-child {
  border-left: 0;
  padding-left: 0;
}
@media (max-width: 800px) {
  .how__step {
    border-left: 0;
    padding: 24px 0;
    border-top: 1px solid var(--line);
  }
  .how__step:first-child {
    border-top: 0;
    padding-top: 0;
  }
}
.how__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.how__title {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink);
}
.how__copy {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.blog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) {
  .blog {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .blog {
    grid-template-columns: 1fr;
  }
}

.post {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--ink);
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}
.post:hover {
  text-decoration: none;
}
.post__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.4s ease;
}
.post:hover .post__img {
  transform: scale(1.04);
}
.post__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 17, 17, 0) 30%, rgba(14, 17, 17, 0.78) 100%);
}
.post__body {
  position: absolute;
  inset: 0;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.post__tag {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.post__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: #fff;
}
.post__meta {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) {
  .cats-grid {
    grid-template-columns: 1fr;
  }
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  text-decoration: none;
}
.cat-card:hover {
  border-color: var(--ink-4);
  text-decoration: none;
}
.cat-card__title {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 400;
}
.cat-card__copy {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.newsletter {
  padding-top: 80px;
  padding-bottom: 0;
}
.newsletter__card {
  background: linear-gradient(180deg, #0047ff 0%, #0038cc 100%);
  border: 0;
  border-radius: 18px;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 22px 50px -26px rgba(0, 71, 255, 0.55), 0 10px 22px -14px rgba(0, 0, 0, 0.18);
}
.newsletter__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 80px);
  mix-blend-mode: overlay;
  opacity: 0.7;
}
@media (max-width: 860px) {
  .newsletter__card {
    padding: 36px 28px;
  }
}
.newsletter__meta {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}
.newsletter__body {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .newsletter__body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.newsletter__title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 400;
  color: #fff;
  max-width: 18ch;
  text-wrap: balance;
}
.newsletter__copy {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 44ch;
}
.newsletter__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.newsletter__points li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}
.newsletter__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}
.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.newsletter__label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.newsletter__field {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.newsletter__field:focus-within {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
.newsletter__input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: #fff;
  padding: 10px 12px;
  outline: none;
  min-width: 0;
}
.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.newsletter__btn {
  padding: 11px 22px;
  background: #fff;
  color: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  font-weight: 500;
  box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, color 0.15s ease;
}
.newsletter__btn:hover {
  background: var(--ink);
  color: #fff;
}
.newsletter__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.newsletter__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  user-select: none;
}
.newsletter__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.newsletter__check-box {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.newsletter__check input:checked + .newsletter__check-box {
  background: #fff;
  border-color: #fff;
}
.newsletter__check input:checked + .newsletter__check-box::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translate(1px, -1px);
}
.newsletter__count {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}
.newsletter__fine {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}
.newsletter__fine a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.newsletter__fine a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.cta {
  padding-top: 80px;
  padding-bottom: 80px;
}
.cta__card {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 32px;
}
@media (max-width: 760px) {
  .cta__card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
}
.cta__title {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.015em;
  font-weight: 400;
  line-height: 1.2;
  max-width: 22ch;
}
.cta__btn {
  justify-self: end;
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.cta__btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
@media (max-width: 760px) {
  .cta__btn {
    justify-self: start;
  }
}

.social-band {
  padding: 80px 0 64px;
}
.social-band__inner {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .social-band__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.social-band__meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.social-band__title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 400;
  color: var(--ink);
  max-width: 16ch;
  text-wrap: balance;
}
.social-band__copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 40ch;
}
.social-band__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .social-band__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .social-band__grid {
    grid-template-columns: 1fr;
  }
}

.social-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.social-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  text-decoration: none;
}
.social-card__icon {
  grid-row: 1/span 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social-card__icon svg {
  width: 20px;
  height: 20px;
}
.social-card:hover .social-card__icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.social-card__net {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.social-card__handle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.social-card__arrow {
  grid-row: 1/span 2;
  align-self: center;
  font-size: 14px;
  color: var(--ink-3);
  transition: transform 0.15s ease, color 0.15s ease;
}
.social-card:hover .social-card__arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}
