:root {
  --bg: #fcfbf8;
  --bg-soft: #f5efe5;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-muted: #faf5eb;
  --line: #e5ddcf;
  --line-strong: #d3c7b2;
  --ink: #15212b;
  --muted: #5e6977;
  --muted-strong: #35424f;
  --brand: #a57717;
  --brand-strong: #7c5910;
  --brand-soft: #f8edd8;
  --gold: #e0b04d;
  --gold-soft: #fff4dd;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.05);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: min(1120px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #fcfbf8 0%, #f8f4ed 58%, #f2ece2 100%);
  color: var(--ink);
  font-family:
    "SF Pro Text",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 88% 10%, rgba(224, 176, 77, 0.14), transparent 24%),
    radial-gradient(circle at 14% 0%, rgba(39, 54, 70, 0.08), transparent 28%);
  pointer-events: none;
  z-index: -1;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
}

.site-header,
.hero,
.feature-band,
.content-section,
.cta-section,
.site-footer {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(229, 221, 207, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: flex;
  align-items: center;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 650;
}

.brand-logo {
  width: 2.9rem;
  height: 2.9rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(212, 171, 67, 0.18));
}

.brand-name {
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  border-radius: 999px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 4rem;
  align-items: center;
  padding: 5.5rem 0 4rem;
}

.hero-copy {
  max-width: 40rem;
}

.hero-copy::before {
  content: "";
  display: inline-block;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(229, 221, 207, 0.9);
  border-radius: 24px;
  background:
    url("stepsense-gold-logo-320.png") center / 74% no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 235, 0.98));
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.9rem);
  line-height: 1.02;
  font-weight: 700;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1.08;
  font-weight: 680;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 650;
}

p {
  margin: 0;
  line-height: 1.65;
}

.hero-text,
.section-heading p:last-child,
.feature-card p,
.step-card p,
.audience-card p,
.cta-copy p,
.footer-note,
.feature-band article p:last-child,
.floating-note span,
.challenge-list span,
.stat-label,
.store-kicker,
.ring-copy p,
.ring-copy span {
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-text {
  max-width: 37rem;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #16212b, #2d4052);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  min-height: 100%;
  padding: 1.35rem 1rem 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  color: var(--muted-strong);
  font-size: 0.96rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.7rem;
  width: 2.1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.phone-frame {
  position: relative;
  width: min(100%, 28rem);
  padding: 1.25rem;
  border: 1px solid rgba(219, 228, 238, 0.95);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.1rem 0.15rem 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.phone-card {
  padding: 1.15rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.spotlight {
  background: linear-gradient(180deg, #fdf8ee 0%, #ffffff 100%);
}

.card-label {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ring-panel {
  display: grid;
  grid-template-columns: 8.4rem 1fr;
  gap: 1rem;
  align-items: center;
}

.progress-ring {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 54%, transparent 55%),
    conic-gradient(var(--brand) 0 302deg, rgba(148, 163, 184, 0.18) 302deg 360deg);
}

.progress-ring strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.progress-ring span {
  color: var(--muted);
  font-size: 0.82rem;
}

.ring-copy span {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--brand-strong);
  font-weight: 600;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mini-pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 600;
}

.challenge-list {
  display: grid;
  gap: 0.9rem;
}

.challenge-list strong,
.challenge-list span,
.stat-number,
.stat-label,
.floating-note strong,
.floating-note span,
.store-button strong,
.store-kicker {
  display: block;
}

.challenge-list strong {
  font-size: 1rem;
  font-weight: 600;
}

.challenge-list span,
.stat-label {
  font-size: 0.92rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  background: var(--surface-muted);
}

.stat-number {
  margin-bottom: 0.2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.floating-note {
  position: absolute;
  max-width: 13rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.floating-note strong {
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.floating-note span {
  font-size: 0.91rem;
}

.note-left {
  left: -1.6rem;
  bottom: 4.6rem;
}

.note-right {
  right: -1.9rem;
  top: 4.8rem;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-band article,
.feature-card,
.step-card,
.audience-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.feature-band article {
  padding: 1.55rem;
}

.band-title,
.feature-index {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.band-title::before,
.feature-index::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--gold));
}

.content-section {
  padding: 4rem 0;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

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

.feature-card,
.audience-card {
  padding: 1.7rem;
}

.feature-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.07);
}

.feature-index {
  margin-bottom: 1rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.steps-panel {
  display: grid;
  gap: 1rem;
}

.step-card {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.55rem;
}

.step-number {
  display: grid;
  place-items: center;
  width: 3.2rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-muted);
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
}

.quote-section blockquote {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: var(--shadow-soft);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.35;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin: 1rem auto 4rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 245, 0.96));
  box-shadow: var(--shadow);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-button {
  min-width: 11.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.store-button strong {
  margin-top: 0.2rem;
  font-size: 1.08rem;
  color: var(--ink);
}

.store-kicker {
  font-size: 0.82rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 0 2.5rem;
  color: var(--muted);
}

.footer-main {
  display: grid;
  gap: 0.45rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 600;
}

.footer-logo {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.legal-main {
  width: min(920px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 4rem 0 4rem;
}

.legal-hero {
  padding: 1rem 0 1.5rem;
}

.legal-hero .hero-text {
  max-width: 48rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-card {
  margin-bottom: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.legal-card h2 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-note {
  background: linear-gradient(135deg, var(--gold-soft), #fffdf8);
  border-color: rgba(165, 119, 23, 0.24);
}

.legal-note p {
  color: var(--muted-strong);
}

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

.legal-list {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-list li {
  margin-bottom: 0.65rem;
}

.legal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.legal-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1080px) {
  .hero {
    gap: 3rem;
  }

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

  .note-left {
    left: -0.8rem;
  }

  .note-right {
    right: -0.8rem;
  }
}

@media (max-width: 980px) {
  .hero,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    padding-top: 1rem;
  }

  .feature-band,
  .feature-grid,
  .audience-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .note-left {
    left: 0.2rem;
    bottom: 4.2rem;
  }

  .note-right {
    right: 0.2rem;
    top: 4rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 24px;
    padding: 0.85rem 1rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .js .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: 0;
    display: grid;
    gap: 0.35rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      visibility 220ms ease;
  }

  .js .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: var(--surface-muted);
  }

  .js .site-header.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .js .site-header.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .js .site-header.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .hero-copy::before {
    width: 4.35rem;
    height: 4.35rem;
    margin-bottom: 1.2rem;
  }

  .ring-panel,
  .step-card {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .floating-note {
    position: static;
    max-width: none;
    margin-top: 1rem;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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