:root {
  color-scheme: light;
  --ink: #141419;
  --muted: #666672;
  --subtle: #92929d;
  --canvas: #ffffff;
  --surface: #f5f5f8;
  --line: #e4e4e9;
  --brand: #5757c7;
  --brand-dark: #3f3fa8;
  --brand-soft: #eeeeff;
  --expense: #ef4a49;
  --income: #19975e;
  --warning: #f58a18;
  --max-width: 1180px;
  --header-height: 72px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 32px;
  border-bottom: 1px solid rgba(228, 228, 233, 0.82);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-size: 18px;
  font-weight: 750;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(20, 20, 24, 0.12);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #3c3c44;
  font-size: 14px;
  font-weight: 600;
}

.site-header nav a,
.text-link,
.footer-links a {
  transition: color 160ms ease;
}

.site-header nav a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--brand);
}

.header-cta,
.primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.header-cta {
  justify-self: end;
}

.header-cta:hover,
.primary-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  height: 720px;
  overflow: hidden;
  padding: 84px 28px 0;
  background: #f7f7fa;
  text-align: center;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  background: #fff;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(740px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
}

.hero h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  margin: 14px 0 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-subtitle {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}

.text-link {
  color: #3f3f49;
  font-size: 14px;
  font-weight: 700;
}

.hero-device {
  position: relative;
  z-index: 3;
  width: 340px;
  height: 700px;
  margin: 62px auto 0;
  overflow: hidden;
  border: 9px solid #17171b;
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
  background: #eef0f8;
  box-shadow: 0 28px 80px rgba(31, 28, 75, 0.2);
}

.hero-device img {
  width: 100%;
  height: auto;
}

.device-speaker {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050507;
}

.section-band {
  padding: 112px 28px;
  background: var(--surface);
}

.workflow {
  padding-top: 72px;
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.section-heading h2,
.closing h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading > p:last-child {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(var(--max-width), 100%);
  margin: 72px auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-steps li {
  min-height: 230px;
  padding: 34px 38px;
}

.workflow-steps li + li {
  border-left: 1px solid var(--line);
}

.step-number,
.story-index {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.workflow-steps h3 {
  margin: 36px 0 8px;
  font-size: 22px;
}

.workflow-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.workflow-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
}

.product-section {
  padding: 120px 28px 40px;
}

.compact-heading {
  margin-bottom: 82px;
}

.product-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: 100px;
  width: min(1040px, 100%);
  min-height: 760px;
  margin: 0 auto 100px;
}

.product-story.reverse {
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
}

.product-story.reverse .story-copy {
  grid-column: 2;
}

.product-story.reverse .screen-frame {
  grid-row: 1;
  grid-column: 1;
}

.story-copy h3 {
  margin: 14px 0 16px;
  font-size: 36px;
  line-height: 1.25;
  text-wrap: balance;
}

.story-copy > p:not(.story-index) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.feature-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 20px;
  color: #35353d;
  font-size: 15px;
}

.feature-list li::before {
  position: absolute;
  top: 0.65em;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.screen-frame {
  position: relative;
  width: min(390px, 100%);
  margin: 0;
  overflow: hidden;
  border: 8px solid #1a1a1e;
  border-radius: 46px;
  background: #eef0f8;
  box-shadow: 0 26px 70px rgba(35, 32, 80, 0.14);
}

.screen-frame::before {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 50%;
  width: 92px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050507;
  content: "";
}

.screen-frame img {
  width: 100%;
  height: auto;
}

.trust {
  padding-bottom: 96px;
}

.trust-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(900px, 100%);
  margin: 56px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-links a {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-weight: 700;
}

.trust-links a + a {
  border-left: 1px solid var(--line);
}

.trust-links a:hover {
  color: var(--brand);
}

.closing {
  padding: 120px 28px;
  text-align: center;
}

.closing img {
  margin: 0 auto 24px;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(20, 20, 24, 0.12);
}

.closing p {
  width: min(620px, 100%);
  margin: 18px auto 28px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer > div,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer strong {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

/* Legal and support pages */
.document-main {
  min-height: calc(100vh - var(--header-height));
  padding: 80px 28px 120px;
  background: var(--surface);
}

.document {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 52px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.document-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.2;
}

.document-header p {
  margin: 12px 0 0;
  color: var(--muted);
}

.document section {
  padding-top: 32px;
}

.document h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.document h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.document p,
.document li {
  color: #4e4e58;
  font-size: 15px;
}

.document ul,
.document ol {
  padding-left: 22px;
}

.document a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.support-grid article {
  min-height: 170px;
  padding: 24px;
  background: #fff;
}

.support-grid h3 {
  margin-top: 0;
}

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

  .site-header nav {
    display: none;
  }

  .hero {
    height: 690px;
    padding-top: 62px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 26px;
  }

  .hero-device {
    width: 310px;
    height: 610px;
    margin-top: 46px;
  }

  .section-heading h2,
  .closing h2 {
    font-size: 34px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-steps li {
    min-height: 0;
  }

  .workflow-steps li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .workflow-steps h3 {
    margin-top: 22px;
  }

  .product-story,
  .product-story.reverse {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: 0;
    margin-bottom: 120px;
  }

  .product-story.reverse .story-copy,
  .product-story.reverse .screen-frame {
    grid-row: auto;
    grid-column: auto;
  }

  .product-story .story-copy {
    text-align: center;
  }

  .feature-list {
    display: inline-block;
    min-width: 280px;
    text-align: left;
  }

  .screen-frame {
    width: 340px;
    justify-self: center;
  }

  .trust-links {
    grid-template-columns: 1fr;
  }

  .trust-links a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    align-items: flex-start;
  }

  .site-footer > div,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 17px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 15px;
    font-size: 13px;
  }

  .hero {
    height: 660px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-lead {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 16px;
  }

  .hero-device {
    width: 284px;
    height: 540px;
    border-width: 7px;
    border-radius: 42px 42px 0 0;
  }

  .section-band,
  .product-section,
  .closing {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section-heading h2,
  .closing h2 {
    font-size: 30px;
  }

  .section-heading > p:last-child,
  .story-copy > p:not(.story-index) {
    font-size: 15px;
  }

  .workflow-steps li {
    padding: 30px 24px;
  }

  .story-copy h3 {
    font-size: 27px;
  }

  .screen-frame {
    width: 306px;
    border-width: 7px;
    border-radius: 40px;
  }

  .site-footer {
    flex-direction: column;
  }

  .document-main {
    padding: 32px 14px 80px;
  }

  .document {
    padding: 34px 24px;
  }

  .document-header h1 {
    font-size: 32px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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