/* Landing page: Bauhaus in motion. Primary colours, flat shapes, thick rules; every animation has a still end state. */

/* Scroll progress */
.scroll-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 6px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--red) 0 33.34%,
    var(--blue) 33.34% 66.67%,
    var(--yellow) 66.67% 100%
  );
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0);
}

/* Shared section vocabulary */
.eyebrow {
  display: inline-block;
  background: var(--yellow);
  border: 3px solid var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.4;
  padding: 2px 10px;
  margin-bottom: 18px;
}
.why,
.features,
.sample,
.steps {
  border-top: 4px solid var(--ink);
  padding: 64px 0;
}
.why h2,
.features h2,
.sample h2,
.steps h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 0 0 14px;
}
.section-lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
}

/* Scroll reveal. JS adds .reveal only to elements still below the fold and removes it once shown. */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0 64px;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
}
.kicker::before {
  content: "";
  width: 44px;
  height: 6px;
  background: var(--red);
  transform-origin: left;
  animation: grow 0.8s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -2px;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding: 0 0.06em 0.08em 0;
}
.hero h1 .line > span {
  display: block;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.hero h1 .line:nth-child(2) > span {
  animation-delay: 0.14s;
}
.forget {
  display: inline-block;
  color: var(--red);
  font-style: normal;
  animation: forget 5.5s 1.8s ease-in-out infinite;
}
.hero-answer {
  max-width: 560px;
  margin: 0 0 20px;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 900;
  line-height: 1.55;
  animation: fade-up 0.8s 0.5s ease backwards;
}
.hero-answer mark {
  color: inherit;
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 0 / 100% 100%;
  padding: 0 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: sweep 0.9s 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.hero-lede {
  max-width: 500px;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.9;
  animation: fade-up 0.8s 0.65s ease backwards;
}
.delivery-time {
  display: inline-block;
  margin: 0 0 26px;
  padding: 4px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  animation: fade-up 0.8s 0.75s ease backwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fade-up 0.8s 0.85s ease backwards;
}
.hero-actions .button {
  width: auto;
}
.hero-action {
  position: relative;
  overflow: hidden;
}
.hero-action::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s;
}
.hero-action:hover::after {
  transform: translateX(6px);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 800;
  animation: fade-up 0.8s 0.95s ease backwards;
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-row li::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--red);
}
.trust-row li:nth-child(2)::before {
  background: var(--blue);
  border-radius: 50%;
}
.trust-row li:nth-child(3)::before {
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Hero stage: an animated Bauhaus composition around a miniature email */
.hero-stage {
  --mx: 0;
  --my: 0;
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  margin-left: auto;
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--yellow);
  animation: pop 0.9s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 10% 10%;
}
.px {
  position: absolute;
  transform: translate(calc(var(--mx) * var(--k, 10) * 1px), calc(var(--my) * var(--k, 10) * 1px));
  transition: transform 0.35s ease-out;
}
.px .shape {
  display: block;
  width: 100%;
  height: 100%;
}
.p-circle {
  --k: 22;
  left: -7%;
  top: -6%;
  width: 46%;
  aspect-ratio: 1;
}
.p-circle .shape {
  background: var(--red);
  border-radius: 50%;
  animation: bob 6s ease-in-out infinite;
}
.p-tri {
  --k: 26;
  right: 7%;
  top: 7%;
  width: 26%;
  aspect-ratio: 1;
}
.p-tri .shape {
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: 50% 100%;
  animation: swing 5s ease-in-out infinite;
}
.p-half {
  --k: -18;
  left: 5%;
  bottom: -9%;
  width: 36%;
  aspect-ratio: 1;
}
.p-half .shape {
  background: var(--ink);
  border-radius: 50%;
  clip-path: inset(0 0 50% 0);
  animation: spin 14s linear infinite;
}
.p-square {
  --k: -14;
  right: 6%;
  bottom: 5%;
  width: 30%;
  aspect-ratio: 1;
}
.p-square .shape {
  background: var(--blue);
  animation: spin 20s linear infinite reverse;
}
.p-bar {
  --k: 8;
  left: 0;
  top: 52%;
  width: 100%;
  height: 3.5%;
}
.p-bar .shape {
  background: var(--ink);
  animation: slide 7s ease-in-out infinite alternate;
}
.hero-mail {
  --k: 12;
  left: 11%;
  top: 22%;
  width: 66%;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 var(--red);
  animation: float 6.5s ease-in-out infinite;
}
.hm-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.hm-bar i {
  display: block;
  width: 8px;
  height: 8px;
}
.hm-bar i:nth-child(1) {
  background: var(--red);
  border-radius: 50%;
}
.hm-bar i:nth-child(2) {
  background: var(--blue);
}
.hm-bar i:nth-child(3) {
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.hm-bar span {
  margin-left: 6px;
}
.hm-body {
  padding: 14px 14px 12px;
}
.hm-body strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 900;
  line-height: 1.3;
}
.hm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.hm-row b {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: var(--red);
}
.hm-row:nth-of-type(2) b {
  background: var(--blue);
  border-radius: 50%;
}
.hm-row:nth-of-type(3) b {
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.hm-row span {
  flex: 1;
  height: 10px;
  background: #dcd7c6;
  transform-origin: left;
  animation: load 4.5s ease-in-out infinite;
}
.hm-row:nth-of-type(2) span {
  width: 84%;
  flex: none;
  animation-delay: 0.35s;
}
.hm-row:nth-of-type(3) span {
  width: 92%;
  flex: none;
  animation-delay: 0.7s;
}
.hm-body em {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--muted);
}
.p-timer {
  --k: 30;
  right: 4%;
  top: 40%;
  width: 22%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  animation: float 5s -2s ease-in-out infinite;
}
.p-timer svg {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  transform: rotate(-90deg);
}
.t-track {
  fill: none;
  stroke: rgb(17 17 17 / 0.18);
  stroke-width: 6;
}
.t-run {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-dasharray: 163.4;
  animation: countdown 3s linear infinite;
}
.p-timer b {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 900;
  line-height: 1;
}
.p-timer small {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 1.5px;
}

/* Ticker */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
}
.ticker-group span {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0 14px 28px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 3px;
  white-space: nowrap;
}
.ticker-group span::after {
  content: "";
  width: 13px;
  height: 13px;
  background: var(--red);
  border-radius: 50%;
}
.ticker-group span:nth-child(3n + 2)::after {
  background: var(--blue);
  border-radius: 0;
}
.ticker-group span:nth-child(3n)::after {
  background: var(--yellow);
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Why: forgetting vs keeping */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  margin-top: 36px;
}
.why-card {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  border: 3px solid var(--ink);
  background: var(--white);
}
.why-tag {
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 2px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.why-caption {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 900;
}
.why-scroll {
  background: #e8e4d6;
}
.drift {
  position: relative;
  flex: 1;
  min-height: 250px;
  overflow: hidden;
}
.drift span {
  position: absolute;
  left: 4%;
  top: 4%;
  padding: 6px 14px;
  background: var(--white);
  border: 3px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0.45;
  animation: vanish 6.4s ease-in-out infinite;
}
.drift span:nth-child(1) { left: 4%; top: 4%; animation-delay: 0s; }
.drift span:nth-child(2) { left: 46%; top: 17%; animation-delay: -0.8s; }
.drift span:nth-child(3) { left: 10%; top: 30%; animation-delay: -1.6s; }
.drift span:nth-child(4) { left: 40%; top: 43%; animation-delay: -2.4s; }
.drift span:nth-child(5) { left: 2%; top: 56%; animation-delay: -3.2s; }
.drift span:nth-child(6) { left: 44%; top: 69%; animation-delay: -4s; }
.drift span:nth-child(7) { left: 12%; top: 82%; animation-delay: -4.8s; }
.drift span:nth-child(8) { left: 52%; top: 91%; animation-delay: -5.6s; }
.why-arrow {
  display: grid;
  place-items: center;
  width: 84px;
}
.why-arrow i {
  display: block;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  animation: nudge 1.6s ease-in-out infinite;
}
.keep-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.keep-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.keep-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.keep-list b {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--red);
  font-size: 18px;
  font-weight: 900;
  transition: transform 0.3s;
}
.keep-list li:nth-child(2) b {
  background: var(--blue);
  border-radius: 50%;
}
.keep-list li:nth-child(3) b {
  background: var(--yellow);
  color: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  padding-top: 14px;
  font-size: 14px;
}
.keep-list li:hover b {
  transform: rotate(-8deg) scale(1.1);
}
.keep-list span {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}
.keep-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.feature {
  --c: var(--red);
  position: relative;
  padding: 28px 22px 24px;
  background: var(--white);
  border: 3px solid var(--ink);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.feature:hover {
  transform: translate(-5px, -5px);
  box-shadow: 9px 9px 0 var(--c);
}
.f-blue { --c: var(--blue); }
.f-yellow { --c: var(--yellow); }
.f-ink { --c: var(--ink); }
.f-ico {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  background: var(--c);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.f-red .f-ico {
  border-radius: 50%;
}
.f-yellow .f-ico {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.f-ink .f-ico {
  border-radius: 50% 50% 0 0;
  height: 26px;
  margin-top: 26px;
}
.feature:hover .f-ico {
  transform: rotate(90deg) scale(1.12);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
}
.feature p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.85;
}

/* Sample email */
.sample-head {
  margin-bottom: 36px;
}
.sample-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.sample-tools {
  position: sticky;
  top: 24px;
}
.edition-tabs {
  display: flex;
  border: 3px solid var(--ink);
  background: var(--white);
}
.edition-tabs button {
  flex: 1;
  min-height: 46px;
  padding: 6px 10px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transition: background 0.15s;
}
.edition-tabs button + button {
  border-left: 3px solid var(--ink);
}
.edition-tabs button:hover {
  background: var(--yellow);
}
.edition-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}
.tools-title {
  margin: 26px 0 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
}
.demo-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-chip {
  min-height: 42px;
  padding: 6px 16px;
  border: 3px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}
.demo-chip:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}
.demo-chip[aria-pressed="true"] {
  background: var(--blue);
  color: var(--white);
}
.tools-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.mail-frame {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--blue);
}
.mail-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}
.mail-chrome i {
  display: block;
  width: 11px;
  height: 11px;
}
.mail-chrome i:nth-child(1) {
  background: var(--red);
  border-radius: 50%;
}
.mail-chrome i:nth-child(2) {
  background: var(--blue);
}
.mail-chrome i:nth-child(3) {
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.mail-chrome span {
  margin-left: 8px;
}
.mail-panel:not([hidden]) {
  animation: panel-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mail-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 18px;
  margin: 0;
  padding: 16px 28px;
  border-bottom: 3px solid var(--ink);
  font-size: 13px;
}
.mail-meta dt {
  color: var(--muted);
  font-weight: 700;
}
.mail-meta dd {
  margin: 0;
  font-weight: 800;
}
.mail-body {
  padding: 26px 28px 22px;
}
.m-mast {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
}
.m-title {
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -1px;
}
.m-list {
  display: flex;
  flex-direction: column;
}
.m-story {
  margin-bottom: 18px;
  padding: 0 0 18px;
  border-bottom: 2px solid var(--ink);
  transition:
    padding 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
.m-story.is-followed {
  padding: 12px 14px 18px 24px;
  background: #eef3fb;
  box-shadow: inset 10px 0 0 var(--blue);
}
.m-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.5;
}
.tone-r {
  background: var(--red);
  color: var(--white);
}
.tone-b {
  background: var(--blue);
  color: var(--white);
}
.tone-y {
  background: var(--yellow);
  color: var(--ink);
}
.m-flag {
  display: none;
  margin-left: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}
.is-followed .m-flag {
  display: inline;
}
.m-story h4 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
}
.m-more p {
  margin: 0 0 8px;
  color: #333;
  font-size: 14px;
  line-height: 1.85;
}
.m-why strong {
  margin-right: 8px;
  color: var(--ink);
}
.m-src {
  color: var(--muted);
  font-size: 12px;
}
.m-story.is-folded {
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.m-story.is-folded h4 {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}
.m-story.is-folded .m-label {
  opacity: 0.55;
}
.m-story.is-folded .m-more,
.m-story.is-folded .m-src {
  display: none;
}
.m-observe {
  margin: 6px 0 16px;
  padding: 14px 18px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}
.m-observe strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}
.m-foot {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px 0 36px;
  padding: 0;
  list-style: none;
  border: 3px solid var(--ink);
}
.steps-grid li {
  position: relative;
  padding: 30px 28px 32px;
  overflow: hidden;
  border-right: 3px solid var(--ink);
  background: var(--red);
  color: var(--white);
}
.steps-grid li:last-child {
  border-right: 0;
}
.steps-grid .s-blue {
  background: var(--blue);
}
.steps-grid .s-yellow {
  background: var(--yellow);
  color: var(--ink);
}
.steps-grid b {
  display: block;
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.steps-grid li:hover b {
  transform: translateX(10px);
}
.steps-grid h3 {
  margin: 14px 0 8px;
  font-size: 24px;
  font-weight: 900;
}
.steps-grid p {
  margin: 0;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.85;
}
.steps-cta {
  width: auto;
}

/* Keyframes */
@keyframes rise {
  from { transform: translateY(110%); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
}
@keyframes grow {
  from { transform: scaleX(0); }
}
@keyframes sweep {
  from { background-size: 0 100%; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
}
@keyframes forget {
  0%, 35%, 100% { opacity: 1; filter: blur(0); transform: none; }
  60%, 80% { opacity: 0.12; filter: blur(7px); transform: translateY(-6px) scale(0.9); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(14px) scale(1.05); }
}
@keyframes swing {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes slide {
  from { transform: translateX(-30%); }
  to { transform: translateX(30%); }
}
@keyframes float {
  0%, 100% { transform: translate(calc(var(--mx) * var(--k, 10) * 1px), calc(var(--my) * var(--k, 10) * 1px)); }
  50% { transform: translate(calc(var(--mx) * var(--k, 10) * 1px), calc(var(--my) * var(--k, 10) * 1px - 12px)); }
}
@keyframes load {
  0% { transform: scaleX(0); }
  35%, 85% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@keyframes countdown {
  from { stroke-dashoffset: 163.4; }
  to { stroke-dashoffset: 0; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes vanish {
  0% { opacity: 0; filter: blur(8px); transform: translateY(14px); }
  22%, 45% { opacity: 1; filter: blur(0); transform: none; }
  80%, 100% { opacity: 0; filter: blur(8px); transform: translateY(-14px); }
}
@keyframes nudge {
  0%, 100% { transform: translateX(-4px); }
  50% { transform: translateX(8px); }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateX(24px); }
}

/* Responsive */
@media (min-width: 1600px) {
  .hero {
    gap: 96px;
    padding-top: 72px;
  }
  .hero h1 {
    font-size: 88px;
  }
}
@media (max-width: 1000px) {
  .hero {
    gap: 36px;
  }
  .hero h1 {
    font-size: clamp(42px, 7vw, 60px);
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sample-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sample-tools {
    position: static;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-arrow {
    width: auto;
    height: 64px;
  }
  .why-arrow i {
    transform: rotate(90deg);
    animation: none;
  }
}
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 36px 0 44px;
  }
  .hero h1 {
    font-size: clamp(40px, 12vw, 56px);
    letter-spacing: -1.5px;
  }
  .hero-answer {
    font-size: 22px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-stage {
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 9px 9px 0 var(--yellow);
  }
  .why,
  .features,
  .sample,
  .steps {
    padding: 44px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .why-card {
    padding: 22px 20px;
  }
  .drift {
    min-height: 230px;
  }
  .mail-frame {
    box-shadow: 7px 7px 0 var(--blue);
  }
  .mail-meta,
  .mail-body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .m-title {
    font-size: 28px;
  }
  .m-story.is-followed {
    padding-left: 20px;
    padding-right: 10px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid li {
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }
  .steps-grid li:last-child {
    border-bottom: 0;
  }
  .steps-grid b {
    font-size: 64px;
  }
  .steps-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
