@font-face {
  font-family: "Clarity Serif";
  src: url("./assets/DMSerifDisplay-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Clarity Mono";
  src: url("./assets/DejaVuSansMono.ttf") format("truetype");
  font-display: swap;
}

:root {
  --cream: #f1dfc0;
  --cream-light: #f8ebd4;
  --paper: #fff8ea;
  --paper-warm: #f7e7c9;
  --green-900: #0f3b24;
  --green-800: #16492d;
  --green-700: #1f603b;
  --green-500: #3d8b58;
  --green-300: #9bc7a0;
  --ink: #172019;
  --muted: #596255;
  --clay: #a67652;
  --line: rgba(23, 32, 25, 0.14);
  --shadow: rgba(15, 59, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: "Clarity Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

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

.site-header,
.hero,
.explain,
.site-footer {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
}

.brand {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(15, 59, 36, 0.16);
  background: var(--cream-light);
}

.brand-name {
  color: var(--green-900);
  font-family: "Clarity Serif", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.hero {
  min-height: 68dvh;
  padding: 26px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: 58px;
}

.hero-copy {
  min-width: 0;
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--green-900);
  font-family: "Clarity Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 8.8em;
  font-size: 78px;
  line-height: 0.94;
}

h2 {
  max-width: 10em;
  font-size: 40px;
  line-height: 1.02;
}

.hero-text,
.stress-note,
.explain-row p,
.store-hint {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero-text {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.stress-note {
  max-width: 560px;
  margin: 16px 0 0;
  font-weight: 700;
}

.store-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-badge {
  height: 46px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.store-badge:active {
  transform: translateY(1px) scale(0.99);
}

.play-store img {
  width: 150px;
  height: auto;
}

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

.is-disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.36;
}

.store-hint {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.phone-wrap {
  justify-self: end;
  width: min(100%, 350px);
}

.phone {
  position: relative;
  aspect-ratio: 0.52;
  border-radius: 34px;
  padding: 14px;
  background: var(--green-900);
  box-shadow: 0 24px 70px -36px var(--shadow);
}

.phone-speaker {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 70px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.24);
  transform: translateX(-50%);
}

.app-screen {
  height: 100%;
  border-radius: 24px;
  padding: 56px 18px 18px;
  background: var(--cream);
  border: 1px solid rgba(255, 248, 234, 0.18);
  overflow: hidden;
}

.capture-orb {
  width: 128px;
  height: 128px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-800);
  border: 14px solid rgba(15, 59, 36, 0.08);
  animation: breathe 2600ms ease-in-out infinite;
}

.capture-orb img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
}

.live-line {
  min-height: 92px;
  margin: 26px 0 18px;
  color: var(--green-900);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.55;
  text-align: center;
}

.sort-panel {
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-700);
  background: rgba(255, 248, 234, 0.72);
  padding: 8px 12px;
}

.sort-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-900);
  font-size: 12px;
  font-weight: 900;
  border-bottom: 1px solid var(--line);
  animation: rowIn 900ms ease both;
}

.sort-row:nth-child(2) {
  animation-delay: 150ms;
}

.sort-row:nth-child(3) {
  border-bottom: 0;
  animation-delay: 300ms;
}

.sort-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green-300);
  border: 3px solid rgba(31, 96, 59, 0.18);
}

.explain {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  gap: 44px;
  padding: 26px 0 22px;
  border-top: 1px solid var(--line);
}

.explain-copy .eyebrow {
  margin-bottom: 10px;
}

.explain-rows {
  border-left: 3px solid rgba(31, 96, 59, 0.42);
  background: rgba(255, 248, 234, 0.38);
}

.explain-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 14px 0 14px 18px;
  border-bottom: 1px solid var(--line);
}

.explain-row:last-child {
  border-bottom: 0;
}

.explain-row span {
  color: var(--green-900);
  font-size: 14px;
  font-weight: 900;
}

.explain-row p {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  margin-top: auto;
  padding: 18px 0 22px;
  color: rgba(23, 32, 25, 0.66);
  font-size: 12px;
  font-weight: 800;
}

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

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  .site-header,
  .hero,
  .explain,
  .site-footer {
    width: min(100% - 32px, 560px);
  }

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

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 12px 0 26px;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    max-width: 7.2em;
    font-size: 51px;
    line-height: 0.98;
  }

  .hero-text,
  .stress-note {
    max-width: 34ch;
  }

  .hero-text {
    margin-top: 20px;
    font-size: 16px;
  }

  .phone-wrap {
    justify-self: center;
    width: min(238px, 72vw);
  }

  .app-screen {
    padding: 36px 14px 14px;
  }

  .capture-orb {
    width: 92px;
    height: 92px;
    border-width: 10px;
  }

  .capture-orb img {
    width: 62px;
    height: 62px;
  }

  .live-line {
    min-height: 64px;
    margin: 18px 0 14px;
    font-size: 12px;
    line-height: 1.45;
  }

  .sort-panel {
    padding: 7px 10px;
  }

  .sort-row {
    min-height: 36px;
    font-size: 11px;
  }

  .explain {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 24px;
  }

  .explain-row {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 14px 14px 16px;
  }
}

@media (max-width: 430px) {
  .brand-name {
    font-size: 25px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  .store-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
