/*
 * Notakuna landing page. Palette and type follow .claude/DESIGN.md:
 * Bone paper, Charcoal text, Stone borders, flat surfaces, Google Sans for UI text.
 * Burgundy is a site-only accent (it isn't part of the extension's palette).
 * Shared by index.html and faq.html.
 */

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/google-sans-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/google-sans-latin-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/google-sans-latin-600-normal.woff2) format('woff2');
}

:root {
  --charcoal: rgb(42 41 40);
  --bone: rgb(245 244 239);
  --stone: rgb(207 202 191);
  --toffee: rgb(175 165 146);
  /* Muted burgundy accent: 7.3:1 against Bone. */
  --burgundy: rgb(125 60 72);
  --burgundy-hover: rgb(104 47 58);

  --paper: var(--bone);
  /* A slightly deeper paper for the closing band. */
  --paper-deep: color-mix(in srgb, var(--stone) 35%, var(--bone));
  /* Mixes of the palette above, not new colors. */
  --paper-soft: color-mix(in srgb, var(--stone) 18%, var(--bone));
  --accent-tint: color-mix(in srgb, var(--burgundy) 9%, var(--bone));
  --text: var(--charcoal);
  --text-muted: color-mix(in srgb, var(--charcoal) 72%, var(--bone));
  --border: var(--stone);
  --border-strong: var(--toffee);

  --font-ui: 'Google Sans', system-ui, sans-serif;
  --radius: 7px;
  --radius-card: 14px;
  --radius-pill: 9999px;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
  --section-space: clamp(4rem, 9vw, 7rem);

  color-scheme: light;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

[id] {
  scroll-margin-top: 1.5rem;
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--bone);
  text-decoration: none;
}
.skip-link:focus {
  top: 0.75rem;
}

kbd {
  padding: 0 0.35em;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9em;
  color: var(--text);
}

/* Layout ------------------------------------------------------------ */

.site-header,
main > section,
main > article,
.site-footer {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header ------------------------------------------------------------ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a,
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover {
  background: var(--paper-deep);
  color: var(--text);
}

@media (max-width: 34rem) {
  .nav-optional {
    display: none;
  }
}

/* Buttons ----------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.button-primary {
  background: var(--burgundy);
  color: var(--bone);
}
.button-primary:hover {
  background: var(--burgundy-hover);
}

.button-secondary {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}
.button-secondary:hover {
  background: var(--paper-deep);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 120ms ease;
}
.icon-button:hover {
  background: var(--paper-deep);
}
.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Section headings -------------------------------------------------- */

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-lead {
  max-width: 34rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Section labels (matches the panel's PINNED / RECENT headings) ------ */

.section-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero -------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 33rem);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 4.5rem) var(--section-space);
}

@media (max-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    width: 100%;
    max-width: 36rem;
  }
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 26rem) {
  .hero-actions .button {
    flex: 1 1 100%;
  }
}

.hero-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  width: fit-content;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}

.stars {
  display: inline-flex;
  gap: 0.125rem;
  color: var(--burgundy);
}
.stars svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Browser mock: the side panel beside a page. Purely decorative. */

.browser {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border);
  background: var(--paper-deep);
}

.browser-dots {
  display: flex;
  gap: 0.375rem;
}
.browser-dots i {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--toffee);
  opacity: 0.6;
}

.browser-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46%;
}

/* The screenshot sets the window's height; the mock page is clipped to it, so the
   panel always matches the image and the demo's % positions line up with it. */
.browser-page {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  height: 0;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.browser-page > * {
  flex-shrink: 0;
}

.page-title {
  margin-bottom: 0.25rem;
  font-size: clamp(0.8125rem, 1.8vw, 1rem);
  font-weight: 600;
  line-height: 1.3;
}

.page-line {
  height: 0.4375rem;
  border-radius: var(--radius-pill);
  background: var(--stone);
  opacity: 0.7;
}
.page-line-short {
  width: 62%;
}

.page-image {
  margin-block: 0.375rem;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--toffee) 40%, var(--bone));
}

.browser-panel {
  position: relative;
  border-left: 1px solid var(--border);
  /* Lets the demo toast scale with the screenshot. */
  container-type: inline-size;
}

.page-title mark {
  background: none;
  color: inherit;
}

/* The demo loop's pieces only exist while motion is allowed (see Motion below). */
.demo-cursor,
.demo-ripple,
.demo-toast {
  display: none;
}

/* Features ---------------------------------------------------------- */

.features {
  padding-block: 0 var(--section-space);
}

.feature-list {
  display: grid;
  /* Eight features: 4, 2 or 1 per row, so every row is full. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color 120ms ease;
}
.feature-list li:hover {
  border-color: var(--border-strong);
}

@media (max-width: 60rem) {
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 34rem) {
  .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Icon beside the text, so the single column stays compact. */
  .feature-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1.25rem;
  }
  .feature-list .feature-icon {
    grid-row: span 2;
    margin-bottom: 0;
  }
  .feature-list h3 {
    align-self: center;
  }
}

.feature-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.125rem;
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--burgundy);
}
.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-list h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.feature-list p {
  margin-top: 0.375rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Screenshot carousel ----------------------------------------------- */

.screens {
  padding-block: 0 var(--section-space);
}

.carousel {
  position: relative;
}

.carousel-track {
  position: relative;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius-card);
}

/* With the controls in place the scrollbar is redundant. */
.carousel.is-ready .carousel-track {
  scrollbar-width: none;
}
.carousel.is-ready .carousel-track::-webkit-scrollbar {
  display: none;
}

.slide {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: minmax(0, 19rem) minmax(0, 26rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-card);
  background: var(--paper-soft);
  scroll-snap-align: start;
}

.slide-media img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bone);
}

.slide-count {
  display: block;
  margin-bottom: 1rem;
  color: var(--burgundy);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.slide-text h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.slide-text p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Stack on narrow screens. Each shot is capped at its real panel width (380px),
   so on a phone the panel text renders at about 90% of its size in Chrome. */
@media (max-width: 52rem) {
  .slide {
    grid-template-columns: minmax(0, 23.75rem);
    gap: 1.5rem;
    align-content: start;
  }
}

.carousel-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}
.carousel.is-ready .carousel-controls {
  display: flex;
}

.carousel-arrows {
  display: flex;
  gap: 0.5rem;
}

.carousel-dots {
  display: flex;
}

/* 24px hit area around a small dot; the current one stretches into a pill. */
.carousel-dots button {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel-dots button::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--toffee);
  transition: width 200ms ease, background-color 200ms ease;
}
.carousel-dots button[aria-current='true'] {
  width: 2.25rem;
}
.carousel-dots button[aria-current='true']::before {
  width: 1.5rem;
  background: var(--burgundy);
}

/* Questions & answers ------------------------------------------------ */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  grid-template-areas:
    'head list'
    'cta list';
  grid-template-rows: auto 1fr;
  gap: 0 clamp(2.5rem, 7vw, 6rem);
  padding-block: 0 var(--section-space);
}

.faq-head {
  grid-area: head;
}
.faq .accordion {
  grid-area: list;
}
.faq-cta {
  grid-area: cta;
  margin-top: 1.75rem;
}

@media (max-width: 52rem) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'head' 'list' 'cta';
  }
  .faq-head {
    margin-bottom: 2rem;
  }
}

.accordion {
  display: grid;
  gap: 0.625rem;
  align-content: start;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color 120ms ease;
}
.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-strong);
}

/* The whole row is the click target. */
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-card);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

.chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease;
}
.faq-item[open] .chevron {
  transform: rotate(180deg);
}

.answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.answer p,
.answer ol {
  margin: 0;
}
.answer > * + * {
  margin-top: 0.625rem;
}
.answer ol {
  padding-left: 1.4em;
}
.answer li + li {
  margin-top: 0.25rem;
}
.answer strong {
  color: var(--text);
  font-weight: 500;
}
.answer a {
  color: var(--burgundy);
}

/* Closing call to action + support ---------------------------------- */

.closing {
  max-width: none;
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  background: var(--paper-deep);
  text-align: center;
}

.closing h2 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.closing .button-primary {
  margin-top: 1.75rem;
}

.support {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.5rem;
  max-width: 46rem;
  margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--paper);
  text-align: left;
}

.support .feature-icon {
  margin: 0;
}

.support-copy {
  flex: 1;
}

.support h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.support p {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.support .button {
  flex-shrink: 0;
}

@media (max-width: 40rem) {
  .support {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Full FAQ page ------------------------------------------------------ */

/* Narrower column for reading; the header and footer stay full width. */
.page-intro,
.faq-topics,
.policy {
  max-width: 52rem;
}

.page-intro {
  padding-block: clamp(2rem, 6vw, 4rem) clamp(2.5rem, 6vw, 4rem);
}

.page-intro h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.faq-topics {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 0 var(--section-space);
}

.faq-topic .section-label {
  margin-bottom: 1rem;
}

.back-link {
  justify-self: start;
}

/* Privacy policy ---------------------------------------------------- */

.policy {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
  padding-block: 0 var(--section-space);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}
.policy h2 {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.policy h3 {
  margin: 1.5rem 0 0.375rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}
.policy p,
.policy ul {
  margin: 0;
}
.policy p + p,
.policy p + ul,
.policy ul + p {
  margin-top: 0.75rem;
}
.policy ul {
  padding-left: 1.4em;
}
.policy li + li {
  margin-top: 0.25rem;
}
.policy strong {
  color: var(--text);
  font-weight: 500;
}
.policy code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--paper-deep);
  color: var(--text);
  font-size: 0.9em;
}

/* Footer ------------------------------------------------------------ */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}
.footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Motion ------------------------------------------------------------ */

.feature-icon {
  transition: background-color 200ms ease, color 200ms ease;
}
.feature-list li:hover .feature-icon {
  background: var(--burgundy);
  color: var(--bone);
}

@media (prefers-reduced-motion: no-preference) {
  /* Fade-in on scroll: hidden only when JS is there to reveal it (site.js). */
  .js [data-reveal]:not(.is-visible) {
    opacity: 0;
  }
  .js [data-reveal].is-visible {
    animation: reveal 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 90ms);
  }

  @keyframes reveal {
    from {
      opacity: 0;
      translate: 0 1.5rem;
    }
    to {
      opacity: 1;
      translate: none;
    }
  }

  /* Hero loop, 10s: highlight the title, the cursor presses +, "Note saved" pops up.
     All parts share the duration and start together, so they stay in step. */
  .browser {
    animation: float 7s ease-in-out infinite;
  }

  @keyframes float {
    50% {
      translate: 0 -0.5rem;
    }
  }

  .page-title mark {
    background: linear-gradient(var(--accent-tint), var(--accent-tint)) no-repeat 0 0 / 0% 100%;
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    animation: demo-highlight 10s ease-in-out infinite;
  }

  /* Sweeps in from the left, then out to the right. */
  @keyframes demo-highlight {
    0%,
    6% {
      background-position: left;
      background-size: 0% 100%;
    }
    22%,
    86% {
      background-position: left;
      background-size: 100% 100%;
      color: var(--burgundy);
    }
    86.1% {
      background-position: right;
      background-size: 100% 100%;
    }
    96%,
    100% {
      background-position: right;
      background-size: 0% 100%;
      color: inherit;
    }
  }

  /* Positions are % of the panel, which keeps the screenshot's aspect ratio,
     so the cursor lands on the + button at any size. Its tip is the top-left corner. */
  .demo-cursor {
    position: absolute;
    display: block;
    width: clamp(0.875rem, 2.4vw, 1.125rem);
    fill: var(--charcoal);
    stroke: var(--bone);
    stroke-width: 1.5;
    stroke-linejoin: round;
    animation: demo-cursor 10s infinite;
  }

  @keyframes demo-cursor {
    0%,
    20% {
      left: -55%;
      top: 34%;
      opacity: 0;
      scale: 1;
    }
    26% {
      left: -55%;
      top: 34%;
      opacity: 1;
      animation-timing-function: cubic-bezier(0.5, 0, 0.2, 1);
    }
    48% {
      left: 88%;
      top: 93%;
      scale: 1;
    }
    51% {
      scale: 0.82;
    }
    54% {
      left: 88%;
      top: 93%;
      scale: 1;
      opacity: 1;
    }
    72% {
      left: 70%;
      top: 80%;
      opacity: 0;
    }
    100% {
      left: 70%;
      top: 80%;
      opacity: 0;
    }
  }

  .demo-ripple {
    position: absolute;
    display: block;
    left: 89.5%;
    top: 93.75%;
    width: 16%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--burgundy);
    opacity: 0;
    translate: -50% -50%;
    animation: demo-ripple 10s infinite;
  }

  @keyframes demo-ripple {
    0%,
    50% {
      opacity: 0;
      scale: 0.4;
    }
    51% {
      opacity: 0.35;
      scale: 0.6;
    }
    62%,
    100% {
      opacity: 0;
      scale: 1.6;
    }
  }

  .demo-toast {
    position: absolute;
    display: block;
    left: 44%;
    bottom: 3.5%;
    padding: 0.45em 1.1em;
    border-radius: var(--radius-pill);
    background: var(--charcoal);
    color: var(--bone);
    font-size: max(0.5625rem, 4.4cqi);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    translate: -50% 0.5rem;
    animation: demo-toast 10s infinite;
  }

  @keyframes demo-toast {
    0%,
    54% {
      opacity: 0;
      translate: -50% 0.5rem;
    }
    60%,
    84% {
      opacity: 1;
      translate: -50% 0;
    }
    90%,
    100% {
      opacity: 0;
      translate: -50% 0;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-icon,
  .button,
  .icon-button,
  .site-nav a,
  .footer-nav a,
  .feature-list li,
  .faq-item,
  .chevron,
  .carousel-dots button::before {
    transition: none;
  }
}
