@font-face {
  font-family: "Lilita One";
  src: url("assets/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Andika";
  src: url("assets/fonts/Andika-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Andika";
  src: url("assets/fonts/Andika-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Brand and app colors (brand/README.md, app_theme.dart). */
  --night: #123b3a;
  --night-deep: #0a1f2b;
  --glow: #5cf07a;
  --ink: #172b3a;
  --page: #ffffff;
  --great-line: #247a45;
  --great-fill: #4cbf73;
  --okay-line: #956100;
  --okay-fill: #ffc94a;
  --notmet-line: #b3261e;
  --notmet-fill: #ef6a60;
  --gold-tint: #fff1c2;
  --gold-accent: #c98a00;
  --purple-tint: #e6e0ff;
  --purple-accent: #6c5ce7;
  --blue-tint: #ddefff;
  --blue-accent: #2f80ed;
  --green-tint: #d9f5e3;
  --green-accent: #2e9e5b;

  --display: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --body: "Andika", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shape-sprites {
  position: absolute;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  color: #fff;
  background:
    radial-gradient(38rem 30rem at 12% 0%, rgba(92, 240, 122, 0.16), transparent 70%),
    linear-gradient(180deg, var(--night), var(--night-deep));
  padding: 1.5rem 1.5rem 4.5rem;
}

.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.6rem;
}

.wordmark img {
  filter: drop-shadow(0 0 12px rgba(92, 240, 122, 0.55));
}

.wordmark-card {
  color: var(--glow);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  max-width: 13ch;
}

.lede {
  margin-top: 1.25rem;
  max-width: 34em;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.86);
}

/* The tappable row: the same look as a row on the home card. */
.try-row {
  margin: 2.25rem 0 2rem;
  max-width: 34rem;
  color: var(--ink);
  background: var(--gold-tint);
  border-left: 8px solid var(--gold-accent);
  border-radius: 18px;
  padding: 1rem 1.25rem 0.9rem;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}

.try-row-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.try-row-title {
  font-size: 1.7rem;
  flex: 1 1 auto;
}

.row-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gold-accent);
  color: #fff;
}

.row-badge svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shapes {
  display: flex;
  gap: 0.5rem;
}

.shape {
  --line: var(--ink);
  --fill: transparent;
  appearance: none;
  border: 0;
  background: none;
  padding: 0.2rem;
  border-radius: 12px;
  cursor: pointer;
  width: 4rem;
  height: 4rem;
}

.shape svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.shape-great { --line: var(--great-line); }
.shape-okay { --line: var(--okay-line); }
.shape-notmet { --line: var(--notmet-line); }
.shape-great[aria-pressed="true"] { --fill: var(--great-fill); }
.shape-okay[aria-pressed="true"] { --fill: var(--okay-fill); }
.shape-notmet[aria-pressed="true"] { --fill: var(--notmet-fill); }

.shape-body {
  fill: var(--fill);
  stroke: var(--line);
  stroke-width: 6;
  stroke-linejoin: round;
}

.shape-face {
  fill: var(--line);
}

.shape-mouth {
  fill: none;
  stroke: var(--line);
  stroke-width: 4.5;
  stroke-linecap: round;
}

.shape[aria-pressed="true"] .shape-face {
  fill: var(--ink);
}

.shape[aria-pressed="true"] .shape-mouth {
  stroke: var(--ink);
}

.shape.just-rated svg {
  animation: pop 260ms ease-out;
}

@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.try-status {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  min-height: 1.6em;
}

.button {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.3rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
}

.button-gold {
  background: var(--okay-fill);
  color: var(--ink);
  box-shadow: 0 4px 0 #c98a00;
}

.button-gold:hover {
  background: #ffd36e;
}

.button-gold:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #c98a00;
}

.phone {
  margin: 0;
  justify-self: center;
  width: min(100%, 22rem);
  padding: 0.7rem;
  border-radius: 2.8rem;
  background: #05121a;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 90px -10px rgba(92, 240, 122, 0.25);
}

.phone-video {
  width: 100%;
  border-radius: 2.2rem;
}

/* Sections, built like rows on a card ----------------------------------- */

.section {
  max-width: 52rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 0;
}

.section-wide {
  max-width: 72rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.section-lede {
  max-width: 36em;
  margin: -0.5rem 0 2rem;
}

.card-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.card-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border-left: 8px solid var(--accent);
  background: var(--tint);
}

.card-row h3 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.card-row p {
  max-width: 36em;
}

.card-row .row-badge {
  background: var(--accent);
}

.row-number {
  font-family: var(--display);
  font-size: 1.5rem;
}

.tint-gold { --tint: var(--gold-tint); --accent: var(--gold-accent); }
.tint-purple { --tint: var(--purple-tint); --accent: var(--purple-accent); }
.tint-blue { --tint: var(--blue-tint); --accent: var(--blue-accent); }
.tint-green { --tint: var(--green-tint); --accent: var(--green-accent); }

.screen {
  margin: 0;
}

.screen img {
  border-radius: 14px;
  box-shadow: 0 20px 50px -24px rgba(23, 43, 58, 0.45);
  border: 1px solid #e3e8ee;
}

.screen-browser img {
  border-top: 2.2rem solid #e8edf2;
}

.screen-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.screen-phone img {
  border-radius: 28px;
}

.screen figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #4a5a68;
}

.story {
  align-items: center;
}

.row-star {
  width: 4rem;
  height: 4rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 2.4rem;
}

/* A checked box, like the checklist steps on a card. */
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 5px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 85% no-repeat,
    var(--green-accent);
}

/* Beta sign-up and footer ----------------------------------------------- */

.beta {
  margin-top: 5rem;
  color: #fff;
  background: linear-gradient(180deg, var(--night), var(--night-deep));
  padding: 4.5rem 1.5rem;
}

.beta-inner {
  max-width: 44rem;
  margin: 0 auto;
}

.beta h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.beta p {
  margin: 1rem 0 2rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 36em;
}

.footer {
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #c9d6de;
  background: var(--night-deep);
  text-align: center;
}

/* Small screens --------------------------------------------------------- */

@media (max-width: 52rem) {
  .hero-grid,
  .screen-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    margin-top: 2rem;
    gap: 2.5rem;
  }

  .screen-phone {
    max-width: 16rem;
  }
}

@media (max-width: 30rem) {
  .shape {
    width: 3.4rem;
    height: 3.4rem;
  }

  .card-row {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .shape.just-rated svg {
    animation: none;
  }
}
