:root {
  --ink: #1a1210;
  --ink-soft: rgba(26, 18, 16, 0.72);
  --paper: #fff6ec;
  --sunset-top: #8c1f47;
  --sunset-mid: #f26b38;
  --sunset-bot: #fac759;
  --moss-top: #0d5238;
  --moss-mid: #598c2e;
  --moss-bot: #fac72e;
  --mist-top: #121217;
  --mist-mid: #7a9ec7;
  --mist-low: #aeba9e;
  --mist-bot: #c2c7bd;
  --lake-top: #002954;
  --lake-mid: #1f598c;
  --lake-bot: #ffd119;
  --mango-top: #0a4a4a;
  --mango-mid: #1a8a7a;
  --mango-bot: #ff8c42;
  --radius-phone: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #ffc48a 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 20%, #f26b3844 0%, transparent 50%),
    radial-gradient(70% 50% at 0% 40%, #8c1f4733 0%, transparent 45%),
    linear-gradient(180deg, #ffe8d0 0%, var(--paper) 38%, #fffaf4 100%);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* —— Hero —— */

.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 2.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 55%;
  background: radial-gradient(ellipse at center, #fac75966 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.brand-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow:
    0 12px 28px rgba(140, 31, 71, 0.28),
    0 2px 6px rgba(26, 18, 16, 0.12);
}

.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.lede {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 500;
  color: var(--ink-soft);
}

.brand,
.hero h1,
.lede,
.cta,
.phones {
  position: relative;
  z-index: 1;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 0 auto 2.5rem;
}

.cta-inline {
  margin: 1.5rem 0 0;
}

.cta-note {
  margin: 0;
  max-width: 22rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0.85;
}

.app-store-badge {
  display: inline-flex;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.app-store-badge:focus-visible {
  outline: 2px solid var(--sunset-mid);
  outline-offset: 4px;
  border-radius: 8px;
}

.app-store-badge img {
  width: 150px;
  height: auto;
}

/* —— Phone mockups —— */

.phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
  perspective: 1200px;
}

.phone {
  margin: 0;
  flex: 0 1 auto;
  width: min(210px, 28vw);
}

.phone-center {
  width: min(240px, 34vw);
  z-index: 2;
}

.phone-left {
  transform: rotate(-6deg) translateY(18px);
}

.phone-right {
  transform: rotate(6deg) translateY(18px);
}

.phone-bezel {
  background: #1a1210;
  border-radius: calc(var(--radius-phone) + 6px);
  padding: 8px;
  box-shadow:
    0 28px 50px rgba(26, 18, 16, 0.28),
    0 8px 16px rgba(140, 31, 71, 0.15);
}

.phone-screen {
  position: relative;
  border-radius: var(--radius-phone);
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  text-align: left;
}

.status-bar {
  height: 18px;
}

.screen-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0.15rem 0.85rem 0.65rem;
  color: #fff;
}

.home-screen {
  background: linear-gradient(180deg, var(--sunset-top), var(--sunset-mid) 55%, var(--sunset-bot));
}

.home-row,
.task {
  background: var(--c);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.task.done {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: 0.72;
  color: rgba(255, 255, 255, 0.7);
}

.fab {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.fab::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

.fab-row {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
}

.fab-row .fab {
  position: static;
}

.fab-back::after {
  content: "⌃";
  font-size: 0.85rem;
  transform: translateY(-1px);
}

.list-screen {
  background: linear-gradient(180deg, var(--sunset-top), var(--sunset-bot));
}

.list-title {
  font-size: 1rem;
}

.import-screen {
  background: linear-gradient(165deg, #2a1520 0%, #4a2030 40%, #6b2a28 100%);
  padding: 0 0.7rem 0.7rem;
  color: #fff;
}

.screen-kicker {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.messy {
  margin: 0;
  font-size: 0.58rem;
  line-height: 1.45;
  opacity: 0.78;
  font-style: italic;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
}

.arrow {
  text-align: center;
  margin: 0.35rem 0;
  font-size: 0.85rem;
  opacity: 0.55;
}

.neat {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}

.neat li {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.48rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--sunset-top) 85%, black),
    color-mix(in srgb, var(--sunset-mid) 70%, transparent)
  );
}

.neat li:nth-child(2) { filter: brightness(1.08); }
.neat li:nth-child(3) { filter: brightness(1.16); }
.neat li:nth-child(4) { filter: brightness(1.24); }
.neat li:nth-child(5) {
  filter: none;
  background: var(--sunset-bot);
  color: #3a2410;
  border-bottom: none;
}

.phone figcaption {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* —— Video —— */

.video-section {
  text-align: center;
}

.video-section p {
  max-width: 30rem;
  margin: 0 auto;
}

.video-frame {
  max-width: 300px;
  margin: 1.75rem auto 0;
  background: #1a1210;
  border-radius: calc(var(--radius-phone) + 6px);
  padding: 8px;
  box-shadow:
    0 28px 50px rgba(26, 18, 16, 0.28),
    0 8px 16px rgba(140, 31, 71, 0.15);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-phone);
  background: #000;
}

/* —— Sections —— */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

section {
  padding: 2.75rem 0;
  border-top: 1px solid rgba(26, 18, 16, 0.08);
}

section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

section p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: 500;
}

section p strong {
  color: var(--ink);
  font-weight: 700;
}

/* Themes */

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 1.5rem 1.25rem;
  margin-top: 1.75rem;
}

.swatch {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.swatch > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.swatch:first-child > span {
  color: var(--ink);
  font-weight: 700;
}

.ramp {
  display: flex;
  gap: 4px;
  height: 72px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(26, 18, 16, 0.06);
  box-shadow: inset 0 0 0 1px rgba(26, 18, 16, 0.06);
}

.swatch:first-child .ramp {
  height: 88px;
  background: rgba(242, 107, 56, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(242, 107, 56, 0.28),
    0 8px 24px rgba(242, 107, 56, 0.2);
}

.ramp > span {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(26, 18, 16, 0.12);
}

/* Promise */

.promise-lead {
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.15rem);
  font-weight: 600;
  color: var(--ink-soft);
}

.promise-list {
  list-style: none;
  margin: 1.25rem 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.promise-list li {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(26, 18, 16, 0.06);
  color: var(--ink);
}

.promise-note {
  font-size: 0.95rem !important;
}

/* Footer */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--ink-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
}

footer img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.legal {
  margin: 0;
  max-width: 36rem;
  text-align: center;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0.7;
}

/* —— Motion —— */

@media (prefers-reduced-motion: no-preference) {
  .phone-left,
  .phone-center,
  .phone-right {
    animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .phone-center { animation-delay: 0.08s; }
  .phone-right { animation-delay: 0.16s; }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(28px) scale(0.96);
    }
    to {
      opacity: 1;
    }
  }

  .phone-left {
    animation-name: rise-left;
  }

  .phone-right {
    animation-name: rise-right;
  }

  @keyframes rise-left {
    from {
      opacity: 0;
      transform: rotate(-6deg) translateY(40px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: rotate(-6deg) translateY(18px);
    }
  }

  @keyframes rise-right {
    from {
      opacity: 0;
      transform: rotate(6deg) translateY(40px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: rotate(6deg) translateY(18px);
    }
  }

  .brand-icon {
    animation: pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes pop {
    from {
      opacity: 0;
      transform: scale(0.85);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}

/* —— Mobile —— */

@media (max-width: 640px) {
  .phones {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.5rem 0.25rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .phone {
    width: 180px;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .phone-center {
    width: 200px;
  }

  .phone-left,
  .phone-right {
    transform: none;
    animation: none;
  }

  .promise-list {
    flex-direction: column;
    align-items: flex-start;
  }
}
