/* Maquette accueil MAGE — inspirée agencemage.fr (statique, firebase/public) */
@import url("./mage-brand.css");

:root {
  --mage-green: #366c5d;
  --mage-green-dark: #2d584b;
  --mage-mint: #d4ebe4;
  --mage-mint-light: #e8f4ef;
  --mage-ink: #1a1a1a;
  --mage-muted: #5c5c5c;
  --mage-border: #e2e8e4;
  --mage-white: #ffffff;
  --mage-pro-bg: #f0f7f4;
  --shadow-soft: 0 8px 32px rgba(54, 108, 93, 0.12);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--mage-ink);
  background: var(--mage-mint-light);
  line-height: 1.5;
}

a {
  color: var(--mage-green);
}

.breadcrumb {
  padding: 14px 0 0;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--mage-muted);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--mage-green);
}

.breadcrumb a {
  color: var(--mage-green);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--mage-ink);
  font-weight: 500;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mage-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mage-ink);
  border-radius: 1px;
}

.site-header .mage-brand-link {
  flex: 1;
  min-width: 0;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.site-locale-picker {
  flex-shrink: 0;
}

.site-locale-select {
  appearance: none;
  margin: 0;
  padding: 7px 32px 7px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--mage-ink);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23366C5D' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  border: 1px solid var(--mage-border);
  border-radius: 8px;
  cursor: pointer;
  max-width: 9.5rem;
}

.site-locale-select:hover,
.site-locale-select:focus {
  border-color: var(--mage-green, #366c5d);
  outline: none;
  box-shadow: 0 0 0 2px rgba(54, 108, 93, 0.15);
}

.site-locale-select--compact {
  max-width: 9.5rem;
}

.nav-drawer-locale {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--mage-border);
}

.nav-drawer-locale-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mage-muted, #6b7280);
}

.nav-drawer-locale .site-locale-select {
  width: 100%;
  max-width: none;
}

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

.header-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mage-ink);
  text-decoration: none;
}

.header-login svg {
  width: 22px;
  height: 22px;
}

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: min(42vw, 200px);
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mage-ink);
  text-decoration: none;
}

.header-user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
}

.header-user-avatar-wrap .header-user-avatar,
.header-user-avatar-wrap .header-user-avatar--initial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-sizing: border-box;
}

.header-user-avatar-wrap .header-user-avatar {
  object-fit: cover;
  display: block;
  z-index: 1;
}

.header-user-avatar-wrap .header-user-avatar[hidden],
.header-user-avatar--initial[hidden] {
  display: none !important;
}

.header-user-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mage-teal, #bfe9dd);
  color: var(--mage-ink);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  z-index: 0;
}

.header-user-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-drawer {
  display: none;
  padding: 8px 0 20px;
  border-top: 1px solid var(--mage-border);
}

.nav-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-drawer a {
  display: block;
  padding: 13px 0;
  color: var(--mage-ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--mage-border);
}

.nav-drawer a:last-child {
  border-bottom: none;
}

.nav-drawer a[aria-current="page"] {
  color: var(--mage-green);
  font-weight: 600;
}

.nav-drawer a:hover {
  color: var(--mage-green);
}

.nav-drawer a[hidden] {
  display: none !important;
}

.nav-drawer-cta {
  margin-top: 10px;
  padding: 13px 18px !important;
  text-align: center;
  background: var(--mage-green, #366c5d);
  color: #fff !important;
  border-radius: 10px;
  border-bottom: none !important;
  font-weight: 600;
}

.nav-drawer-cta:hover {
  background: var(--mage-ink, #1a1a1a);
  color: #fff !important;
}

.nav-drawer-cta[aria-current="page"] {
  color: #fff !important;
}

/* —— Hero —— */
.hero {
  background: linear-gradient(135deg, var(--mage-mint) 0%, var(--mage-mint-light) 55%, #f5f5f0 100%);
  padding: 48px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero-copy .lead {
  font-size: 1rem;
  color: var(--mage-muted);
  margin: 0 0 28px;
  max-width: 36ch;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1.5px solid var(--mage-ink);
  border-radius: var(--radius-pill);
  background: var(--mage-white);
  color: var(--mage-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.btn-outline .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mage-ink);
  color: var(--mage-white);
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 36ch;
}

.hero-app-download {
  margin-top: 28px;
  padding-top: 24px;
  width: 100%;
  border-top: 1px solid rgba(54, 108, 93, 0.18);
}

.hero-app-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mage-green);
}

.hero-app-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-store-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  flex-shrink: 0;
}

.app-store-badge-icon--play {
  background: linear-gradient(135deg, #34a853 0%, #4285f4 45%, #fbbc04 75%, #ea4335 100%);
}

.app-store-badge-icon--apple {
  background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 100%);
}

.app-store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.app-store-badge-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.88;
}

.app-store-badge-store {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Booking card */
.booking-card {
  background: var(--mage-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.booking-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eef2f0;
}

.booking-tab {
  padding: 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--mage-muted);
}

.booking-tab.active {
  background: var(--mage-white);
  color: var(--mage-ink);
}

.booking-body {
  padding: 24px;
}

.booking-body h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 700;
}

.booking-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mage-muted);
  margin-bottom: 6px;
}

.booking-form .field {
  margin-bottom: 14px;
}

.booking-form select,
.booking-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mage-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--mage-white);
}

.booking-form select:disabled {
  background: #f4f6f5;
  color: #999;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  border: none;
  border-radius: var(--radius-md);
  background: #6b8f83;
  color: var(--mage-white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--mage-green);
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--mage-mint);
  color: var(--mage-green-dark);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.booking-note {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--mage-muted);
  text-align: center;
}

/* —— Trust bar —— */
.trust-bar {
  background: var(--mage-white);
  border-block: 1px solid var(--mage-border);
  padding: 28px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-item {
  padding: 0 12px;
  border-right: 1px solid var(--mage-border);
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.trust-item strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* —— Services —— */
.section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 8px;
}

.section-title p {
  margin: 0;
  color: var(--mage-muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.service-card {
  position: relative;
  background: var(--mage-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(54, 108, 93, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card[role="link"] {
  cursor: pointer;
}

.service-card[role="link"]:focus-visible {
  outline: 2px solid var(--mage-green);
  outline-offset: 3px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(54, 108, 93, 0.14);
}

.service-card .thumb {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: var(--mage-mint-light, #e8f0ed);
}

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

.service-card .body {
  padding: 18px 16px 20px;
}

.service-card .icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.service-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--mage-green);
  font-weight: 700;
}

.service-card .price {
  font-size: 0.8rem;
  color: var(--mage-muted);
  margin: 0 0 4px;
}

.service-card .price strong {
  display: block;
  font-size: 1rem;
  color: var(--mage-ink);
}

.service-card .providers {
  font-size: 0.8rem;
  color: var(--mage-muted);
  margin: 8px 0 0;
}

/* —— PRO / SAP —— */
.split-section {
  background: var(--mage-mint);
  padding: 56px 0;
}

.split-section h2.section-heading {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 0 32px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.split-col {
  padding: 40px 36px;
}

.split-col.pro {
  background: var(--mage-white);
}

.split-col.sap {
  background: var(--mage-mint-light);
}

.split-col h3 {
  font-family: var(--mage-font-brand);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.split-col .subtitle {
  font-weight: 700;
  margin: 0 0 20px;
}

.split-col ul {
  margin: 0;
  padding-left: 1.2rem;
}

.split-col li {
  margin-bottom: 8px;
}

.split-checks {
  list-style: none;
  padding: 0;
}

.split-checks li::before {
  content: "✔ ";
  color: var(--mage-green);
}

/* —— Travailler avec MAGE (split + téléphone centré) —— */
.work-with-mage {
  --work-mage-cream: #f6f3ed;
  /* ~9:19.5 — proportions type iPhone récent */
  --work-mage-phone-w: 300px;
  padding: 0;
  overflow: hidden;
}

.work-with-mage__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}

.work-with-mage__half {
  display: flex;
  align-items: center;
  padding: 64px clamp(20px, 4vw, 48px);
}

.work-with-mage__half--mage {
  background: linear-gradient(135deg, var(--mage-mint) 0%, var(--mage-mint-light) 100%);
  color: var(--mage-ink);
  padding-right: calc(var(--work-mage-phone-w) / 2 + 32px);
  justify-content: flex-end;
}

.work-with-mage__half--cream {
  background: var(--work-mage-cream);
  color: var(--mage-ink);
  padding-left: calc(var(--work-mage-phone-w) / 2 + 32px);
  justify-content: flex-start;
}

.work-with-mage__content {
  max-width: 380px;
  width: 100%;
}

.work-with-mage__content h2 {
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
}

.work-with-mage__half--mage h2 {
  color: var(--mage-green-dark);
}

.work-with-mage__lead,
.work-with-mage__content p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.work-with-mage__half--mage .work-with-mage__lead {
  color: var(--mage-muted);
}

.work-with-mage__more {
  display: inline-flex;
  margin-top: 24px;
  text-decoration: none;
}

.work-with-mage__device {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: var(--work-mage-phone-w);
  pointer-events: auto;
}

/* —— Mockup iPhone —— */
.phone-mockup {
  width: 100%;
  perspective: 1200px;
}

.phone-mockup__frame {
  position: relative;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(
    160deg,
    #4a4f4e 0%,
    #2a2d2c 18%,
    #1c1e1d 50%,
    #3d403f 82%,
    #5c605f 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 0 2px rgba(0, 0, 0, 0.35),
    0 28px 56px rgba(26, 26, 26, 0.35),
    0 12px 24px rgba(54, 108, 93, 0.2);
}

.phone-mockup__btn {
  position: absolute;
  background: linear-gradient(90deg, #3a3d3c, #1a1c1b);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-mockup__btn--power {
  right: -3px;
  top: 28%;
  width: 3px;
  height: 64px;
  border-radius: 0 3px 3px 0;
}

.phone-mockup__btn--vol-up {
  left: -3px;
  top: 22%;
  width: 3px;
  height: 36px;
  border-radius: 3px 0 0 3px;
}

.phone-mockup__btn--vol-down {
  left: -3px;
  top: 30%;
  width: 3px;
  height: 36px;
  border-radius: 3px 0 0 3px;
}

.phone-mockup__bezel {
  position: relative;
  border-radius: 40px;
  padding: 3px;
  background: #0a0a0a;
  overflow: hidden;
}

.phone-mockup__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 37px;
  background: linear-gradient(180deg, #fafcfb 0%, #f0f5f2 100%);
  padding: 48px 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

.phone-mockup__island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  border-radius: 20px;
  background: #0a0a0a;
  z-index: 2;
}

.phone-mockup__status {
  position: absolute;
  top: 16px;
  left: 22px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--mage-ink);
  z-index: 1;
}

.phone-mockup__glare {
  position: absolute;
  inset: 0;
  border-radius: 37px;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.08) 28%,
    transparent 52%
  );
  pointer-events: none;
}

.phone-mockup__brand {
  margin: 8px 0 10px;
  text-align: center;
  font-family: var(--mage-font-brand);
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  color: var(--mage-logo-on-light);
}

.phone-mockup__heading {
  margin: 0 0 20px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--mage-green-dark);
}

.phone-mockup__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  margin-top: 4px;
}

.phone-mockup__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-mockup__field span:first-child {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mage-muted);
  letter-spacing: 0.03em;
}

.phone-mockup__input {
  display: block;
  height: 38px;
  border-radius: 11px;
  border: 1px solid #d8e4de;
  background: #fff;
  box-shadow: 0 1px 2px rgba(54, 108, 93, 0.06);
}

.phone-mockup__role {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(54, 108, 93, 0.08);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--mage-green);
}

.phone-mockup__role-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mage-green);
  box-shadow: 0 0 0 3px rgba(54, 108, 93, 0.18);
}

.phone-mockup__cta {
  margin-top: auto;
  padding: 13px 16px;
  border: none;
  border-radius: 13px;
  background: var(--mage-green);
  color: #fff;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(54, 108, 93, 0.35);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.phone-mockup__cta:hover {
  background: var(--mage-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(54, 108, 93, 0.4);
}

.phone-mockup__home-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 4px;
  border-radius: 4px;
  background: rgba(26, 26, 26, 0.22);
}

@media (max-width: 960px) {
  .work-with-mage__panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .work-with-mage__half {
    padding: 40px 24px 32px;
    justify-content: center;
    text-align: center;
  }

  .work-with-mage__half--mage {
    order: 1;
    padding-right: 24px;
  }

  .work-with-mage__device {
    order: 2;
    position: relative;
    left: auto;
    top: auto;
    transform: translateY(-32px);
    margin: -16px auto -48px;
    max-width: min(var(--work-mage-phone-w), 78vw);
  }

  .work-with-mage__panel {
    min-height: 0;
  }

  .work-with-mage__half--cream {
    order: 3;
    padding-left: 24px;
    padding-top: 8px;
  }

  .work-with-mage__content,
  .work-with-mage__content--right {
    max-width: 520px;
    margin: 0 auto;
  }

  .work-with-mage__more {
    margin-left: auto;
    margin-right: auto;
  }
}

/* —— FAQ —— */
.faq {
  background: var(--mage-white);
}

.faq-list {
  max-width: 720px;
  margin: 32px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--mage-border);
}

.faq-q {
  width: 100%;
  padding: 18px 0;
  border: none;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--mage-green);
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  content: "−";
}

.faq-a {
  display: none;
  padding: 0 0 18px;
  color: var(--mage-muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-a {
  display: block;
}

/* —— Footer —— */
.site-footer {
  background: var(--mage-pro-bg);
  padding: 48px 0 24px;
  font-size: 0.9rem;
}

.site-footer .mage-brand-link {
  margin-bottom: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

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

.footer-links a {
  color: var(--mage-ink);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  color: var(--mage-muted);
  font-size: 0.8rem;
  padding-top: 24px;
  border-top: 1px solid var(--mage-border);
}

.preview-banner {
  background: #fff8e6;
  border-bottom: 1px solid #f0d78c;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b5a20;
}

.preview-banner a {
  font-weight: 600;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

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

  .trust-item:nth-child(2) {
    border-right: none;
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--mage-border);
    padding-bottom: 16px;
  }

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

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
