.mail-tour { --mail-shadow: 7px 10px 16px -7px rgb(23 41 67 / 27%); }
.mail-intro {
  display: grid;
  grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  gap: clamp(32px,5vw,78px);
  align-items: center;
  padding: clamp(40px,5.8vw,84px) 0;
}
.mail-intro h1 { margin: 16px 0; font-size: clamp(3rem,6vw,5rem); }
.mail-intro p { max-width: 37ch; margin: 0 0 23px; color: var(--tour-text); font-size: clamp(1.06rem,1.4vw,1.25rem); line-height: 1.55; text-wrap: pretty; }
.mail-film { min-width: 0; padding: clamp(10px,1.7vw,25px); background: #f0f3f9; border-radius: 14px; }
.mail-film .ws-player { aspect-ratio: 1244 / 654; border-radius: 6px; box-shadow: var(--mail-shadow); }
.mail-film video { width: 100%; height: 100%; object-fit: cover; }
.mail-contents { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 clamp(14px,2.8vw,40px); padding-block: 8px; border-block: 1px solid var(--tour-line); }
.mail-contents a { display: inline-flex; min-height: 40px; align-items: center; font-size: .91rem; font-weight: 600; color: var(--tour-text); }
.mail-contents a:hover { color: var(--tour-link); text-decoration: underline; text-underline-offset: .25em; }
.mail-story {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  grid-template-areas: "copy media";
  align-items: center;
  gap: clamp(32px,5vw,86px);
  padding-block: clamp(40px,5vw,76px);
  scroll-margin-top: 20px;
}
.mail-story:nth-of-type(odd) { --section-paper: #fff; }
.mail-story:nth-of-type(even) { --section-paper: #f3f5f8; }
.mail-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--section-paper);
  box-shadow: 0 0 0 100vmax var(--section-paper);
  clip-path: inset(0 -100vmax);
  pointer-events: none;
}
.mail-story:nth-of-type(even) { grid-template-columns: minmax(0,1.22fr) minmax(0,.78fr); grid-template-areas: "media copy"; }
.mail-story-copy { grid-area: copy; }
.mail-story h2 { max-width: 21ch; margin: 0; font-size: clamp(1.8rem,2.9vw,2.85rem); letter-spacing: -.04em; line-height: 1.12; text-wrap: balance; }
.mail-story ul { list-style: none; margin: 22px 0 0; padding: 0; color: var(--tour-text); }
.mail-story li { position: relative; padding-inline-start: 27px; line-height: 1.6; }
.mail-story li + li { margin-top: 12px; }
.mail-story li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 6px; border: solid var(--tour-link); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.mail-demo { grid-area: media; position: relative; min-width: 0; margin: 0; aspect-ratio: 1.7; border-radius: 12px; background: linear-gradient(130deg,#f4f6fa,#eff2f8); }
.mail-demo img {
  position: absolute;
  display: block;
  height: auto;
  border: 1px solid #dfe4eb;
  border-radius: 6px;
  box-shadow: 3px 4px 4px -2px rgb(19 37 65 / 18%), 10px 13px 13px -6px rgb(19 37 65 / 33%);
  background: white;
}
.mail-context { inset: 8% auto auto 5%; width: 76%; }
.mail-focus { right: 5%; bottom: 7%; width: 64%; }
.mail-story--drive .mail-focus { width: 52%; }
.mail-story--schedule .mail-focus { width: 52%; }
.mail-story--calendar .mail-focus { width: 47%; }
.mail-story--layout .mail-focus { width: 45%; }
.mail-story--away .mail-focus, .mail-story--unified .mail-focus { width: 83%; }
@media (max-width: 760px) {
  .mail-intro, .mail-story, .mail-story:nth-of-type(even) { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .mail-story, .mail-story:nth-of-type(even) { grid-template-areas: "copy" "media"; padding-block: 34px; }
  .mail-contents { justify-content: flex-start; gap: 0 18px; }
  .mail-intro { padding-block: 28px 33px; }
  .mail-story h2 { max-width: 25ch; }
  .mail-story ul { margin-top: 14px; }
  .mail-demo { aspect-ratio: 1.6; }
  .mail-demo .mail-focus { right: 4%; }
  .mail-story--drive .mail-focus, .mail-story--schedule .mail-focus { width: 62%; }
  .mail-story--layout .mail-focus, .mail-story--calendar .mail-focus { width: 51%; }
  .mail-story--away .mail-focus, .mail-story--unified .mail-focus { width: 91%; }
}
@media (max-width: 500px) {
  .mail-story--calendar .mail-demo, .mail-story--layout .mail-demo { aspect-ratio: 1.34; }
  .mail-story--calendar .mail-focus, .mail-story--layout .mail-focus { width: 62%; }
  .mail-demo img { box-shadow: 2px 3px 3px -1px rgb(19 37 65 / 16%), 7px 9px 9px -4px rgb(19 37 65 / 31%); }
}
