/* Pawtner landing: the app's "cozy cream" theme (Ui.kt): cream surfaces, cocoa text, muted pastel accents. */
@font-face { font-family: "Fredoka"; src: url("assets/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("assets/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --cream: #FFF6EA;
  --cream-deep: #FFE9D4;
  --card: #FFFFFF;
  --line: #F1DECB;
  --cocoa: #4A3426;
  --cocoa-soft: #8C6F5B;
  --peach: #FFB38A;
  --peach-d: #E58B60;
  --rose: #F8AEBE;
  --rose-d: #E07F97;
  --mint: #A9DEC2;
  --mint-d: #74BE97;
  --honey: #FFD166;
  --honey-d: #E5A92E;
  --sky: #BFE3F5;
  --sky-d: #86C1DF;
  --lilac: #D9C8F5;
  --lilac-d: #AE96DB;
  --mint-soft: #EAF7EF;
  --rose-soft: #FFF0F3;
  --honey-soft: #FFF4D6;
  --chip: #F4ECE3;
  --accent-text: #B5603A; /* peach-d darkened for text contrast on cream (4.6:1) */
  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
  --radius: 24px;
  --shadow: 0 1px 0 rgba(74,52,38,.04), 0 10px 30px -12px rgba(74,52,38,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--cocoa);
  font-family: var(--body); font-weight: 500; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cocoa); color: var(--cream); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--peach-d); outline-offset: 3px; border-radius: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  background: rgba(255,246,234,.88); border-bottom: 1px solid rgba(241,222,203,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 650; font-size: 22px; text-decoration: none; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 22px; font-weight: 700; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--cocoa-soft); }
.nav-links a:hover { color: var(--cocoa); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.1;
  border-radius: 999px; padding: 13px 22px; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(2px); }
.btn-small { background: var(--cocoa); color: var(--cream); padding: 10px 18px; font-size: 15px; box-shadow: 0 3px 0 #2e1f16; }
.btn-play {
  background: var(--cocoa); color: var(--cream); padding: 12px 24px 12px 18px;
  box-shadow: 0 4px 0 #2e1f16, 0 14px 30px -12px rgba(74,52,38,.55);
}
.btn-play:hover { background: #5a4031; }
.btn-play span { display: flex; flex-direction: column; font-size: 20px; }
.btn-play small { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.btn-play svg { color: var(--peach); flex: none; }
.btn-ghost { background: var(--card); color: var(--cocoa); border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.btn-ghost:hover { border-color: var(--peach); }
.link-soft { font-family: var(--display); font-weight: 600; color: var(--accent-text); text-decoration: none; }
.link-soft:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(20px, 4vw, 48px) var(--gutter) clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center;
}
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
h1 { font-size: clamp(40px, 6.4vw, 70px); line-height: 1.02; margin-bottom: 20px; }
.accent { color: var(--peach-d); }
.lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--cocoa-soft); max-width: 52ch; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--cocoa-soft); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 560px; }
.blob { position: absolute; border-radius: 50%; }
.blob-peach { width: 440px; height: 440px; background: var(--cream-deep); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.blob-mint { width: 150px; height: 150px; background: var(--mint-soft); right: 2%; bottom: 6%; }

.phone {
  position: relative; width: 272px; aspect-ratio: 272 / 560; padding: 9px; border-radius: 44px;
  background: #3a2a20; box-shadow: 0 2px 0 #2a1d15, 0 40px 60px -30px rgba(74,52,38,.55), inset 0 0 0 2px #56402f;
}
.screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #CFE8F6 0%, #F5E6EF 52%, #FFE3CC 100%);
}
.widget-clock { position: absolute; top: 34px; left: 0; right: 0; text-align: center; color: #fff; text-shadow: 0 1px 8px rgba(74,52,38,.25); }
.widget-clock b { display: block; font-family: var(--display); font-weight: 500; font-size: 54px; line-height: 1; }
.widget-clock span { font-weight: 700; font-size: 13px; }
.app-grid { position: absolute; top: 140px; left: 22px; right: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 18px; }
.app-grid i, .dock i { display: block; aspect-ratio: 1; border-radius: 14px; background: rgba(255,255,255,.72); }
.app-grid i:nth-child(3n+1) { background: rgba(255,255,255,.55); }
.app-grid i:nth-child(5) { background: var(--honey); } .app-grid i:nth-child(2) { background: var(--mint); }
.app-grid i:nth-child(8) { background: var(--rose); } .app-grid i:nth-child(11) { background: var(--sky); }
.dock { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 10px 14px; border-radius: 26px; background: rgba(255,255,255,.45); }
.dock i { background: rgba(255,255,255,.85); }
.hero-pet { position: absolute; width: 42%; left: 10%; bottom: 72px; }
.bubble {
  position: absolute; left: 32%; right: 10px; bottom: 246px;
  background: var(--card); color: var(--cocoa); font-family: var(--display); font-weight: 500; font-size: 14px; line-height: 1.3;
  padding: 9px 12px; border-radius: 16px 16px 16px 4px; box-shadow: 0 6px 16px -6px rgba(74,52,38,.35);
  transition: opacity .35s ease;
}
.bubble.out { opacity: 0; }

/* ---------- Flipbook (real clip frames) ---------- */
.flip { background-repeat: no-repeat; background-position: 0 0; }

/* ---------- Walking strip ---------- */
.strip { position: relative; height: 150px; overflow: hidden; border-block: 2px dashed var(--line); background: var(--cream-deep); }
.strip-words {
  position: absolute; inset: 0 0 auto; padding-top: 18px; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: clamp(15px, 2.2vw, 22px); color: var(--cocoa-soft); white-space: nowrap;
}
.strip-words i { font-style: normal; color: var(--peach); padding: 0 .3em; }
/* Pet parade: each .walker is one pet, --w its width at full size and --s the strip's scale (smaller on phones).
   The sprite is shifted down by the space under its paws (1 - --ay) so every pet's feet land on the same floor line.
   main.js places them; until then they wait off the left edge. */
.strip { --s: 1; }
.walker { position: absolute; left: 0; bottom: 6px; width: calc(var(--w) * var(--s) * 1px); will-change: transform; transform: translateX(-100%); }
.walker .flip { width: 100%; transform: translateY(calc((1 - var(--ay, 1)) * 100%)); }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gutter); }
.section.tint-honey, .section.tint-mint { max-width: none; }
.tint-honey { background: var(--honey-soft); }
.tint-mint { background: var(--mint-soft); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.kicker { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; max-width: 20ch; margin-bottom: 14px; }
.sub { font-size: clamp(17px, 1.8vw, 19px); color: var(--cocoa-soft); max-width: 56ch; }
.fine { margin-top: 26px; font-size: 15px; color: var(--cocoa-soft); }

/* chat */
.what-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px 48px; align-items: end; margin-bottom: 36px; }
.chat { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 400px; justify-self: end; }
.say { font-family: var(--display); font-weight: 500; font-size: 17px; padding: 10px 16px; border-radius: 20px; width: fit-content; max-width: 100%; }
.say.you { align-self: flex-end; background: var(--cocoa); color: var(--cream); border-bottom-right-radius: 6px; }
.say.pet { background: var(--card); border: 2px solid var(--line); border-bottom-left-radius: 6px; }

/* feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 21px; margin: 14px 0 6px; }
.card p { color: var(--cocoa-soft); font-size: 16px; }
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--cocoa); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.peach { background: #FFE2D1; } .ico.honey { background: #FFEBB8; } .ico.mint { background: #D6F0E2; }
.ico.sky { background: #DCF0FA; } .ico.rose { background: #FFDDE5; } .ico.lilac { background: #ECE2FB; }

/* Pet Studio */
.studio { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; box-shadow: var(--shadow); }
.step-n { position: absolute; top: -14px; left: 20px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--honey); font-family: var(--display); font-weight: 650; box-shadow: 0 3px 0 var(--honey-d); }
.step h3 { font-size: 21px; margin: 16px 0 4px; }
.step p { color: var(--cocoa-soft); font-size: 16px; }
.step figure { margin: 0; height: 260px; display: grid; place-items: center; border-radius: 18px; background: var(--cream); }
.polaroid img { width: auto; height: 220px; aspect-ratio: 360/640; object-fit: cover; padding: 8px 8px 26px; background: #fff; border-radius: 4px; box-shadow: 0 8px 18px -8px rgba(74,52,38,.4); transform: rotate(-3deg); }
.paper { background: repeating-linear-gradient(0deg, #FFFDF8 0 27px, #F8EFE5 27px 28px) !important; }
.paper img { height: 220px; width: auto; }
.alive .flip { height: 230px; }

/* Friends */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-copy > p { color: var(--cocoa-soft); max-width: 52ch; margin-top: 4px; }
.scene { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.3; box-shadow: var(--shadow); border: 2px solid var(--line); }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.scene-appa { position: absolute; height: 62%; left: 18%; bottom: 9%; }
.scene-mango { position: absolute; height: 40%; right: 16%; bottom: 9%; }
.toast { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--card); padding: 9px 16px; border-radius: 999px; font-family: var(--display); font-weight: 500; font-size: 15px; box-shadow: 0 8px 20px -10px rgba(74,52,38,.45); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234A3426' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.board { margin-top: 24px; background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 16px 18px; max-width: 360px; box-shadow: var(--shadow); }
.board-head { font-size: 14px; color: var(--cocoa-soft); margin-bottom: 8px; }
.board-head b { font-family: var(--display); font-weight: 600; color: var(--cocoa); font-size: 16px; }
.board ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.board li { counter-increment: r; display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 12px; font-weight: 700; }
.board li span::before { content: counter(r) ". "; color: var(--cocoa-soft); }
.board li.me { background: var(--honey-soft); }
.board li b { font-family: var(--display); font-weight: 600; }

/* Arcade */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.game { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 2px solid #D6EEDF; box-shadow: var(--shadow); }
.game img { width: 100%; aspect-ratio: 640/357; object-fit: cover; }
.game h3 { font-size: 21px; margin: 14px 18px 4px; }
.game p { margin: 0 18px 20px; color: var(--cocoa-soft); font-size: 15.5px; }

/* Privacy */
.privacy .btn { margin-top: 22px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 14px 18px; color: var(--cocoa-soft); font-size: 16px; }
.facts b { display: block; font-family: var(--display); font-weight: 600; color: var(--cocoa); font-size: 17px; }

/* FAQ */
.faq-wrap { padding-top: 0; }
.faq { display: grid; gap: 10px; margin-top: 24px; max-width: 760px; }
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--peach-d); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--cocoa-soft); }

/* Final CTA */
.cta { padding-top: 0; }
.cta-card { text-align: center; background: var(--cream-deep); border-radius: 36px; padding: clamp(36px, 6vw, 64px) var(--gutter); display: flex; flex-direction: column; align-items: center; }
.cta-card h2 { margin: 6px auto 10px; }
.cta-card p { color: var(--cocoa-soft); margin-bottom: 26px; }
.cta-pet { width: min(240px, 60vw); }

/* Footer */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 48px; display: grid; gap: 14px; justify-items: center; text-align: center; border-top: 2px dashed var(--line); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-weight: 700; }
.foot-links a { color: var(--accent-text); text-underline-offset: 3px; }
.small { font-size: 13px; color: var(--cocoa-soft); }

/* Scroll reveal (content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .what-head { grid-template-columns: 1fr; }
  .chat { justify-self: start; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .games { grid-template-columns: repeat(2, 1fr); }
  .studio { grid-template-columns: 1fr; max-width: 460px; gap: 30px; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { min-height: 0; padding: 12px 0 8px; }
  .blob-peach { width: 340px; height: 340px; }
  .split { grid-template-columns: 1fr; }
  .privacy .split-copy { order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 14px; gap: 8px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .1em; margin-bottom: 10px; }
  h1 { margin-bottom: 14px; }
  .lede { margin-bottom: 20px; }
  .lede-more, .hero-note, .link-soft { display: none; }
  .hero-art { padding-top: 18px; }
  .grid, .games { grid-template-columns: 1fr; }
  .phone { width: 236px; border-radius: 40px; }
  .screen { border-radius: 32px; }
  .widget-clock { top: 26px; } .widget-clock b { font-size: 46px; }
  .app-grid { top: 118px; gap: 13px 15px; left: 18px; right: 18px; }
  .hero-pet { bottom: 64px; }
  .bubble { bottom: 212px; font-size: 13px; }
  .strip { height: 132px; }
  .strip-words { white-space: normal; padding: 12px 16px 0; font-size: 15px; line-height: 1.35; }
  .strip { --s: .765; }
  .btn-small { padding: 9px 14px; font-size: 14px; }
  .toast { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bubble { transition: none; }
  .btn { transition: none; }
}

/* ---------- Signup ---------- */
.signup { width: min(520px, 100%); margin-top: 36px; padding-top: 30px; border-top: 2px dashed var(--line); }
.cta-card .signup-title { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--cocoa); margin: 0 0 4px; }
.cta-card .signup-sub { margin: 0 0 16px; }
.signup-row { display: flex; gap: 10px; }
.signup input[type=email] {
  flex: 1; min-width: 0; font: 600 16px/1.2 var(--body); color: var(--cocoa);
  background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 13px 20px;
}
.signup input[type=email]::placeholder { color: var(--cocoa-soft); opacity: .7; }
.signup input[type=email]:focus { outline: none; border-color: var(--peach-d); box-shadow: 0 0 0 4px rgba(255,179,138,.35); }
.btn-peach { background: var(--peach-d); color: #fff; box-shadow: 0 3px 0 #b5603a; flex: none; }
.btn-peach:hover { background: #d97c51; }
.btn-peach[disabled] { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cta-card .signup-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 700; color: var(--cocoa); }
.signup-msg.err { color: #b3413b; }
.cta-card .signup-fine { margin: 4px 0 0; font-size: 13px; }
.signup.done .signup-row { display: none; }
@media (max-width: 560px) { .signup-row { flex-direction: column; } .btn-peach { justify-content: center; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Doc pages (privacy) ---------- */
.doc-nav { max-width: 760px; }
.doc { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { font-size: 17px; color: var(--cocoa); line-height: 1.6; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }
.doc a { color: var(--accent-text); text-underline-offset: 3px; }
.doc-meta { color: var(--cocoa-soft) !important; font-size: 15px !important; margin-bottom: 24px; }
