:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #1c2430;
  --muted: #5c6573;
  --card: #fff;
  --line: #e6e6e6;
  --teams: #8f6bae;
  --outlook: #0d96d8;
  --edge: #68c04f;
  --accent: var(--ink);
  --tip: #f4f4f4;
  --caution: #fff3e4;
  --caution-ink: #7a3e0a;
  --shadow: 0 10px 30px rgba(28, 36, 48, 0.06);
  --max: 760px;
}

body[data-page="teams"] {
  --accent: var(--teams);
  --tip: #f4eef8;
}

body[data-page="outlook"] {
  --accent: var(--outlook);
  --tip: #e8f6fc;
}

body[data-page="edge"] {
  --accent: var(--edge);
  --tip: #eef8e9;
}

body[data-page="iphone"] {
  --accent: #1c1c1e;
  --tip: #f2f2f4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 3;
}

.skip:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner,
main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
  padding: 6px 8px 7px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.1;
}

.home-button .menu-icon {
  width: 26px;
  height: 26px;
  color: var(--ink);
}

.app-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
}

.app-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
  box-shadow: var(--shadow);
}

.app-menu img,
.app-menu .menu-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.app-menu .menu-icon {
  color: var(--ink);
}

.app-menu a[aria-current="page"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

main {
  padding: 28px 0 64px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-family: Palatino, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.125rem;
}

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

.guide-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}

.guide-card h2 {
  margin-bottom: 4px;
}

.guide-card[data-app="teams"] {
  border-top: 4px solid var(--teams);
}

.guide-card[data-app="outlook"] {
  border-top: 4px solid var(--outlook);
}

.guide-card[data-app="edge"] {
  border-top: 4px solid var(--edge);
}

.guide-card[data-app="teams"] h2,
.guide-card[data-app="teams"] .progress {
  color: var(--teams) !important;
}

.guide-card[data-app="outlook"] h2,
.guide-card[data-app="outlook"] .progress {
  color: var(--outlook) !important;
}

.guide-card[data-app="edge"] h2,
.guide-card[data-app="edge"] .progress {
  color: var(--edge) !important;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
}

.progress {
  margin-top: 12px !important;
  color: var(--accent) !important;
  font-size: 0.92rem;
  font-weight: 650;
}

.panel {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}

.panel ul,
.steps {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.panel li + li,
.steps li + li {
  margin-top: 6px;
}

.lesson {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 16px;
  margin: 0 0 14px;
  box-shadow: var(--shadow);
}

.lesson .steps {
  color: var(--ink);
}

.callout {
  margin: 14px 0 0;
  border-radius: 12px;
  padding: 12px 14px;
}

.callout strong {
  display: block;
  margin-bottom: 2px;
}

.tip {
  background: var(--tip);
}

.caution {
  background: var(--caution);
  color: var(--caution-ink);
}

.done {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 650;
}

.done input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

.carousel,
.plain {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 16px;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
}

.tutorial > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 2px 0;
  color: inherit;
  font: inherit;
  list-style: none;
  cursor: pointer;
}

.tutorial > summary::-webkit-details-marker {
  display: none;
}

.tutorial > summary h2 {
  margin: 0;
}

.carousel > .tutorial > summary {
  padding-right: 72px;
}

.chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: none;
}

.tutorial[open] > summary .chevron {
  transform: rotate(45deg);
}

.forgot-note {
  margin: 0 0 4px;
  font-weight: 650;
}

.tutorial-body {
  padding-top: 8px;
}

.tutorial-body > p:not(.eyebrow):not(.carousel-status) {
  margin: 8px 0 0;
  color: var(--muted);
}

.slide-step {
  margin: 16px 0 8px;
  font-size: 1.2rem;
  font-weight: 650;
}

.carousel .shot {
  text-align: center;
}

.carousel .shot img {
  margin: 0 auto;
  max-height: 520px;
  width: auto;
  max-width: min(280px, 100%);
}

.carousel .shot.diagram img {
  width: min(640px, 100%);
  max-width: min(640px, 100%);
  max-height: 480px;
  border: 0;
  box-shadow: none;
}

.carousel-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.carousel {
  --accent: var(--teams);
}

body[data-page="outlook"] .carousel {
  --accent: var(--outlook);
}

body[data-page="edge"] .carousel {
  --accent: var(--edge);
}

body[data-page="iphone"] .carousel {
  --accent: #1c1c1e;
}

.carousel-prev,
.carousel-next {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.carousel-prev:disabled,
.carousel-next:disabled {
  background: #e6e6e6;
  color: #6b645b;
  cursor: default;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #e6e6e6;
  padding: 0;
  cursor: pointer;
}

.dot[aria-current="true"] {
  background: var(--accent);
}

.forgot-link {
  margin: 16px 0 0;
  text-align: center;
  font-weight: 650;
}

#forgot-password {
  scroll-margin-top: 72px;
}

.carousel-status {
  position: absolute;
  top: 16px;
  right: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.shot {
  margin: 12px 0 4px;
}

.shot img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 2px;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
