:root {
  --ink: #0a0a0a;
  --muted: #6f6f6f;
  --bg: #ffffff;
  --placeholder: #d9d9d9;
  --max: 1014px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* photos bleed past the right edge on purpose — crop, never scroll sideways */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  /* Design uses SF Pro Rounded; ui-rounded resolves to it on Apple devices,
     Varela Round is the closest free webfont for other platforms */
  font-family: ui-rounded, "SF Pro Rounded", "Varela Round", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-cta {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.topbar-cta:hover { background: #f4f4f4; }

@media (max-width: 720px) {
  .topbar { padding: 20px 20px 0; }
}

.logo {
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

.hero {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 24px 0;
  text-align: center;
}

/* ---- Crayon doodles ---- */

.doodle {
  position: absolute;
  width: clamp(110px, 16vw, 230px);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.doodle img {
  display: block;
  width: 100%;
  height: auto;
}

/* Percentages only, so every drawing keeps its place on any screen */
.d-heart          { top: 4%;  left: 1%; }
.d-heart img      { transform: rotate(-9deg); }
.d-banana         { top: 12%; right: 1%; }
.d-banana img     { transform: rotate(12deg); }
.d-watermelon     { top: 62%; left: 3%; }
.d-watermelon img { transform: rotate(7deg); }
.d-pineapple      { top: 72%; right: 2%; }
.d-pineapple img  { transform: rotate(-8deg); }

.d-pear           { top: 2%;  right: -14%; }
.d-pear img       { transform: rotate(-7deg); }
.d-peach          { top: 30%; left: -24%; }
.d-peach img      { transform: rotate(10deg); }

.d-strawberry     { top: 2%;  left: 4%; }
.d-strawberry img { transform: rotate(-10deg); }
.d-blueberries    { top: 3%;  right: 6%; }
.d-blueberries img { transform: rotate(8deg); }

/* Phone screens are taller and narrower, so the drawings need their own
   vertical slots to stay clear of the headline block */
@media (max-width: 720px) {
  .doodle { width: clamp(130px, 38vw, 200px); }

  .d-heart       { top: 3%;  left: 0; }
  .d-banana      { top: 10%; right: 0; }
  .d-watermelon  { top: 74%; left: 0; }
  .d-pineapple   { top: 82%; right: 0; }
  .d-pear        { top: 4%;  right: 0; }
  .d-peach       { top: 34%; left: -8%; }
  .d-strawberry  { top: 2%;  left: 0; }
  .d-blueberries { top: 3%;  right: 0; }
}

/* Text always sits above the drawings. Listed one by one on purpose:
   a :not(.doodle) selector also hits the photos and kills their
   absolute positioning. */
.hero .app-icon,
.hero h1,
.hero .sub,
.hero .pill,
.hero .pill-note,
.mission .label,
.mission-text,
.possible .label,
.big-title,
.feature {
  position: relative;
  z-index: 1;
}

.app-icon {
  width: clamp(80px, 10vw, 107px);
  height: auto;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero .sub {
  max-width: 460px;
  margin: 28px auto 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.pill {
  display: inline-block;
  margin-top: 44px;
  padding: 20px 44px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pill:hover { transform: scale(1.03); opacity: 0.9; }

/* ---- Mission ---- */

.mission {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 240px 24px 0;
}

.family {
  width: 100%;
  max-width: 560px;
  margin: 64px 0 0 auto;
  border-radius: 48px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  will-change: transform;
}

.family img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 427 / 304;
  object-fit: cover;
}

@media (max-width: 720px) {
  .family { border-radius: 32px; }
}

.label {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 18px;
}

.label.centered { text-align: center; }

.mission-text {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

/* ---- Possibilities ---- */

.possible {
  padding: 200px 0 0;
  /* The phones stay on top of the next section's crayon doodles */
  position: relative;
  z-index: 2;
}

.words-wrap {
  position: relative;
  max-width: var(--max);
  margin: 40px auto 0;
}

.words {
  list-style: none;
  text-align: center;
}

.words li {
  font-size: clamp(72px, 15vw, 170px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.phone {
  position: absolute;
  top: 6%;
  left: 4%;
  width: clamp(150px, 24vw, 250px);
  will-change: transform;
}

.phone-right {
  left: auto;
  right: 4%;
  top: 46%;
}

/* On phones the two screenshots swallow the word list, so shrink them,
   push them to the edges, and let the words sit on top */
@media (max-width: 720px) {
  .phone {
    width: 38vw;
    left: -3%;
    top: 8%;
  }

  .phone-right {
    left: auto;
    right: -3%;
    top: 40%;
  }

  .words {
    position: relative;
    z-index: 2;
  }
}

/* ---- Meet Tuzik ---- */

.meet {
  max-width: var(--max);
  margin: 0 auto;
  padding: 200px 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---- Talking Tuzik ---- */

.tuzik-talk {
  position: relative;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding-top: 96px;
  text-align: center;
}

.tuzik-body {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 100%;
  animation: tuzik-breathe 4.2s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

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

/* Mouth shapes from the app, placed on the picture as parts of its size */
.tuzik-body .mouth {
  position: absolute;
  left: 41.25%;
  top: 16.36%;
  width: 19.17%;
  height: 15.96%;
  visibility: hidden;
  pointer-events: none;
}

.tuzik-body.talking .mouth { visibility: visible; }

@keyframes tuzik-breathe {
  0%, 100% { transform: scale(1, 1) rotate(0deg); }
  50% { transform: scale(1.012, 0.988) rotate(-0.8deg); }
}

.bubble {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(360px, 92%);
  min-height: 1.3em;
  padding: 16px 22px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: left;
  z-index: 2;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 58%;
  bottom: -12px;
  border: 12px solid transparent;
  border-bottom: 0;
  border-top-color: #fff;
}

.tap-hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .tuzik-body { animation: none; }
}

.meet-lead {
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.28;
  letter-spacing: -0.03em;
}

@media (max-width: 820px) {
  .meet { grid-template-columns: 1fr; padding-top: 140px; gap: 36px; }
  .tuzik-talk { max-width: 360px; }
}

/* ---- Steps ---- */

.big-title {
  text-align: center;
  font-size: clamp(56px, 11vw, 128px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.steps {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 260px 24px 0;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  max-width: 860px;
  margin: 120px auto 0;
}

.feature.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
.feature.reverse .feature-shot { order: 2; }

/* ---- iPhone frame ----
   The screens are full 1320 x 2868 iPhone screenshots, so the frame keeps
   their real proportions: a thin black bezel and the display's own corner
   radius (about 14% of the screen width). Sizes are in cqw so the frame
   scales as one piece. */
.device {
  container-type: inline-size;
  margin: 0;
}

.device .bezel {
  background: #0d0d0d;
  padding: 2.9cqw;
  border-radius: 16.6cqw;
  box-shadow:
    inset 0 0 0 0.45cqw #3a3a3a,
    0 30px 60px -12px rgba(0, 0, 0, 0.28),
    0 12px 24px -8px rgba(0, 0, 0, 0.12);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  border-radius: 13.6cqw;
}

/* The phone stands behind a line, as if it rises out of the page:
   only the bottom is cut, so the side shadows stay. */
.feature-shot {
  position: relative;
  aspect-ratio: 1 / 1.3;
  width: 100%;
  border-bottom: 1.5px solid #d4d4d4;
  clip-path: inset(-240px -240px 0 -240px);
}

.feature-shot .device {
  position: absolute;
  top: 0;
  left: 9%;
  right: 9%;
}

.feature-text .num {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

.feature-text h3 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 18px;
}

.feature-text p:not(.num) {
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 400px;
}

@media (max-width: 760px) {
  .steps { padding-top: 300px; }
  .feature,
  .feature.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 88px;
  }
  .feature.reverse .feature-shot { order: 0; }
  .feature-shot { max-width: 340px; width: 100%; margin: 0 auto; }
  .feature-text { text-align: center; }
  .feature-text p:not(.num) { margin: 0 auto; }
}

/* ---- Levels ---- */

.levels {
  max-width: var(--max);
  margin: 0 auto;
  padding: 240px 24px 0;
}

.levels-lead {
  max-width: 600px;
  margin: 32px auto 0;
  text-align: center;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.pair {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  margin-top: 80px;
}

.pair {
  align-items: flex-start;
}

.pair-shot {
  width: clamp(140px, 27vw, 290px);
  will-change: transform;
}

.extras {
  list-style: none;
  max-width: 885px;
  margin: 110px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.extras h3 {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.extras p {
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 720px) {
  .levels { padding-top: 180px; }
  .extras { grid-template-columns: 1fr; gap: 32px; margin-top: 72px; text-align: center; }
}

.pill-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ---- Finale ---- */

.finale {
  max-width: var(--max);
  margin: 0 auto;
  padding: 240px 24px 0;
  text-align: center;
}

.finale-title {
  font-size: clamp(64px, 14vw, 170px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.finale-sub {
  margin-top: 24px;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.02em;
  color: var(--muted);
}

.finale .pill { margin-top: 64px; }

.framed {
  max-width: clamp(300px, 52vw, 520px);
  margin: 72px auto 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  will-change: transform;
}

.framed img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .finale { padding-top: 180px; }
  .framed { max-width: 82vw; margin-top: 52px; }
}

/* ---- Footer ---- */

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 160px 40px 48px;
  font-size: 13px;
  color: var(--muted);
}

/* The mascot peeks over the footer line, same as in the drawing */
.footer-mascot {
  display: block;
  width: clamp(96px, 14vw, 140px);
  height: auto;
  margin: 0 auto -1px;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 20px;
  text-align: center;
}

/* ---- Reveal on scroll ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Footer links (privacy, terms, support) read as quiet grey text, not as blue links */
.footer a {
  color: inherit;
  text-decoration: none;
}

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

.footer-links { text-align: center; }


