:root {
  --canvas: #fffdfa;
  --paper: #fbf6ef;
  --paper-2: #f5ede4;
  --paper-3: #ece2d7;
  --surface: #ffffff;
  --surface-warm: #fff9f2;
  --line: rgba(61, 52, 45, 0.13);
  --line-strong: rgba(61, 52, 45, 0.2);
  --ink: #26211d;
  --ink-2: #3d342d;
  --muted: #74685f;
  --muted-2: #988b80;
  --clay: #c47b5f;
  --clay-dark: #a8654d;
  --violet: #6357d7;
  --moss: #6f8b5c;
  --steel: #55778b;
  --amber: #b28b40;
  --white: #fffdf9;
  --shadow-soft: 0 18px 48px rgba(61, 52, 45, 0.12);
  --shadow-demo: 0 28px 90px rgba(61, 52, 45, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(rgba(61, 52, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 52, 45, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, var(--canvas) 0%, var(--paper) 54%, var(--canvas) 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
iframe {
  display: block;
}

a {
  color: inherit;
}

code {
  border: 1px solid rgba(61, 52, 45, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.64);
  padding: 0.12em 0.38em;
  color: var(--ink-2);
  font-size: 0.92em;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(61, 52, 45, 0.1);
  background: rgba(255, 253, 249, 0.84);
  padding: 13px max(22px, calc((100vw - 1240px) / 2));
  backdrop-filter: blur(20px) saturate(1.2);
}

.site-header > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img,
.hero-icon,
.download-section img {
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 10px 28px rgba(61, 52, 45, 0.14);
}

.brand span {
  font-size: 16px;
  font-weight: 750;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(61, 52, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 3px;
}

.nav-links a,
.secondary-link,
.demo-reset {
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nav-links a {
  padding: 7px 13px;
}

.nav-links a:hover,
.secondary-link:hover,
.demo-reset:hover {
  background: rgba(196, 123, 95, 0.1);
  color: var(--ink);
}

.site-header > .store-link {
  justify-self: end;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 24px 38px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(255, 253, 249, 0), var(--paper));
  pointer-events: none;
}

.hero-copy,
.demo-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-icon {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.9;
  font-weight: 860;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 820px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.store-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(112, 68, 51, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #d18a6d, var(--clay));
  color: var(--white);
  padding: 9px 18px;
  text-align: left;
  text-decoration: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 12px 28px rgba(196, 123, 95, 0.22);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.store-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #c47b5f, var(--clay-dark));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 16px 34px rgba(196, 123, 95, 0.28);
}

.store-link--small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 750;
}

.store-kicker,
.store-name {
  display: block;
}

.store-kicker {
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  opacity: 0.86;
}

.store-name {
  margin-top: 3px;
  font-size: 17px;
  font-weight: 820;
  line-height: 1;
}

.secondary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(61, 52, 45, 0.13);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-2);
  padding: 10px 18px;
  box-shadow: 0 10px 24px rgba(61, 52, 45, 0.06);
}

.secondary-link:hover {
  transform: translateY(-1px);
}

.demo-shell {
  margin-top: 46px;
  overflow: hidden;
  border: 1px solid rgba(61, 52, 45, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-demo);
}

.demo-topbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(61, 52, 45, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 249, 242, 0.84));
  padding: 0 12px 0 16px;
}

.demo-topbar > div {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.demo-status {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(111, 139, 92, 0.16);
}

.demo-label {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-reset {
  border: 1px solid rgba(61, 52, 45, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  padding: 7px 11px;
}

.demo-viewport {
  position: relative;
  height: min(560px, 50vh);
  min-height: 420px;
  overflow: hidden;
  background: #f0e7dd;
}

.demo-viewport iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f0e7dd;
}

.demo-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #f7efe6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.demo-shell.is-loaded .demo-loading {
  visibility: hidden;
  opacity: 0;
}

.demo-mobile-note {
  display: none;
  gap: 8px;
  background: linear-gradient(180deg, #ffffff, #fff8ef);
  padding: 24px;
  color: var(--muted);
}

.demo-mobile-note strong,
.demo-mobile-note span {
  display: block;
}

.demo-mobile-note strong {
  color: var(--ink);
}

.section-intro {
  max-width: 960px;
  margin: 0 auto;
  padding: 86px 24px 46px;
  text-align: center;
}

.section-intro h2,
.detail-column h2,
.download-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-intro p:not(.eyebrow),
.detail-column p,
.download-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-intro p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px auto 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 104px;
}

.feature-card {
  position: relative;
  grid-column: span 6;
  min-height: 382px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    var(--surface);
  padding: 30px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 28px 26px auto;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 123, 95, 0.42));
}

.feature-card--wide {
  grid-column: span 7;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 246, 236, 0.46)),
    var(--surface);
}

.feature-card--mist {
  grid-column: span 5;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(237, 245, 244, 0.86)),
    #f7fbfa;
}

.feature-card--sage {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(232, 239, 226, 0.86)),
    #f6faf3;
}

.feature-card--sync {
  grid-column: span 12;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 28px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 239, 230, 0.72)),
    var(--surface-warm);
}

.feature-index {
  display: inline-flex;
  width: 38px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 123, 95, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--clay);
  font-size: 12px;
  font-weight: 850;
}

.feature-card h3 {
  max-width: 520px;
  margin: 72px 0 14px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.feature-card--sync h3 {
  margin-top: 46px;
}

.feature-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.feature-card ul,
.sync-inline {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--clay);
}

.feature-card--mist li::before {
  background: var(--steel);
}

.feature-card--sage li::before {
  background: var(--moss);
}

.sync-inline {
  counter-reset: sync;
  margin-top: 4px;
}

.sync-inline li {
  min-height: 68px;
  border: 1px solid rgba(61, 52, 45, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 15px 16px 15px 58px;
}

.sync-inline li::before {
  counter-increment: sync;
  content: counter(sync, decimal-leading-zero);
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--amber);
  font-size: 12px;
  font-weight: 860;
}

.detail-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 24px;
}

.detail-column p {
  max-width: 520px;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.detail-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.detail-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.download-section {
  display: grid;
  justify-items: center;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(245, 237, 228, 0.86)),
    var(--paper-2);
  padding: 96px 24px;
  text-align: center;
}

.download-section img {
  margin-bottom: 22px;
}

.download-section p {
  max-width: 680px;
  margin: 20px auto 28px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.9);
  color: var(--muted);
  padding: 28px 24px;
  font-size: 13px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 820;
}

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

[data-reveal] {
  transform: none;
  opacity: 1;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 520ms ease;
}

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

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

  [data-reveal] {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .hero {
    padding-top: 62px;
  }

  .demo-viewport {
    min-height: 500px;
    height: 64vh;
  }

  .detail-band {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card--wide,
  .feature-card--mist,
  .feature-card--sync {
    grid-column: span 12;
  }

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

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    padding: 12px 16px;
  }

  .site-header > .store-link {
    display: none;
  }

  .brand span {
    font-size: 15px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 48px 16px 24px;
  }

  .hero-copy,
  .demo-shell {
    max-width: 358px;
    margin-left: 0;
    margin-right: auto;
  }

  .hero-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions,
  .store-link {
    width: 100%;
  }

  .store-link {
    text-align: center;
  }

  .secondary-link {
    justify-content: center;
    width: 100%;
  }

  .demo-shell {
    margin-top: 34px;
  }

  .demo-topbar {
    display: none;
  }

  .demo-viewport {
    display: none;
  }

  .demo-mobile-note {
    display: grid;
  }

  .feature-card,
  .detail-list > div {
    padding: 22px;
  }

  .section-intro {
    padding: 62px 16px 36px;
  }

  .feature-grid {
    gap: 12px;
    padding: 0 16px 74px;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-card h3 {
    margin-top: 54px;
    font-size: 24px;
  }

  .feature-card--sync h3 {
    margin-top: 42px;
  }

  .sync-inline li {
    padding-left: 52px;
  }

  .detail-band {
    padding: 78px 16px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 32px;
    height: 32px;
  }
}
