:root {
  --bg: #F2EBE0;
  --bg-glow: #FBF4E6;
  --surface: #FCF8F1;
  --surface-2: #F6F0E6;
  --ink: #2B2620;
  --ink-2: #897F70;
  --ink-3: #B4A998;
  --hairline: rgba(43, 38, 32, .09);
  --brand: #C2853A;
  --button-ink: #241C12;
  --vital: #5E9C7E;
  --mid: #C2853A;
  --low: #BC6A4A;
  --shadow-soft: 0 1px 1px rgba(43, 38, 32, .03), 0 6px 18px rgba(43, 38, 32, .05);
  --shadow-deep: 0 20px 60px rgba(43, 38, 32, .16);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --font-num: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130F;
    --bg-glow: #221C15;
    --surface: #211C16;
    --surface-2: #1B1711;
    --ink: #F0E8DB;
    --ink-2: #A79B89;
    --ink-3: #6E6557;
    --hairline: rgba(240, 232, 219, .10);
    --brand: #E0A856;
    --button-ink: #241C12;
    --vital: #7DBD9D;
    --mid: #E0A856;
    --low: #D88660;
    --shadow-soft: 0 1px 1px rgba(0, 0, 0, .25), 0 8px 22px rgba(0, 0, 0, .30);
    --shadow-deep: 0 22px 70px rgba(0, 0, 0, .50);
  }
}

[data-theme="light"] {
  --bg: #F2EBE0;
  --bg-glow: #FBF4E6;
  --surface: #FCF8F1;
  --surface-2: #F6F0E6;
  --ink: #2B2620;
  --ink-2: #897F70;
  --ink-3: #B4A998;
  --hairline: rgba(43, 38, 32, .09);
  --brand: #C2853A;
  --button-ink: #241C12;
  --vital: #5E9C7E;
  --mid: #C2853A;
  --low: #BC6A4A;
  --shadow-soft: 0 1px 1px rgba(43, 38, 32, .03), 0 6px 18px rgba(43, 38, 32, .05);
  --shadow-deep: 0 20px 60px rgba(43, 38, 32, .16);
}

[data-theme="dark"] {
  --bg: #16130F;
  --bg-glow: #221C15;
  --surface: #211C16;
  --surface-2: #1B1711;
  --ink: #F0E8DB;
  --ink-2: #A79B89;
  --ink-3: #6E6557;
  --hairline: rgba(240, 232, 219, .10);
  --brand: #E0A856;
  --button-ink: #241C12;
  --vital: #7DBD9D;
  --mid: #E0A856;
  --low: #D88660;
  --shadow-soft: 0 1px 1px rgba(0, 0, 0, .25), 0 8px 22px rgba(0, 0, 0, .30);
  --shadow-deep: 0 22px 70px rgba(0, 0, 0, .50);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(95% 62% at 50% -12%, var(--bg-glow) 0%, var(--bg) 64%) fixed,
    var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(194, 133, 58, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 156, 126, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  opacity: .45;
}

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

button,
input {
  font: inherit;
}

code {
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .92em;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 6px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}

.brand-icon svg {
  width: 25px;
  height: 25px;
}

.brand-icon circle {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transform-origin: center;
}

.brand-icon circle:nth-child(1) {
  stroke: var(--vital);
  stroke-dasharray: 78 22;
  transform: rotate(-90deg);
}

.brand-icon circle:nth-child(2) {
  stroke: var(--mid);
  stroke-dasharray: 64 36;
  transform: rotate(-80deg);
}

.brand-icon circle:nth-child(3) {
  stroke: var(--low);
  stroke-dasharray: 58 42;
  transform: rotate(-70deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: .9rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-section {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(88svh, 900px);
  padding: 106px 24px 54px;
  overflow: hidden;
}

.hero-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14%;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 72%, transparent), transparent);
}

.hero-mockups {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.hero-mockups::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 96%, transparent) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 44%, transparent 76%),
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, transparent 28%);
}

.hero-phone {
  position: absolute;
  z-index: 1;
  width: 340px;
  height: auto;
  border-radius: 42px;
  filter: drop-shadow(0 34px 58px rgba(43, 38, 32, .18));
  user-select: none;
}

[data-theme="dark"] .hero-phone {
  filter: drop-shadow(0 38px 70px rgba(0, 0, 0, .48));
}

.hero-phone-main {
  z-index: 3;
  right: max(8%, 80px);
  bottom: -74px;
  width: 380px;
  opacity: 1;
  animation: phone-breathe 7s ease-in-out infinite;
}

.hero-phone-left {
  z-index: 1;
  right: min(41%, 590px);
  bottom: -118px;
  opacity: .22;
  transform: rotate(-8deg);
}

.hero-phone-right {
  z-index: 1;
  right: -24px;
  bottom: -118px;
  opacity: .24;
  transform: rotate(7deg);
}

.hero-copy {
  align-self: center;
  width: min(670px, 100%);
  margin-left: max(0px, calc((100vw - 1120px) / 2));
  padding: 0 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: 4.7rem;
  line-height: .94;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 2.55rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
  line-height: 1.12;
}

.hero-lede,
.section-lede,
.evidence-copy p,
.signup-copy p,
.score-card p {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.62;
  overflow-wrap: break-word;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 28px;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--brand);
  color: var(--button-ink);
  box-shadow: var(--shadow-soft);
}

.button-secondary {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--hairline);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(43, 38, 32, .10);
}

.hero-scores {
  position: absolute;
  left: max(24px, calc((100vw - 1120px) / 2));
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(600px, calc(100% - 48px));
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero-scores div {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--hairline);
}

.hero-scores div:last-child {
  border-right: 0;
}

.hero-scores span {
  display: block;
  color: var(--ink-2);
  font-size: .82rem;
}

.hero-scores strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  margin-top: 6px;
}

.section {
  padding: 92px 24px;
}

.section-narrow {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.score-card {
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.score-card-featured {
  transform: translateY(-12px);
}

.score-ring {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin-bottom: 26px;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 500;
  background:
    radial-gradient(circle at center, var(--surface) 54%, transparent 56%),
    conic-gradient(from -90deg, var(--low) 0deg, var(--mid) 150deg, var(--vital) 282deg, color-mix(in srgb, var(--ink-3) 16%, transparent) 282deg);
}

.score-ring-mid {
  background:
    radial-gradient(circle at center, var(--surface) 54%, transparent 56%),
    conic-gradient(from -90deg, var(--low) 0deg, var(--mid) 230deg, color-mix(in srgb, var(--ink-3) 16%, transparent) 230deg);
}

.score-ring-vital {
  width: 128px;
  height: 128px;
  background:
    radial-gradient(circle at center, var(--surface) 54%, transparent 56%),
    conic-gradient(from -90deg, var(--low) 0deg, var(--mid) 148deg, var(--vital) 281deg, color-mix(in srgb, var(--ink-3) 16%, transparent) 281deg);
  animation: ring-breathe 5.2s ease-in-out infinite;
}

.score-ring-high {
  background:
    radial-gradient(circle at center, var(--surface) 54%, transparent 56%),
    conic-gradient(from -90deg, var(--low) 0deg, var(--mid) 126deg, var(--vital) 292deg, color-mix(in srgb, var(--ink-3) 16%, transparent) 292deg);
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: .98rem;
  font-style: italic;
}

.screen-band {
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--surface-2) 58%, transparent) 20%, color-mix(in srgb, var(--surface-2) 58%, transparent) 78%, transparent 100%);
}

.mockup-gallery {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) repeat(4, minmax(190px, .62fr));
  gap: 18px;
  width: min(1320px, 100%);
  margin: 42px auto 0;
  align-items: end;
}

.mockup-card {
  margin: 0;
  min-width: 0;
}

.mockup-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  filter: drop-shadow(0 18px 36px rgba(43, 38, 32, .12));
}

[data-theme="dark"] .mockup-card img {
  filter: drop-shadow(0 22px 42px rgba(0, 0, 0, .42));
}

.mockup-card-large img {
  border-radius: 34px;
}

.mockup-card figcaption {
  margin-top: 12px;
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  text-align: center;
}

.evidence-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: 48px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.evidence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.evidence-list a {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.evidence-list span {
  color: var(--ink-2);
  font-size: .92rem;
}

.evidence-list strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.signup-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(360px, 1fr);
  gap: 32px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 32px;
  padding: 34px;
  border: 1px solid var(--hairline);
  border-radius: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 80%, transparent)),
    var(--surface);
  box-shadow: var(--shadow-deep);
}

.signup-form {
  align-self: center;
}

.signup-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-2);
  font-size: .92rem;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.signup-row input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
}

.signup-row input:focus {
  border-color: color-mix(in srgb, var(--brand) 72%, var(--hairline));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}

.signup-row input::placeholder {
  color: var(--ink-3);
}

.form-note {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: .86rem;
  line-height: 1.45;
}

.form-note.is-success {
  color: var(--vital);
}

.form-note.is-error {
  color: var(--low);
}

.store-link {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface-2);
}

.store-link span {
  color: var(--ink-2);
  font-size: .9rem;
}

.store-link strong {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  text-align: right;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 44px;
  color: var(--ink-3);
  font-size: .9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--brand);
  white-space: nowrap;
}

@keyframes phone-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes ring-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@media (max-width: 980px) {
  .site-header {
    top: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    min-height: min(92svh, 980px);
    padding-top: 104px;
  }

  .hero-mockups::before {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--bg) 98%, transparent) 0%, color-mix(in srgb, var(--bg) 84%, transparent) 43%, transparent 78%),
      linear-gradient(0deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, transparent 36%);
  }

  .hero-copy {
    align-self: start;
    width: 100%;
    max-width: calc(100vw - 48px);
    margin-left: 0;
    padding-bottom: 340px;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-phone-main {
    right: 50%;
    bottom: -170px;
    width: 300px;
    transform: translateX(50%);
    animation: none;
  }

  .hero-phone-left,
  .hero-phone-right {
    display: none;
  }

  .hero-scores {
    bottom: 20px;
  }

  .score-grid,
  .evidence-section,
  .signup-section {
    grid-template-columns: 1fr;
  }

  .score-card-featured {
    transform: none;
  }

  .mockup-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mockup-card-large {
    grid-column: 1 / -1;
    width: min(380px, 100%);
    justify-self: center;
  }

  .store-link {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 20px);
    min-height: 54px;
    padding: 8px;
    justify-content: center;
  }

  .brand-mark {
    font-size: .98rem;
  }

  .theme-toggle {
    display: none;
  }

  .hero-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy {
    max-width: min(318px, calc(100vw - 56px));
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    max-width: min(318px, 100%);
    font-size: 1.68rem;
  }

  .hero-lede,
  .section-lede,
  .evidence-copy p,
  .signup-copy p,
  .score-card p {
    max-width: min(318px, 100%);
    font-size: 1rem;
  }

  .hero-actions,
  .signup-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-scores {
    grid-template-columns: 1fr;
    left: 30px;
    width: 300px;
    transform: none;
  }

  .hero-scores div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding: 12px 16px;
  }

  .hero-scores div:last-child {
    border-bottom: 0;
  }

  .hero-scores strong {
    margin-left: 16px;
  }

  .section {
    padding: 72px 18px;
  }

  .score-grid {
    justify-items: center;
  }

  .score-card {
    width: min(318px, 100%);
    min-height: 0;
  }

  .mockup-gallery,
  .evidence-list {
    grid-template-columns: 1fr;
    max-width: min(318px, 100%);
  }

  .mockup-card {
    width: min(360px, 100%);
    justify-self: center;
  }

  .signup-section {
    width: calc(100% - 36px);
    padding: 24px 18px;
  }

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

  .store-link strong {
    text-align: left;
  }

  .site-footer {
    width: calc(100% - 36px);
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .hero-scores {
    left: 22px;
    width: 276px;
  }

  .hero-copy {
    max-width: calc(100vw - 44px);
  }
}

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