:root {
  --bg: #f5f4ef;
  --ink: #111111;
  --body: #1c1c1c;
  --muted: #6b6b66;
  --line: #e4e1d8;
  --white: #ffffff;
  --header-h: 72px;
  --wrap: 1120px;
  --page-pad: 40px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
summary {
  font: inherit;
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--page-pad) * 2);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* Header */

.site-header {
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover {
  text-decoration: none;
}

.logo-word {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.logo-bars {
  display: inline-flex;
  gap: 3px;
}

.logo-bars span {
  display: block;
  width: 2px;
  height: 11px;
  background: var(--ink);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  text-decoration: none;
  color: var(--ink);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-cta:hover {
  text-decoration: none;
  opacity: 0.88;
}

.btn-cta:focus-visible {
  outline-offset: 3px;
}

.btn-cta .arrow {
  font-weight: 500;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand .logo-word {
  font-size: 12px;
}

.footer-cols {
  display: flex;
  gap: 72px;
}

.footer-col {
  min-width: 88px;
}

.footer-col h2 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Page shell */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex: 1;
}

/* Type */

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

.display {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--ink);
}

.display-sm {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}

.lede {
  margin: 20px 0 0;
  max-width: 34rem;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.lede a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.muted {
  color: var(--muted);
}

.body-copy {
  max-width: 38rem;
}

.body-copy p,
.body-copy li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
}

.body-copy p {
  margin: 0 0 1.15em;
}

.body-copy h2 {
  margin: 2.4em 0 0.7em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.body-copy h3 {
  margin: 1.8em 0 0.55em;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.body-copy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.body-copy ul {
  margin: 0 0 1.15em;
  padding-left: 1.15em;
}

/* Hero */

.hero {
  padding: 88px 0 96px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
}

.hero-copy .display {
  max-width: 11ch;
}

.hero-copy .lede {
  max-width: 28rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.hero-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Phone */

.phone {
  width: 220px;
  height: 448px;
  padding: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 36px;
  background: var(--ink);
  flex-shrink: 0;
}

.phone-screen {
  height: 100%;
  border-radius: 26px;
  background: var(--bg);
  padding: 36px 22px 24px;
  display: flex;
  flex-direction: column;
}

.phone-mark {
  display: flex;
  gap: 3px;
  margin-bottom: 8px;
}

.phone-mark span {
  width: 5px;
  height: 14px;
  background: var(--ink);
  border-radius: 1px;
}

.phone-brand {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.phone-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-rule {
  border-top: 1px solid var(--line);
}

.statement {
  max-width: 18ch;
}

.statement-wide {
  max-width: 22ch;
}

.split {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.split .display-sm {
  max-width: 16ch;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 56px;
}

.trio h2,
.step h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trio p,
.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step-num {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}

.cta-band {
  padding: 96px 0 108px;
}

.cta-band .display {
  max-width: 16ch;
  margin-bottom: 28px;
}

/* FAQ */

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

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.faq-plus::before {
  width: 12px;
  height: 1.5px;
}

.faq-plus::after {
  width: 1.5px;
  height: 12px;
}

.faq-item[open] .faq-plus::after {
  display: none;
}

.faq-item .faq-answer {
  padding: 0 48px 22px 0;
  max-width: 40rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.faq-item .faq-answer p {
  margin: 0 0 0.8em;
}

.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

/* Resources / article list */

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

.article-row {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.article-row:hover {
  text-decoration: none;
}

.article-row h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.article-row p {
  margin: 0;
  max-width: 38rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* Article page */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  color: #c8c4b8;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

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

.article-hero {
  padding: 88px 0 24px;
}

.article-body {
  padding: 12px 0 96px;
}

.related {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related li + li {
  margin-top: 10px;
}

.related a {
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal */

.legal-hero {
  padding: 80px 0 16px;
}

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

/* Responsive */

@media (max-width: 900px) {
  :root {
    --page-pad: 24px;
    --header-h: 64px;
  }

  .nav-desktop {
    display: none;
  }

  .hero,
  .section,
  .cta-band,
  .article-hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero-split,
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy .display,
  .statement,
  .statement-wide,
  .split .display-sm {
    max-width: none;
  }

  .hero-phone {
    justify-self: start;
  }

  .trio,
  .steps,
  .footer-inner,
  .footer-cols {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .footer-cols {
    gap: 28px;
  }

  .site-footer {
    padding: 40px 0 48px;
  }

  .btn-cta {
    padding: 10px 14px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 20px;
  }

  .display {
    font-size: 2.15rem;
  }

  .lede,
  .body-copy p,
  .body-copy li {
    font-size: 16px;
  }

  .phone {
    width: 188px;
    height: 384px;
  }

  .phone-title {
    font-size: 22px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 18px 0;
  }

  .article-row {
    padding: 22px 0;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}

.hero-prelaunch {
  padding-top: 56px;
}

.hero-prelaunch-grid {
  display: grid;
  gap: 36px;
}

.hero-prelaunch .display {
  max-width: 16ch;
}

.hero-cta-block,
.waitlist-band {
  max-width: 26rem;
}

.waitlist-title {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.waitlist-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.waitlist-form input[type="email"]:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.btn-cta-wide {
  min-height: 48px;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
}

.form-micro,
.form-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.form-status.is-ok {
  color: var(--ink);
}

.form-status.is-error {
  color: #8a2a2a;
}

.waitlist-form.is-success input,
.waitlist-form.is-success button {
  display: none;
}

.problem-block .display-sm {
  max-width: 16ch;
}

.beat-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.beat-list li {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.beat-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.problem-end {
  max-width: 28rem;
}

.demo-wide {
  display: grid;
  gap: 36px;
  justify-items: start;
}

.demo-wide-copy {
  margin: 0;
  max-width: 18rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.device-demo {
  margin: 0;
}

.phone-demo {
  position: relative;
  overflow: hidden;
  width: min(220px, 58vw);
  height: min(448px, 118vw);
}

.device-demo-lg .phone-demo {
  width: min(248px, 64vw);
  height: min(506px, 132vw);
}

.demo-video,
.demo-anim,
.demo-scene {
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  overflow: hidden;
}

.demo-video {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  background: var(--bg);
}

.demo-anim {
  background: var(--bg);
}

.demo-scene {
  inset: 0;
  padding: 22px 16px 18px;
  opacity: 0;
}

.demo-scene-feed {
  animation: demo-feed 8s infinite;
}

.demo-scene-lockout {
  animation: demo-lockout 8s infinite;
}

.demo-scene-breathe {
  animation: demo-breathe 8s infinite;
}

.demo-anim.is-static .demo-scene {
  animation: none;
  opacity: 0;
}

.demo-anim.is-static .demo-scene-lockout {
  opacity: 1;
}

.feed-bar {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 12px;
}

.feed-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: feed-slide 8s infinite linear;
}

.feed-card {
  height: 118px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e8e4d8, #d9d4c6);
}

.feed-card-mid {
  height: 156px;
  background: linear-gradient(180deg, #ddd8cc, #c9c3b4);
}

.lock-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lock-sub,
.lock-app {
  margin: 8px 0 12px;
  font-size: 10px;
  line-height: 1.35;
  color: #8e8e8e;
}

.lock-card {
  background: #fafaf6;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.lock-card strong {
  display: block;
  font-size: 11px;
}

.lock-card span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #8a8a8a;
}

.lock-quote {
  margin: 10px 0 6px;
  text-align: center;
  font-size: 11px;
  font-style: italic;
  color: #6b6b6b;
}

.lock-time {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.lock-app {
  margin: 4px 0 0;
  text-align: center;
}

.breathe-kicker {
  margin: 8px 0 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6b66;
}

.breathe-title {
  margin: 8px 0 18px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.breathe-ring {
  width: 118px;
  height: 118px;
  margin: 0 auto 16px;
  border: 3px solid #6b8afd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.breathe-phases {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: 10px;
  color: #b0b0b0;
}

.breathe-phases .is-on {
  color: #6b8afd;
}

.footer-tagline {
  margin: 14px 0 0;
  max-width: 16rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.footer-social a {
  font-size: 13px;
  color: var(--muted);
}

.footer-social a:hover {
  color: var(--ink);
  text-decoration: none;
}

@keyframes demo-feed {
  0%,
  22% { opacity: 1; }
  28%,
  100% { opacity: 0; }
}

@keyframes demo-lockout {
  0%,
  24% { opacity: 0; }
  30%,
  62% { opacity: 1; }
  68%,
  100% { opacity: 0; }
}

@keyframes demo-breathe {
  0%,
  64% { opacity: 0; }
  70%,
  94% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes feed-slide {
  from { transform: translateY(0); }
  to { transform: translateY(-72px); }
}

@media (min-width: 901px) {
  .hero-prelaunch-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "copy demo"
      "cta demo";
    column-gap: 64px;
    align-items: start;
  }

  .hero-prelaunch-grid .hero-copy { grid-area: copy; }
  .hero-prelaunch-grid .device-demo { grid-area: demo; }
  .hero-prelaunch-grid .hero-cta-block { grid-area: cta; }

  .demo-wide {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

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

  .demo-scene,
  .feed-track {
    animation: none !important;
  }

  .demo-scene-lockout {
    opacity: 1 !important;
  }

  .demo-scene-feed,
  .demo-scene-breathe {
    opacity: 0 !important;
  }
}
