:root {
  --bg: #f4f1ea;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-strong: #fffdf8;
  --text: #1f2430;
  --muted: #5f6878;
  --line: rgba(31, 36, 48, 0.12);
  --accent: #0e5b59;
  --accent-soft: rgba(14, 91, 89, 0.12);
  --shadow: 0 18px 48px rgba(30, 35, 45, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 91, 89, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(184, 120, 61, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f6f1 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

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

.nowrap {
  white-space: nowrap;
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hero,
.switcher,
.help {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero {
  padding: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.hero-copy,
.section-head p,
.step-copy p {
  color: var(--muted);
}

.hero-copy {
  margin: 1rem 0 0;
  font-size: 1.1rem;
}

.switcher,
.help {
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.section-head p {
  margin: 0.6rem 0 0;
}

.client-tabs {
  display: grid;
  gap: 1.5rem;
}

.client-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
}

.client-selector {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.client-tile {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  text-align: center;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
}

.client-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 36, 48, 0.08);
}

.client-tile:focus-visible {
  outline: 3px solid rgba(14, 91, 89, 0.35);
  outline-offset: 3px;
}

.client-logo {
  width: 72px;
  height: 72px;
}

.panels {
  position: relative;
}

.panel {
  display: none;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1.2rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  gap: 1.2rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 244, 238, 0.8));
}

.step-copy {
  position: relative;
  padding-left: 3.25rem;
}

.step-copy::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
}

.step-copy h4 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.step-copy p {
  margin: 0;
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  border-radius: 16px;
}

#client-outlook:checked ~ .client-selector .tile-outlook,
#client-thunderbird:checked ~ .client-selector .tile-thunderbird,
#client-gmail:checked ~ .client-selector .tile-gmail,
#client-apple-mail:checked ~ .client-selector .tile-apple-mail {
  background: linear-gradient(180deg, rgba(14, 91, 89, 0.14), rgba(14, 91, 89, 0.05));
  border-color: rgba(14, 91, 89, 0.36);
  box-shadow: inset 0 0 0 1px rgba(14, 91, 89, 0.1);
}

#client-outlook:checked ~ .panels .panel-outlook,
#client-thunderbird:checked ~ .panels .panel-thunderbird,
#client-gmail:checked ~ .panels .panel-gmail,
#client-apple-mail:checked ~ .panels .panel-apple-mail {
  display: block;
}

.help {
  margin-top: 1.5rem;
}

.help strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .client-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 1rem, 1120px);
    padding: 1rem 0 2.5rem;
  }

  .hero,
  .switcher,
  .help {
    border-radius: 22px;
  }

  .client-selector {
    grid-template-columns: 1fr;
  }

  .client-tile {
    grid-template-columns: auto 1fr;
    justify-content: start;
    text-align: left;
    padding: 0.9rem 1rem;
  }

  .client-logo {
    width: 56px;
    height: 56px;
  }

  .step-copy {
    padding-left: 2.8rem;
  }
}
