:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #686868;
  --paper: #ffffff;
  --surface: #f5f5f5;
  --line: rgba(17, 17, 17, 0.13);
  --accent: #7b4cf2;
  --pastel-blue: #82b9ff;
  --pastel-pink: #e46cff;
  --pastel-peach: #ffb08a;
  --gold: #ffcd4a;
  --shadow: 0 24px 90px rgba(17, 17, 17, 0.09);
  --device-rim-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 7px 0 18px rgba(255, 255, 255, 0.78),
    inset -7px 0 18px rgba(136, 132, 158, 0.09),
    0 0 0 1px rgba(174, 174, 192, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 0 5px rgba(178, 171, 204, 0.14),
    0 18px 60px rgba(122, 96, 190, 0.12),
    0 34px 96px rgba(17, 17, 17, 0.075);
  --font-rounded: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Avenir Next Rounded", system-ui, sans-serif;
  --container: 1080px;
  --container-hero: 1220px;
  --container-wide: 1500px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --section-y: clamp(4.75rem, 7.5vw, 7.25rem);
  --section-gap: clamp(2.25rem, 5vw, 4rem);
  --button-radius: 999px;
  --copy-size: clamp(1.12rem, 0.96rem + 0.35vw, 1.24rem);
  --copy-large-size: clamp(1.18rem, 1rem + 0.55vw, 1.42rem);
  --copy-card-size: clamp(1.08rem, 0.98rem + 0.26vw, 1.16rem);
  --copy-line-height: 1.68;
  --copy-card-line-height: 1.62;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: var(--copy-line-height);
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

main:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 5;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  outline-color: #a98aff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding-inline: max(var(--gutter), calc((100vw - var(--container-wide)) / 2));
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-rounded);
  font-weight: 780;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(82svh - 72px);
  width: min(100%, calc(var(--container-hero) + (var(--gutter) * 2)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: var(--section-gap);
  padding: clamp(2.5rem, 5vw, 4.75rem) var(--gutter) clamp(1.75rem, 3vw, 2.75rem);
  overflow: hidden;
}

.hero-copy {
  --hero-icon-size: clamp(82px, 7.4vw, 116px);
  --hero-lockup-gap: clamp(1.4rem, 3vw, 2.6rem);
  max-width: 700px;
  animation: rise 680ms ease-out both;
}

.hero-lockup {
  display: flex;
  align-items: center;
  gap: var(--hero-lockup-gap);
  margin-bottom: clamp(1.35rem, 2.5vw, 2rem);
}

.hero-icon {
  flex: 0 0 auto;
  width: var(--hero-icon-size);
  height: var(--hero-icon-size);
  border-radius: 26%;
  box-shadow: 0 26px 80px rgba(17, 17, 17, 0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 clamp(1.2rem, 2vw, 1.6rem);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 840;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--accent);
}

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

p {
  font-size: var(--copy-size);
  line-height: var(--copy-line-height);
}

h1 {
  margin-bottom: 0;
  font-family: var(--font-rounded);
  font-size: clamp(4.65rem, 8.3vw, 7.8rem);
  font-weight: 760;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: none;
  margin-bottom: clamp(1.35rem, 2.3vw, 1.85rem);
  font-family: var(--font-rounded);
  color: var(--ink);
  font-size: clamp(2.35rem, 3.25vw, 3.18rem);
  font-weight: 750;
  line-height: 1.03;
  white-space: nowrap;
}

.hero-subtitle span {
  display: inline;
}

.hero-description {
  max-width: 560px;
  margin-bottom: clamp(2rem, 3.5vw, 2.8rem);
  color: #686868;
  font-size: var(--copy-large-size);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48px;
  border-radius: var(--button-radius);
  padding: 0.82rem 1.35rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.hero .button {
  min-height: 58px;
  padding: 0.9rem 1.6rem;
  font-size: 1.08rem;
}

.button-icon {
  flex: 0 0 auto;
  width: 1.22em;
  height: 1.22em;
  fill: currentColor;
}

.button-icon-trailing {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

.button-primary:focus-visible {
  outline-color: #a98aff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(680px, calc(86svh - 120px));
  isolation: isolate;
  animation: appear 760ms 110ms ease-out both;
}

.device-frame,
.preview-device {
  --device-rim-size: clamp(5px, 0.52vw, 8px);
  --device-radius: clamp(36px, 3.2vw, 50px);
  position: relative;
  margin: 0;
  padding: var(--device-rim-size);
  overflow: hidden;
  border: 1px solid rgba(178, 178, 194, 0.34);
  background:
    linear-gradient(145deg, #ffffff 0%, #ffffff 32%, #f2f3f7 52%, #ffffff 76%),
    #ffffff;
  box-shadow: var(--device-rim-shadow);
}

.device-frame::before,
.preview-device::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.95),
    inset -2px -2px 5px rgba(132, 126, 158, 0.11);
}

.device-frame::after,
.preview-device::after {
  content: "";
  position: absolute;
  inset: calc(var(--device-rim-size) - 1px);
  z-index: 3;
  pointer-events: none;
  border-radius: calc(var(--device-radius) - var(--device-rim-size));
  box-shadow:
    inset 0 0 0 1px rgba(206, 206, 216, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.device-frame img,
.preview-device img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--device-radius) - var(--device-rim-size) - 2px);
}

.device-frame {
  width: min(33vw, 344px);
  aspect-ratio: 1206 / 2622;
  border-radius: var(--device-radius);
}

.device-frame-primary {
  position: relative;
  z-index: 2;
  transform: translateX(-16%) rotate(-1.3deg);
}

.device-frame-secondary {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 4%;
  width: min(30vw, 314px);
  opacity: 0.26;
  transform: translateX(14%) rotate(3deg);
  filter: grayscale(0.35);
}

.section {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.hero + .section {
  padding-top: clamp(4.25rem, 6.5vw, 6.25rem);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-heading {
  max-width: 660px;
  margin-bottom: clamp(2rem, 3.8vw, 3rem);
}

h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-rounded);
  font-size: clamp(2.2rem, 5.2vw, 4.35rem);
  line-height: 0.97;
  font-weight: 820;
  letter-spacing: 0;
}

.section-heading p,
.support-copy,
.legal-copy {
  color: var(--muted);
  font-size: var(--copy-size);
  line-height: var(--copy-line-height);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.15rem);
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  border: 0;
}

.feature {
  min-height: 260px;
  border-radius: 24px;
  padding: clamp(1.35rem, 2.4vw, 1.8rem);
  background: var(--surface);
}

.feature-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 1.6rem;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature strong {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-rounded);
  font-size: 1.12rem;
  font-weight: 820;
}

.feature p {
  color: var(--muted);
  font-size: var(--copy-card-size);
  line-height: var(--copy-card-line-height);
}

.chapter-strip,
.preview-grid,
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--section-gap);
  align-items: start;
}

.app-preview {
  background: #111111;
  color: #ffffff;
}

.preview-grid,
.proof-grid {
  align-items: center;
}

.preview-device {
  width: min(100%, 390px);
  aspect-ratio: 1206 / 2622;
  justify-self: center;
  border-radius: var(--device-radius);
}

.preview-copy,
.proof-copy {
  max-width: 560px;
}

.preview-copy .eyebrow {
  color: #a98aff;
}

.preview-copy .eyebrow::before {
  background: #a98aff;
}

.preview-copy p:not(.eyebrow),
.proof-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: var(--copy-large-size);
  line-height: 1.6;
}

.app-preview .preview-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.64);
}

.proof-section {
  background: #ffffff;
}

.proof-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

.chapter-strip {
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1fr);
  align-items: center;
}

.chapter-strip .section-heading {
  max-width: 470px;
  margin-bottom: 0;
}

.chapter-strip h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.85rem);
}

.preview-device-left {
  transform: rotate(-1deg);
}

.preview-device-right {
  transform: rotate(1deg);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.96),
    0 0 0 8px rgba(17, 17, 17, 0.07),
    0 22px 80px rgba(17, 17, 17, 0.1),
    -18px 20px 0 rgba(130, 185, 255, 0.18),
    18px -16px 0 rgba(228, 108, 255, 0.14),
    30px 30px 0 rgba(255, 176, 138, 0.13);
}

.rhythm-band {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rhythm-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.rhythm-row span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
}

.rhythm-row b {
  font-family: var(--font-rounded);
  font-size: clamp(1.02rem, 1.45vw, 1.24rem);
  font-weight: 820;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  padding: 1.05rem 0;
}

summary {
  cursor: pointer;
  font-family: var(--font-rounded);
  font-size: 1.08rem;
  font-weight: 820;
}

details p {
  max-width: 760px;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: var(--copy-size);
  line-height: var(--copy-line-height);
}

.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--section-gap);
  align-items: center;
  padding: clamp(0.5rem, 1.6vw, 1rem) 0;
}

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--accent);
  font-size: clamp(1.35rem, 4vw, 2.6rem);
  font-weight: 800;
  text-decoration: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem max(var(--gutter), calc((100vw - var(--container-wide)) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.page-title {
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-title-inner,
.legal-layout {
  max-width: 980px;
  margin: 0 auto;
}

.page-title h1 {
  max-width: 860px;
  font-size: clamp(3rem, 9vw, 7.5rem);
}

.legal-layout {
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter);
}

.legal-section {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.legal-section ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: var(--copy-size);
  line-height: var(--copy-line-height);
}

@keyframes rise {
  from {
    transform: translateY(18px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes appear {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

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

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

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

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .site-header {
    position: static;
    min-height: auto;
    padding-block: 1rem;
  }

  .nav {
    gap: 0.8rem;
    font-size: 0.88rem;
  }

  .nav a:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  .hero-visual {
    min-height: 320px;
    width: 100%;
    justify-self: center;
  }

  .device-frame {
    width: min(48vw, 202px);
  }

  .device-frame-secondary {
    width: min(40vw, 168px);
    right: 50%;
    transform: translateX(75%) rotate(3deg);
  }

  .device-frame-primary {
    transform: translateX(-12%) rotate(-1deg);
  }

  .feature-list,
  .chapter-strip,
  .preview-grid,
  .proof-grid,
  .support-panel {
    grid-template-columns: 1fr;
  }

  .chapter-strip .section-heading {
    max-width: 640px;
    margin-bottom: clamp(1.75rem, 5vw, 2.5rem);
  }

  .chapter-strip h2 {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .feature {
    min-height: auto;
  }

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

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(4rem, 21vw, 5.8rem);
  }

  .hero-subtitle {
    font-size: clamp(2.05rem, 11vw, 2.7rem);
    white-space: normal;
  }

  .hero-subtitle span {
    display: block;
  }

  .hero-lockup {
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.35rem;
  }

  .hero-icon {
    width: clamp(70px, 18vw, 78px);
    height: clamp(70px, 18vw, 78px);
  }
}
