:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-warm: #ebe2d3;
  --surface-soft: #f1eadf;
  --text: #2e2d2b;
  --muted: #706d68;
  --line: #ded5c8;
  --accent: #ffd42a;
  --accent-strong: #f0bd00;
  --accent-soft: #fff3b4;
  --gold: #c89a43;
  --danger: #8c4c2f;
  --success: #5b7245;
  --shadow: 0 20px 50px rgba(73, 56, 31, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body:has(.mobile-quick-nav) {
  padding-bottom: 0;
}

body::selection {
  background: var(--accent);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.topbar {
  align-items: center;
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(222, 213, 200, 0.8);
  backdrop-filter: blur(16px);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 4vw, 48px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border: 1px solid rgba(46, 45, 43, 0.08);
  border-radius: 6px;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

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

.mobile-quick-nav {
  display: none;
}

.nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
}

.nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.section-band,
.section-block {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 4vw, 48px);
}

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

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

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  min-height: calc(100vh - 68px);
  padding-top: clamp(44px, 7vw, 86px);
}

.hero-copy,
.hero-media,
.section-heading,
.facts,
.split-layout,
.guide-grid,
.progress-panel,
.timeline,
.template-grid,
.two-columns,
.faq-list,
.admin-list,
.definition,
.feature-grid,
.hashtag-table-wrap,
.referral-panel {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max);
}

.hero-copy {
  margin-right: 0;
  max-width: 650px;
}

.hero h1,
.section-heading h2 {
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 92px);
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 24px);
  margin: 26px 0 0;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.copy-button,
.filter-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.button:hover,
.copy-button:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.button.primary,
.copy-button {
  background: var(--accent);
  color: var(--text);
}

.button.primary:hover,
.copy-button:hover {
  background: var(--accent-strong);
  box-shadow: 0 14px 28px rgba(240, 189, 0, 0.22);
}

.button.secondary,
.filter-button {
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover,
.filter-button:hover,
.filter-button.is-active {
  background: var(--text);
  color: var(--surface);
}

.hero-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-left: 0;
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(36px, 5.8vw, 72px);
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  margin: 18px auto 0;
  max-width: 780px;
}

.facts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: clamp(42px, 6vw, 68px);
  padding-top: clamp(42px, 6vw, 68px);
}

.fact-card,
.plain-panel,
.week-card,
.template-card,
.mini-card,
.faq-item,
.admin-item {
  background: var(--surface-soft);
  border: 1px solid rgba(222, 213, 200, 0.72);
  border-radius: var(--radius);
}

.fact-card {
  min-height: 136px;
  padding: 24px;
}

.fact-card strong {
  display: block;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1;
}

.fact-card span {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: 10px;
}

.referral-panel,
.progress-panel,
.definition {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px;
}

.referral-panel strong {
  display: block;
  overflow-wrap: anywhere;
}

.field-label {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

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

.plain-panel {
  padding: clamp(22px, 3vw, 34px);
}

.plain-panel h3,
.hashtag-table-wrap h3,
.two-columns h3 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.plain-panel p {
  color: var(--muted);
  margin: 0 0 14px;
}

.plain-panel p:last-child {
  margin-bottom: 0;
}

.accent-panel {
  background: var(--accent-soft);
  border-color: rgba(240, 189, 0, 0.42);
}

.check-list,
.number-list {
  margin: 0;
  padding-left: 0;
}

.check-list li,
.number-list li {
  border-top: 1px solid rgba(46, 45, 43, 0.09);
  list-style: none;
  padding: 13px 0 0 28px;
  position: relative;
}

.check-list li + li,
.number-list li + li {
  margin-top: 13px;
}

.check-list li::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  top: 20px;
  width: 10px;
}

.check-list.warning li::before {
  background: var(--danger);
}

.check-list.positive li::before {
  background: var(--success);
}

.number-list {
  counter-reset: steps;
}

.number-list li {
  counter-increment: steps;
}

.number-list li::before {
  content: counter(steps);
  font-weight: 900;
  left: 0;
  position: absolute;
  top: 13px;
}

.definition {
  align-items: flex-start;
  margin-bottom: 22px;
}

.definition p {
  font-size: clamp(22px, 2.7vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  margin: 0;
}

.feature-grid,
.guide-grid,
.template-grid {
  display: grid;
  gap: 16px;
}

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

.guide-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.mini-card {
  padding: 22px;
}

.mini-card h3,
.template-card h3,
.week-card h3,
.faq-item summary {
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.mini-card p,
.template-card p,
.week-card p,
.mini-card span,
.faq-item p {
  color: var(--muted);
  margin: 0;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
}

.compact-list li {
  color: var(--muted);
  margin-top: 10px;
}

.hugo-card {
  background: var(--accent-soft);
  border-color: rgba(240, 189, 0, 0.36);
}

.hashtag-table-wrap {
  margin-top: 24px;
}

.hashtag-table {
  display: grid;
  gap: 10px;
}

.hashtag-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: 160px 96px 1fr;
  padding: 14px 16px;
}

.hashtag-row strong {
  font-size: 18px;
}

.tag-pill {
  background: var(--accent);
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  padding: 6px 10px;
}

.progress-panel {
  margin-bottom: 24px;
}

.progress-track {
  background: var(--surface-soft);
  border-radius: 999px;
  flex: 1;
  height: 14px;
  min-width: 180px;
  overflow: hidden;
}

.progress-track span {
  background: var(--accent);
  display: block;
  height: 100%;
  transition: width 0.2s ease;
  width: 0;
}

.timeline {
  display: grid;
  gap: 14px;
}

.week-card {
  display: grid;
  gap: 18px;
  grid-template-columns: 110px minmax(0, 1fr) minmax(280px, 0.85fr);
  padding: 22px;
}

.week-label {
  align-self: start;
  background: var(--accent);
  border-radius: var(--radius);
  font-weight: 900;
  padding: 10px 12px;
  text-align: center;
}

.week-card h3 {
  margin-bottom: 8px;
}

.week-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.week-card li {
  color: var(--muted);
}

.week-meta,
.week-cta,
.tags {
  color: var(--gold) !important;
  font-weight: 800;
}

.week-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.week-copy p {
  margin-bottom: 14px;
}

.week-check {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  margin-top: 14px;
}

.week-check input {
  accent-color: var(--accent-strong);
  height: 20px;
  width: 20px;
}

.template-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: -10px auto 26px;
  max-width: var(--max);
}

.filter-button {
  border: 1px solid var(--line);
  min-height: 40px;
  padding: 9px 14px;
}

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

.template-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.template-card p {
  white-space: pre-line;
}

.template-card .copy-button {
  align-self: flex-start;
  margin-top: auto;
}

.category {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.two-columns {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr 1fr;
}

.stack {
  display: grid;
  gap: 12px;
}

.mini-card .meta {
  color: var(--gold);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface-soft);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  margin: 0;
  padding: 22px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  border-top: 1px solid rgba(46, 45, 43, 0.08);
  padding: 18px 22px 22px;
}

.admin-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-item {
  padding: 20px;
}

.toast {
  background: var(--text);
  border-radius: 999px;
  bottom: 24px;
  color: var(--surface);
  font-weight: 800;
  left: 50%;
  opacity: 0;
  padding: 12px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 116px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero,
  .split-layout,
  .guide-grid,
  .two-columns,
  .admin-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-copy,
  .hero-media {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

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

  .week-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 98px;
  }

  body {
    padding-bottom: 74px;
  }

  .topbar {
    gap: 10px;
    padding: 10px 16px 8px;
  }

  .brand {
    font-size: 14px;
    width: 100%;
  }

  .brand-mark {
    height: 30px;
    width: 30px;
  }

  .nav {
    gap: 4px;
    margin-left: -4px;
    width: calc(100% + 8px);
  }

  .nav a {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(222, 213, 200, 0.72);
    font-size: 12px;
    padding: 7px 10px;
  }

  .section-band,
  .section-block {
    padding-bottom: 46px;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 46px;
  }

  .hero.section-band {
    padding-top: 28px;
  }

  .hero {
    gap: 20px;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 9px;
  }

  .hero h1 {
    font-size: clamp(34px, 10.7vw, 44px);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 16px;
    margin-top: 16px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
    box-shadow: 0 12px 30px rgba(73, 56, 31, 0.12);
  }

  .section-heading {
    margin-bottom: 22px;
    text-align: left;
  }

  .section-heading h2 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.05;
  }

  .section-heading p:not(.eyebrow) {
    font-size: 15px;
    margin-top: 12px;
  }

  .facts {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 36px;
    padding-top: 36px;
  }

  .fact-card {
    min-height: 116px;
    padding: 16px;
  }

  .fact-card strong {
    font-size: clamp(24px, 8vw, 32px);
  }

  .fact-card span {
    font-size: 13px;
    line-height: 1.3;
  }

  .feature-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }

  .referral-panel,
  .progress-panel,
  .definition {
    align-items: stretch;
    flex-direction: column;
  }

  .referral-panel,
  .progress-panel,
  .definition,
  .plain-panel,
  .mini-card,
  .template-card,
  .week-card,
  .admin-item {
    padding: 18px;
  }

  .plain-panel h3,
  .hashtag-table-wrap h3,
  .two-columns h3 {
    font-size: 24px;
  }

  .definition p {
    font-size: 21px;
    line-height: 1.2;
  }

  .copy-button,
  .button {
    min-height: 50px;
    width: 100%;
  }

  .hashtag-row {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .progress-track {
    width: 100%;
  }

  .guide-grid,
  .split-layout,
  .two-columns {
    gap: 12px;
  }

  .week-card {
    gap: 14px;
  }

  .week-label {
    justify-self: start;
    min-width: 96px;
  }

  .week-card h3,
  .template-card h3,
  .mini-card h3,
  .faq-item summary {
    font-size: 21px;
  }

  .week-card ul {
    margin-top: 12px;
  }

  .week-copy {
    padding: 14px;
  }

  .week-check {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(222, 213, 200, 0.74);
    border-radius: var(--radius);
    padding: 12px;
    width: 100%;
  }

  .week-check input {
    flex: 0 0 auto;
    margin-top: 2px;
  }

  .template-toolbar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-bottom: 18px;
    max-width: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .template-toolbar::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .faq-item summary {
    padding: 18px;
  }

  .faq-item p {
    padding: 16px 18px 18px;
  }

  .mobile-quick-nav {
    background: rgba(46, 45, 43, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    bottom: 12px;
    box-shadow: 0 16px 40px rgba(46, 45, 43, 0.22);
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
    left: 12px;
    padding: 6px;
    position: fixed;
    right: 12px;
    z-index: 25;
  }

  .mobile-quick-nav a {
    align-items: center;
    border-radius: 6px;
    color: var(--surface);
    display: flex;
    font-size: 13px;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    padding: 8px 6px;
  }

  .mobile-quick-nav a:nth-child(2) {
    background: var(--accent);
    color: var(--text);
  }

  .toast {
    bottom: 82px;
  }
}
