:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5f6675;
  --line: #e5e8ef;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --accent: #4c8df6;
  --accent-soft: #e9f1ff;
  --warm: #c86543;
  --mint: #8ebb71;
  --accent-ink: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--accent);
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner,
main,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.brand-title {
  display: block;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

main {
  padding: 40px 0 64px;
}

.hero,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 36px;
  align-items: center;
  padding: 42px;
  margin-bottom: 24px;
  overflow: hidden;
}

.app-hero {
  min-height: 620px;
  background:
    radial-gradient(circle at 86% 14%, rgba(142, 187, 113, 0.28), transparent 34%),
    radial-gradient(circle at 18% 12%, rgba(76, 141, 246, 0.18), transparent 30%),
    var(--paper);
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  color: var(--warm);
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-phone-stack {
  position: relative;
  min-height: 540px;
  isolation: isolate;
}

.phone-shot {
  position: absolute;
  width: 252px;
  max-width: 58vw;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.22);
  border: 8px solid #101522;
  background: #101522;
}

.phone-shot.front {
  right: 0;
  top: 8px;
  z-index: 2;
}

.phone-shot.back {
  left: -8px;
  top: 118px;
  width: 230px;
  opacity: 0.86;
  z-index: 1;
  transform: rotate(-6deg);
  filter: saturate(0.9) brightness(0.98);
}

h1,
h2,
h3 {
  line-height: 1.3;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(38px, 6vw, 64px);
}

.headline-line {
  display: block;
}

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

h3 {
  margin: 22px 0 8px;
  font-size: 17px;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.4em;
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.panel {
  padding: 26px;
  margin-top: 18px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 700;
}

.button.secondary {
  background: var(--accent-soft);
  color: #225caf;
}

.app-store-button {
  background: #111827;
  color: #ffffff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.feature-card,
.screen-card,
.download-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card {
  padding: 24px;
}

.feature-card h2 {
  margin-top: 12px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.screens-section {
  padding: 34px 0 8px;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 22px;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.screen-card {
  margin: 0;
  padding: 18px;
}

.screen-card img {
  display: block;
  width: 100%;
  border-radius: 24px;
  border: 7px solid #111827;
  background: #111827;
}

.screen-card figcaption {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  padding: 14px 2px 0;
}

.screen-card strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 3px;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  margin: 28px 0 18px;
  background:
    linear-gradient(135deg, rgba(76, 141, 246, 0.12), rgba(142, 187, 113, 0.16)),
    var(--paper);
}

.download-panel h2 {
  margin-top: 0;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 24px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 640px) {
  .header-inner,
  .hero {
    display: block;
  }

  .nav {
    margin-top: 14px;
  }

  .app-hero {
    min-height: 0;
    padding: 28px;
  }

  .hero-phone-stack {
    min-height: 420px;
    margin-top: 28px;
  }

  .phone-shot {
    width: 200px;
  }

  .phone-shot.front {
    right: 0;
  }

  .phone-shot.back {
    left: 0;
    top: 96px;
    width: 176px;
  }

  h1 {
    font-size: 28px;
  }

  .feature-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .download-panel {
    display: block;
  }
}
