/* peloo.nexus.cab (T76): the app's paper, ink and ginkgo, nothing else. */
:root {
  --paper: #fff8ee;
  --paper-deep: #f3e9da;
  --card: #fffdf8;
  --line: #e8dccb;
  --ink: #2a261f;
  --ink-soft: #4a453c;
  --muted: #6f685d;
  --ginkgo: #f6c93a;
  --ginkgo-ink: #84620a;
  --canvas: #fff6ee;
  --grid: rgba(42, 38, 31, 0.05);
  --radius: 22px;
  --page: min(1080px, calc(100vw - 40px));
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a { color: inherit; }

a:focus-visible, span:focus-visible { outline: 3px solid var(--ginkgo-ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }

.top, main > section, .foot { width: var(--page); margin-inline: auto; }

/* Header */
.top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}

.sections { display: flex; gap: 20px; margin-left: auto; }

.sections a, .languages a { text-decoration: none; color: var(--ink-soft); }

.sections a:hover, .languages a:hover { color: var(--ink); text-decoration: underline; }

.languages { display: flex; gap: 12px; font-size: 15px; }

.languages [aria-current] { font-weight: 700; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 72px;
}

.hero h1 { font-size: clamp(36px, 5.2vw, 60px); }

.keep { display: inline-block; }

.lead { font-size: 20px; color: var(--ink-soft); margin: 20px 0 32px; max-width: 34em; }

.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.store-soon {
  display: inline-block;
  text-wrap: balance;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--ginkgo);
  font-weight: 700;
}

.web-link { font-weight: 600; text-underline-offset: 4px; }

/* The hero board: a small Peloo canvas. Sizes inside follow the board's own
   width (cqw), so it reads the same on a phone and a desktop. */
.board {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  justify-self: center;
  container-type: inline-size;
  border-radius: 28px;
  border: 1px solid var(--line);
  background-color: var(--canvas);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 6cqw 6cqw;
  background-position: -1px -1px;
  box-shadow: 0 34px 60px -34px rgba(42, 38, 31, 0.35);
  overflow: hidden;
}

.area {
  position: absolute;
  left: 5%;
  top: 6%;
  width: 58%;
  height: 39%;
  border: 2px dashed rgba(79, 127, 103, 0.55);
  border-radius: 46% 40% 44% 38% / 42% 46% 40% 48%;
  background: rgba(79, 127, 103, 0.06);
}

.area-label {
  position: absolute;
  left: 9%;
  top: -3.2cqw;
  padding: 0.8cqw 2.4cqw;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 3.2cqw;
  font-weight: 700;
  color: #4f7f67;
  white-space: nowrap;
}

.link { position: absolute; inset: 0; width: 100%; height: 100%; }

.link path {
  fill: none;
  stroke: rgba(42, 38, 31, 0.35);
  stroke-width: 0.5;
  stroke-dasharray: 1.6 1.4;
  stroke-linecap: round;
}

.note {
  position: absolute;
  width: 40%;
  padding: 3cqw 3.2cqw;
  border-radius: 2.6cqw;
  border: 1px solid rgba(42, 38, 31, 0.08);
  box-shadow: 0 1px 0 rgba(42, 38, 31, 0.06), 0 10px 18px -12px rgba(42, 38, 31, 0.45);
  rotate: var(--tilt, 0deg);
  animation: rest 7s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.note p { margin: 0; font-size: 3.7cqw; line-height: 1.35; font-weight: 600; text-wrap: balance; }

.tone-sage { background: #d9e0cb; }
.tone-butter { background: #f6e8b8; }
.tone-sky { background: #d4e2e6; }
.tone-rose { background: #f3d6ca; }

.note-run { left: 11%; top: 15%; --tilt: -3deg; }
.note-work { right: 5%; top: 9%; width: 36%; --tilt: 2.5deg; --delay: -2s; }
.note-trip { left: 7%; top: 55%; --tilt: 2deg; --delay: -4s; }
.note-tea { right: 6%; top: 49%; width: 36%; --tilt: -2deg; --delay: -1s; }

.check {
  display: inline-block;
  width: 3.2cqw;
  height: 3.2cqw;
  margin-right: 1.4cqw;
  vertical-align: -0.4cqw;
  border: 1.5px solid var(--ink-soft);
  border-radius: 0.8cqw;
}

.when {
  display: inline-block;
  margin-top: 1.6cqw;
  padding: 0.4cqw 1.8cqw;
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.75);
  font-size: 2.8cqw;
  font-weight: 700;
  color: var(--ginkgo-ink);
}

.art { position: absolute; width: 20%; height: auto; rotate: var(--tilt, 0deg); }
.art-run { left: 38%; top: 26%; --tilt: 8deg; }
.art-trip { left: 40%; top: 62%; --tilt: -6deg; }
.art-tea { right: 4%; top: 65%; --tilt: 6deg; }

.peloo {
  position: absolute;
  left: 8%;
  bottom: 5%;
  display: flex;
  align-items: flex-end;
  gap: 1.6cqw;
}

.peloo img { width: 17cqw; height: auto; animation: rest 5s ease-in-out infinite; }

.bubble {
  position: relative;
  margin-bottom: 7cqw;
  padding: 2cqw 3cqw;
  border-radius: 3cqw 3cqw 3cqw 0.6cqw;
  background: var(--ink);
  color: var(--paper);
  font-size: 3.3cqw;
  font-weight: 600;
  max-width: 52cqw;
  line-height: 1.35;
}

@keyframes rest {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.9cqw; }
}

@media (prefers-reduced-motion: reduce) {
  .note, .peloo img { animation: none; }
  html { scroll-behavior: auto; }
}

/* Features */
.features { padding: 24px 0 72px; }

.features h2, .plus h2, .trust h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 28px; }

.features ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 24px;
}

.feature img { border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

.feature h3 { font-size: 22px; margin: 20px 4px 8px; }

.feature p { margin: 0 4px; color: var(--ink-soft); }

/* Plus and trust */
.plus, .trust {
  background: var(--paper-deep);
  border-radius: var(--radius);
  padding: 40px clamp(20px, 5vw, 56px);
  margin-bottom: 32px;
}

.plus-intro { margin: -12px 0 20px; color: var(--ink-soft); }

.plus ul, .trust ul { margin: 0; padding-left: 1.2em; }

.plus li, .trust li { margin: 8px 0; }

.fine { font-size: 14px; color: var(--muted); margin: 20px 0 0; }

.trust p { margin: 20px 0 0; font-weight: 600; }

/* Footer */
.foot { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }

.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }

.foot a { color: var(--ink-soft); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .board { max-width: 400px; }
  .features ol { grid-template-columns: 1fr; }
  .sections { display: none; }
  .languages { margin-left: auto; }
}
