:root {
  --green: #42c80f;
  --green-deep: #238900;
  --ink: #17202c;
  --muted: #737d8b;
  --cream: #fffdf7;
  --line: rgba(23, 32, 44, 0.12);
  --coral: #ff8a6a;
  --blue: #55a8ff;
  --pointer-x: 50%;
  --pointer-y: 42%;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(66, 200, 15, 0.11), transparent 18rem),
    radial-gradient(circle at 13% 82%, rgba(85, 168, 255, 0.13), transparent 20rem),
    radial-gradient(circle at 88% 18%, rgba(255, 138, 106, 0.1), transparent 18rem),
    linear-gradient(135deg, #fffefa 0%, #fffdf7 48%, #fbfaf2 100%);
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 3.8rem 1.25rem 3rem;
  isolation: isolate;
}

.page-shell::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(23, 32, 44, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 44, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 35%, black, transparent 72%);
  mask-image: radial-gradient(circle at 50% 35%, black, transparent 72%);
}

.hero {
  width: min(100%, 940px);
  text-align: center;
  animation: heroRise 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
  margin: 0;
  color: var(--green);
  font-size: 8.65rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
  text-shadow:
    0 3px 0 rgba(46, 146, 0, 0.13),
    0 18px 46px rgba(66, 200, 15, 0.2);
}

.headline {
  margin: 1.65rem 0 0;
  font-size: 1.92rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.14;
}

.privacy svg {
  flex: 0 0 auto;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.embed-shell {
  position: relative;
  width: min(100%, 760px);
  height: 430px;
  margin: 3rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 44, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    0 18px 48px rgba(23, 32, 44, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
  animation: formRise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 140ms both;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.embed-shell:hover,
.embed-shell:focus-within {
  transform: translateY(-3px);
  border-color: rgba(66, 200, 15, 0.27);
  box-shadow:
    0 24px 54px rgba(23, 32, 44, 0.1),
    0 0 0 5px rgba(66, 200, 15, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.airtable-embed {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 220ms ease;
}

.embed-shell.is-loaded .airtable-embed {
  opacity: 1;
}

.embed-loader {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.72) 48%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52));
  background-size: 220% 100%, 100% 100%;
  animation: loaderSheen 1.35s ease-in-out infinite;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.embed-loader span {
  display: block;
  height: 54px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(23, 32, 44, 0.08), rgba(23, 32, 44, 0.035)),
    rgba(255, 255, 255, 0.72);
}

.embed-loader span:nth-child(1) {
  width: 64%;
}

.embed-loader span:nth-child(2) {
  width: 82%;
}

.embed-loader span:nth-child(3) {
  width: 46%;
  background:
    linear-gradient(90deg, rgba(66, 200, 15, 0.34), rgba(66, 200, 15, 0.17)),
    rgba(255, 255, 255, 0.72);
}

.embed-shell.is-loaded .embed-loader {
  visibility: hidden;
  opacity: 0;
}

.privacy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  max-width: min(100%, 42rem);
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.35;
  animation: formRise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 210ms both;
}

.privacy svg {
  width: 19px;
  height: 19px;
  stroke: var(--green-deep);
}

.habit-flow {
  width: min(100%, 860px);
  margin: 2.15rem auto 0;
  animation: formRise 760ms cubic-bezier(0.2, 0.8, 0.2, 1) 280ms both;
}

.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.flow-track::before {
  position: absolute;
  top: 31px;
  right: 9%;
  left: 9%;
  height: 2px;
  border-radius: 99px;
  content: "";
  background: linear-gradient(90deg, rgba(66, 200, 15, 0.18), rgba(255, 138, 106, 0.18), rgba(85, 168, 255, 0.2), rgba(66, 200, 15, 0.18));
}

.flow-step {
  --step-color: var(--green);
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 0.62rem;
  padding: 0.15rem 0.2rem;
  color: var(--muted);
  font-weight: 800;
  outline: 0;
  transition: color 180ms ease, transform 180ms ease;
}

.flow-step:nth-child(2) {
  --step-color: var(--blue);
}

.flow-step:nth-child(3) {
  --step-color: var(--coral);
}

.flow-step:nth-child(4) {
  --step-color: #b061ff;
}

.flow-step:nth-child(5) {
  --step-color: var(--green-deep);
}

.flow-step:not(:last-child)::after {
  position: absolute;
  top: 26px;
  right: -8px;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(23, 32, 44, 0.18);
  border-right: 2px solid rgba(23, 32, 44, 0.18);
  content: "";
  transform: rotate(45deg);
}

.flow-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(23, 32, 44, 0.1);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    color-mix(in srgb, var(--step-color) 14%, white);
  box-shadow: 0 14px 28px rgba(23, 32, 44, 0.065);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.flow-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--step-color);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-label {
  display: block;
  max-width: 8rem;
  font-size: 0.88rem;
  line-height: 1.16;
}

.flow-step:hover,
.flow-step:focus-visible,
.flow-step.is-current {
  color: var(--ink);
  transform: translateY(-2px);
}

.flow-step:hover .flow-icon,
.flow-step:focus-visible .flow-icon,
.flow-step.is-current .flow-icon {
  border-color: color-mix(in srgb, var(--step-color) 38%, transparent);
  box-shadow:
    0 16px 32px rgba(23, 32, 44, 0.085),
    0 0 0 5px color-mix(in srgb, var(--step-color) 10%, transparent);
  transform: scale(1.035);
}

.ambient,
.floating-books {
  position: absolute;
  pointer-events: none;
}

.ambient {
  z-index: -2;
  border-radius: 999px;
}

.ambient-left {
  left: -210px;
  bottom: -205px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(66, 200, 15, 0.18);
  box-shadow:
    0 0 0 30px rgba(66, 200, 15, 0.035),
    0 0 0 74px rgba(85, 168, 255, 0.028),
    0 0 0 122px rgba(255, 138, 106, 0.022);
  animation: glowPulse 12s ease-in-out infinite;
}

.ambient-right {
  top: 11%;
  right: 8%;
  width: 18rem;
  height: 18rem;
  background:
    radial-gradient(circle, rgba(66, 200, 15, 0.14), transparent 68%),
    radial-gradient(circle at 72% 30%, rgba(85, 168, 255, 0.12), transparent 44%);
  animation: driftOrb 14s ease-in-out infinite;
}

.floating-books {
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.float-book,
.spark {
  position: absolute;
  opacity: 0.56;
  will-change: transform;
}

.float-book {
  width: 54px;
  height: 42px;
  border: 2px solid rgba(23, 32, 44, 0.1);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 49%, rgba(23, 32, 44, 0.1) 50%, rgba(255, 255, 255, 0.88) 51%),
    linear-gradient(135deg, rgba(66, 200, 15, 0.18), rgba(85, 168, 255, 0.12));
  box-shadow: 0 16px 32px rgba(23, 32, 44, 0.1);
  animation: floatBook 10s ease-in-out infinite;
}

.float-book span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 2px;
  border-radius: 99px;
  background: rgba(23, 32, 44, 0.1);
  box-shadow: 0 -8px 0 rgba(23, 32, 44, 0.075);
}

.float-book-one {
  left: 7%;
  top: 22%;
  animation-delay: -1.5s;
}

.float-book-two {
  right: 13%;
  top: 31%;
  width: 48px;
  height: 38px;
  animation-delay: -4.5s;
}

.float-book-three {
  left: 15%;
  bottom: 19%;
  width: 46px;
  height: 36px;
  animation-delay: -7.5s;
}

.float-book-four {
  right: 8%;
  bottom: 17%;
  width: 50px;
  height: 40px;
  animation-delay: -10.5s;
}

.spark {
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  border-radius: 3px;
  background: rgba(66, 200, 15, 0.44);
  animation: twinkle 3.8s ease-in-out infinite;
}

.spark-one {
  top: 16%;
  left: 25%;
}

.spark-two {
  right: 24%;
  bottom: 27%;
  width: 11px;
  height: 11px;
  background: rgba(255, 138, 106, 0.5);
  animation-delay: -1.9s;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes formRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatBook {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-7deg);
  }

  50% {
    transform: translate3d(12px, -16px, 0) rotate(6deg);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.035);
    opacity: 0.56;
  }
}

@keyframes driftOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-12px, 14px, 0);
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: rotate(45deg) scale(0.82);
    opacity: 0.2;
  }

  50% {
    transform: rotate(45deg) scale(1);
    opacity: 0.58;
  }
}

@keyframes loaderSheen {
  from {
    background-position: 180% 0, 0 0;
  }

  to {
    background-position: -40% 0, 0 0;
  }
}

@media (max-width: 980px) {
  .page-shell {
    padding-top: 3.25rem;
  }

  .brand {
    font-size: 6.5rem;
  }

  .headline {
    margin-top: 1.45rem;
    font-size: 1.62rem;
  }

  .embed-shell {
    width: min(100%, 720px);
    height: 450px;
    margin-top: 2.5rem;
  }

  .float-book-two,
  .float-book-four {
    right: 4%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    min-height: auto;
    padding: 2.6rem 0.95rem 2.15rem;
  }

  .page-shell::before {
    background-size: 54px 54px;
  }

  .brand {
    font-size: 3.65rem;
    line-height: 0.9;
  }

  .headline {
    width: min(100%, 21rem);
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.05rem;
    font-size: 1.14rem;
    line-height: 1.2;
  }

  .embed-shell {
    height: 420px;
    margin-top: 2rem;
    border-radius: 14px;
  }

  .embed-loader {
    padding: 1rem;
  }

  .embed-loader span {
    height: 48px;
    border-radius: 10px;
  }

  .privacy {
    margin-top: 0.8rem;
    font-size: 0.9rem;
  }

  .habit-flow {
    width: min(100%, 22rem);
    margin-top: 1.45rem;
  }

  .flow-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    margin: 0 auto;
  }

  .flow-track::before {
    display: none;
  }

  .flow-step {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    gap: 0.4rem;
    min-height: 0;
    padding: 0.34rem 0.58rem 0.34rem 0.42rem;
    border: 1px solid rgba(23, 32, 44, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    box-shadow: 0 10px 22px rgba(23, 32, 44, 0.045);
    text-align: left;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .flow-icon {
    width: 32px;
    height: 32px;
    box-shadow: none;
  }

  .flow-icon svg {
    width: 16px;
    height: 16px;
  }

  .flow-label {
    max-width: 7.4rem;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: normal;
  }

  .ambient-left {
    left: -250px;
    bottom: -260px;
    width: 460px;
    height: 460px;
  }

  .ambient-right {
    top: 4%;
    right: -6rem;
    width: 14rem;
    height: 14rem;
  }

  .float-book {
    display: none;
  }

  .spark-one {
    left: 10%;
    top: 11%;
  }

  .spark-two {
    right: 12%;
    bottom: 12%;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 3.28rem;
  }

  .headline {
    width: min(100%, 18.5rem);
    font-size: 1.04rem;
  }

  .embed-shell {
    height: 402px;
  }

  .flow-track {
    gap: 0.45rem;
  }

  .flow-step {
    padding: 0.3rem 0.48rem 0.3rem 0.36rem;
  }

  .flow-icon {
    width: 30px;
    height: 30px;
  }

  .flow-label {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
