/* Lupaboo's site. Copied from Dressimals' site.css (same palette: the app's
   sticker pictures sit on the same warm paper), minus the guides, plus the demo,
   the gold lens drawings and the hint ladder.
   Bump the ?v= in every page's stylesheet link when this file changes
   (nginx caches /assets/*?v=… for a year): tools/templates/base.html for the
   built pages, by hand in impressum/ and 404.html. No inline styles in the
   HTML: the CSP only allows this stylesheet. */

:root {
  --paper: #fdf9f0;
  --sky: #bfe3f2;
  --sky-deep: #8ecde8;
  --ink: #4a3728;
  --ink-soft: #7a6a58;
  --grass: #b5d99c;
  --red: #e8564a;        /* decoration only, never text on light backgrounds */
  --sun: #f7c948;
  --card: #ffffff;
  --cream: #fff6e0;
  --cta: #c4453a;        /* white text on it: 4.9:1 */
  --cta-hover: #ad3b31;
  --link: #b84236;       /* 5.2:1 on paper, 5.4:1 on white */
  --ok: #2f8a4c;
  --gold: #e8a33d;       /* the app's lens rim */
  --radius: 20px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

[id] { scroll-margin-top: 12px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); }

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

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

picture { display: contents; }

/* picture's <source> is display: block in Chrome, so with display: contents above it would take a grid cell */
picture source { display: none; }

/* Stage switch: <html data-stage="pre"> before launch, "live" after. */
html[data-stage="pre"] .stage-live,
html[data-stage="live"] .stage-pre { display: none !important; }

/* ---------- header ---------- */

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  margin: 0 auto;
  padding: 16px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.brand img { width: 42px; height: 42px; border-radius: 10px; }

nav.lang { display: flex; gap: 6px; }

nav.lang a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 4px 12px;
}

nav.lang a[aria-current="true"] {
  color: var(--ink);
  background: var(--sky);
}

nav.lang { align-items: center; flex-shrink: 0; }

nav.lang a { white-space: nowrap; }

header.site { gap: 10px; }

nav.lang a.lang-more { display: inline-flex; padding: 4px 8px; }

nav.lang a.lang-more svg { display: block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

footer.site nav.langs { font-size: 0.9rem; gap: 6px 16px; }

footer.site nav.langs a[aria-current="page"] { color: var(--paper); font-weight: 700; }

.note-inline { background: var(--cream); border-radius: 12px; padding: 10px 14px; font-size: 0.92rem; }

/* ---------- hero ---------- */

.hero { padding: 4px 0 18px; max-width: 760px; }

.eyebrow {
  display: inline-block;
  margin: 0;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 3px 12px;
}

.hero h1 {
  font-size: clamp(1.65rem, 5.2vw, 2.7rem);
  line-height: 1.18;
  margin: 10px 0;
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 18px;
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

.cta-note { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 6px 16px rgba(196, 69, 58, 0.28);
}

.btn:hover { background: var(--cta-hover); }

.btn-link { font-weight: 700; color: var(--link); }

.badge-google { display: block; height: 62px; width: auto; }

.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

.chips li {
  background: var(--card);
  border-radius: 999px;
  padding: 4px 12px 4px 10px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(74, 55, 40, 0.08);
}

.chips li::before { content: "✓"; color: var(--ok); font-weight: 900; margin-right: 6px; }

.chips--big { margin: 0 0 16px; }

.chips--big li { font-size: 1rem; padding: 6px 14px 6px 12px; }

@media (min-width: 900px) {
  .hero { padding: 24px 0 22px; }
}

/* ---------- sections ---------- */

section { padding: 34px 0; }

h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 18px; line-height: 1.25; }

.section-lead { margin: -8px 0 18px; color: var(--ink-soft); max-width: 64ch; }

h3.sub { font-size: 1.15rem; margin: 30px 0 12px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

ol.cards, ul.cards { list-style: none; padding: 0; margin: 0; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 4px 14px rgba(74, 55, 40, 0.08);
}

.card img.lens-art {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 12px;
}

.card h3 { margin: 0 0 6px; font-size: 1.1rem; }

.card p { margin: 0; color: var(--ink-soft); }

.cards--steps { counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.cards--steps h3::before { counter-increment: step; content: counter(step) ". "; color: var(--cta); }

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ticks li { position: relative; padding-left: 28px; color: var(--ink-soft); }

.ticks li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--ok); font-weight: 900; }

.ticks strong { color: var(--ink); }

/* ---------- scenes ---------- */

.scene-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 10px;
}

.scene-grid li { position: relative; text-align: center; }

.scene-grid img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 12px rgba(74, 55, 40, 0.12); }

.scene-name { display: block; margin-top: 6px; font-size: 0.85rem; font-weight: 700; line-height: 1.25; }

.tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 8px;
}

@media (min-width: 720px) {
  .scene-grid { grid-template-columns: repeat(4, 1fr); gap: 20px 16px; }
  .scene-name { font-size: 0.95rem; }
}

/* ---------- founder ---------- */

.founder {
  display: grid;
  gap: 8px 28px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 4px 14px rgba(74, 55, 40, 0.08);
}

.founder img { display: block; width: 150px; height: auto; justify-self: center; }

.founder h2 { margin-bottom: 10px; }

.founder p { color: var(--ink-soft); max-width: 62ch; margin: 0 0 10px; }

.founder .sign { color: var(--ink); font-weight: 800; margin: 4px 0 0; }

@media (min-width: 720px) {
  .founder { grid-template-columns: 220px 1fr; align-items: center; padding: 32px; }
  .founder img { width: 100%; }
}

/* ---------- pricing ---------- */

.pricing {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.pricing h2 { margin-top: 0; }

.plans { display: grid; gap: 14px; margin: 18px 0 14px; }

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

.plan { background: var(--card); border-radius: 16px; padding: 18px 20px; }

.plan--all { box-shadow: inset 0 0 0 3px var(--sun); }

.plan-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.plan h3 { margin: 2px 0 6px; font-size: 1.45rem; }

.plan p { margin: 0; }

.pricing .fine { color: var(--ink); font-size: 0.95rem; margin: 6px 0 0; }

/* ---------- get / test sign-up ---------- */

.get { background: var(--cream); border-radius: var(--radius); padding: 26px 22px; }

.get h2 { margin-bottom: 10px; }

.get ol { padding-left: 22px; margin: 12px 0 16px; }

.get li { margin-bottom: 6px; }

.fine { font-size: 0.88rem; color: var(--ink-soft); margin: 12px 0 0; }

.addr { color: var(--ink); font-weight: 700; user-select: all; overflow-wrap: anywhere; }

/* ---------- FAQ ---------- */

details.faq {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(74, 55, 40, 0.07);
}

details.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after { content: "+"; color: var(--red); font-weight: 800; }

details.faq[open] summary::after { content: "–"; }

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

/* ---------- legal pages ---------- */

.prose { max-width: 74ch; }

.prose h2 { font-size: 1.3rem; margin-top: 30px; }

.prose h3 { font-size: 1.05rem; margin-top: 22px; }

.prose p, .prose li { color: var(--ink-soft); }

.prose strong { color: var(--ink); }

.prose ul { padding-left: 22px; }

.updated { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- footer ---------- */

footer.site {
  margin-top: 40px;
  background: var(--ink);
  color: var(--paper);
  padding: 30px 0 36px;
}

footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 14px; }

footer.site a { color: var(--sky); text-decoration: none; }

footer.site a:hover { text-decoration: underline; }

footer.site a:focus-visible { outline-color: var(--sky); }

footer.site p { margin: 4px 0; font-size: 0.92rem; opacity: 0.9; }

/* ---------- phones ---------- */

@media (max-width: 640px) {
  header.site { padding: 10px 16px; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  nav.lang { gap: 2px; }
  nav.lang a { padding: 4px 8px; font-size: 0.85rem; }
  nav.lang a.lang-more { padding: 4px 6px; }
  .wrap { padding: 0 16px; }
  .cta-row .btn, .get .btn { width: 100%; }
  .badge-google { height: 54px; }
  /* cards: art left, text right */
  .cards .card { display: grid; grid-template-columns: 116px 1fr; gap: 12px; align-items: center; padding: 14px 16px 14px 10px; }
  .cards .card img.lens-art { width: 100px; height: 100px; margin: 0 auto; }
}

/* ---------- homepage: share line, closing CTA ---------- */

.card p.more { margin-top: 8px; font-weight: 700; }

.share { margin: 18px 0 0; font-size: 0.95rem; color: var(--ink); }

.share a { font-weight: 700; }

.closing > div {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}

.closing-title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; line-height: 1.25; margin: 0 0 8px; }

.closing p { margin: 0 auto 16px; color: var(--ink-soft); max-width: 56ch; }

.closing .closing-title { color: var(--ink); }

.closing .cta-row { justify-content: center; }

.closing .badge-google { margin: 0 auto; }

button.share-native {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--cta);
  border: 0;
  border-radius: 999px;
  padding: 4px 14px;
  margin-right: 6px;
  cursor: pointer;
}

button.share-native:hover { background: var(--cta-hover); }

button.share-native[hidden] { display: none; }

/* ---------- the pictures grid: the door under each name ---------- */

.scene-door { display: block; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.3; }

.scene-grid img { aspect-ratio: 3 / 2; }

/* ---------- help comes by itself: three frames ---------- */

ol.hints { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

ol.hints li {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  align-items: start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px 14px 10px;
  box-shadow: 0 4px 14px rgba(74, 55, 40, 0.08);
  counter-increment: hint;
}

ol.hints img.lens-art { grid-row: 1 / 3; width: 96px; height: 96px; }

ol.hints h3 { margin: 4px 0 2px; font-size: 1.05rem; }

ol.hints h3::before { content: counter(hint) ". "; color: var(--cta); }

ol.hints p { margin: 0; color: var(--ink-soft); }

ol.hints { counter-reset: hint; }

@media (min-width: 720px) {
  ol.hints { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  ol.hints li { display: block; text-align: center; padding: 20px 20px 22px; }
  ol.hints img.lens-art { width: 170px; height: 170px; margin: 0 auto 10px; display: block; }
}

.section-after { margin: 18px 0 0; color: var(--ink-soft); max-width: 64ch; }

/* ---------- first words ---------- */

.words { background: var(--cream); border-radius: var(--radius); padding: 26px 22px; }

.words p { color: var(--ink-soft); max-width: 64ch; margin: 0 0 10px; }

ul.hello { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

ul.hello li {
  background: var(--card);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(74, 55, 40, 0.08);
}

/* ---------- the family ---------- */

ul.family { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

ul.family a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink-soft);
  box-shadow: 0 3px 10px rgba(74, 55, 40, 0.07);
}

ul.family a:hover strong { text-decoration: underline; }

ul.family img { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; }

ul.family strong { color: var(--link); display: block; }

/* ---------- the demo (assets/demo.js) ---------- */

.demo-section { padding-top: 8px; }

.demo-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grass);
  box-shadow: 0 10px 30px rgba(74, 55, 40, 0.16);
}

.demo-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }

/* A tap counts on release, so a swipe over the picture still scrolls the page;
   manipulation only drops the double-tap zoom (and its click delay). */
.demo-canvas { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }

.demo-canvas[hidden], .demo-img[hidden] { display: none; }

.demo-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 28px 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.2rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(74, 55, 40, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.55);
}

.demo-start:hover { background: var(--cta-hover); }

.demo-start svg { flex-shrink: 0; color: #fff; }

.demo-start[hidden] { display: none; }

.demo-start[aria-busy="true"] { cursor: progress; opacity: 0.9; }

@media (prefers-reduced-motion: no-preference) {
  .demo-start:not([aria-busy="true"]) { animation: demo-breathe 2.4s ease-in-out infinite; }
}

@keyframes demo-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; min-height: 40px; }

.demo-bar[hidden] { display: none; }

.demo-say { margin: 0; font-weight: 800; font-size: 1.1rem; color: var(--ink); }

.demo-sound, .demo-again {
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--sky-deep);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  white-space: nowrap;
}

.demo-sound[aria-pressed="false"] { background: var(--cream); border-color: var(--sun); }

.demo-end {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px;
  text-align: center;
  background: rgba(253, 249, 240, 0.88);
}

.demo-end[hidden] { display: none; }

.demo-end-title { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 800; line-height: 1.2; margin: 0; color: var(--ink); }

.demo-end p { margin: 0 0 10px; max-width: 46ch; color: var(--ink); font-weight: 600; }

.demo-end .cta-row { justify-content: center; margin-bottom: 10px; }

.demo-end .btn { min-height: 46px; padding: 10px 24px; font-size: 1rem; }

.demo-note { font-size: 0.88rem; color: var(--ink-soft); margin: 8px 0 0; }

@media (max-width: 640px) {
  /* the picture goes edge to edge: at 360 px it is only 240 px tall */
  .demo-stage { margin: 0 -16px; border-radius: 0; }
  .demo-start { font-size: 1.05rem; min-height: 52px; padding: 8px 20px 8px 14px; }
  .demo-end { padding: 10px; }
  .demo-end p { font-size: 0.9rem; margin-bottom: 6px; }
  .demo-end .cta-row .btn { width: auto; }
}
