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

:root {
  --black: #111111;
  --grey: #555555;
  --border: #e0e0e0;
  --bg: #ffffff;
  --radius: 8px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--black);
  min-height: 100vh;
}

/* ─── PAGE CONTENT (blur target) ─────────────────── */

.page-content {
  transition: filter 0.3s ease;
}

.page-content.blurred {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/* ─── NAV ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-tabs {
  display: flex;
  gap: 4px;
}

.nav-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  padding: 6px 14px;
  border-radius: 6px;
  position: relative;
  transition: color 0.15s;
}

.nav-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--black);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-tab.active {
  color: var(--black);
}

.nav-tab.active::after {
  transform: scaleX(1);
}

.nav-tab:hover {
  color: var(--black);
}

.btn-order {
  background: var(--black);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  transition: opacity 0.15s;
}

.btn-order:hover {
  opacity: 0.8;
}

/* ─── SECTIONS ────────────────────────────────────── */

.section {
  display: none;
  animation: fadeIn 0.2s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px;
}

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

/* ─── REVIEW SECTION ──────────────────────────────── */

.section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ─── FORM ────────────────────────────────────────── */

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--black);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--black);
}

.field input[type="number"] {
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

/* ─── PLATFORM SELECTOR ───────────────────────────── */

.platform-selector {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.pill {
  flex: 1;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.pill:hover {
  border-color: var(--black);
  color: var(--black);
}

.pill.active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* ─── AUDIT FORMAT SELECTOR ──────────────────────── */

.audit-selector {
  display: flex;
  gap: 10px;
}

.audit-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.audit-option .audit-icon {
  font-size: 22px;
  line-height: 1;
}

.audit-option .audit-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.15s;
}

.audit-option:hover {
  border-color: var(--black);
}

.audit-option:hover .audit-text {
  color: var(--black);
}

.audit-option.active {
  border-color: var(--black);
  background: #f5f5f5;
}

.audit-option.active .audit-text {
  color: var(--black);
}

/* ─── LABEL ROW (label + agency toggle) ──────────── */

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.agency-toggle {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--grey);
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.agency-toggle:hover {
  border-color: var(--black);
  color: var(--black);
}

.agency-toggle.active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* ─── SUBMIT BUTTON ───────────────────────────────── */

.btn-primary {
  align-self: flex-start;
  background: var(--black);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 28px;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.8;
}

/* ─── SUCCESS MESSAGE ─────────────────────────────── */

.success-msg {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 8px;
}

.success-msg.hidden {
  display: none;
}

/* ─── TRUSTED BY ──────────────────────────────────── */

.trusted-section {
  padding: 56px 0 48px;
  max-width: 760px;
  margin: 0 auto;
}

.trusted-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  text-align: center;
  margin-bottom: 28px;
}

/* ─── MARQUEE ─────────────────────────────────────── */

.marquee-track {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 50s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.marquee-inner img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SECTION DIVIDER ─────────────────────────────── */

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 0;
}

/* ─── WORKS ───────────────────────────────────────── */

.works-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 24px 64px;
}

.works-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  text-align: center;
  margin-bottom: 8px;
}

.work-item {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  cursor: pointer;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-item:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13);
}

.cases-row {
  width: 100%;
  max-width: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cases-row .work-item {
  max-width: none;
}

/* ─── MODAL ───────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--bg);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--grey);
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--black);
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 32px;
}

/* ─── LIGHTBOX ────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.2s ease;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ─── GUIDES ─────────────────────────────────────── */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.guide-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.guide-card:not(.guide-card--soon):hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.guide-card--soon {
  cursor: default;
  opacity: 0.5;
}

.guide-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f4f4f4;
  overflow: hidden;
}

.guide-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.guide-card-body {
  padding: 16px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.guide-read-btn,
.guide-soon-btn {
  margin-top: auto;
  padding-top: 4px;
}

.guide-card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.4;
  color: var(--black);
}

.guide-card-excerpt {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.6;
}

.guide-soon-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--grey);
  background: #f0f0f0;
  border-radius: 100px;
  padding: 2px 9px;
  width: fit-content;
  margin-bottom: 2px;
}

.guide-coming-text {
  font-size: 13px;
  color: #bbb;
}

.guide-read-btn {
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 0.15s;
}

.guide-card:hover .guide-read-btn {
  text-decoration-color: var(--black);
}

.guide-soon-btn {
  display: inline-block;
  width: fit-content;
  align-self: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

/* ─── GUIDE ARTICLE OVERLAY ───────────────────────── */

.guide-article-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.guide-article-overlay.hidden {
  display: none;
}

.guide-article-modal {
  background: var(--bg);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
}

.guide-article-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 401;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.guide-article-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.guide-article-cover {
  width: calc(100% - 48px);
  margin: 20px auto 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f4;
  flex-shrink: 0;
}

.guide-article-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-article-content {
  padding: 28px 40px 48px;
}

.guide-article-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 24px;
}

.guide-article-body {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-article-body h2 {
  font-size: 19px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.4px;
  margin-top: 24px;
}

.guide-article-body h3 {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.1px;
  margin-top: 4px;
}

.guide-article-body strong {
  color: var(--black);
  font-weight: 600;
}

.guide-article-body img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.guide-stat-img {
  max-width: 260px;
}

.guide-dont {
  border: 1px solid var(--border);
  border-left: 3px solid var(--black);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-img-no-border {
  border: none !important;
  border-radius: 8px;
}

/* ─── BOTTOM NAV (hidden on desktop) ─────────────── */

.bottom-nav {
  display: none;
}

/* ─── MODAL HANDLE (hidden on desktop) ───────────── */

.modal-handle {
  display: none;
}

/* ─── MOBILE ──────────────────────────────────────── */

@media (max-width: 640px) {

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  /* ── Nav: show only brand + hire me ── */
  .nav {
    padding: 0 20px;
    height: 56px;
  }

  .nav-tabs {
    display: none;
  }

  .nav-brand {
    font-size: 14px;
  }

  .btn-order {
    font-size: 14px;
    padding: 9px 18px;
    border-radius: 10px;
  }

  /* ── Bottom nav ── */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    gap: 4px;
  }

  .bottom-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    color: #aaa;
    padding: 6px 8px;
    border-radius: 10px;
    transition: color 0.15s, background 0.15s;
  }

  .bottom-tab svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: stroke 0.15s;
  }

  .bottom-tab.active {
    color: var(--black);
    background: #f2f2f2;
  }

  .bottom-tab:active {
    background: #ebebeb;
  }

  /* ── Section padding clears bottom nav ── */
  .section {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  /* ── Content ── */
  .container,
  .container.narrow {
    padding: 32px 20px;
  }

  .section-title {
    font-size: 24px;
    letter-spacing: -0.4px;
  }

  .section-sub {
    font-size: 14px;
    margin-bottom: 32px;
  }

  /* ── Form ── */
  .form {
    gap: 20px;
  }

  .field input,
  .field textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 13px 14px;
    border-radius: 10px;
    background: #f7f7f7;
    border-color: #f7f7f7;
  }

  .field input:focus,
  .field textarea:focus {
    background: #fff;
    border-color: var(--black);
  }

  /* ── Platform pills: icon only on very small screens ── */
  .pill {
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 12px;
    gap: 4px;
  }

  .pill svg {
    width: 14px;
    height: 14px;
  }

  /* ── Audit cards ── */
  .audit-option {
    padding: 16px 10px;
    border-radius: 12px;
  }

  .audit-option .audit-icon {
    font-size: 24px;
  }

  /* ── Submit button ── */
  .btn-primary {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 15px;
    border-radius: 12px;
  }

  /* ── Trusted by ── */
  .trusted-section {
    padding: 40px 0 36px;
  }

  /* ── Works ── */
  .works-section {
    padding: 32px 20px 40px;
  }

  .works-title {
    margin-bottom: 4px;
  }

  .cases-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ── Modal → bottom sheet ── */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    background: rgba(0, 0, 0, 0.5);
  }

  .modal {
    border-radius: 24px 24px 0 0;
    padding: 4px 20px calc(32px + env(safe-area-inset-bottom));
    max-height: 92vh;
    width: 100%;
  }

  .modal-handle {
    display: block;
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 20px;
  }

  .modal-close {
    top: 18px;
    right: 16px;
  }

  .modal-title {
    font-size: 20px;
    padding-right: 32px;
  }

  /* ── Lightbox ── */
  .lightbox {
    padding: 16px;
  }

  .lightbox img {
    border-radius: 8px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* ── Section divider ── */
  .section-divider {
    margin: 0;
  }

  /* ── Guides ── */
  .guides-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .guide-article-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .guide-article-modal {
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
  }

  .guide-article-cover {
    width: calc(100% - 32px);
    margin: 16px auto 0;
    border-radius: 10px;
  }

  .guide-article-content {
    padding: 20px 20px calc(40px + env(safe-area-inset-bottom));
  }

  .guide-article-title {
    font-size: 22px;
  }

  .guide-article-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
