/* Microsoft 365 Add-in landing page — loaded directly until next qrstuff.scss build */
.m365-addon-page {
  --m365-brand: #5d4696;
  --m365-brand-dark: #4a3880;
  --m365-pink: #e5006c;
  --m365-excel: #217346;
  --m365-outlook: #0078d4;
  --m365-muted: #f6f4fb;
  color: #343434;
}

.m365-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--m365-brand) 0%, #3d2f6b 45%, #2a2348 100%);
  color: #fff;
}

.m365-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(0, 120, 212, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(33, 115, 70, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(229, 0, 108, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.m365-hero__title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-align: left;
}

.m365-hero__lead {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 32rem;
}

.m365-hero__subcta { opacity: 0.8; }

.m365-hero__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.m365-hero__visual {
  position: relative;
  min-height: 280px;
}

.m365-hero__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  max-width: 240px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.m365-hero__card--excel { top: 0; left: 0; }
.m365-hero__card--outlook { bottom: 0; right: 0; }
.m365-hero__card p { margin: 0; font-size: 0.875rem; opacity: 0.9; }

.m365-hero__card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.m365-hero__qr {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--m365-pink), var(--m365-brand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.m365-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.m365-pill--excel i { color: #6fcf97; }
.m365-pill--outlook i { color: #7ec8f7; }
.m365-pill--appsource { background: rgba(0, 120, 212, 0.25); }
.m365-btn-appsource {
  font-weight: 600;
  color: var(--m365-brand) !important;
}

.m365-btn-appsource:hover,
.m365-btn-appsource:focus {
  color: #fff !important;
  background-color: var(--m365-brand);
  border-color: var(--m365-brand);
}

.m365-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 102;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(93, 70, 150, 0.1);
  box-shadow: 0 4px 20px rgba(93, 70, 150, 0.06);
}

.m365-sticky-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
}

.m365-sticky-nav__list a {
  color: var(--m365-brand);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.m365-sticky-nav__list a:hover { color: var(--m365-pink); }

.m365-section { padding: 4.5rem 0; }
.m365-section--light { background: #fff; }
.m365-section--muted { background: var(--m365-muted); }

.m365-section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--m365-brand);
  margin-bottom: 0.75rem;
}

.m365-section__subtitle {
  color: #666;
  max-width: 36rem;
  font-size: 1.05rem;
}

.m365-section__lead {
  font-size: 1.05rem;
  line-height: 1.65;
}

.m365-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.m365-checklist li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2rem;
  border-bottom: 1px solid rgba(93, 70, 150, 0.08);
  line-height: 1.55;
}

.m365-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(59, 170, 53, 0.12);
  color: #3baa35;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m365-checklist li:last-child { border-bottom: none; }

.m365-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 767.98px) {
  .m365-bento { grid-template-columns: 1fr; }
}

.m365-bento__item {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid rgba(93, 70, 150, 0.08);
  box-shadow: 0 8px 32px rgba(93, 70, 150, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m365-bento__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(93, 70, 150, 0.12);
}

@media (min-width: 768px) {
  .m365-bento__item--wide { grid-column: span 2; }
}

.m365-bento__item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.m365-bento__item p {
  margin: 0;
  color: #555;
  font-size: 0.925rem;
  line-height: 1.6;
}

.m365-bento__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.m365-bento__icon--brand { background: var(--m365-brand); }
.m365-bento__icon--excel { background: var(--m365-excel); }
.m365-bento__icon--outlook { background: var(--m365-outlook); }
.m365-bento__icon--teal { background: #00b8ec; }
.m365-bento__icon--pink { background: var(--m365-pink); }

.m365-appsource-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.1);
  color: var(--m365-outlook);
  font-size: 0.875rem;
  font-weight: 600;
}

.m365-app-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  height: 100%;
  border: 1px solid rgba(93, 70, 150, 0.08);
  box-shadow: 0 6px 24px rgba(93, 70, 150, 0.06);
  border-top: 4px solid var(--m365-brand);
}

.m365-app-card--excel { border-top-color: var(--m365-excel); }
.m365-app-card--outlook { border-top-color: var(--m365-outlook); }
.m365-app-card--brand { border-top-color: var(--m365-brand); }

.m365-app-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
}

.m365-app-card p {
  color: #555;
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.m365-app-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--m365-muted);
  color: var(--m365-brand);
}

.m365-app-card--excel .m365-app-card__icon { color: var(--m365-excel); }
.m365-app-card--outlook .m365-app-card__icon { color: var(--m365-outlook); }

.m365-step-label { color: var(--m365-brand); font-weight: 700; }
.m365-prereq-list { padding-left: 1.25rem; line-height: 1.7; }
.m365-prereq-list li { margin-bottom: 0.65rem; }

.m365-timeline__step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.m365-timeline__step:last-child { margin-bottom: 0; }

.m365-timeline__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--m365-brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m365-timeline__num--excel { background: var(--m365-excel); }
.m365-timeline__num--outlook { background: var(--m365-outlook); }

.m365-timeline__body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.m365-timeline__body p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.m365-cta-band {
  background: linear-gradient(120deg, var(--m365-brand) 0%, #6b3d8f 50%, var(--m365-pink) 100%);
  padding: 3.5rem 0;
}

.m365-usecase-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
  border: 1px solid rgba(93, 70, 150, 0.08);
  box-shadow: 0 4px 20px rgba(93, 70, 150, 0.05);
  transition: border-color 0.2s ease;
}

.m365-usecase-card:hover { border-color: rgba(93, 70, 150, 0.2); }

.m365-usecase-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--m365-brand);
  margin-bottom: 0.5rem;
}

.m365-usecase-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.m365-usecase-card__icon {
  font-size: 1.5rem;
  color: var(--m365-pink);
  margin-bottom: 0.75rem;
  display: block;
}

.m365-tip {
  background: var(--m365-muted);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  height: 100%;
}

.m365-tip i {
  color: var(--m365-brand);
  margin-right: 0.5rem;
}

.m365-faq .accordion-item {
  border: 1px solid rgba(93, 70, 150, 0.1);
  border-radius: 10px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.m365-footer-cta {
  background: linear-gradient(160deg, #2a2348 0%, var(--m365-brand-dark) 40%, var(--m365-brand) 100%);
}
