/* The marketing site (pocketpals.com.au). Same palette, type and sky as the app (web/src/styles/app.css), so it
   feels like the same place. Static: Caddy serves it, and its only request is the sign-up form's POST /api/signup. */
@font-face {
  font-family: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --violet: #6a4cff;
  --violet2: #7a5cff;
  --violet3: #4c2dd8;
  --sun: #ffb800;
  --sun2: #ffd43b;
  --coral: #ff3b5c;
  --mint: #30c25a;
  --sky: #0a84ff;
  --bg: #f3f2f9;
  --surface: #ffffff;
  --ink: #1c1a33;
  --ink2: #6c6888;
  --track: #e6e3f2;
  --tint: #f1edff;
  --vt: #5b3bf0;
  --sunT: #fff3c4;
  --mintT: #ddf5e3;
  --skyT: #e1efff;
  --sh: 0 0 0 0.5px rgba(40, 30, 110, 0.05), 0 6px 20px rgba(48, 36, 130, 0.07);
  --hair: rgba(60, 56, 90, 0.16);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141129;
    --surface: #221d44;
    --ink: #f4f2ff;
    --ink2: #b9b3da;
    --track: #2f2860;
    --tint: #2c2462;
    --vt: #c2b2ff;
    --sunT: #3a3010;
    --mintT: #113a22;
    --skyT: #10294a;
    --sh: 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35);
    --hair: rgba(255, 255, 255, 0.14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141129;
  --surface: #221d44;
  --ink: #f4f2ff;
  --ink2: #b9b3da;
  --track: #2f2860;
  --tint: #2c2462;
  --vt: #c2b2ff;
  --sunT: #3a3010;
  --mintT: #113a22;
  --skyT: #10294a;
  --sh: 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35);
  --hair: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Figtree Variable",
    ui-rounded,
    "SF Pro Rounded",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 700;
}
h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  max-width: 18ch;
}
h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--sun2);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding-top: 96px;
  padding-bottom: 96px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow.ink {
  background: var(--tint);
  color: var(--vt);
}
.sub {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--ink2);
  font-size: 18px;
}
.sky .sub,
.sky .lede {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}
.btn-gold {
  background: linear-gradient(180deg, var(--sun2), var(--sun));
  color: #1c1a33;
  box-shadow:
    0 6px 0 #d99a00,
    0 12px 24px rgba(30, 10, 90, 0.25);
}
.btn-gold:active {
  box-shadow: 0 2px 0 #d99a00;
}
.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.btn-violet {
  width: 100%;
  background: linear-gradient(180deg, var(--violet2), var(--violet3));
  color: #fff;
  box-shadow:
    0 6px 0 #3a1fb5,
    0 12px 24px rgba(60, 30, 200, 0.3);
}
.btn-violet:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ---------------------------------------------------------------- top bar */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: #fff;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 11px;
  box-shadow: 0 6px 14px rgba(20, 10, 80, 0.25);
}
.links {
  display: flex;
  gap: 26px;
  margin-left: 18px;
  font-weight: 600;
  opacity: 0.9;
}
.links a:hover,
.signin:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-end {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.signin {
  font-weight: 600;
}
@media (max-width: 860px) {
  .links {
    display: none;
  }
}
@media (max-width: 420px) {
  .signin {
    display: none;
  }
}

/* ---------------------------------------------------------------- the sky (as the app's sign-in) */
.sky {
  position: relative;
  color: #fff;
  background:
    radial-gradient(80% 55% at 50% 0%, #9c84ff 0%, rgba(156, 132, 255, 0) 70%),
    linear-gradient(180deg, #6447f5 0%, #3f24c2 100%);
}
.hero {
  padding: 140px 0 120px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 72px);
  max-width: 15ch;
}
.hl {
  color: var(--sun2);
}
.hero .lede {
  max-width: 46ch;
  margin-top: 20px;
  font-size: 19px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.ticks li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--sun2);
  font-weight: 800;
}
.wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 60px;
  fill: var(--bg);
}

/* the hero's picture: a card from the kid's app, with pals around it */
.hero-art {
  position: relative;
  min-height: 520px;
}
.phone-card {
  position: absolute;
  top: 24px;
  left: 44%;
  width: 320px;
  padding: 22px 20px;
  transform: translateX(-50%) rotate(-3deg);
  border-radius: 30px;
  background: #fff;
  color: #1c1a33;
  box-shadow: 0 30px 60px rgba(20, 10, 80, 0.35);
}
.pc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pc-hi {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pc-sub {
  color: #6c6888;
  font-size: 14px;
}
.sparks {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff3c4;
  color: #8a5a00;
  font-weight: 700;
  font-size: 15px;
}
.jobs {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.jobs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #f3f2f9;
  font-size: 15px;
  font-weight: 600;
}
.jobs i {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c9c4e4;
}
.jobs .done i {
  border: 0;
  background: var(--mint);
  position: relative;
}
.jobs .done i::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.jobs .done {
  color: #6c6888;
}
.jobs em {
  margin-left: auto;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: #8a5a00;
}
.jobs li:not(.done) em {
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe3ea;
  color: #c8143a;
}
.pc-level {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #5b3bf0;
}
.pc-level .xp {
  color: #6c6888;
  font-weight: 600;
}
.bar {
  height: 10px;
  border-radius: 999px;
  background: #e6e3f2;
  overflow: hidden;
}
.bar b {
  display: block;
  width: 85%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet2), var(--violet3));
}
.jar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.jar {
  padding: 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
}
.jar b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.jar.spend {
  background: #fff3c4;
  color: #8a5a00;
}
.jar.save {
  background: #e1efff;
  color: #0a5bb5;
}
.jar.grow {
  background: #ddf5e3;
  color: #1f7a3a;
}
.pal {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(20, 10, 80, 0.28));
}
.pal-hero {
  width: 220px;
  right: -40px;
  bottom: -70px;
  animation: bob 4s ease-in-out infinite;
}
.pal-l {
  width: 150px;
  left: -10px;
  bottom: 10px;
  animation: bob 4.6s ease-in-out -1s infinite;
}
.pal-r {
  width: 120px;
  right: 30px;
  top: -40px;
  animation: bob 5s ease-in-out -2s infinite;
}
.spark {
  position: absolute;
  color: var(--sun2);
  font-size: 26px;
  animation: twinkle 2.6s ease-in-out infinite;
}
.s1 {
  left: 6%;
  top: 8%;
}
.s2 {
  right: 4%;
  top: 46%;
  font-size: 18px;
  animation-delay: -1s;
}
.s3 {
  left: 18%;
  bottom: 40%;
  font-size: 16px;
  animation-delay: -1.8s;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 112px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 470px;
  }
}
@media (max-width: 480px) {
  .phone-card {
    width: 280px;
    padding: 18px 16px;
  }
  .pal-hero {
    width: 170px;
    right: -20px;
  }
  .pal-l {
    width: 110px;
    left: -24px;
  }
  .pal-r {
    width: 90px;
    right: -6px;
  }
}

/* ---------------------------------------------------------------- how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.step,
.tile {
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--sh);
}
.step p,
.tile p {
  margin-top: 8px;
  color: var(--ink2);
}
.num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--violet2), var(--violet3));
  color: #fff;
  font-size: 20px;
  font-weight: 750;
}
@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- the jars */
.band {
  background: var(--surface);
}
.jars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.jar-card {
  padding: 28px 24px;
  border-radius: 26px;
}
.jar-card p {
  margin-top: 10px;
  color: var(--ink2);
}
.jar-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.jar-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 24px;
}
.jar-card.spend {
  background: var(--sunT);
}
.jar-card.save {
  background: var(--skyT);
}
.jar-card.grow {
  background: var(--mintT);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jar-icon {
    background: rgba(255, 255, 255, 0.08);
  }
}
@media (max-width: 820px) {
  .jars {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- features */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.feature + .feature {
  margin-top: 96px;
}
.feature.flip .feature-art {
  order: 2;
}
.feature-copy > p {
  margin-top: 16px;
  color: var(--ink2);
  font-size: 18px;
}
.checks {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  gap: 12px;
}
.checks li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mintT);
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
}
.feature-art {
  position: relative;
  height: 380px;
  border-radius: 32px;
  overflow: hidden;
}
.feature-art .pal {
  width: 200px;
  bottom: 10px;
}
.grow-art {
  background: linear-gradient(180deg, #e9fbe9, #c8f0d2);
}
.grow-art .pal {
  left: 24px;
}
.chart {
  position: absolute;
  right: 32px;
  bottom: 36px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 260px;
}
.chart b {
  width: 30px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #5fdc84, var(--mint));
  box-shadow: 0 6px 14px rgba(31, 122, 58, 0.25);
}
.chart b:nth-child(1) {
  height: 28%;
}
.chart b:nth-child(2) {
  height: 36%;
}
.chart b:nth-child(3) {
  height: 45%;
}
.chart b:nth-child(4) {
  height: 57%;
}
.chart b:nth-child(5) {
  height: 70%;
}
.chart b:nth-child(6) {
  height: 88%;
  background: linear-gradient(180deg, var(--sun2), var(--sun));
}
.stall-art {
  background: linear-gradient(180deg, #fff1dc, #ffd9a8);
}
.stall-art .pal {
  right: 30px;
}
.stall {
  position: absolute;
  left: 40px;
  bottom: 40px;
  width: 220px;
  height: 220px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(140, 70, 0, 0.18);
}
.awning {
  height: 64px;
  border-radius: 18px 18px 0 0;
  background: repeating-linear-gradient(
    90deg,
    var(--coral) 0 27.5px,
    #fff 27.5px 55px
  );
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
}
.till {
  display: grid;
  gap: 2px;
  margin: 34px auto 0;
  width: 150px;
  padding: 14px;
  border-radius: 16px;
  background: #fff3c4;
  color: #8a5a00;
  text-align: center;
  font-weight: 700;
}
.till span {
  font-size: 13px;
}
.till b {
  font-size: 28px;
  letter-spacing: -0.02em;
}
@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature.flip .feature-art {
    order: 0;
  }
  .feature-art {
    height: 300px;
  }
  .feature-art .pal {
    width: 160px;
  }
  .chart {
    height: 200px;
    right: 20px;
  }
  .chart b {
    width: 22px;
  }
  .stall {
    left: 20px;
    width: 180px;
    height: 190px;
  }
  .stall-art .pal {
    right: 10px;
  }
}

/* ---------------------------------------------------------------- pals */
.pals-band {
  text-align: center;
}
.pals-band h2,
.pals-band .sub {
  margin-left: auto;
  margin-right: auto;
}
.pal-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.pal-grid li {
  padding: 10px 4px 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
}
.pal-grid li:hover {
  transform: translateY(-6px) rotate(-2deg);
}
.pal-grid img {
  display: block;
}
.more {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 860px) {
  .pal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------------------------------------------------------------- grown-ups */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.tile h3 {
  font-size: 18px;
}
@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- sign up */
.start {
  padding: 96px 0;
}
.start-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  gap: 48px;
}
.start .lede {
  max-width: 44ch;
  margin-top: 16px;
  font-size: 18px;
}
.start-copy {
  position: relative;
}
.start-pal {
  position: static;
  display: block;
  width: 220px;
  margin-top: 28px;
}
.card {
  padding: 28px 24px;
  border-radius: 26px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(20, 10, 80, 0.3);
}
form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 15px;
  font-weight: 650;
}
input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--hair);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}
input:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(106, 76, 255, 0.2);
}
small {
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
}
small b {
  color: var(--vt);
}
.check {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.check input {
  width: 22px;
  min-height: 22px;
  height: 22px;
  accent-color: var(--violet);
}
.error {
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffe3ea;
  color: #b0102f;
  font-size: 15px;
}
.fine {
  color: var(--ink2);
  font-size: 13px;
  text-align: center;
}
.done {
  text-align: center;
}
.done img {
  width: 150px;
}
.done h3 {
  margin: 8px 0 10px;
  font-size: 26px;
}
.done p {
  color: var(--ink2);
}
.done .fine {
  margin-top: 14px;
}
.done b {
  color: var(--ink);
  word-break: break-all;
}
@media (max-width: 900px) {
  .start-grid {
    grid-template-columns: 1fr;
  }
  .start-pal {
    display: none;
  }
}

/* ---------------------------------------------------------------- footer */
.foot {
  padding: 36px 0;
  color: var(--ink2);
  font-size: 15px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.foot .brand {
  color: var(--ink);
  font-size: 18px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.foot p {
  margin-left: auto;
}
