@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Baskervville:ital,wght@0,400..700;1,400..700&display=swap");

:root {
  --color-body: #070707;
  --color-blue: #4d8dff;
  --color-deep-blue: #2f6fe0;
  --color-light-blue: #8ecbff;
  --color-text-heading: #fff;
  --color-text-top: #fff;
  --color-text-bottom: #a7a7a7;
  --card-background: #181818;
  --display-font: ui-sans-serif, "SF Pro Display", -apple-system, system-ui,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  --text-font: ui-sans-serif, "SF Pro Text", -apple-system, system-ui, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --grid-item-padding: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
}

html,
body {
  overflow-x: clip;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-body);
  font-family: var(--display-font);
  width: 100%;
  position: relative;
}

a {
  color: var(--color-text-bottom);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-text-top);
}

button {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.geist-mono {
  font-family: "Geist Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 600;
}

.container {
  padding: 40px;
  max-width: calc(1200px + 80px);
  margin: 0 auto;
}

.container--testimonials {
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */

.header-wrapper {
  position: sticky;
  top: 20px;
  z-index: 99;
  margin: 20px 0 0;
}

header {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 56px;
  padding: 0 16px 0 20px;
  max-width: 700px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin: 0 auto;
  overflow: hidden;
}

.header-blur {
  background-color: rgba(35, 35, 35, 0.3);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  position: absolute;
  left: 0;
  top: -100%;
  right: 0;
  height: 300%;
}

.header-blur__bottom,
.header-blur__top {
  position: absolute;
  left: 0;
  right: 0;
  -webkit-backdrop-filter: blur(32px) brightness(120%);
  backdrop-filter: blur(32px) brightness(120%);
  background: hsl(0deg 0% 100% / 0.1);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 25%,
    black 75%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 25%,
    black 75%,
    transparent 100%
  );
}

.header-blur__bottom {
  top: calc(50% + 28px - 2px);
  bottom: -100%;
}

.header-blur__top {
  bottom: calc(50% + 28px - 2px);
  top: -100%;
}

header > * {
  display: flex;
  gap: 24px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.header__left {
  justify-content: flex-start;
  flex: 1;
}

.header__left a,
.logo-link {
  align-items: center;
  gap: 8px;
  color: white;
  display: flex;
  font-weight: 600;
}

.header__center {
  justify-content: center;
}

.header__center a.active,
.header__right a.active {
  color: white;
}

.header__right {
  justify-content: flex-end;
  flex: 1;
  padding-right: 8px;
}

.download-header {
  padding-left: 22px;
  background: url("../images/apple-white.svg") no-repeat left center;
  background-size: 13px 13px;
  color: white;
}

.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 1.5px;
  width: 18px;
  background: #fff;
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  inset: 90px 20px auto;
  z-index: 98;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(32px);
  padding: 24px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu a {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.button--header {
  margin-top: 0;
  padding: 8px 16px;
  font-size: 14px;
}

/* App icon */

.app-icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 26%;
  object-fit: contain;
}

.app-icon--sm {
  width: 22px;
  height: 22px;
}

.app-icon--tiny {
  width: 28px;
  height: 28px;
}

.app-icon--md {
  width: 72px;
  height: 72px;
}

.app-icon--hero {
  width: 112px;
  height: 112px;
  margin: 12px 0 8px;
}

.glow-behind {
  position: relative;
}

.glow-behind::before,
.glow-behind::after {
  content: "";
  position: absolute;
  top: -24px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(100px);
  opacity: 0.4;
}

.glow-behind::before {
  left: -100%;
  background: var(--color-deep-blue);
}

.glow-behind::after {
  right: -100%;
  left: auto;
  background: var(--color-light-blue);
}

/* Hero */

.top-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 550px;
  max-height: 800px;
  height: calc(100vh - 200px);
  position: relative;
  isolation: isolate;
}

.hero-shader {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  min-height: 420px;
  max-height: 900px;
  filter: blur(50px) saturate(135%);
  z-index: -1;
}

.plasma-ghost {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(47, 111, 224, 0.5), transparent 28%),
    radial-gradient(circle at 38% 55%, rgba(142, 203, 255, 0.42), transparent 32%),
    radial-gradient(circle at 62% 50%, rgba(77, 141, 255, 0.35), transparent 30%);
}

.plasma-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at center,
      rgba(7, 7, 7, 0) 0%,
      rgba(7, 7, 7, 0.18) 55%,
      rgba(7, 7, 7, 0.72) 100%
    ),
    linear-gradient(180deg, rgba(7, 7, 7, 0.7) 0%, rgba(7, 7, 7, 0.1) 38%, rgba(7, 7, 7, 0.68) 100%);
}

.top-section__container,
.main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.top-section__container {
  flex: 1;
  gap: 24px;
}

.main-content {
  gap: 16px;
}

h1,
h2,
h3 {
  font-family: var(--display-font);
  font-weight: 500;
  text-align: center;
  color: var(--color-text-heading);
}

h1 {
  font-size: 48px;
  line-height: 1.1;
  max-width: 22ch;
}

h1 em {
  display: block;
  font-family: "Baskervville", serif;
  font-style: italic;
  font-weight: 400;
}

h2 {
  font-size: 40px;
  line-height: 1.15;
}

h3 {
  font-size: 24px;
  text-align: left;
}

.subtext {
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.6);
}

.page-home [data-hero-reveal] {
  --hero-reveal-duration: 1.75s;
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(10px);
  animation: hero-reveal var(--hero-reveal-duration) cubic-bezier(0.22, 1, 0.36, 1)
    forwards;
  animation-delay: var(--hero-reveal-delay, 0s);
}

.page-home [data-hero-reveal="logo"] {
  --hero-reveal-delay: 0s;
}

.page-home [data-hero-reveal="headline"] {
  --hero-reveal-delay: 0.2s;
}

.page-home [data-hero-reveal="subtext"] {
  --hero-reveal-delay: 0.4s;
}

.page-home [data-hero-reveal="cta"] {
  --hero-reveal-delay: 0.6s;
}

.page-home [data-hero-reveal="video"] {
  --hero-reveal-delay: 0.8s;
}

@keyframes hero-reveal {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(10px);
  }
  65% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-hero-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

/* Announcement */

.highlight-message {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 6px 16px 6px 6px;
  color: white;
  border-radius: 50px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: linear-gradient(
    105deg,
    #1e4fd6 0%,
    #2f6fe0 22%,
    #4d8dff 48%,
    #74b4ff 74%,
    #8ecbff 100%
  );
  box-shadow: 0 0 24px rgba(77, 141, 255, 0.22);
}

.highlight-message::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 38%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.highlight-message::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-18deg);
  animation: pill-shine 7.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes pill-shine {
  0%,
  18% {
    transform: translateX(-140%) skewX(-18deg);
  }
  58%,
  100% {
    transform: translateX(320%) skewX(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .highlight-message::after {
    animation: none;
    opacity: 0.2;
    transform: translateX(40%) skewX(-18deg);
  }
}

.highlight-message__tag,
.highlight-message__text {
  position: relative;
  z-index: 2;
}

.highlight-message__tag {
  background: rgba(8, 22, 56, 0.22);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
}

.highlight-message__text {
  font-size: 14px;
  font-weight: 500;
}

/* Buttons */

.button {
  position: relative;
  display: inline-block;
  border-radius: 9999px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: black;
  background: white;
  border: 0;
  cursor: pointer;
  margin-top: 16px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.button--download {
  padding-left: 48px;
  background-image: url("../images/apple-black.svg");
  background-repeat: no-repeat;
  background-size: 15px 15px;
  background-position: left 22px center;
}

.button:hover,
.button:focus {
  color: black;
  box-shadow:
    0 1px 2px 0 rgba(255, 255, 255, 0.25) inset,
    0 0 0 6px rgba(255, 255, 255, 0.12);
}

.button:active {
  transform: translate3d(0, 2px, 0);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.button--secondary:hover,
.button--secondary:focus {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.buttons-group {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
}

.buttons-group > * {
  margin-top: 0;
}

.download-meta {
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.5;
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: center;
}

.download-meta > *:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  top: -2px;
}

.download-meta__button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.download-meta__button:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Product stage */

.screenshots .container {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 80px;
}

.product-stage {
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #2a3344 0%, #1a1f2b 40%, #12141a 100%);
  min-height: 560px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.product-stage__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
}

.traffic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.traffic--red {
  background: #ff5f57;
}

.traffic--yellow {
  background: #febc2e;
}

.traffic--green {
  background: #28c840;
}

.product-stage__title {
  margin-left: 8px;
  font-size: 13px;
  opacity: 0.55;
}

.product-stage__search {
  margin: 8px auto 24px;
  width: min(520px, calc(100% - 48px));
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 12px 18px 12px 44px;
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
}

.product-stage__search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translateY(-50%);
}

.product-stage__search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.55);
  transform: rotate(40deg);
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr;
  grid-auto-rows: 140px;
  gap: 10px;
  padding: 0 20px 24px;
}

.tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(135deg, #3d4a63, #1d2430);
}

.tile--wide {
  grid-column: span 2;
}

.tile--tall {
  grid-row: span 2;
  background: linear-gradient(160deg, #5a4a3a, #241c16);
}

.tile:nth-child(3) {
  background: linear-gradient(160deg, #2f3d2f, #141a14);
}

.tile:nth-child(6) {
  background: linear-gradient(160deg, #3a2f4a, #18141f);
}

.tile--hit {
  outline: 2px solid rgba(77, 141, 255, 0.7);
  outline-offset: -2px;
}

.tile__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}

.placeholder-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Benefits */

.icon-text-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.icon-text-grid__item {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-direction: column;
  padding: 24px;
  text-align: center;
}

.icon-text-grid__item__icon {
  height: 56px;
  width: 56px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #2a2a2a, #151515);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-text-grid__item__icon svg {
  width: 22px;
  height: 22px;
  opacity: 0.55;
  mix-blend-mode: plus-lighter;
}

.icon-text-grid__item p {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 22ch;
}

/* Testimonials */

.testimonials-cards {
  flex: 1;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: space-around;
  margin-top: 60px;
}

.testimonials-cards::before {
  content: "";
  position: absolute;
  top: -200%;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  bottom: 50%;
  background: linear-gradient(to bottom, transparent, #131313);
  z-index: -1;
}

.stacked-cards {
  position: relative;
  width: 700px;
  max-width: calc(100vw - 48px);
  height: 360px;
}

.testimonials__card {
  background: var(--card-background);
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 60px 24px;
  flex-direction: column;
  width: 700px;
  max-width: calc(100vw - 48px);
  height: 360px;
}

.stacked-card {
  z-index: 2;
  transform: translateY(0) rotate(4deg);
  transform-origin: center;
  transition: transform 0.4s ease 0.1s;
  position: absolute;
  top: 0;
  left: 0;
}

.stacked-card--current {
  position: relative;
  z-index: 10;
  opacity: 1;
  transform: rotate(0) scale(1);
  box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.5);
}

.stacked-card--next {
  z-index: 5;
  transform: rotate(-4deg);
}

.avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(
    131deg,
    var(--color-deep-blue),
    var(--color-blue),
    var(--color-light-blue)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.testimonial__text {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 30ch;
  text-align: center;
}

.testimonial__text--small {
  font-size: 20px;
  max-width: 46ch;
}

.testimonial__author {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.75);
}

.testimonial-control {
  position: relative;
  margin-top: 48px;
  display: flex;
  gap: 12px;
}

.sexy-circular-button {
  background: var(--card-background);
  border-radius: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: solid 2px transparent;
  position: relative;
  background-clip: padding-box;
}

.sexy-circular-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, #303030 15%, var(--card-background));
  margin: -2px;
  z-index: -1;
}

.sexy-circular-button:hover::before {
  background: linear-gradient(to bottom, #404040 15%, #181818);
}

/* Feature: search */

.working {
  margin-top: 80px;
}

.working h2,
.iphone-sync h2,
.wellness-reminders h2,
.posts h2,
.workflow-heading-title {
  margin-bottom: 16px;
}

.working .subtext,
.iphone-sync .subtext,
.wellness-reminders .subtext,
.workflow-demo .subtext {
  margin: 0 auto 8px;
}

.working__content {
  margin-top: 80px;
  width: 100%;
  position: relative;
  padding-bottom: 24px;
}

.box-with-wallpaper {
  background: var(--card-background);
  border-radius: 24px;
  width: 100%;
  position: relative;
}

.box-with-wallpaper--1 {
  background:
    linear-gradient(180deg, rgba(18, 22, 36, 0.2), rgba(7, 7, 7, 0.35)),
    linear-gradient(160deg, #4d6ea8 0%, #8aa4c8 35%, #c5b7a4 100%);
  background-size: cover;
  width: calc(100% - 80px);
  margin: 0 auto;
  min-height: 500px;
  overflow: hidden;
  box-shadow: 0 8px 50px rgba(0, 0, 0, 0.25);
}

.box-with-wallpaper__overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 24px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
}

.box-with-wallpaper__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 15%, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  mix-blend-mode: plus-lighter;
}

.menu-bar {
  height: 42px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.1);
  padding: 6px 24px 0;
  position: relative;
  z-index: 2;
}

.menu-bar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-bar__content__left,
.menu-bar__content__right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.apple-mark {
  width: 13px;
  height: 13px;
  background: url("../images/apple-white.svg") center / contain no-repeat;
}

.box-with-wallpaper__notification-container {
  height: 260px;
  padding: 32px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 3;
}

.box-with-wallpaper__notification {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 28px;
  backdrop-filter: blur(30px);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.14), 0 21px 48px rgba(0, 0, 0, 0.24);
  padding: 14px;
}

.box-with-wallpaper__notification--visible {
  opacity: 1;
}

.notification__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.notification__clock-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--color-deep-blue) 0%, var(--color-blue) 34%, var(--color-light-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.notification__title {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

.notification__title__time {
  opacity: 0.45;
  font-weight: 500;
  margin-left: 8px;
}

.notification__description {
  font-size: 15px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.6);
}

.notification__bottom {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}

.notification__button {
  appearance: none;
  background: transparent;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.notification__button--primary {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
}

.floating-countdown {
  position: absolute;
  bottom: 32px;
  right: 32px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(30px);
  padding: 6px 12px 6px 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

.icon-text-grid--break-flow {
  position: relative;
  padding-top: 72px;
  padding-bottom: 48px;
  margin-top: 64px;
}

.icon-text-grid--break-flow__background {
  position: absolute;
  inset: 0;
  background-color: var(--card-background);
  border-radius: 24px;
}

.icon-text-grid--break-flow .icon-text-grid__item {
  z-index: 1;
  padding-left: 40px;
  padding-right: 40px;
}

.icon-text-grid--break-flow .icon-text-grid__item p:last-of-type {
  font-size: 18px;
  font-weight: 400;
  margin-top: 12px;
  opacity: 0.75;
  max-width: 28ch;
}

.working__smart-pause {
  text-align: center;
  margin-top: 40px;
}

.caps-small {
  opacity: 0.4;
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.high-egagement-activities {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  font-size: 18px;
}

.high-egagement-activities__top,
.high-egagement-activities__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.high-egagement-activities__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  min-width: 160px;
  border-radius: 16px;
  background: var(--card-background);
}

/* Privacy / device */

.iphone-sync {
  padding: 80px 40px 0;
}

.iphone-sync__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.iphone-sync__visual {
  position: relative;
  margin-top: 36px;
  display: flex;
  justify-content: center;
  isolation: isolate;
  width: min(720px, 100%);
}

.iphone-image__effects {
  position: absolute;
  inset: -20% 0 0;
  z-index: -1;
}

.iphone-image__effects::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 2px, transparent 2px);
  background-size: 5% 5%;
  transform: rotateX(45deg);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 60%);
  mix-blend-mode: plus-lighter;
  animation: slide 10s linear infinite;
}

@keyframes slide {
  to {
    background-position: 0 100%;
  }
}

.device-placeholder {
  position: relative;
  width: min(420px, 90vw);
}

.device-placeholder__bezel {
  border-radius: 44px;
  padding: 12px;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: rotateX(18deg);
}

.device-placeholder__screen {
  min-height: 280px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 30%, rgba(77, 141, 255, 0.28), transparent 40%),
    linear-gradient(180deg, #1b1b1f, #0c0c0e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.device-placeholder__screen p {
  font-size: 22px;
  font-weight: 500;
}

.device-placeholder__meta {
  font-size: 14px !important;
  opacity: 0.5;
}

/* Library cards */

.wellness-reminders {
  margin: 100px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.wellness-reminders__videos {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  width: 100%;
}

.media-card {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #3a465c, #1a2030);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.media-card--video {
  background: linear-gradient(160deg, #4a3a32, #1c1612);
}

.media-card--tags {
  background: linear-gradient(160deg, #3a3048, #16121c);
}

.media-card p {
  font-size: 16px;
  font-weight: 500;
}

/* Workflow */

.workflow-demo {
  position: relative;
  background: #141414;
  max-width: 100vw;
}

.workflow-heading-title {
  font-size: 40px;
  margin-top: 40px;
}

.workflow-heading {
  margin: 80px 0 60px;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.4;
  text-align: center;
  opacity: 0.85;
}

.settings-window {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  width: min(860px, 100%);
  margin: 60px auto 80px;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  background: #1c1c1e;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.settings-window__nav {
  background: #161618;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-window__nav button {
  text-align: left;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.settings-window__nav button.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.settings-window__body {
  position: relative;
  padding: 32px 36px;
}

.settings-window__body h3 {
  margin-bottom: 24px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

.settings-value {
  opacity: 0.55;
}

.settings-value--live {
  color: #76b545;
  opacity: 1;
}

.segmented {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  background: #111;
  padding: 6px;
  border-radius: 16px;
  width: fit-content;
}

.segmented span {
  padding: 10px 18px;
  border-radius: 12px;
  opacity: 0.55;
}

.segmented .is-on {
  background: linear-gradient(180deg, #4d8dff, #2f6fe0);
  opacity: 1;
}

.customizations {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 80px;
}

.customizations__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.custom-card {
  position: relative;
  min-height: 220px;
  border-radius: 24px;
  background: #1c1c1e;
  padding: 20px;
  display: flex;
  align-items: flex-end;
}

.custom-card--filters {
  background: linear-gradient(180deg, #242428, #161618);
}

.custom-card--cli {
  background: linear-gradient(180deg, #1d2430, #12151b);
}

.custom-card p {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.45;
  max-width: 22ch;
  line-height: 1.5;
}

.automations {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 80px;
}

.automations__items {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.auto-chip {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--card-background);
  font-family: "Geist Mono", monospace;
  font-size: 14px;
}

.automations p {
  margin-top: 24px;
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.4;
  text-align: center;
  max-width: 40ch;
}

/* Designed for Mac */

.light-top-half {
  background: linear-gradient(to bottom, #141414 50%, var(--color-body) 50%);
}

.made-with-mac {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 80px 20px;
  flex-direction: column;
}

.made-with-mac__heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.made-with-mac__italic {
  font-size: 48px;
  font-family: "Baskervville", serif;
  font-style: italic;
}

.made-with-mac__mono {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0.55;
}

.made-with-mac .subtext {
  font-size: 20px;
  max-width: 68ch;
}

.made-with-mac__icons {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.mac-badge {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* Posts */

.posts {
  padding-top: 40px;
  padding-bottom: 80px;
}

.posts__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.posts__grid-item {
  background: #1c1b1b;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.posts__thumb {
  position: relative;
  height: 180px;
}

.posts__thumb--1 {
  background: linear-gradient(135deg, #4a2a4a, #1a121c);
}

.posts__thumb--2 {
  background: linear-gradient(135deg, #2a3a4a, #121820);
}

.posts__thumb--3 {
  background: linear-gradient(135deg, #3a4a2a, #141810);
}

.posts__thumb--4 {
  background: linear-gradient(135deg, #2a2a4a, #12121c);
}

.posts__thumb--5 {
  background: linear-gradient(135deg, #4a3a2a, #1c1610);
}

.posts__thumb--6 {
  background: linear-gradient(135deg, #2a3a3a, #101616);
}

.posts__grid-item__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.posts__grid-item__content p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  font-size: 16px;
}

.posts__grid-item__content a {
  margin-top: auto;
  color: #fff;
  font-weight: 500;
}

/* Footer */

footer {
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.75);
  padding: 10px 0 60px;
}

footer * {
  text-align: left !important;
  line-height: 1.5;
}

footer p {
  color: rgba(255, 255, 255, 0.5);
}

footer a {
  font-size: 14px;
}

footer .container {
  display: flex;
  flex-direction: row;
  gap: 80px;
}

.company-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.footer__social-icons {
  display: flex;
  gap: 16px;
  opacity: 0.4;
  margin-top: 8px;
}

.footer__social-icons a {
  color: #fff;
}

.footer__sidebar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  width: 100%;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.footer__links p {
  color: #fff;
  font-weight: 500;
  margin-bottom: 8px;
}

/* Brew modal */

.brew-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.brew-modal[hidden] {
  display: none;
}

.brew-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
}

.brew-modal.is-open .brew-modal__backdrop,
.brew-modal.is-open .brew-modal__dialog {
  opacity: 1;
}

.brew-modal__dialog {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  padding: 36px 32px 30px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c0e;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  text-align: center;
  z-index: 1;
}

.brew-modal__title {
  font-size: 18px;
  margin-bottom: 12px;
}

.brew-modal__description {
  max-width: 300px;
  margin: 0 auto 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.56);
  font-size: 16px;
}

.brew {
  border-radius: 9999px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

.brew::before {
  content: "$";
  opacity: 0.4;
}

.brew-modal__command {
  width: 100%;
  margin: 0 auto 24px;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.brew-copied {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.brew--copy-success .brew-code {
  opacity: 0;
}

.brew--copy-success .brew-copied {
  opacity: 1;
}

.copy-brew {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  cursor: pointer;
  border: 0;
  background: transparent;
  opacity: 0.6;
  position: relative;
}

.copy-brew::before,
.copy-brew::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 12px;
  border: 1.4px solid #fff;
  border-radius: 2px;
}

.copy-brew::before {
  top: 0;
  left: 4px;
}

.copy-brew::after {
  top: 3px;
  left: 1px;
  background: #1a1a1c;
}

.brew-modal__actions {
  display: flex;
  gap: 16px;
}

.brew-modal__button {
  appearance: none;
  border-radius: 9999px;
  flex: 1;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.brew-modal__button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
}

.brew-modal__button--primary {
  border: 0;
  background: #fff;
  color: #070707;
}

body.modal-open {
  overflow: hidden;
}

/* Responsive */

@media (max-width: 900px) {
  .posts__grid,
  .customizations__row,
  .settings-window {
    grid-template-columns: 1fr;
  }

  .box-with-wallpaper--1 {
    width: 100%;
  }

  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 110px;
  }

  .tile--wide,
  .tile--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  footer .container {
    flex-direction: column;
    gap: 40px;
  }

  .stacked-cards,
  .testimonials__card {
    height: auto;
    min-height: 320px;
  }
}

@media (max-width: 700px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  header {
    max-width: calc(100% - 32px);
    justify-content: space-between;
    padding: 0 8px 0 16px;
  }

  .header__left {
    flex: 0;
  }
}

@media (max-width: 600px) {
  h1,
  .top-section h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  h2,
  .workflow-heading-title,
  .made-with-mac__italic {
    font-size: 28px;
  }

  .subtext {
    font-size: 16px;
  }

  .container {
    padding: 24px;
  }

  .top-section {
    height: auto;
    min-height: unset;
    max-height: unset;
    padding: 40px 0 0;
  }

  .screenshots .container {
    margin-top: 32px;
  }

  .product-stage {
    border-radius: 20px;
    min-height: 420px;
  }

  .testimonial__text {
    font-size: 18px;
  }

  .box-with-wallpaper__notification {
    width: 100%;
  }

  .notification__bottom {
    flex-wrap: wrap;
  }

  .floating-countdown {
    left: 16px;
    right: 16px;
    min-width: 0;
  }
}
