/* Squish Meadow — squishmeadow.com
   Palette taken from the app: night-soil brown, jar glass, the icon's
   tangerine, its cream, firefly gold and the Meadow's moss glow. */
:root {
  --soil: #1f1915;
  --glass: #2a211c;
  --glass-edge: rgba(247, 239, 227, 0.1);
  --squish: #fa7a3c;
  --squish-deep: #e0612a;
  --cream: #f7efe3;
  --cream-soft: #d8c7b5;
  --firefly: #ffc95c;
  --moss: #6fcf9c;

  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Nunito",
    "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--soil);
  background-image:
    radial-gradient(60rem 40rem at 12% -8%, rgba(250, 122, 60, 0.16), transparent 60%),
    radial-gradient(50rem 36rem at 100% 30rem, rgba(255, 201, 92, 0.07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--firefly);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cream);
}

:focus-visible {
  outline: 3px solid var(--firefly);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cream);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 1rem;
}

.topbar nav a:not(.button) {
  color: var(--cream-soft);
  text-decoration: none;
}

.topbar nav a:not(.button):hover {
  color: var(--cream);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  background: var(--squish);
  color: var(--soil);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 0.6rem 1.6rem -0.6rem rgba(250, 122, 60, 0.7);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: #ff8a4f;
  color: var(--soil);
}

.button:active {
  transform: scale(0.97);
}

.button svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.button-small {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  box-shadow: none;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.squish {
  display: block;
  width: clamp(7.5rem, 16vw, 10rem);
  aspect-ratio: 1;
  padding: 0;
  margin: 0 0 0.5rem;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform 0.45s cubic-bezier(0.34, 1.9, 0.6, 1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.squish img {
  width: 100%;
  height: 100%;
  border-radius: 22.5%;
  box-shadow: 0 1.4rem 2.6rem -1rem rgba(250, 122, 60, 0.55),
    0 0 0 1px rgba(247, 239, 227, 0.08);
  pointer-events: none;
  -webkit-user-drag: none;
}

.squish.is-pressed {
  transform: scale(1.14, 0.8);
  transition-duration: 0.09s;
  transition-timing-function: ease-out;
}

.squish-count {
  min-height: 1.6em;
  margin: 0 0 1.5rem;
  color: var(--cream-soft);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.02;
}

.hero .lede {
  max-width: var(--measure);
  margin-top: 1.25rem;
  color: var(--cream-soft);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.fineprint {
  color: var(--cream-soft);
  font-size: 0.9rem;
}

/* ---------- Phones ---------- */
.phone {
  margin: 0;
  width: 100%;
  max-width: 19rem;
  border-radius: 2.4rem;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 2.5rem 4rem -2rem var(--glow, rgba(250, 122, 60, 0.45));
}

.phone img {
  width: 100%;
}

.hero .phone {
  justify-self: center;
  max-width: 20rem;
  --glow: rgba(111, 207, 156, 0.5);
}

.pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.pair .phone {
  flex: 1 1 0;
  max-width: 16.5rem;
}

.pair .phone:nth-child(2) {
  margin-top: clamp(2rem, 6vw, 4rem);
}

figcaption {
  padding: 0.9rem 1rem 1.1rem;
  color: var(--cream-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ---------- Feature sections ---------- */
.feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.feature h2,
.meadow h2,
.fair h2,
.closing h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.08;
}

.feature .copy p,
.meadow .copy p {
  max-width: var(--measure);
  margin-top: 1.1rem;
  color: var(--cream-soft);
}

.feature-cards .phone {
  --glow: rgba(186, 132, 255, 0.4);
}

.feature-arcade .phone {
  --glow: rgba(255, 201, 92, 0.4);
  max-width: 17rem;
  justify-self: center;
}

/* ---------- The Meadow band ---------- */
.meadow {
  position: relative;
  margin: clamp(1rem, 4vw, 3rem) 0;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  background:
    radial-gradient(40rem 26rem at 50% 70%, rgba(111, 207, 156, 0.22), transparent 70%),
    linear-gradient(180deg, #1b201a 0%, #172019 55%, #1f1915 100%);
  overflow: hidden;
}

.meadow .copy {
  text-align: center;
}

.meadow .copy h2 {
  max-width: 16ch;
  margin: 0 auto;
}

.meadow .copy p {
  margin-left: auto;
  margin-right: auto;
}

.meadow .pair {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.meadow .phone {
  --glow: rgba(111, 207, 156, 0.45);
}

/* static firefly glints, decorative only */
.glint {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--firefly);
  box-shadow: 0 0 0.9rem 0.35rem rgba(255, 201, 92, 0.55);
  opacity: 0.8;
}

/* ---------- Fair by design ---------- */
.fair {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.fair ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 3rem;
  max-width: 52rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.fair li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--cream-soft);
}

.fair li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0.6rem rgba(111, 207, 156, 0.7);
}

/* ---------- Closing ---------- */
.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
}

.closing p {
  margin-top: 0.6rem;
  max-width: 30rem;
  color: var(--cream-soft);
}

/* ---------- Footer ---------- */
.footer {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--glass-edge);
  color: var(--cream-soft);
  font-size: 0.95rem;
}

.footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.footer .links a {
  color: var(--cream);
  text-decoration: none;
}

.footer .links a:hover {
  color: var(--firefly);
}

.footer p + p {
  margin-top: 0.4rem;
}

.footer .small {
  font-size: 0.82rem;
  opacity: 0.8;
}

/* ---------- Document pages (privacy, support, rules) ---------- */
.doc {
  max-width: 44rem;
  padding-top: clamp(1.5rem, 5vw, 3rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
}

.doc .updated {
  margin-top: 0.6rem;
  color: var(--cream-soft);
  font-size: 0.95rem;
}

.doc .intro {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.doc h2 {
  margin-top: 2.4rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.doc p,
.doc ul {
  max-width: 38rem;
  margin-top: 0.7rem;
  color: var(--cream-soft);
}

.doc ul {
  padding-left: 1.2rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.doc strong {
  color: var(--cream);
}

.doc .contact-box {
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  border-radius: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
}

.doc .contact-box p {
  margin-top: 0.3rem;
}

.doc .contact-box p:first-child {
  margin-top: 0;
  color: var(--cream);
  font-weight: 800;
}

/* ---------- Small screens ---------- */
@media (max-width: 52rem) {
  .hero,
  .feature {
    grid-template-columns: 1fr;
  }

  .hero .phone {
    max-width: 17rem;
  }

  .feature .copy {
    order: -1;
  }

  .fair ul {
    grid-template-columns: 1fr;
  }

  .glint {
    display: none;
  }
}

@media (max-width: 30rem) {
  body {
    font-size: 1.0625rem;
  }

  .topbar nav .text-link {
    display: none;
  }

  .pair {
    gap: 0.75rem;
  }

  .phone {
    border-radius: 1.8rem;
  }

  figcaption {
    font-size: 0.85rem;
    padding: 0.75rem 0.8rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .squish,
  .squish.is-pressed,
  .button {
    transition-duration: 0.01ms;
  }
}
