:root {
  color-scheme: light dark;
  --background: #f4f4f0;
  --foreground: #161716;
  --secondary: #666862;
  --separator: #d2d3cc;
  --surface: #ececec;
  --focus: #2d5e86;
  --device: #171817;
  --device-border: #363835;
  --screen: #f9f9f6;
  --page-width: 70rem;
  --document-width: 42rem;

  background: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
}

::selection {
  background: var(--foreground);
  color: var(--background);
}

a {
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Homepage */

.home-page,
.document-page {
  padding-inline: 1rem;
}

.document-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.app-link-page {
  display: grid;
  min-height: 100dvh;
  padding: 2rem 1rem;
  place-items: center;
}

.app-link-message {
  width: 100%;
  max-width: 32rem;
}

.app-link-message h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
}

.app-link-message p {
  margin-top: 1.5rem;
  color: var(--secondary);
  font-size: 1.25rem;
  line-height: 1.5;
}

.home-page main,
.site-footer {
  max-width: var(--page-width);
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 2rem 3rem;
}

.hero__copy {
  align-self: center;
}

.hero__title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.hero__tagline {
  margin-top: 1rem;
  color: var(--secondary);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}

.hero__positioning {
  max-width: 29rem;
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--secondary);
  line-height: 1.4;
}

.hero__wide-break {
  display: none;
}

.hero__demonstration {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 23rem;
  justify-self: center;
}

.device-frame {
  flex-shrink: 1;
  min-width: 0;
  width: 14.5rem;
  padding: 0.5rem;
  border: 1px solid var(--device-border);
  border-radius: 2rem;
  background: var(--device);
}

.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--screen);
}

.hero-product-image,
.hero-product-image img {
  display: block;
  width: 100%;
}

.watch-frame {
  flex-shrink: 1;
  min-width: 0;
  width: 7rem;
  padding: 0.25rem;
  border: 1px solid var(--device-border);
  border-radius: 2.25rem;
  background: var(--device);
}

.watch-screen {
  overflow: hidden;
  border-radius: 2rem;
  background: #000;
}

.watch-screen img {
  display: block;
  width: 100%;
}

.app-store-placeholder {
  display: inline-block;
  padding-block: 0.25rem;
  border-bottom: 1px solid var(--separator);
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 600;
}

.story {
  padding-block: 5rem 6rem;
  border-top: 1px solid var(--separator);
}

.story > section,
.story > .availability {
  max-width: 60rem;
  margin-inline: auto;
}

.story > section + section,
.story > section + .availability {
  margin-top: 6rem;
}

.story__title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
}

.story__body {
  max-width: 38rem;
  margin-top: 1.5rem;
}

.story__body p {
  font-size: 1.125rem;
  line-height: 1.55;
}

.story__body p + p {
  margin-top: 1rem;
}

.story__body .availability__platforms {
  color: var(--secondary);
  font-size: 1rem;
}

.story > .privacy,
.story > .availability {
  max-width: 52rem;
}

.quiet-surface {
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--surface);
}

.lucide {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lucide-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.artifact-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: var(--secondary);
}

.artifact-icon svg,
.privacy__icon svg,
.shortcut-name__icon svg,
.tag-pill__icon svg,
.tag-shortcut__connector svg {
  display: block;
  width: 100%;
  height: 100%;
}

.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 60rem;
  margin-inline: auto;
}

.feature--portrait {
  max-width: 48rem;
}

.feature__media {
  width: 100%;
  max-width: 30rem;
  overflow: hidden;
  justify-self: center;
  border: 1px solid var(--separator);
  border-radius: 2rem;
}

.feature__media--focused {
  aspect-ratio: 4 / 5;
}

.feature__media--portrait {
  max-width: 18rem;
}

.feature__media picture,
.feature__media img {
  width: 100%;
  height: 100%;
}

.feature__media--focused img {
  object-fit: cover;
}

.feature__media--portrait img,
.feature__media--portrait .feature-video {
  object-fit: contain;
}

.feature__media--video {
  position: relative;
}

.feature-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
}

.feature-video--active {
  visibility: visible;
}

.feature__copy {
  max-width: 26rem;
}

.moment-process__header {
  max-width: 38rem;
}

.moment-process__header p {
  margin-top: 1.5rem;
  color: var(--secondary);
  font-size: 1.125rem;
  line-height: 1.55;
}

.moment-process__header p + p {
  margin-top: 0.75rem;
}

.moment-transformation {
  margin-top: 3rem;
  border-block: 1px solid var(--separator);
}

.moment-process__footnote {
  margin-top: 1.5rem;
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.transformation-artifact {
  padding-block: 2rem;
}

.transformation-artifact h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.transformation-artifact__recording {
  margin: 1.5rem 0 0;
}

.recording-transcript {
  margin-top: 0.75rem;
}

.recording-transcript__pause {
  padding-block: 1rem;
  color: var(--secondary);
}

.transformation-artifact__recording p {
  font-size: 1rem;
  line-height: 1.55;
}

.moment-details {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.moment-transformation__arrow {
  display: flex;
  width: 2rem;
  height: 2rem;
  margin: 0 auto;
  color: var(--secondary);
  transform: rotate(90deg);
}

.moment-transformation__arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

.moment-details > div + div {
  margin-top: 1.5rem;
}

.moment-details dt {
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

.moment-details__title dt {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.moment-details dd {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.moment-details__title dd {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.moment-details__summary dd {
  font-weight: 600;
}

.moment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--secondary);
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.tag-pill__icon {
  display: inline-flex;
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
  transform: scaleX(-1);
}

.moment-automations {
  margin-top: 1.5rem;
}

.tag-shortcut {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: center;
}

.tag-shortcut dt {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.tag-shortcut__connector {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex: none;
  color: var(--secondary);
}

.tag-shortcut__shortcut {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.tag-shortcut__shortcut strong {
  font-weight: 600;
}

.tag-shortcut__shortcut .shortcut-name {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.5rem;
  align-items: start;
}

.shortcut-name__icon {
  display: inline-flex;
  align-self: center;
  width: 1rem;
  height: 1rem;
  color: var(--secondary);
}

.shortcuts-section__details {
  margin-top: 1.5rem;
}

.privacy {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--surface);
}

.privacy__header {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  align-items: center;
}

.privacy__icon {
  display: inline-flex;
  color: var(--foreground);
}

.site-footer {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--separator);
  color: var(--secondary);
  font-size: 0.75rem;
}

.site-footer--personal {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  font-size: 0.875rem;
  line-height: 1.5;
}

.site-footer__about {
  max-width: 32rem;
}

.site-footer__about p + p {
  margin-top: 0.5rem;
}

.site-footer__about strong {
  color: var(--foreground);
  font-weight: 600;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Documents */

.document-header,
.policy-document,
.essay-document,
.site-footer--document {
  width: 100%;
  max-width: var(--document-width);
  margin-inline: auto;
}

.document-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
}

.document-home {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.policy-languages {
  color: var(--secondary);
  font-size: 0.875rem;
}

.policy-document {
  flex: 1;
  padding-block: 5rem;
}

.essay-document {
  flex: 1;
  padding-block: 5rem;
}

.essay-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
}

.essay-content > header + p {
  margin-top: 3rem;
}

.essay-content p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.65;
}

.policy-title {
  margin-top: 1rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
}

.policy-content h2 {
  margin-top: 3rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.policy-content p,
.policy-content ul {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.65;
}

.policy-content ul {
  padding-left: 1.25rem;
}

.policy-content li + li {
  margin-top: 0.5rem;
}

.policy-content > header + p {
  margin-top: 3rem;
}

.policy-language-entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.language-options {
  display: grid;
  margin-top: 4rem;
  border-top: 1px solid var(--separator);
}

.language-options a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--separator);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

/* Responsive adjustments */

@media (min-width: 48rem) {
  .home-page,
  .document-page,
  .app-link-page {
    padding-inline: 1.5rem;
  }

  .hero {
    max-width: 62rem;
    margin-inline: auto;
    grid-template-columns: 1fr 31rem;
    gap: 3rem;
    align-items: center;
    min-height: 100dvh;
    padding-block: 2rem;
  }

  .hero__demonstration {
    gap: 1rem;
    max-width: 100%;
  }

  .device-frame {
    width: 20rem;
    border-radius: 3rem;
  }

  .watch-frame {
    width: 10rem;
  }

  .device-screen {
    border-radius: 2.5rem;
  }

  .hero__title {
    font-size: 5rem;
  }

  .hero__tagline {
    font-size: 1.5rem;
  }

  .hero__wide-break {
    display: inline;
  }

  .story {
    padding-block: 6rem 7rem;
  }

  .story > section + section,
  .story > section + .availability {
    margin-top: 7rem;
  }

  .story__title {
    font-size: 2.5rem;
  }

  .site-footer--personal {
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: end;
  }

  .site-footer__links {
    justify-content: flex-end;
  }

  .feature {
    grid-template-columns: 22rem 1fr;
    gap: 3rem;
    align-items: center;
  }

  .feature--portrait {
    grid-template-columns: 1fr 1fr;
  }

  .feature--portrait .feature__media {
    width: 16rem;
  }

  .privacy {
    padding: 3rem;
  }

  .privacy .story__body {
    margin-left: 5rem;
  }

  .document-header {
    padding-top: 3rem;
  }

  .policy-document,
  .essay-document {
    padding-block: 6rem;
  }

  .policy-title {
    font-size: 4rem;
  }

  .policy-content > header + p {
    margin-top: 4rem;
  }
}

@media (min-width: 64rem) {
  .hero__title {
    font-size: 7rem;
  }

  .hero__tagline {
    font-size: 2rem;
  }

  .feature {
    grid-template-columns: 30rem 1fr;
    gap: 4rem;
  }

  .feature--portrait {
    grid-template-columns: 1fr 1fr;
  }

  .feature--portrait .feature__media {
    width: 18rem;
  }

  .moment-transformation {
    display: grid;
    grid-template-columns: 1fr 2rem 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .moment-transformation__arrow {
    transform: none;
    align-self: center;
  }

  .policy-document,
  .essay-document {
    padding-block: 8rem;
  }
}

@media (max-height: 50rem) {
  .hero {
    gap: 1.5rem;
    padding-block: 1.5rem;
  }
}

@media (min-width: 48rem) and (max-height: 50rem) {
  .hero {
    grid-template-columns: 1fr 28rem;
  }

  .hero__demonstration {
    max-width: 28rem;
  }

  .device-frame {
    width: 18rem;
  }

  .watch-frame {
    width: 9rem;
  }
}

@media (max-width: 30rem) {
  .quiet-surface {
    padding: 1rem;
  }

  .tag-shortcut {
    grid-template-columns: 7rem 1fr;
    gap: 0.75rem;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101112;
    --foreground: #f1f1ed;
    --secondary: #a4a6a0;
    --separator: #303230;
    --surface: #1a1a1c;
    --focus: #83b8df;
    --device: #050606;
    --device-border: #3c3e3c;
    --screen: #141616;
  }
}

/* Feature video sources use no-preference media queries, so reduced-motion
   visitors see the theme-matched poster without downloading a video. */
@media (prefers-reduced-motion: reduce) {
  .feature-video {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
