:root {
  color-scheme: light;
  --paper: #eef1ea;
  --paper-strong: #fffaf0;
  --ink: #171512;
  --muted: #746d61;
  --line: rgba(23, 21, 18, 0.16);
  --charcoal: #211f1b;
  --charcoal-2: #2f2b25;
  --zest: #df6a36;
  --zest-dark: #a94420;
  --sage: #78886f;
  --steel: #596571;
  --shadow: 0 28px 90px rgba(24, 19, 12, 0.18);
  --radius: 8px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 96px;
  --page-gutter: clamp(18px, 4vw, 48px);
  --section-pad: clamp(64px, 9vw, 112px);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

.buy-copy p,
.download-tile p,
.checkout-note {
  color: var(--muted);
  line-height: 1.55;
}

.buy-section {
  display: grid;
  gap: clamp(var(--space-2xl), 5vw, var(--space-4xl));
  align-items: start;
}

.buy-copy {
  display: grid;
  gap: var(--space-xl);
  padding-block: clamp(var(--space-3xl), 8vw, var(--space-5xl));
}

.purchase-card,
.download-tile {
  display: grid;
  gap: var(--space-xl);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(var(--space-lg), 3vw, var(--space-2xl));
  background: rgba(255, 250, 240, 0.74);
  box-shadow: 0 18px 70px rgba(24, 19, 12, 0.1);
}

.price-block {
  display: grid;
  gap: var(--space-sm);
}

.price-block span,
.download-tile span {
  color: var(--sage);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-block strong {
  font-size: clamp(58px, 9vw, 88px);
  line-height: 0.9;
  letter-spacing: 0;
}

.price-block p {
  color: var(--muted);
  line-height: 1.55;
}

.purchase-list {
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.purchase-list li {
  position: relative;
  padding-left: 24px;
  color: var(--charcoal-2);
  font-weight: 800;
  line-height: 1.35;
}

.purchase-list li::before {
  content: "";
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--zest);
  box-shadow: 0 0 0 5px rgba(223, 106, 54, 0.14);
}

.checkout-link {
  width: 100%;
}

.checkout-note {
  font-size: 14px;
}

.download-page main {
  min-height: calc(100vh - 150px);
}

.download-hero {
  display: grid;
  gap: clamp(var(--space-2xl), 6vw, var(--space-4xl));
  width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
  padding: clamp(52px, 7vw, 88px) 0 var(--section-pad);
}

.download-grid {
  display: grid;
  gap: var(--space-lg);
}

.download-tile h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

.download-tile .button {
  width: fit-content;
}

.buy-copy > .reveal,
.purchase-card > .reveal {
  transform: translateY(34px) scale(0.98);
}

.buy-copy > .reveal.is-visible,
.purchase-card > .reveal.is-visible {
  transform: translateY(0) scale(1);
}

@media (min-width: 760px) {
  .buy-section {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  }

  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 88% 16%, rgba(89, 101, 113, 0.16), transparent 24rem),
    radial-gradient(circle at 10% 0%, rgba(223, 106, 54, 0.16), transparent 32rem),
    linear-gradient(180deg, #fff8ec 0%, var(--paper) 48%, #e5e8df 100%);
  color: var(--ink);
  font-family: Avenir Next, Avenir, Helvetica Neue, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(23, 21, 18, 0.04), rgba(23, 21, 18, 0.04) 1px, transparent 1px, transparent 4px);
  animation: grainSlide 18s linear infinite;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--page-gutter);
  background: rgba(248, 243, 233, 0.86);
  backdrop-filter: blur(18px);
  animation: headerDrop 520ms var(--ease-out-quint) both;
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--zest), rgba(120, 136, 111, 0.82));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  opacity: 0.82;
  transition: transform 120ms linear;
  will-change: transform;
}

.brand,
.site-footer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  font-weight: 900;
  text-decoration: none;
}

.brand img,
.site-footer img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

nav {
  display: none;
  gap: var(--space-xl);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

nav a {
  text-decoration: none;
}

main {
  overflow: hidden;
}

.hero-section,
.section,
.proof-strip,
.site-footer {
  width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

.hero-section {
  display: grid;
  gap: clamp(var(--space-2xl), 5vw, var(--space-4xl));
  align-items: center;
  padding: clamp(52px, 7vw, 88px) 0 var(--space-2xl);
}

.hero-section > * {
  min-width: 0;
}

.hero-copy {
  display: grid;
  gap: var(--space-xl);
  min-width: 0;
  max-width: 680px;
}

.hero-copy > * {
  animation: heroRise 760ms var(--ease-out-quint) both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 90ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 170ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 240ms;
}

.eyebrow {
  margin: 0;
  color: var(--zest-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  font-size: clamp(42px, 12vw, 68px);
  line-height: 0.92;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
}

.lede,
.section-copy p,
.download-copy p,
.faq-item p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions,
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.button,
.tab,
.segmented button,
.faq-item {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 220ms var(--ease-out-quart),
    border-color 220ms var(--ease-out-quart),
    background 220ms var(--ease-out-quart),
    box-shadow 220ms var(--ease-out-quart);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-strong);
}

.ghost,
.tab,
.segmented button,
.faq-item {
  background: rgba(255, 250, 240, 0.58);
  color: var(--ink);
}

.button:hover,
.tab:hover,
.segmented button:hover,
.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(223, 106, 54, 0.5);
  box-shadow: 0 12px 34px rgba(24, 19, 12, 0.08);
}

.button:active,
.tab:active,
.segmented button:active,
.faq-item:active {
  transform: translateY(0) scale(0.985);
}

.hero-device,
.screen-frame {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 14px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.hero-device {
  animation: deviceSettle 900ms 160ms var(--ease-out-expo) both;
  position: relative;
  transform-origin: 50% 58%;
}

.hero-device::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 250, 240, 0.18) 48%,
    transparent 60%,
    transparent 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateX(-120%);
  animation: deviceSheen 4.8s 1.1s var(--ease-out-quint) infinite;
}

.window-bar {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.12);
  padding: 10px 12px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e98255;
}

.window-bar span:nth-child(2) {
  background: #d8b36b;
}

.window-bar span:nth-child(3) {
  background: #8aa27a;
}

.hero-device img {
  display: block;
  width: 100%;
  animation: screenshotFloat 5.5s 1.2s var(--ease-out-quint) infinite alternate;
  transform-origin: center;
  will-change: transform;
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    padding-block: var(--space-md);
  }

  .brand,
  .site-footer {
    gap: var(--space-sm);
  }

  .brand img,
  .site-footer img {
    width: 30px;
    height: 30px;
  }

  .hero-section {
    padding-top: var(--space-3xl);
  }

  .hero-copy {
    gap: var(--space-lg);
  }

  h1 {
    font-size: clamp(42px, 15vw, 58px);
  }

  .lede,
  .section-copy p,
  .download-copy p,
  .faq-item p {
    font-size: 17px;
  }

  .lede {
    max-width: 31ch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-device,
  .screen-frame {
    border-radius: 10px;
  }

  .hero-device {
    width: min(100%, 342px);
    margin-inline: auto;
    padding-bottom: var(--space-sm);
  }

  .hero-device img {
    width: calc(100% - var(--space-lg));
    margin: 0 auto;
    border-radius: 6px;
  }

  .screen-frame img {
    aspect-ratio: auto;
    object-fit: contain;
  }

  .window-bar {
    padding: var(--space-sm) var(--space-md);
  }

  .screen-frame figcaption {
    padding: var(--space-md) var(--space-lg);
  }

  .download-detail .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
    justify-items: start;
    gap: var(--space-lg);
  }
}

.proof-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: clamp(var(--space-lg), 3vw, var(--space-2xl));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.proof-strip div {
  display: grid;
  align-content: start;
  gap: var(--space-sm);
  min-height: 96px;
  padding: var(--space-xl);
  background: rgba(255, 250, 240, 0.72);
  transition:
    background 240ms var(--ease-out-quart),
    transform 240ms var(--ease-out-quart);
}

.proof-strip div:hover {
  background: rgba(255, 250, 240, 0.92);
  transform: translateY(-2px);
}

.proof-strip span,
.feature-grid span,
.screen-frame figcaption,
.site-footer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-strip strong {
  font-size: 18px;
  line-height: 1.2;
}

.section {
  padding: var(--section-pad) 0;
}

.split-section {
  display: grid;
  gap: clamp(var(--space-2xl), 5vw, var(--space-4xl));
  align-items: start;
}

.section-copy,
.download-copy {
  display: grid;
  gap: var(--space-xl);
  max-width: 620px;
}

.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tab.active,
.segmented button.active {
  border-color: var(--ink);
  background: var(--paper-strong);
}

.screen-frame {
  margin: 0;
  background: var(--charcoal);
  transition:
    transform 420ms var(--ease-out-quint),
    box-shadow 420ms var(--ease-out-quint);
}

.screen-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 100px rgba(24, 19, 12, 0.2);
}

.screen-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.6;
  object-fit: cover;
  object-position: top center;
  transition:
    opacity 220ms var(--ease-out-quart),
    transform 420ms var(--ease-out-quint);
}

.screen-frame.is-switching img {
  opacity: 0;
  transform: scale(0.985);
}

.screen-frame figcaption {
  border-top: 1px solid rgba(255, 250, 240, 0.14);
  padding: var(--space-lg) var(--space-xl);
  color: rgba(255, 250, 240, 0.64);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid article {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
  transition:
    background 240ms var(--ease-out-quart),
    transform 240ms var(--ease-out-quart);
}

.feature-grid article + article {
  border-top: 1px solid var(--line);
}

.feature-grid article:hover {
  background: rgba(255, 250, 240, 0.42);
  transform: translateY(-2px);
}

.feature-grid p,
.download-detail p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.download-section {
  display: grid;
  gap: clamp(var(--space-2xl), 5vw, var(--space-4xl));
  border-block: 1px solid var(--line);
  padding-block: clamp(var(--space-3xl), 8vw, var(--space-5xl));
}

.download-card {
  display: grid;
  gap: var(--space-xl);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(var(--space-lg), 3vw, var(--space-2xl));
  background: rgba(255, 250, 240, 0.74);
  box-shadow: 0 18px 70px rgba(24, 19, 12, 0.1);
}

.download-detail {
  display: grid;
  gap: var(--space-md);
  transition:
    opacity 180ms var(--ease-out-quart),
    transform 240ms var(--ease-out-quart);
}

.download-detail.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

.download-detail span {
  color: var(--sage);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.download-detail strong {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
}

.download-detail .button {
  width: fit-content;
}

.faq-section {
  display: grid;
  gap: clamp(var(--space-2xl), 5vw, var(--space-4xl));
  padding-top: clamp(var(--space-4xl), 9vw, 120px);
}

.faq-list {
  display: grid;
  gap: var(--space-md);
}

.faq-item {
  display: grid;
  gap: 0;
  width: 100%;
  text-align: left;
}

.faq-item span {
  font-size: 17px;
}

.faq-item p {
  max-height: 0;
  overflow: hidden;
  font-size: 15px;
  transition: max-height 180ms ease, margin-top 180ms ease;
}

.faq-item.open p {
  max-height: 120px;
  margin-top: var(--space-md);
}

.site-footer {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0 var(--space-3xl);
}

.site-footer a {
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(64px) scale(0.975);
  transition:
    opacity 980ms var(--ease-out-expo),
    transform 980ms var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-copy > .reveal,
.download-copy > .reveal,
.faq-section > div > .reveal,
.site-footer > .reveal {
  transform: translateY(44px);
}

.section-copy > .reveal.is-visible,
.download-copy > .reveal.is-visible,
.faq-section > div > .reveal.is-visible,
.site-footer > .reveal.is-visible {
  transform: translateY(0);
}

.screen-tabs .reveal,
.download-card > .reveal {
  transform: translateY(34px) scale(0.96);
}

.screen-tabs .reveal.is-visible,
.download-card > .reveal.is-visible {
  transform: translateY(0) scale(1);
}

.proof-strip div.reveal.is-visible,
.feature-grid article.reveal.is-visible,
.download-card.reveal.is-visible,
.faq-item.reveal.is-visible,
.screen-tabs .reveal.is-visible,
.download-card > .reveal.is-visible {
  animation: cardSettle 820ms var(--ease-out-quint) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.screen-frame.reveal.is-visible {
  animation: frameSettle 980ms var(--ease-out-expo) both;
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

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

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes deviceSettle {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.975);
  }

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

@keyframes screenshotFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -10px, 0) scale(1.012);
  }
}

@keyframes deviceSheen {
  0%,
  54% {
    opacity: 0;
    transform: translateX(-120%);
  }

  62% {
    opacity: 0.75;
  }

  74% {
    opacity: 0;
    transform: translateX(120%);
  }

  100% {
    opacity: 0;
    transform: translateX(120%);
  }
}

@keyframes cardSettle {
  0% {
    box-shadow: 0 0 0 rgba(24, 19, 12, 0);
  }

  42% {
    box-shadow: 0 18px 50px rgba(24, 19, 12, 0.1);
  }

  100% {
    box-shadow: 0 0 0 rgba(24, 19, 12, 0);
  }
}

@keyframes frameSettle {
  0% {
    filter: saturate(0.88) brightness(0.94);
  }

  100% {
    filter: saturate(1) brightness(1);
  }
}

@keyframes grainSlide {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 48px;
  }
}

@media (min-width: 760px) {
  h1 {
    max-width: 620px;
    font-size: clamp(58px, 6.6vw, 94px);
  }

  nav {
    display: flex;
  }

  .proof-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .split-section,
  .download-section,
  .faq-section {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .feature-grid article {
    padding: var(--space-2xl);
  }

  .feature-grid article + article {
    border-top: 0;
  }

  .feature-grid article:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .feature-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 1080px) {
  .hero-section {
    grid-template-columns: minmax(400px, 0.9fr) minmax(0, 1.1fr);
    min-height: min(720px, calc(100vh - 74px));
  }

  .hero-device {
    align-self: center;
  }

  .section:nth-of-type(4) {
    padding-top: calc(var(--section-pad) * 0.75);
  }

  .feature-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .feature-grid article:first-child {
    grid-row: span 2;
    align-content: center;
    min-height: 360px;
    padding-right: clamp(var(--space-2xl), 5vw, var(--space-4xl));
  }

  .feature-grid article:nth-child(even) {
    border-left: 0;
  }

  .feature-grid article:nth-child(2),
  .feature-grid article:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .feature-grid article:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .feature-grid article:nth-child(4) {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-device::after {
    display: none;
  }
}
