/* ==========================================================================
   媒知知 · 门户网站基础层
   --------------------------------------------------------------------------
   主题色与设计语言直接取自微信小程序：
     frontend/miniprogram/src/styles/tokens.scss
     frontend/miniprogram/src/app.config.ts（tabBar / navigationBar 色值）
   命名与取值保持一致，便于后续两端同步改版。

   文件分层：
     base.css        —— 令牌、重置、排版、栅格、页头页脚、按钮、基础组件
     components.css  —— 卡片、流程、案例、资讯、会员、活动、表单等内容组件
     pages.css       —— 首页与各内页的专属布局
   ========================================================================== */

/* ==========================================================================
   1. 设计令牌
   ========================================================================== */
:root {
  /* —— 品牌紫：与 tokens.scss 的 $c-primary / $c-primary-strong 等一致 —— */
  --primary: #a062d4;
  --primary-strong: #7e35c4;
  --primary-deep: #8a3eca;
  --primary-ink: #6e4a8c;
  --primary-light: #be94e2;
  --primary-lighter: #d2b5eb;
  --primary-fade: #e6d5f3;
  --primary-tint: #f8f3fc;
  --primary-selected: #efe2fa;
  --primary-a90: rgba(160, 98, 212, 0.9);

  /* —— 辅助强调色：珊瑚粉，婚恋情绪锚点 —— */
  --accent: #ff7a95;
  --accent-bg: #fff0f3;
  --accent-text: #c9184a;

  /* —— 中性色 —— */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --subtle: #fafafa;
  --ink: #262626;
  --ink-2: #595959;
  --ink-3: #6e6e6e;
  --ink-disabled: #bfbfbf;
  --border: #d9d9d9;
  --border-light: #f0f0f0;
  --border-strong: #e0e0e0;

  /* —— 语义色 —— */
  --success: #52c41a;
  --success-bg: #f6ffed;
  --success-text: #237804;
  --success-border: #b7eb8f;
  --warning: #faad14;
  --warning-bg: #fffbe6;
  --warning-text: #7a5c14;
  --warning-border: #ffe58f;
  --danger: #ff4d4f;
  --danger-bg: #fff1f0;
  --danger-text: #cf1322;
  --info: #2a6ee8;
  --info-bg: #eef4ff;
  --money: #c9184a;

  /* —— 深紫区块（页脚 / 入驻 CTA）—— */
  --deep: #241031;
  --deep-2: #331445;
  --deep-3: #4a1f68;
  --deep-gradient: linear-gradient(135deg, #2c1140 0%, #4a1f68 52%, #7e35c4 100%);

  /* —— 字体 —— */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui,
    -apple-system, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* —— 圆角：与 tokens.scss 的 8 / 12 / 20 / 24 / 999 一致 —— */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-full: 999px;

  /* —— 阴影：直接沿用小程序指定值 —— */
  --shadow-card: 0 2px 12px rgba(31, 31, 31, 0.05);
  --shadow-raise: 0 6px 20px rgba(31, 31, 31, 0.1);
  --shadow-float: 0 18px 48px rgba(60, 30, 90, 0.14);
  --shadow-primary: 0 6px 16px rgba(160, 98, 212, 0.32);

  /* —— 布局 —— */
  --container: 1200px;
  --gutter: 32px;
  --header-h: 76px;

  /* —— 动效 —— */
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
  --t-fast: 150ms ease;
  --t-base: 300ms var(--ease);
}

/* ==========================================================================
   2. 重置与基础排版
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(26px, 2.9vw, 38px);
  line-height: 1.3;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 16px;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--primary-deep);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--primary-strong);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

em {
  font-style: normal;
}

::selection {
  background: var(--primary-selected);
  color: var(--primary-strong);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   3. 布局工具
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 880px;
}

.section {
  position: relative;
  padding: 88px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--white {
  background: var(--surface);
}

.section--tint {
  background:
    radial-gradient(620px 380px at 92% 0%, rgba(190, 148, 226, 0.18), transparent 70%),
    var(--primary-tint);
}

.section--page {
  background: var(--bg);
}

.section--dark {
  background: var(--deep-gradient);
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--flush-top {
  padding-top: 0;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--gap-sm {
  gap: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.center {
  text-align: center;
}

.muted {
  color: var(--ink-3);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-full);
  background: var(--primary-strong);
  color: #fff;
  font-size: 14px;
  transform: translateY(-180%);
  transition: transform var(--t-fast);
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

[hidden] {
  display: none !important;
}

/* 装饰点阵：与小程序「纯 CSS 几何图形」的插画策略一致，不引入图片资源 */
.dots {
  background-image: radial-gradient(rgba(160, 98, 212, 0.26) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ==========================================================================
   4. 图标
   ========================================================================== */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-tint);
  color: var(--primary-deep);
  flex: none;
}

.icon-tile--accent {
  background: var(--accent-bg);
  color: var(--accent-text);
}

.icon-tile--deep {
  background: var(--primary-strong);
  color: #fff;
}

/* ==========================================================================
   5. 按钮与文字链接
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--t-base),
    box-shadow var(--t-base),
    background-color var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary) 100%);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(126, 53, 196, 0.34);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--primary-fade);
  color: var(--primary-deep);
}

.btn--ghost:hover {
  background: var(--primary-tint);
  border-color: var(--primary-light);
  color: var(--primary-strong);
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: 0 8px 24px rgba(20, 5, 30, 0.2);
}

.btn--light:hover {
  color: var(--primary-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(20, 5, 30, 0.26);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: transparent;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--lg {
  height: 54px;
  padding: 0 30px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-deep);
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--t-base);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

.text-link {
  font-weight: 500;
  color: var(--primary-deep);
  border-bottom: 1px solid var(--primary-fade);
  padding-bottom: 1px;
}

.text-link:hover {
  border-color: var(--primary);
}

/* ==========================================================================
   6. 区块标题
   ========================================================================== */
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section__head-main {
  max-width: 700px;
}

.section__head--center {
  display: block;
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--primary-deep);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.eyebrow--center::after {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.eyebrow--light {
  color: var(--primary-lighter);
}

.eyebrow--light::before,
.eyebrow--light::after {
  background: var(--primary-light);
}

.section__title {
  margin-bottom: 16px;
}

.section__lead {
  color: var(--ink-3);
  font-size: 16.5px;
  line-height: 1.85;
}

.section--dark .section__lead {
  color: rgba(255, 255, 255, 0.72);
}

.section__aside {
  flex: none;
  padding-bottom: 6px;
}

/* ==========================================================================
   7. 页头
   ========================================================================== */
.topbar {
  position: relative;
  z-index: 60;
  height: 38px;
  background: linear-gradient(90deg, var(--primary-strong) 0%, var(--primary) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.topbar__note,
.topbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar__note .icon {
  color: var(--primary-lighter);
}

.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.topbar__links a:hover {
  color: #fff;
}

.topbar__sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-light);
  transition:
    box-shadow var(--t-base),
    background-color var(--t-base),
    border-color var(--t-base);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(31, 31, 31, 0.07);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary-light) 100%);
  box-shadow: 0 4px 12px rgba(126, 53, 196, 0.24);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 2px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__text strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.brand__text small {
  color: var(--ink-3);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--r-full);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    color var(--t-fast),
    background-color var(--t-fast);
}

.nav__link:hover {
  color: var(--primary-deep);
  background: var(--primary-tint);
}

.nav__link.is-active,
.nav__link[aria-current="page"] {
  color: var(--primary-deep);
  background: var(--primary-tint);
  font-weight: 600;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle__close {
  display: none;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(26, 12, 36, 0.42);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--t-base),
    visibility var(--t-base);
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

body.nav-open .nav-toggle__open {
  display: none;
}

body.nav-open .nav-toggle__close {
  display: block;
}

/* ==========================================================================
   8. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 98, 212, 0.28), transparent 68%);
  pointer-events: none;
}

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-top: 68px;
  padding-bottom: 52px;
}

.footer__brand .brand {
  margin-bottom: 18px;
}

.footer__brand .brand__text strong {
  color: #fff;
}

.footer__brand .brand__text small {
  color: rgba(255, 255, 255, 0.5);
}

.footer__desc {
  max-width: 36em;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.85;
}

.footer__contact {
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__contact .icon {
  color: var(--primary-light);
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.78);
}

.footer__contact a:hover {
  color: #fff;
}

.footer__col h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.footer__list {
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.66);
}

.footer__list a:hover {
  color: #fff;
}

.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.46);
  font-size: 12.5px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.55);
}

.footer__legal a:hover {
  color: #fff;
}

.footer__note {
  position: relative;
  margin: 0;
  padding-bottom: 26px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 12px;
  line-height: 1.7;
}

/* ==========================================================================
   9. 徽标 / 标签 / 胶囊
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.badge--success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.badge--warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.badge--neutral {
  background: var(--bg);
  border-color: var(--border-light);
  color: var(--ink-2);
}

.badge--primary {
  background: var(--primary-tint);
  border-color: var(--primary-fade);
  color: var(--primary-deep);
}

.badge--accent {
  background: var(--accent-bg);
  border-color: var(--accent-bg);
  color: var(--accent-text);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid var(--primary-fade);
  border-radius: var(--r-full);
  background: var(--primary-tint);
  color: var(--primary-deep);
  font-size: 12.5px;
  white-space: nowrap;
}

/* ==========================================================================
   10. 滚动出现动画
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   11. 响应式
   ========================================================================== */
@media (max-width: 1180px) {
  :root {
    --gutter: 24px;
  }

  .nav__link {
    padding: 8px 10px;
    font-size: 14px;
  }

  .nav {
    gap: 8px;
  }
}

@media (max-width: 1080px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 49;
    display: block;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 20px var(--gutter) 28px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 24px 40px rgba(31, 31, 31, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity var(--t-base),
      transform var(--t-base),
      visibility var(--t-base);
  }

  body.nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    display: grid;
    gap: 2px;
    margin-bottom: 18px;
  }

  .nav__link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav__actions {
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
  }

  .nav__actions .btn {
    flex: 1;
    height: 46px;
  }

  .site-header {
    position: sticky;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 64px 0;
  }

  .section--tight {
    padding: 48px 0;
  }

  .section__head {
    display: block;
    margin-bottom: 32px;
  }

  .section__aside {
    margin-top: 20px;
  }

  .topbar__note {
    max-width: 62vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --header-h: 62px;
  }

  body {
    font-size: 15.5px;
  }

  .section {
    padding: 56px 0;
  }

  .section--tight {
    padding: 44px 0;
  }

  .grid,
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topbar {
    height: 34px;
    font-size: 11.5px;
  }

  .topbar__links > a:first-child,
  .topbar__sep {
    display: none;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 20px;
    border-radius: 12px;
  }

  .brand__text strong {
    font-size: 18px;
  }

  .brand__text small {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 48px;
    padding-bottom: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn {
    height: 48px;
  }

  .btn--lg {
    height: 50px;
    padding: 0 24px;
  }

  .section__lead {
    font-size: 15.5px;
  }
}

@media (max-width: 420px) {
  .nav__actions {
    flex-direction: column;
  }

  .nav__actions .btn {
    width: 100%;
  }
}
