@font-face { font-family: "Chewy"; src: url("/assets/fonts/Chewy-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("/assets/fonts/Pacifico-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --ink: #2b2d3c;
  --muted: #61667a;
  --bg: #fffdf8;
  --lavender: #efeafc;
  --sky: #e6f1fb;
  --cream: #fbf3d9;
  --blue: #3a6fd8;
  --blue-dark: #2c56ad;
  --card: #ffffff;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* header — same look as the app's top bar: #f8f8f8 + faded doodle wallpaper (800px tiles @ 22%) */
header.site {
  position: relative;
  background: #f8f8f8;
  border-bottom: 2px solid #c4c4c4;
}
header.site::before {
  content: "";
  position: absolute; inset: 0;
  background: url("/assets/doodle.jpg") 0 0 / 400px 400px repeat;
  opacity: .22;
  pointer-events: none;
}
header.site .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; flex-wrap: wrap; }

/* logo — same as the app: Chewy letters in six colors with a darker "3D extrusion", tilted gray Pacifico "Draw" */
.logo { display: flex; align-items: center; text-decoration: none; padding: 2px 0; }
.logo .kinder { font-family: "Chewy", cursive; font-size: 42px; line-height: 1.18; display: flex; }
.logo .kinder span {
  color: var(--c);
  text-shadow:
    .5px 1px 1.5px rgba(0,0,0,.25),
    2px 2.5px 0 color-mix(in srgb, var(--c) 55%, black),
    -1.5px -1.5px 0 rgba(0,0,0,.18), 0 -1.5px 0 rgba(0,0,0,.18), 1.5px -1.5px 0 rgba(0,0,0,.18),
    -1.5px 0 0 rgba(0,0,0,.18), 1.5px 0 0 rgba(0,0,0,.18),
    -1.5px 1.5px 0 rgba(0,0,0,.18), 0 1.5px 0 rgba(0,0,0,.18), 1.5px 1.5px 0 rgba(0,0,0,.18);
}
.logo .draw { font-family: "Pacifico", cursive; font-size: 21px; line-height: 1.3; color: #555; margin: 13px 0 0 4px; display: inline-block; transform: rotate(-11deg); }
nav a { margin-left: 24px; text-decoration: none; color: #2b2d3c; font-family: "Chewy", cursive; font-weight: 400; font-size: 21px; letter-spacing: .3px; }
nav a:hover { color: var(--blue); }

/* hero */
.hero { background: linear-gradient(180deg, var(--lavender), var(--bg)); padding: 64px 0 24px; }
.hero-top { display: flex; align-items: center; justify-content: center; gap: 20px; white-space: nowrap; }
.hero .appicon { width: 56px; height: 56px; border-radius: 13px; flex: none; box-shadow: 0 4px 14px rgba(40, 50, 100, .15); }
.hero h1 { font-family: "Chewy", cursive; font-weight: 400; font-size: clamp(30px, 4.9vw, 54px); line-height: 1.05; margin: 0; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-row { display: grid; grid-template-columns: 1fr 1.18fr; gap: 40px; align-items: start; margin-top: 76px; }
.hero .tagline { font-family: "Chewy", cursive; font-size: clamp(26px, 3.3vw, 38px); line-height: 1.15; margin: -4px 0 14px; text-wrap: balance; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 700; text-decoration: none;
  background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue-dark);
}
.btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--blue-dark); }
.btn.alt { background: #fff; color: var(--ink); box-shadow: 0 3px 0 #d5d9e6; border: 1.5px solid #d5d9e6; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* device frame for screenshots */
.device { background: #5b5e6b; padding: 2px; border-radius: 6px; box-shadow: 0 20px 44px rgba(20, 30, 70, .34), 0 6px 14px rgba(20, 30, 70, .22), 0 1px 3px rgba(20, 30, 70, .30); }
.device img { border-radius: 2px; width: 100%; height: auto; }

/* sections */
section { padding: 56px 0; }
section h2 { font-family: "Chewy", cursive; font-weight: 400; font-size: 36px; margin: 0 0 8px; }
section .sub { color: var(--muted); margin: 0 0 30px; max-width: 900px; text-wrap: balance; }
section.tint { background: var(--sky); border-top: 1px solid #dcdcdc; border-bottom: 1px solid #dcdcdc; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 2px 10px rgba(40, 50, 100, .07); border: 1px solid #d9d9d9; border-top: 3px solid #cfdcf6; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-head .emoji { display: flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; font-size: 22px; line-height: 1; transform: translateY(-2px); }
.card-head h3 { margin: 0; line-height: 28px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.step { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 10px; }

/* screenshot rows */
.showcase { display: grid; gap: 54px; }
.row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: center; }
.row.rev { grid-template-columns: 1fr 1.35fr; }
.row.rev .device { order: 2; }
.row h3 { font-family: "Chewy", cursive; font-weight: 400; font-size: 28px; margin: 0 0 8px; }
.row p { margin: 0; color: var(--muted); }

/* promise strip: a table-like grid of cells with a check mark each */
.promise { background: var(--cream); border-top: 1px solid #dcdcdc; border-bottom: 1px solid #dcdcdc; }
.promise h2 { margin-bottom: 26px; }
.promise ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: #d9d9d9; border: 1px solid #d9d9d9; border-radius: 14px; overflow: hidden;
}
.promise li { background: #fff; font-weight: 600; padding: 18px 20px 18px 56px; position: relative; }
.promise li::before {
  content: ""; position: absolute; left: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12.6111L8.92308 17.5L20 6.5' stroke='%233a6fd8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.promise .more { margin: 16px 0 0; font-size: 15px; color: var(--muted); }

/* download panels */
.dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dl .card { text-align: center; }
.dl .qr { margin: 12px auto 16px; }
.dl .qr svg { width: 180px; height: 180px; margin: 0 auto; display: block; }
.dl .platform { width: 46px; height: 46px; margin: 4px auto 10px; }
.dl .soon { color: var(--muted); font-style: italic; }
.dl .btn { box-sizing: border-box; width: 240px; max-width: 100%; padding-left: 10px; padding-right: 10px; text-align: center; }
.dl .ver { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.note { font-size: 13px; line-height: 1.5; color: #8b8fa0; }
.dl .slot + .note { margin-top: 20px; }
.menu-btn { display: none; }

/* legal pages */
main.legal { padding: 40px 0 60px; }
main.legal h1 { font-family: "Chewy", cursive; font-weight: 400; font-size: 42px; margin: 0 0 4px; }
main.legal h2 { font-family: system-ui, sans-serif; font-size: 22px; margin: 34px 0 6px; }
main.legal .updated { color: #8b8fa0; font-size: 14px; margin: 0 0 24px; }
main.legal .wrap { max-width: 780px; }
.todo { background: #fff0f0; border: 2px dashed #e46; padding: 2px 8px; border-radius: 6px; }

footer.site { background: var(--lavender); border-top: 1px solid #dcdcdc; padding: 30px 0; font-size: 15px; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-right: 16px; }

@media (max-width: 640px) {
  .dl { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .promise ul { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .hero-row, .row, .row.rev { grid-template-columns: 1fr; }
  .promise ul { grid-template-columns: repeat(2, 1fr); }
  .row.rev .device { order: 0; }
  .hero-row { text-align: center; }
  .hero-top { justify-content: center; white-space: normal; gap: 14px; }
  .hero .appicon { width: 54px; height: 54px; border-radius: 13px; }
  .hero .btn-row { justify-content: center; }
  .logo .kinder { font-size: 34px; }
  .logo .draw { font-size: 17px; margin-top: 10px; }
  .hero h1 { font-size: clamp(34px, 8.6vw, 54px); }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  }
  .menu-btn span { display: block; height: 3px; border-radius: 2px; background: #2b2d3c; transition: transform .2s, opacity .2s; }
  header.site.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  header.site.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  header.site.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  header.site .wrap { align-content: flex-start; }
  .logo { min-height: 62px; } /* first row keeps the closed header's height, so the logo doesn't shift when the menu opens */
  header.site nav#site-nav { display: none; width: 100%; flex-direction: column; padding: 4px 0 12px; }
  header.site.menu-open nav#site-nav { display: flex; }
  header.site nav#site-nav a { margin: 0; padding: 10px 4px; border-top: 1px solid rgba(0,0,0,.08); }
  nav a { margin: 0 14px 0 0; }
}

/* narrow screens: break the heading as "Drawing that / feels real." so the icon + text block is tight and centers as a unit */
@media (max-width: 800px) {
  .hero h1 .l1 { display: block; }
}
