/* ============================================================
   小红泡 · 互联网副业实战课程官网
   base.css — 设计令牌 / 基础排版 / 导航 / 按钮 / 表单 / 弹层 / 页脚
   ============================================================ */

:root {
  --brand: #FF6A2B;
  --brand-deep: #E23B2E;
  --brand-light: #FF8A4C;
  --amber: #FFB020;
  --ink: #241A14;
  --ink-2: #5A463A;
  --ink-3: #7B6658;
  --bg: #FFF8F2;
  --bg-2: #FFF3E9;
  --surface: #FFFFFF;
  --surface-2: #FFFDFB;
  --line: #F3E2D5;
  --line-strong: #EBCFBC;
  --soft: #FFF1E7;
  --soft-2: #FFF7ED;
  --grad: linear-gradient(135deg, #D93A1E 0%, #B3271C 100%);
  --grad-text: linear-gradient(120deg, #D93A1E 0%, #A82318 100%);
  --grad-soft: linear-gradient(135deg, #FFF3E6 0%, #FFE6D4 100%);
  --shadow-sm: 0 6px 18px rgba(163, 74, 28, 0.07);
  --shadow: 0 18px 44px rgba(163, 74, 28, 0.10);
  --shadow-lg: 0 30px 70px rgba(163, 74, 28, 0.16);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1200px;
  --header-h: 76px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
}

*,
*::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;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

::selection { background: rgba(255, 106, 43, 0.22); color: var(--ink); }

:focus-visible {
  outline: 3px solid rgba(255, 106, 43, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.wrap {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------- 通用文字与标签 ---------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #C2410C;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

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

.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.section-title {
  margin: 14px 0 14px;
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.9px;
}

.section-desc {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.hl {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-3);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: #B93A12;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.pill.is-amber { background: #FFF4D6; color: #8A5A00; }
.pill.is-plain { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.pill.is-muted { background: #F6F0EC; color: var(--ink-3); }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn .icon { width: 17px; height: 17px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 26px rgba(226, 59, 46, 0.26);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(226, 59, 46, 0.32); }
.btn-primary:active { transform: translateY(0); }

/* CTA 按钮 hover 流光 */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -75%;
  width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  animation: btn-shine 0.85s ease;
}

@keyframes btn-shine {
  0% { left: -75%; opacity: 0; }
  12% { opacity: 0.9; }
  100% { left: 130%; opacity: 0; }
}

@media (hover: none) {
  .btn-primary:hover::after { animation: none; opacity: 0; }
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--brand); color: #C2410C; }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
  min-height: 44px;
  padding: 0 14px;
}
.btn-ghost:hover { color: #C2410C; background: var(--soft); }

.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

.btn[disabled],
.btn.is-loading { cursor: progress; opacity: 0.78; pointer-events: none; }

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 顶部导航 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 242, 0.84);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(120, 62, 30, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink);
  flex: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 44px;
  filter: drop-shadow(0 6px 14px rgba(255, 106, 43, 0.18));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.main-nav a:hover { color: #C2410C; background: var(--soft); }
.main-nav a.is-active { color: #B93A12; background: var(--soft); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-actions .btn { min-height: 44px; padding: 0 22px; font-size: 14.5px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

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

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 98;
  background: rgba(255, 248, 242, 0.98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 22px 24px 40px;
  overflow-y: auto;
  display: none;
}
.mobile-nav.is-open { display: block; animation: fade-in 0.22s ease; }

.mobile-nav a.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.mobile-nav a.mobile-link .icon { color: var(--ink-3); width: 16px; height: 16px; }
.mobile-nav .mobile-actions { display: grid; gap: 12px; margin-top: 26px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- 表单 ---------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.is-full { grid-column: 1 / -1; }

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}
.field label .req { color: var(--brand-deep); font-size: 13px; }
.field label .opt { color: var(--ink-3); font-weight: 400; font-size: 12.5px; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.textarea { min-height: 108px; resize: vertical; }

.input::placeholder,
.textarea::placeholder { color: #B6A196; }

.input:hover,
.select:hover,
.textarea:hover { border-color: #E2C3AC; }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 106, 43, 0.14);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238B7567' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
  cursor: pointer;
}

.field.is-error .input,
.field.is-error .select,
.field.is-error .textarea {
  border-color: var(--brand-deep);
  background: #FFF7F6;
}
.field.is-error .input:focus,
.field.is-error .select:focus,
.field.is-error .textarea:focus { box-shadow: 0 0 0 4px rgba(226, 59, 46, 0.12); }

.field-error {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #B3271C;
}
.field.is-error .field-error { display: flex; }

.form-note { font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }
.form-note a { color: #B93A12; text-decoration: underline; text-underline-offset: 2px; }

/* 同意勾选 */
.field-check { gap: 6px; }
.field-check .check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-2);
  cursor: pointer;
}
.field-check .checkbox {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--brand);
  cursor: pointer;
}
.field-check a { color: #B93A12; text-decoration: underline; text-underline-offset: 2px; }
.field-check.is-error .checkbox { outline: 2px solid var(--brand-deep); outline-offset: 2px; }

/* 提交失败 / 通道未配置提示 */
.form-alert {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 15px;
  border: 1px solid #F3C7BC;
  border-radius: 12px;
  background: #FFF3F1;
  color: #93291A;
  font-size: 13px;
  line-height: 1.7;
}
.form-alert a { text-decoration: underline; text-underline-offset: 2px; }
.form-alert.is-info {
  border-color: var(--line-strong);
  background: var(--soft-2);
  color: var(--ink-2);
}

/* 防机器人隐藏字段 */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------- 弹层 ---------------- */

.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 26, 20, 0.52);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease;
}

.modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, calc(100% - 40px));
  max-height: 88vh;
  margin: 6vh auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(36, 26, 20, 0.3);
  animation: modal-in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow: hidden;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFF8F2, #FFFFFF);
}

.modal-head-text { min-width: 0; }
.modal-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: #C2410C; }
.modal-kicker .pill { margin-left: 6px; padding: 2px 8px; font-size: 10.5px; letter-spacing: 0; vertical-align: 1px; }
.modal-title { font-size: 22px; line-height: 1.35; font-weight: 800; letter-spacing: -0.3px; margin-top: 4px; }
.modal-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.modal-close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.modal-close:hover { background: var(--soft); color: #C2410C; transform: rotate(90deg); }

.modal-body { padding: 26px 28px; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.modal-foot .note { margin-right: auto; }

/* ---------------- 二维码放大 ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  place-items: center;
  background: rgba(36, 26, 20, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 24px;
}
.lightbox.is-open { display: grid; animation: fade-in 0.2s ease; }
.lightbox-inner {
  background: #fff;
  padding: 18px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}
.lightbox-inner img { width: min(300px, 70vw); height: auto; border-radius: 10px; }
.lightbox-inner p { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  background: #241A14;
  color: #F7ECE5;
  padding-top: 66px;
  margin-top: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 43, 0.24), transparent 72%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1.1fr;
  gap: 56px;
  padding-bottom: 48px;
}

.footer-brand .brand { margin-bottom: 4px; }
.footer-intro {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #C9B5A8;
  max-width: 360px;
}

.footer-contact { margin-top: 20px; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: #D8C6B9; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--brand-light); margin-top: 4px; }
.footer-contact a:hover { color: #fff; }
.footer-contact .wait { color: #B3A093; }

.footer-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FFD9BE;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.footer-links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 13.5px;
  color: #C9B5A8;
  transition: color 0.18s ease, transform 0.18s ease;
}
.footer-links a:hover { color: #fff; transform: translateX(2px); }

.footer-sub-text { font-size: 13px; line-height: 1.75; color: #C9B5A8; margin-bottom: 14px; }
.subscribe-form { display: flex; gap: 8px; }
.subscribe-form .input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
}
.subscribe-form .input::placeholder { color: #9B8478; }
.subscribe-form .input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(255, 106, 43, 0.16);
}
.subscribe-form .btn { min-height: 46px; padding: 0 18px; font-size: 14px; flex: none; }
.subscribe-msg { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: #FFD9BE; min-height: 20px; }
.subscribe-msg.is-error { color: #FF9B8F; }

.footer-qr {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-qr .qr-card { padding: 6px; border-radius: 12px; }
.footer-qr img { width: 88px; height: 88px; }
.footer-qr p { font-size: 12px; line-height: 1.65; color: #B3A093; }
.footer-qr strong { display: block; color: #E7D6CA; font-size: 12.5px; margin-bottom: 3px; }

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: #B3A093;
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #E7D6CA; }

.footer-disclaimer {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 22px;
  font-size: 12px;
  line-height: 1.8;
  color: #A99587;
}

/* ---------------- 404 页面 ---------------- */

.error-header .header-actions { margin-left: auto; }

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 240px);
  padding: 96px 0;
  text-align: center;
}

.error-page .error-code {
  font-size: clamp(72px, 12vw, 132px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin: 14px 0 12px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.3;
}

.error-page p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.error-page .error-foot { margin-top: 34px; font-size: 13px; color: var(--ink-3); }

.site-footer.is-compact { padding-top: 26px; }

/* ---------------- 入场动效 ---------------- */

/* 仅在 JS 成功初始化入场动效时才隐藏内容；脚本失效时页面保持可读 */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------------- 响应式基础 ---------------- */

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .section { padding: 76px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; }
  .wrap { width: calc(100% - 36px); }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }
  .brand-logo { height: 38px; }
  .header-actions .btn { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
  .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .modal-panel { width: calc(100% - 24px); max-height: 92vh; margin: 4vh auto; border-radius: 20px; }
  .modal-head { padding: 18px 18px 14px; }
  .modal-body { padding: 20px 18px; }
  .modal-foot { padding: 14px 18px; flex-wrap: wrap; }
  .modal-foot .note { width: 100%; margin-right: 0; }
  .modal-title { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .section { padding: 52px 0; }
  .eyebrow { font-size: 11.5px; letter-spacing: 0.12em; }
  .section-desc { font-size: 15px; }
  .brand-logo { height: 34px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form .btn { width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
