/* Hallmark · genre: playful · macrostructure: Workbench · tone: soft precise · theme: Plume extended · enrichment: real screenshots · nav: N7 · footer: Ft8 · anchor hue: water + citrus · contrast: pass (46-50) · honest: pass (56) · chrome: pass (57) · tokens: pass (58) · mobile: pass (36, 59, 61-69) */
/* Hallmark · pre-emit critique: P5 H4 E5 S5 R4 V5 */
@import url("./tokens.css");

html {
  overflow-x: clip;
  background: var(--color-paper);
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, var(--color-citrus-soft) 0 12rem, transparent 12rem),
    linear-gradient(180deg, var(--color-paper-2), var(--color-paper) 34rem),
    linear-gradient(160deg, transparent 0 55%, var(--color-mint-soft) 55% 72%, transparent 72%);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 92rem);
  margin-inline: auto;
}

.nav-slab {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) clamp(var(--space-md), 4vw, var(--space-xl));
  border-bottom: var(--rule-heavy);
  background: var(--color-paper);
}

.slab-mark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.slab-nav {
  margin-inline-start: auto;
}

.slab-nav ul {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.slab-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: var(--rule-heavy);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-citrus-soft);
  color: var(--color-ink);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
  white-space: nowrap;
}

.button:hover,
.button[data-state="success"] {
  background: var(--color-ink);
  color: var(--color-citrus-soft);
  transform: translateY(-1px);
}

.button:active,
.button[data-state="loading"] {
  transform: translateY(1px);
}

.button:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.button[aria-disabled="true"],
.button:disabled {
  border-color: var(--color-rule);
  color: var(--color-muted);
  cursor: not-allowed;
  transform: none;
}

.button[data-state="error"] {
  border-color: var(--color-accent-warm);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  padding: var(--space-2xl) clamp(var(--space-md), 4vw, var(--space-xl)) var(--space-xl);
}

.hero__copy {
  display: grid;
  gap: var(--space-lg);
  max-width: 60rem;
}

.hero__title {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--color-citrus);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.08em;
}

.hero__lede {
  max-width: 54ch;
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--text-md);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs);
  max-width: 42rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.proof-strip li {
  border-top: var(--rule-hairline);
  padding-block-start: var(--space-sm);
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: var(--text-sm);
}

.proof-strip li:nth-child(1) {
  border-color: var(--color-accent);
}

.proof-strip li:nth-child(2) {
  border-color: var(--color-mint);
}

.proof-strip li:nth-child(3) {
  border-color: var(--color-coral);
}

.proof-strip li:nth-child(4) {
  border-color: var(--color-berry);
}

.workbench {
  display: grid;
  gap: var(--space-3xl);
  padding: var(--space-xl) clamp(var(--space-md), 4vw, var(--space-xl)) var(--space-3xl);
}

.tour-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

.tour-step::before {
  content: "";
  position: absolute;
  inset-block: calc(var(--space-md) * -1);
  inset-inline: calc(var(--space-md) * -1);
  z-index: -1;
  border-radius: var(--radius-md);
  background: var(--color-panel-mint);
}

.tour-step:nth-of-type(2)::before {
  background: var(--color-panel-citrus);
}

.tour-step:nth-of-type(3)::before {
  background: var(--color-panel-coral);
}

.tour-step__copy {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
}

.tour-step__copy h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.tour-step__copy p {
  max-width: 48ch;
  margin: 0;
  color: var(--color-ink-soft);
}

.tour-step__list {
  display: grid;
  gap: var(--space-xs);
  padding: 0;
  margin: var(--space-md) 0 0;
  list-style: none;
}

.tour-step__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: start;
  color: var(--color-ink-soft);
}

.tour-step__list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-block-start: 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.tour-step:nth-of-type(2) .tour-step__list li::before {
  background: var(--color-mint);
}

.tour-step:nth-of-type(3) .tour-step__list li::before {
  background: var(--color-coral);
}

.shot-frame {
  position: relative;
  overflow: hidden;
  border: var(--rule-heavy);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-panel);
}

.tour-step:nth-of-type(1) .shot-frame {
  background: var(--color-panel-berry);
}

.tour-step:nth-of-type(2) .shot-frame {
  background: var(--color-panel-mint);
}

.tour-step:nth-of-type(3) .shot-frame {
  background: var(--color-panel-coral);
}

.shot-frame--dark {
  background: var(--color-panel-dark);
}

.shot-frame img {
  width: 100%;
  object-fit: cover;
}

.shot-frame--phone {
  max-width: 24rem;
  justify-self: center;
}

.shot-frame--wide img {
  aspect-ratio: 16 / 10;
}

.shot-frame--watch {
  max-width: 32rem;
  justify-self: center;
}

.shot-caption {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  border-top: var(--rule-hairline);
  padding: var(--space-sm) var(--space-md);
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: var(--text-sm);
}

.shot-frame--dark .shot-caption {
  border-color: var(--color-panel-dark-2);
  color: var(--color-on-dark-muted);
}

.callout {
  position: absolute;
  display: none;
  max-width: 15rem;
  border: var(--rule-heavy);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-citrus-soft);
  color: var(--color-ink);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.35;
}

.callout--goal {
  background: var(--color-mint-soft);
}

.callout--log {
  background: var(--color-berry-soft);
}

.callout--health {
  background: var(--color-coral-soft);
}

.callout--goal {
  inset-block-start: 8%;
  inset-inline-end: 5%;
}

.callout--log {
  inset-block-end: 18%;
  inset-inline-start: 6%;
}

.callout--health {
  inset-block-start: 16%;
  inset-inline-start: 7%;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.feature-panel {
  display: grid;
  gap: var(--space-md);
  align-content: end;
  min-height: 18rem;
  border: var(--rule-heavy);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  background:
    linear-gradient(135deg, var(--color-panel-dark), var(--color-panel-dark-2));
  color: var(--color-on-dark);
}

.feature-panel h2,
.feature-panel p {
  margin: 0;
}

.feature-panel h2 {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.feature-panel p {
  max-width: 46ch;
  color: var(--color-on-dark-muted);
}

.feature-spec {
  display: grid;
  border: var(--rule-heavy);
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.spec-line {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: var(--space-md);
  padding: var(--space-md);
}

.spec-line + .spec-line {
  border-top: var(--rule-hairline);
}

.spec-line:nth-child(1) {
  background: var(--color-panel-citrus);
}

.spec-line:nth-child(2) {
  background: var(--color-panel-mint);
}

.spec-line:nth-child(3) {
  background: var(--color-panel-coral);
}

.spec-line:nth-child(4) {
  background: var(--color-panel-berry);
}

.spec-line dt {
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spec-line dd {
  margin: 0;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  width: min(calc(100% - var(--space-lg)), 58rem);
  margin: 0 auto var(--space-2xl);
  border: var(--rule-heavy);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  background: var(--color-lilac-soft);
  box-shadow: var(--shadow-panel);
}

.cta-band p {
  margin: 0;
  color: var(--color-ink-soft);
  font-weight: 700;
}

.legal-page {
  display: grid;
  gap: var(--space-xl);
  padding: var(--space-2xl) clamp(var(--space-md), 4vw, var(--space-xl)) var(--space-3xl);
}

.legal-hero {
  display: grid;
  gap: var(--space-md);
  max-width: 62rem;
}

.legal-kicker,
.legal-meta {
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-label);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--color-citrus);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.08em;
}

.legal-hero p:not(.legal-kicker):not(.legal-meta) {
  max-width: 58ch;
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--text-md);
}

.legal-card,
.legal-section {
  border: var(--rule-heavy);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.legal-card {
  display: grid;
  gap: var(--space-md);
  background: var(--color-lilac-soft);
}

.legal-card h2,
.legal-section h2,
.legal-section p {
  margin: 0;
}

.legal-card h2,
.legal-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.legal-list {
  display: grid;
  gap: var(--space-xs);
  padding: 0;
  margin: 0;
  list-style: none;
}

.legal-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-sm);
  color: var(--color-ink-soft);
}

.legal-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-block-start: 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.legal-list li:nth-child(2)::before {
  background: var(--color-mint);
}

.legal-list li:nth-child(3)::before {
  background: var(--color-coral);
}

.legal-list li:nth-child(4)::before {
  background: var(--color-berry);
}

.legal-list li:nth-child(5)::before {
  background: var(--color-accent-warm);
}

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

.legal-section {
  display: grid;
  gap: var(--space-md);
  align-content: start;
  background: var(--color-panel);
}

.legal-section:nth-child(1),
.legal-section:nth-child(5) {
  background: var(--color-panel-citrus);
}

.legal-section:nth-child(2),
.legal-section:nth-child(6) {
  background: var(--color-panel-mint);
}

.legal-section:nth-child(3) {
  background: var(--color-panel-coral);
}

.legal-section:nth-child(4) {
  background: var(--color-panel-berry);
}

.legal-section p {
  max-width: 62ch;
  color: var(--color-ink-soft);
}

.foot-marquee {
  overflow: hidden;
  border-top: var(--rule-heavy);
  background: var(--color-panel-dark);
  color: var(--color-citrus-soft);
}

.foot-marquee__track {
  display: flex;
  gap: var(--space-2xl);
  width: max-content;
  padding-block: var(--space-md);
  animation: foot-marquee 32s linear infinite;
  white-space: nowrap;
}

.foot-marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: space-between;
  padding: var(--space-lg) clamp(var(--space-md), 4vw, var(--space-xl));
  background: var(--color-panel-dark);
  color: var(--color-on-dark-muted);
  font-family: var(--font-label);
  font-size: var(--text-sm);
}

.footer-meta a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  white-space: nowrap;
}

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

@keyframes foot-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (hover: hover) and (pointer: fine) {
  .shot-frame {
    transition: transform var(--dur-short) var(--ease-out);
  }

  .shot-frame:hover {
    transform: translateY(-2px);
  }
}

@media (min-width: 44rem) {
  .hero {
    padding-block-start: var(--space-3xl);
  }

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

  .callout {
    display: block;
  }
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
    align-items: end;
  }

  .hero .shot-frame {
    transform: rotate(1.25deg);
  }

  .tour-step {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: var(--space-2xl);
  }

  .tour-step--flip {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }

  .tour-step--flip .tour-step__copy {
    order: 2;
  }

  .tour-step--flip .shot-frame {
    order: 1;
  }

  .shot-frame--wide {
    transform: rotate(-0.75deg);
  }
}

@media (max-width: 56rem) {
  .nav-slab .button {
    display: none;
  }
}

@media (max-width: 46rem) {
  .slab-nav {
    display: none;
  }

  .nav-slab {
    justify-content: space-between;
  }

  .feature-row,
  .cta-band,
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band .button {
    width: 100%;
  }

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

@media (max-width: 34rem) {
  .hero__title,
  .legal-hero h1 {
    font-size: var(--text-display-s);
  }

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

  .shot-caption {
    display: grid;
  }
}

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

  .foot-marquee__track {
    animation: none;
  }
}
