:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}


/* A calm product hand-off replaces the former link catalogue. */
.product-tryout {
  padding: 88px 0;
  background: #f3f1ec;
  border-top: 1px solid #dedbd3;
}

.tryout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(410px, 0.85fr);
  align-items: center;
  gap: 100px;
}

.tryout-copy h2 {
  max-width: 530px;
  margin: 0 0 18px;
  color: #1d2733;
  font-size: clamp(36px, 3.1vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tryout-copy > p:not(.eyebrow):not(.tryout-note) {
  max-width: 505px;
  margin: 0;
  color: #536171;
  font-size: 17px;
  line-height: 1.65;
}

.tryout-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
}

.tryout-actions .button {
  min-width: 190px;
  background: #1f5fbf;
  border-color: #1f5fbf;
}

.tryout-actions .text-link {
  color: #1d2733;
  font-weight: 650;
}

.tryout-note {
  margin: 29px 0 0;
  color: #6b747d;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tryout-preview {
  position: relative;
  min-height: 324px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #c9c6bd;
  background: #e7e4dc;
  box-shadow: 10px 10px 0 #d5d2ca;
}

.tryout-windowbar {
  display: flex;
  align-items: center;
  height: 39px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d8d4cc;
  background: #fbfaf7;
}

.tryout-windowbar > span:not(.tryout-w) {
  width: 27px;
  height: 4px;
  background: #a6abb0;
}

.tryout-windowbar .tryout-w {
  display: grid;
  width: 22px;
  height: 22px;
  margin-right: 5px;
  place-items: center;
  background: #1f5fbf;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.tryout-document {
  width: min(72%, 326px);
  min-height: 214px;
  margin: 0 auto;
  padding: 30px 30px 22px;
  border: 1px solid #d7d4cd;
  background: #fff;
  box-shadow: 0 12px 18px rgba(59, 58, 54, 0.1);
}

.tryout-document p {
  margin: 0 0 27px;
  color: #26313d;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.tryout-document i {
  display: block;
  height: 6px;
  margin-top: 11px;
  background: #b6bec7;
}

.tryout-document i:nth-of-type(2) {
  width: 87%;
}
.tryout-document i:nth-of-type(3) {
  width: 93%;
}
.tryout-document i:nth-of-type(4) {
  width: 58%;
  background: #8ba9d0;
}

.tryout-status {
  position: absolute;
  right: -1px;
  bottom: 23px;
  display: grid;
  gap: 4px;
  width: 210px;
  padding: 14px 16px;
  border: 1px solid #c9c6bd;
  background: #fbfaf7;
  color: #485461;
  font-size: 12px;
  line-height: 1.35;
}

.tryout-status b {
  color: #26313d;
  font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .tryout-preview {
    transition:
      transform 260ms var(--ease-out),
      box-shadow 260ms var(--ease-out);
  }
  .tryout-layout:hover .tryout-preview {
    transform: translate(-3px, -3px);
    box-shadow: 13px 13px 0 #d5d2ca;
  }
}

@media (max-width: 900px) {
  .product-tryout {
    padding: 68px 0;
  }
  .tryout-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .tryout-preview {
    max-width: 620px;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .product-tryout {
    padding: 54px 0;
  }
  .tryout-copy h2 {
    font-size: 34px;
  }
  .tryout-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }
  .tryout-actions .button {
    width: 100%;
  }
  .tryout-preview {
    min-height: 285px;
    padding: 11px;
    box-shadow: 6px 6px 0 #d5d2ca;
  }
  .tryout-document {
    width: 78%;
    min-height: 188px;
    padding: 24px 20px 18px;
  }
  .tryout-status {
    bottom: 16px;
    width: 185px;
    padding: 11px 12px;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* The supplied layered Word mark is the single logo source for header, footer and favicon. */
.site-header .brand img.word-mark {
  display: block;
  width: 60px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
  background: none;
  box-shadow: none;
}

.site-footer .footer-brand img.word-mark {
  display: block;
  width: 60px;
  height: 44px;
  flex: 0 0 60px;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

/* Reference-locked horizontal Word Online signature. */
.header-inner {
  min-height: 78px;
}

.brand,
.footer-brand {
  gap: 12px;
}

.brand-copy {
  display: grid;
  gap: 3px;
  line-height: 1;
  white-space: nowrap;
}

.brand-copy strong {
  color: #1f1f1f;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.brand-copy small {
  color: #51515c;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.05;
}

.footer-brand {
  width: max-content;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  overflow: visible;
}

.footer-brand .brand-copy {
  gap: 3px;
  min-width: 0;
}

.footer-brand .brand-copy strong {
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.footer-brand .brand-copy small {
  color: #bdbdc3;
  font-size: 12px;
  letter-spacing: 0;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

@media (max-width: 930px) {
  .header-inner {
    min-height: 68px;
  }
  .brand img.word-mark {
    width: 52px;
    height: 38px;
  }
  .brand .brand-copy small {
    display: none;
  }
  .brand .brand-copy strong {
    font-size: 18px;
  }
}

@media (max-width: 680px) {
  .site-footer .footer-top {
    display: block;
  }

  .header-inner {
    min-height: 58px;
  }
  .brand img.word-mark {
    width: 46px;
    height: 34px;
  }
  .brand .brand-copy strong {
    font-size: 15px;
  }
  .brand .brand-copy strong::after {
    content: none;
  }
  .footer-brand {
    min-width: 0;
  }
  .footer-brand img.word-mark {
    width: 60px;
    height: 44px;
    flex-basis: 60px;
  }
  .footer-brand .brand-copy strong {
    font-size: 20px;
  }
  .footer-brand .brand-copy small {
    display: block;
    font-size: 12px;
  }
}

/* A 2px reading rail adds useful state without competing with the sticky header. */
.site-header {
  --reading-progress: 0;
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #185abd;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    opacity: 1;
    animation: reading-progress linear both;
    animation-timeline: scroll(root block);
  }
}

/* Hero motion explains the product: writing, assistance and saved state. */
.hero {
  position: relative;
  isolation: isolate;
  background: #f7f9fc;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 51%,
    #edf5fd 51%,
    #edf5fd 100%
  );
}

.hero::after {
  left: 51%;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(64, 105, 148, 0.08) 0,
      rgba(64, 105, 148, 0.08) 1px,
      transparent 1px,
      transparent 32px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(64, 105, 148, 0.055) 0,
      rgba(64, 105, 148, 0.055) 1px,
      transparent 1px,
      transparent 64px
    );
  opacity: 0.72;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-grid::before {
  content: "";
  position: absolute;
  top: -68px;
  bottom: -58px;
  left: 51%;
  width: 1px;
  background: rgba(24, 90, 189, 0.18);
  pointer-events: none;
}

.hero h1 {
  width: 100%;
  max-width: 455px;
  margin-bottom: 24px;
  color: #101820;
  font-family: "Segoe UI", SegoeUI, system-ui, sans-serif;
  font-size: clamp(44px, 3.55vw, 52px);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.hero h1 [data-hero-line] {
  white-space: nowrap;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 .hero-brand-line {
  margin-bottom: 9px;
  color: #185abd;
  font-size: 0.5em;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.005em;
}

.hero-scenario {
  max-width: 445px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid #c9d6e3;
}

.hero-scenario-label {
  display: block;
  margin-bottom: 6px;
  color: #617286;
  font-size: 12px;
  font-weight: 600;
}

.hero-scenario-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #d7e0e9;
}

.hero-scenario-tabs button {
  position: relative;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5b6877;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.hero-scenario-tabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #185abd;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 200ms var(--ease-out);
}

.hero-scenario-tabs button[aria-pressed="true"] {
  color: #185abd;
}

.hero-scenario-tabs button[aria-pressed="true"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.hero-scenario-result {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding-left: 13px;
  border-left: 2px solid #185abd;
}

.hero-scenario-result strong {
  color: #1f3042;
  font-size: 13px;
  line-height: 1.35;
}

.hero-scenario-result span {
  color: #617286;
  font-size: 12px;
  line-height: 1.45;
}

.motion-ready .hero-copy h1 [data-hero-line] {
  display: block;
  opacity: 0;
  transform: translateY(18px);
}

.motion-ready .hero-copy[data-visible] h1 [data-hero-line] {
  animation: hero-title-in 600ms var(--ease-out) forwards;
}

.motion-ready .hero-copy[data-visible] h1 [data-hero-line]:nth-child(2) {
  animation-delay: 70ms;
}

.motion-ready .hero-copy[data-visible] h1 [data-hero-line]:nth-child(3) {
  animation-delay: 140ms;
}

/* GSAP SplitText owns the entrance once its scripts are available. The CSS
   animation above stays as the no-JavaScript / offline fallback. */
.gsap-text-active .hero-copy h1 {
  text-wrap: wrap;
}

.gsap-text-active.motion-ready .hero-copy h1 [data-hero-line],
.gsap-text-active.motion-ready .hero-copy[data-visible] h1 [data-hero-line] {
  display: block;
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-title-word {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-lead-line-mask {
  overflow: clip;
}

.hero-lead-line {
  display: block;
  will-change: transform, opacity;
}

.hero-product {
  isolation: isolate;
}

.hero-product::before,
.hero-product::after {
  content: "";
  position: absolute;
  top: 9%;
  right: 7%;
  z-index: 0;
  width: 63%;
  height: 78%;
  background: #fff;
  border: 1px solid #c8d8e9;
  box-shadow: 0 12px 24px rgba(33, 75, 119, 0.08);
  pointer-events: none;
}

.hero-product::before {
  transform: translate(-22px, 17px) rotate(-2.2deg);
}

.hero-product::after {
  background: #f7fbff;
  transform: translate(17px, -13px) rotate(1.7deg);
}

.hero-visual {
  position: relative;
  z-index: 1;
  animation: hero-workspace-drift 8s var(--ease-in-out) infinite alternate;
}

.hero-motion-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-popover {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #cbdced;
  box-shadow: 0 14px 32px rgba(28, 74, 124, 0.14);
  color: #182b40;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
}

.motion-ready .hero-product[data-visible] .hero-save-popover {
  animation: hero-save-cycle 9s var(--ease-in-out) 850ms infinite;
}

.motion-ready .hero-product[data-visible] .hero-writing-popover {
  animation: hero-popover-in 500ms var(--ease-out) 1450ms forwards;
}

.hero-save-popover {
  top: 7%;
  right: -2%;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 210px;
  padding: 12px 14px;
}

.hero-popover-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  background: #e8f2fd;
  color: #185abd;
}

.hero-popover-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-popover-copy {
  display: grid;
  gap: 2px;
}

.hero-popover-copy strong,
.hero-writing-heading strong {
  font-size: 13px;
  line-height: 1.25;
}

.hero-popover-copy small {
  color: #607286;
  font-size: 11px;
}

.hero-writing-popover {
  left: -5%;
  bottom: 3%;
  width: 290px;
  padding: 16px 17px 14px;
}

.hero-writing-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-ai-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: #185abd;
  color: #fff;
  font-size: 13px;
}

.hero-typing-row {
  display: flex;
  align-items: center;
  min-height: 22px;
  margin: 0 0 11px;
  color: #334a62;
  font-size: 12px;
  white-space: nowrap;
}

.hero-typed-copy {
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
}

.motion-ready .hero-product[data-visible] .hero-typed-copy {
  animation: hero-type-copy 7s steps(31, end) 2s infinite;
}

.hero-typing-caret {
  width: 1px;
  height: 16px;
  margin-left: 2px;
  background: #185abd;
  opacity: 0;
}

.motion-ready .hero-product[data-visible] .hero-typing-caret {
  animation: hero-caret 760ms linear 2s infinite;
}

.hero-writing-action {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  background: #edf5ff;
  color: #185abd;
  font-size: 11px;
  font-weight: 600;
}

.hero-collaborator-cursor {
  position: absolute;
  top: 36%;
  left: 58%;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  color: #0f6cbd;
  opacity: 0;
  transform: translate(0, 0);
}

.hero-collaborator-cursor svg {
  width: 19px;
  height: 23px;
  fill: #0f6cbd;
  stroke: #fff;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.hero-collaborator-cursor span {
  padding: 2px 6px 3px;
  background: #0f6cbd;
  color: #fff;
  font-size: 9px;
  line-height: 1.2;
}

.motion-ready .hero-product[data-visible] .hero-collaborator-cursor {
  animation: collaborator-cursor 10s var(--ease-in-out) 3.2s infinite;
}

.hero-text-selection {
  position: absolute;
  top: 47%;
  left: 57%;
  width: 25%;
  height: 10px;
  background: rgba(24, 90, 189, 0.2);
  border-left: 2px solid #185abd;
  opacity: 0;
  transform: translateY(0) scaleX(0.08);
  transform-origin: left center;
}

.motion-ready .hero-product[data-visible] .hero-text-selection {
  animation: text-selection-cycle 10s var(--ease-in-out) 3.2s infinite;
}

.template-icon {
  transform-origin: center;
  transition: transform 180ms ease;
}

.work-icon,
.upload-visual {
  transition: transform 250ms var(--ease-out);
}

/* The opening choices demonstrate two distinct paths instead of sitting as static rows. */
.work-choice {
  position: relative;
  overflow: hidden;
}

.work-choice::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background: #185abd;
  transform: scaleX(0);
  transform-origin: left center;
}

.work-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.work-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f1f7fe;
  transform: translateX(-101%);
  transition: transform 240ms var(--ease-in-out);
}

body.motion-ready .start-layout[data-visible] .work-choice::after {
  animation: choice-rail-in 720ms var(--ease-out) 140ms both;
}

body.motion-ready .start-layout[data-visible] .work-row .work-icon {
  animation: work-icon-in 420ms var(--ease-out) both;
}

body.motion-ready
  .start-layout[data-visible]
  .work-row:nth-child(2)
  .work-icon {
  animation-delay: 80ms;
}

.work-row i {
  display: inline-block;
  transition: transform 160ms var(--ease-out);
}

.related-links a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.related-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 250ms var(--ease-in-out);
}

body.motion-ready .workflow[data-visible] .workflow-steps article {
  animation: workflow-step-in 360ms var(--ease-out) both;
}

body.motion-ready .workflow[data-visible] .workflow-steps article:nth-child(2) {
  animation-delay: 65ms;
}

body.motion-ready .workflow[data-visible] .workflow-steps article:nth-child(3) {
  animation-delay: 130ms;
}

/* One coherent outline icon family for authoring, formatting and DOCX continuity. */
.workflow-steps article {
  grid-template-columns: 34px 50px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.workflow-step-icon,
.guide-step-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: #ffffff;
  border: 1px solid #bdd0e4;
  color: #29415b;
  transition:
    transform 200ms var(--ease-out),
    border-color 160ms ease,
    background-color 160ms ease;
}

.workflow-step-icon svg,
.guide-step-icon svg {
  width: 38px;
  height: 38px;
  overflow: visible;
}

.workflow-step-icon path,
.guide-step-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.workflow-step-icon .icon-accent,
.guide-step-icon .icon-accent {
  color: #185abd;
  stroke-width: 2.2;
}

/* A product-specific editor diagram gives the SEO copy real visual evidence. */
.word-online-visual {
  width: 100%;
  min-width: 0;
  margin: 34px 0 0;
  overflow: hidden;
  border-top: 1px solid #b9c8d7;
  border-bottom: 1px solid #b9c8d7;
  background: #f4f8fd;
}

.word-online-visual svg {
  display: block;
  width: 100%;
  height: auto;
  color: #334a62;
}

.word-online-visual .visual-shell,
.word-online-visual .visual-page,
.word-online-visual .visual-nav,
.word-online-visual .visual-toolbar,
.word-online-visual .visual-ribbon,
.word-online-visual .visual-canvas {
  stroke: #c7d7e7;
  stroke-width: 1;
}

.word-online-visual .visual-shell {
  fill: #eef5fc;
}

.word-online-visual .visual-toolbar,
.word-online-visual .visual-page {
  fill: #ffffff;
}

.word-online-visual .visual-ribbon {
  fill: #f8fbfe;
}

.word-online-visual .visual-nav {
  fill: #e7f0fa;
}

.word-online-visual .visual-canvas {
  fill: #dfeaf6;
}

.word-online-visual .visual-nav-active {
  fill: #d1e3f8;
}

.word-online-visual .visual-profile {
  fill: #7a9cc2;
}

.word-online-visual .visual-word-mark {
  fill: #185abd;
}

.word-online-visual text {
  fill: #ffffff;
  font:
    700 14px Georgia,
    serif;
}

.word-online-visual .visual-ui-line,
.word-online-visual .visual-ribbon-line,
.word-online-visual .visual-title-line,
.word-online-visual .visual-copy-line,
.word-online-visual .visual-comment path {
  fill: none;
  stroke-linecap: square;
}

.word-online-visual .visual-ui-line {
  stroke: #7590aa;
  stroke-width: 6;
}

.word-online-visual .visual-ribbon-line {
  fill: none;
  stroke: #8ba3bb;
  stroke-width: 4;
  stroke-linecap: square;
}

.word-online-visual .visual-title-line {
  stroke: #17314b;
  stroke-width: 9;
}

.word-online-visual .visual-copy-line {
  stroke: #a9bacb;
  stroke-width: 6;
}

.word-online-visual .visual-selection {
  fill: #c9ddf5;
  transform-origin: left center;
}

.word-online-visual .visual-comment rect {
  fill: #ffffff;
  stroke: #9fb8d2;
}

.word-online-visual .visual-comment circle {
  fill: #185abd;
}

.word-online-visual .visual-comment path {
  stroke: #7890a9;
  stroke-width: 4;
}

.word-online-visual .visual-cursor path,
.word-online-visual .visual-cursor rect {
  fill: #185abd;
}

.word-online-visual .visual-cursor text {
  font:
    600 10px "Segoe UI",
    sans-serif;
}

.word-online-visual figcaption {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #c7d7e7;
}

.word-online-visual figcaption span {
  min-height: 38px;
  padding: 10px 14px;
  color: #52687e;
  font-size: 12px;
  font-weight: 600;
}

.word-online-visual figcaption span + span {
  border-left: 1px solid #c7d7e7;
}

body.motion-ready .reading-layout[data-visible] .visual-selection {
  animation: editor-selection 7s var(--ease-in-out) 900ms infinite;
}

body.motion-ready .reading-layout[data-visible] .visual-cursor {
  animation: editor-cursor 7s var(--ease-in-out) 900ms infinite;
}

body.motion-ready .reading-layout[data-visible] .visual-comment {
  animation: editor-comment 7s var(--ease-out) 900ms infinite;
  transform-origin: 656px 110px;
}

.guide-layout li {
  grid-template-columns: 28px 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.guide-step-icon {
  background: #ffffff;
}

.faq-list summary span {
  transform: rotate(0);
  transition: transform 200ms var(--ease-out);
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.main-nav a,
.login {
  position: relative;
}

.main-nav a:hover,
.login:hover {
  text-decoration: none;
}

.main-nav a::after,
.login::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .document-list > a:hover .template-icon {
    transform: translateX(4px) rotate(-2deg) scale(1.03);
  }

  .main-nav a:hover::after,
  .login:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .work-row:hover .work-icon {
    transform: translateX(4px) scale(1.03);
  }

  .work-row:hover::before {
    transform: translateX(0);
  }

  .work-row:hover i {
    transform: translateX(4px);
  }

  .upload-panel:hover .upload-visual {
    transform: translateY(-6px) rotate(-1deg);
  }

  .related-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .workflow-steps article:hover .workflow-step-icon,
  .guide-layout li:hover .guide-step-icon {
    transform: translateX(4px);
    border-color: #185abd;
    background-color: #f8fbff;
  }
}

@keyframes choice-rail-in {
  to {
    transform: scaleX(1);
  }
}

@keyframes work-icon-in {
  from {
    opacity: 0;
    transform: translateX(-12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes editor-selection {
  0%,
  18%,
  100% {
    opacity: 0;
    transform: scaleX(0.12);
  }
  27%,
  62% {
    opacity: 1;
    transform: scaleX(1);
  }
  72% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes editor-cursor {
  0%,
  16%,
  100% {
    opacity: 0;
    transform: translate(-72px, 38px);
  }
  24% {
    opacity: 1;
    transform: translate(-72px, 38px);
  }
  50%,
  68% {
    opacity: 1;
    transform: translate(0, 0);
  }
  78% {
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes editor-comment {
  0%,
  48%,
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  57%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  88% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
}

@keyframes reading-progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes hero-title-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-workspace-drift {
  to {
    transform: translateY(-5px);
  }
}

@keyframes hero-popover-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-save-cycle {
  0%,
  5% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  12%,
  44% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  52%,
  100% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}

@keyframes hero-type-copy {
  0%,
  14% {
    clip-path: inset(0 100% 0 0);
  }
  48%,
  86%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hero-caret {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

@keyframes collaborator-cursor {
  0%,
  24% {
    opacity: 0;
    transform: translate(0, 0);
  }
  30% {
    opacity: 1;
    transform: translate(0, 0);
  }
  48% {
    opacity: 1;
    transform: translate(54px, 38px);
  }
  64% {
    opacity: 1;
    transform: translate(18px, 84px);
  }
  72%,
  100% {
    opacity: 0;
    transform: translate(18px, 84px);
  }
}

@keyframes text-selection-cycle {
  0%,
  28% {
    opacity: 0;
    transform: translateY(0) scaleX(0.08);
  }
  34%,
  48% {
    opacity: 1;
    transform: translateY(0) scaleX(1);
  }
  56%,
  64% {
    opacity: 1;
    transform: translateY(42px) scaleX(0.72);
  }
  72%,
  100% {
    opacity: 0;
    transform: translateY(42px) scaleX(0.72);
  }
}

@keyframes workflow-step-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero::before {
    background: linear-gradient(
      180deg,
      #f8fafc 0%,
      #f8fafc 46%,
      #eaf2fb 46%,
      #eaf2fb 100%
    );
  }

  .hero::after {
    top: 46%;
    left: 0;
  }

  .hero-grid::before {
    display: none;
  }

  .hero-save-popover {
    right: 1%;
  }

  .hero-writing-popover {
    left: 1%;
  }

  .hero-collaborator-cursor {
    top: 37%;
    left: 54%;
  }

  .word-online-visual {
    max-width: 760px;
  }

  .reading-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .reading-content,
  .section-label {
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(36px, 10.8vw, 42px);
    line-height: 1.04;
    letter-spacing: -0.035em;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      #f8fafc 0%,
      #f8fafc 48%,
      #eaf2fb 48%,
      #eaf2fb 100%
    );
  }

  .hero::after {
    top: 48%;
  }

  .hero-product::before,
  .hero-product::after {
    right: 8%;
    width: 66%;
    height: 75%;
  }

  .hero-scenario {
    max-width: none;
  }

  .hero-scenario-tabs {
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hero-scenario-tabs::-webkit-scrollbar {
    display: none;
  }

  .hero-scenario-tabs button {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .hero-save-popover {
    top: 2%;
    right: 0;
    width: 184px;
    padding: 9px 10px;
  }

  .hero-popover-icon {
    flex-basis: 29px;
    width: 29px;
    height: 29px;
  }

  .hero-writing-popover {
    left: 0;
    bottom: 1%;
    width: 244px;
    padding: 12px 13px;
  }

  .hero-writing-heading {
    margin-bottom: 8px;
  }

  .hero-typing-row {
    margin-bottom: 0;
    font-size: 10px;
  }

  .hero-writing-action {
    display: none;
  }

  .workflow-steps article {
    grid-template-columns: 26px 44px minmax(0, 1fr);
    gap: 11px;
  }

  .workflow-step-icon,
  .guide-step-icon {
    width: 42px;
    height: 42px;
  }

  .workflow-step-icon svg,
  .guide-step-icon svg {
    width: 34px;
    height: 34px;
  }

  .word-online-visual {
    margin-top: 26px;
    overflow: hidden;
  }

  .word-online-visual svg {
    width: 720px;
    max-width: none;
    transform: translateX(-140px);
  }

  .word-online-visual figcaption span {
    padding: 9px 8px;
    text-align: center;
    font-size: 10px;
  }

  .guide-layout li {
    grid-template-columns: 22px 42px minmax(0, 1fr);
    gap: 10px;
  }
}

/* Motion supports reading order: one quiet entrance per meaningful content group. */
body.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 480ms var(--ease-out),
    transform 480ms var(--ease-out);
}

body.motion-ready [data-reveal][data-visible] {
  opacity: 1;
  transform: translateY(0);
}

body.motion-ready [data-reveal-list] > a {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}

body.motion-ready [data-reveal-list][data-visible] > a {
  opacity: 1;
  transform: translateY(0);
}

body.motion-ready [data-reveal-list][data-visible] > a:nth-child(2) {
  transition-delay: 55ms;
}
body.motion-ready [data-reveal-list][data-visible] > a:nth-child(3) {
  transition-delay: 110ms;
}
body.motion-ready [data-reveal-list][data-visible] > a:nth-child(4) {
  transition-delay: 165ms;
}
body.motion-ready [data-reveal-list][data-visible] > a:nth-child(5) {
  transition-delay: 220ms;
}
body.motion-ready [data-reveal-list][data-visible] > a:nth-child(6) {
  transition-delay: 275ms;
}

.button {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms var(--ease-out);
}

.button:active {
  transform: scale(0.97);
}

.text-link span,
.document-list b,
.related-links b {
  display: inline-block;
  transition: transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover span,
  .document-list > a:hover b,
  .related-links a:hover b {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.motion-ready [data-reveal],
  body.motion-ready [data-reveal-list] > a {
    transform: none;
    transition: opacity 180ms ease;
  }

  body.motion-ready [data-reveal-list][data-visible] > a {
    transition-delay: 0ms;
  }
  .button,
  .text-link span,
  .document-list b,
  .related-links b {
    transition-duration: 0ms;
  }

  .hero::after,
  .hero-visual,
  .motion-ready .hero-copy[data-visible] h1 [data-hero-line],
  .motion-ready .hero-product[data-visible] .hero-save-popover,
  .motion-ready .hero-product[data-visible] .hero-writing-popover,
  .motion-ready .hero-product[data-visible] .hero-typed-copy,
  .motion-ready .hero-product[data-visible] .hero-typing-caret {
    animation: none;
  }

  .motion-ready .hero-product[data-visible] .hero-collaborator-cursor {
    animation: none;
    opacity: 0;
  }

  .motion-ready .hero-product[data-visible] .hero-text-selection,
  body.motion-ready .workflow[data-visible] .workflow-steps article,
  body.motion-ready .start-layout[data-visible] .work-row .work-icon {
    animation: none;
    opacity: 1;
    transform: none;
  }

  body.motion-ready .start-layout[data-visible] .work-choice::after,
  body.motion-ready .reading-layout[data-visible] .visual-selection,
  body.motion-ready .reading-layout[data-visible] .visual-cursor,
  body.motion-ready .reading-layout[data-visible] .visual-comment {
    animation: none;
  }

  .visual-selection,
  .visual-cursor,
  .visual-comment {
    opacity: 1;
    transform: none;
  }

  .hero-text-selection {
    display: none;
  }

  .scroll-progress {
    display: none;
  }

  .template-icon,
  .work-icon,
  .upload-visual,
  .work-row i,
  .work-row::before,
  .workflow-step-icon,
  .guide-step-icon,
  .faq-list summary span,
  .main-nav a::after,
  .login::after,
  .related-links a::before {
    transition-duration: 0ms;
  }

  .hero-scenario-tabs button::after {
    transition-duration: 0ms;
  }

  .motion-ready .hero-copy h1 [data-hero-line],
  .hero-popover {
    opacity: 1;
    transform: none;
  }

  .hero-typed-copy {
    clip-path: inset(0 0 0 0);
  }

  .hero-typing-caret {
    display: none;
  }
}
