:root {
  color-scheme: light;
  --canvas: #f4f5f2;
  --surface: #ffffff;
  --ink: #151817;
  --muted: #626965;
  --quiet: #7a817d;
  --line: #d6dbd7;
  --line-strong: #bfc7c1;
  --accent: #285f59;
  --accent-soft: #dce9e5;
  --accent-ink: #133d39;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--canvas);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(40, 95, 89, 0.08), transparent 30rem),
    var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

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

button {
  font: inherit;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(1240px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding-inline: 32px;
}

.inner-shell {
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.wordmark-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.nav a,
.footer a,
.simple-link {
  transition: color 160ms ease;
}

.nav a:hover,
.footer a:hover,
.simple-link:hover {
  color: var(--accent);
}

.brand-hero {
  display: grid;
  min-height: clamp(480px, 67vh, 720px);
  align-content: center;
  padding-block: 80px;
}

.page-label {
  margin: 0 0 34px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-hero h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(58px, 8.7vw, 112px);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero-lead {
  max-width: 620px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 25px);
  letter-spacing: -0.02em;
}

.product-spotlight {
  scroll-margin-top: 24px;
  padding-block: 0 128px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--ink);
}

.section-heading h2,
.section-heading span {
  margin: 0;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.section-heading span {
  color: var(--quiet);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: clamp(54px, 9vw, 126px);
  padding-top: clamp(62px, 8vw, 104px);
}

.spotlight-copy {
  min-width: 0;
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.product-identity img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(21, 24, 23, 0.14);
}

.product-identity p {
  margin: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.spotlight-copy h2 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 640;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.product-lead {
  max-width: 690px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.product-proof {
  display: grid;
  margin: 34px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.product-proof li {
  position: relative;
  padding: 12px 20px 12px 24px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
}

.product-proof li::before {
  position: absolute;
  top: 1.25em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-ink);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(40, 95, 89, 0.34);
  text-underline-offset: 5px;
}

.primary-link:hover {
  text-decoration-color: currentColor;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
}

.app-store-badge img {
  width: auto;
  height: 48px;
}

.spotlight-media {
  display: flex;
  justify-content: center;
}

.demo-card {
  width: min(100%, 390px);
  margin: 0;
}

.demo-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 720 / 1560;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: #e5e8e4;
  box-shadow: 0 30px 80px rgba(21, 24, 23, 0.19), 0 0 0 9px rgba(255, 255, 255, 0.65);
}

.demo-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.replay-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(21, 24, 23, 0.76);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.replay-button:hover {
  background: rgba(21, 24, 23, 0.92);
}

.demo-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.principle {
  display: grid;
  padding-block: clamp(96px, 12vw, 156px);
  border-top: 1px solid var(--ink);
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
  column-gap: clamp(50px, 9vw, 124px);
}

.principle .page-label {
  grid-row: span 2;
  margin: 4px 0 0;
}

.principle h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(38px, 5.7vw, 70px);
  font-weight: 630;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.principle > p:last-child {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.footer {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 13px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-weight: 680;
}

/* Existing contact and 404 pages keep their established, compact layout. */
.contact-main,
.error-main {
  flex: 1;
  padding: clamp(76px, 13vh, 150px) 0 96px;
}

.contact-main h1,
.error-main h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 640;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(760px, 100%);
  margin-top: 82px;
  padding: 20px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 560;
  letter-spacing: -0.025em;
}

.email-link span:last-child {
  color: var(--accent);
  transition: transform 180ms ease;
}

.email-link:hover span:last-child {
  transform: translate(3px, -3px);
}

.error-main .simple-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
  color: var(--accent);
  font-weight: 680;
}

@media (max-width: 900px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .spotlight-media {
    justify-content: flex-start;
  }

  .demo-card {
    width: min(100%, 350px);
  }

  .principle {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .principle .page-label {
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .site-shell {
    padding-inline: 20px;
  }

  .site-header {
    min-height: 78px;
  }

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

  .brand-hero {
    min-height: 500px;
    padding-block: 68px;
  }

  .brand-hero h1 {
    font-size: clamp(48px, 14.5vw, 70px);
    line-height: 0.97;
  }

  .hero-lead {
    font-size: 18px;
  }

  .product-spotlight {
    padding-bottom: 90px;
  }

  .spotlight-grid {
    padding-top: 54px;
  }

  .spotlight-copy h2 {
    font-size: clamp(40px, 11.8vw, 56px);
  }

  .product-lead {
    font-size: 17px;
  }

  .product-proof {
    grid-template-columns: 1fr;
  }

  .spotlight-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .demo-card {
    width: min(100%, 320px);
  }

  .principle {
    padding-block: 90px;
  }

  .principle h2 {
    font-size: clamp(36px, 10.8vw, 50px);
  }

  .footer {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 28px;
  }

  .contact-main,
  .error-main {
    padding: 72px 0 80px;
  }

  .contact-main h1,
  .error-main h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .email-link {
    margin-top: 60px;
    font-size: clamp(16px, 5.3vw, 24px);
  }
}

@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;
  }
}
