@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(420px, 520px);
  align-items: center;
  gap: 36px;
}

.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%, 520px);
}

.phone-mockup {
  width: 100%;
  height: auto;
}

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

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

  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(360px, 92vw);
  }

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