/* Lil Things — peach paper, ink, and butter yellow, sampled from the app. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/nunito-500.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-700.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-800.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/caveat-600.woff2") format("woff2");
}

:root {
  --paper: #fff3e8;
  --ink: #2e2e3a;
  --soft: #5c554e;
  --yellow: #ffe59f;
  --lavender: #ead6f6;
  --pink: #f6d5e2;
  --card: #fffaf4;
  --line: rgba(46, 46, 58, 0.1);
  --shadow: 0 22px 50px rgba(80, 46, 20, 0.12);
  --font: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
  --header: 4.4rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 40% at 0% -10%, rgba(255, 229, 159, 0.55), transparent 55%),
    radial-gradient(ellipse 50% 36% at 100% 0%, rgba(234, 214, 246, 0.5), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p {
  text-wrap: pretty;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.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;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 0.75rem;
  z-index: 50;
  transform: translateY(-160%);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.script {
  font-family: var(--script);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
}

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

.lede,
.section-intro {
  color: var(--ink);
  font-size: 1.125rem;
  max-width: 38rem;
}

.section-intro {
  margin-top: 0.9rem;
}

.fine {
  margin-top: 0.15rem;
  color: var(--soft);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 243, 232, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(46, 46, 58, 0.06);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  min-height: var(--header);
  padding-block: 0.4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: block;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  min-height: 44px;
  cursor: pointer;
}

.js .nav-toggle {
  display: inline-flex;
  align-items: center;
}

.site-nav {
  display: flex;
  flex-basis: 100%;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.7rem;
}

.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: flex;
}

.site-nav a {
  text-decoration: none;
  font-weight: 800;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  background: rgba(46, 46, 58, 0.06);
}

@media (min-width: 860px) {
  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav,
  .js .site-nav.is-open {
    display: flex;
    flex-direction: row;
    flex-basis: auto;
    align-items: center;
    margin-left: auto;
    padding: 0;
    gap: 0.15rem;
  }
}

/* Hero */

.hero {
  padding: clamp(2.2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  max-width: 11ch;
  margin: 0.2rem 0 1rem;
}

.hero .script {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  display: block;
}

.hero .lede {
  max-width: 34rem;
}

/* Official badge: do not scale with transforms, shadow, or radius.
   Clear space is the margin (at least 1/4 of the 48px height). */
.store-badge {
  display: inline-block;
  margin: 16px 0;
  line-height: 0;
  border-radius: 0;
}

.store-badge svg {
  display: block;
  height: 48px;
  width: auto;
  max-width: none;
  fill: #000;
}

.stage {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 0.5rem 0 1rem;
}

.shot {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.phone {
  width: min(100%, 280px);
  background: #241f2a;
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    var(--shadow);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  background: var(--paper);
  aspect-ratio: 1005 / 2185;
}

.shot figcaption {
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.floater {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 18%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--card);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  box-shadow: 0 12px 30px rgba(70, 40, 20, 0.12);
  font-weight: 800;
  font-size: 0.92rem;
}

.floater-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink);
  display: grid;
  place-items: center;
}

.floater-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.spark {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
}

.spark.one { top: 6%; right: 8%; }
.spark.two { top: 18%; right: 2%; width: 14px; height: 14px; }

/* Sections */

.section,
.hero,
.close {
  scroll-margin-top: 5.5rem;
}

.section {
  padding: clamp(3.2rem, 7vw, 6rem) 0;
}

.section h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  max-width: 16ch;
}

.how-layout,
.feature,
.widget-layout,
.guide,
.you-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.how-layout {
  margin-top: 2rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.step {
  border-radius: 24px;
  padding: 1.15rem 1.2rem 1.3rem;
}

.step:nth-child(1) { background: var(--yellow); }
.step:nth-child(2) { background: var(--lavender); }
.step:nth-child(3) { background: var(--pink); }

.step-num {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.step h3 {
  font-size: 1.4rem;
  margin: 0.25rem 0 0.4rem;
}

.step p {
  font-size: 1.02rem;
}

.features {
  display: grid;
  gap: clamp(3.5rem, 8vw, 6rem);
  margin-top: 2.6rem;
}

.feature h3,
.guide h3,
.you-layout h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.7rem;
}

.feature p,
.guide p,
.you-layout p {
  max-width: 38rem;
}

.ticks,
.pills {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0.35rem 0;
  font-weight: 700;
}

.ticks li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pills li {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Widget */

.widget-section {
  background:
    radial-gradient(ellipse 55% 70% at 80% 30%, rgba(255, 229, 159, 0.45), transparent 60%),
    radial-gradient(ellipse 40% 50% at 0% 90%, rgba(234, 214, 246, 0.4), transparent 60%);
}

.widget-demo {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.widget {
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid rgba(46, 46, 58, 0.06);
  border-radius: 28px;
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

.widget-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.25rem 0.3rem 0.75rem;
}

.ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lavender);
  display: grid;
  place-items: center;
}

.ava svg,
.wave svg {
  width: 18px;
  height: 18px;
  display: block;
}

.widget-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mini-sun {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.widget-sub {
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.widget-art {
  position: relative;
  background: var(--yellow);
  border-radius: 22px;
  min-height: 250px;
  aspect-ratio: 1.08;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  overflow: hidden;
}

.sun {
  width: min(52%, 180px);
  height: auto;
  display: block;
}

.sun .rays {
  transform-box: view-box;
  transform-origin: center;
}

.hi {
  font-family: var(--script);
  font-size: clamp(2.1rem, 5vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
  margin: 0;
  transform: rotate(-3deg);
}

.art-spark {
  position: absolute;
  width: 22px;
  height: 22px;
}

.art-spark.a { right: 14%; bottom: 18%; }
.art-spark.b { right: 8%; bottom: 28%; width: 12px; height: 12px; }

.reacts {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.75rem 0.35rem 0.25rem;
}

.reacts button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(46, 46, 58, 0.18);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.reacts button svg {
  width: 26px;
  height: 26px;
  display: block;
}

.reacts button:hover {
  background: #fff8ea;
}

.reacts button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.react-status {
  min-height: 1.5em;
  text-align: center;
  font-weight: 700;
  color: var(--soft);
  margin: 0;
}

.guide {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

/* FAQ */

.faq {
  margin: 2rem auto 0;
  max-width: 44rem;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  min-height: 44px;
}

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

.faq summary h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.faq-icon {
  flex: 0 0 auto;
  width: 1.6rem;
  text-align: center;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
}

.faq-icon::before {
  content: "+";
}

details[open] .faq-icon::before {
  content: "–";
}

.faq details p {
  margin: 0 0 1.15rem;
  max-width: 62ch;
  padding-right: 2rem;
}

.faq a {
  font-weight: 800;
}

/* Close + footer */

.close {
  text-align: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.close-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.8rem;
  display: block;
}

.close h2 {
  margin-inline: auto;
  max-width: 14ch;
}

.close .script {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.35rem;
}

.close .fine {
  margin-top: 0.8rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  justify-content: space-between;
  align-items: end;
}

.footer-brand .script {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.6rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer-nav a {
  font-weight: 800;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.copyright,
.legal {
  color: var(--soft);
  font-size: 0.85rem;
  max-width: 70ch;
}

.copyright {
  margin-top: 1.4rem;
  font-weight: 700;
}

.legal {
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Interior pages */

.page-main {
  padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.prose {
  max-width: 42rem;
}

.prose h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0.2rem 0 0.8rem;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 2rem 0 0.5rem;
  max-width: none;
}

.prose p,
.prose li {
  font-size: 1.05rem;
}

.prose p + p {
  margin-top: 0.8rem;
}

.prose ul,
.prose ol {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a {
  font-weight: 800;
}

.updated {
  color: var(--soft);
  font-weight: 700;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  }

  .how-layout,
  .feature,
  .widget-layout,
  .guide,
  .you-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
    gap: 3.5rem;
  }

  .feature.reverse .shot {
    order: -1;
  }

  .you-layout .shot {
    order: -1;
  }

  .steps {
    gap: 1rem;
  }
}

@media (max-width: 420px) {
  .phone {
    width: min(100%, 250px);
  }

  .floater {
    font-size: 0.82rem;
    bottom: 12%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .script,
  .hero h1 {
    animation: rise 0.8s ease both;
  }

  .hero h1 { animation-delay: 0.06s; }

  .float {
    animation: floaty 7.5s ease-in-out infinite;
  }

  .floater {
    animation: floaty 6.2s ease-in-out infinite;
  }

  .spark,
  .art-spark {
    animation: twinkle 3.4s ease-in-out infinite;
  }

  .spark.two,
  .art-spark.b {
    animation-delay: 0.8s;
  }

  .sun .rays {
    animation: spin 36s linear infinite;
  }

  .sun .smile {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 1.6s 0.2s ease forwards;
  }

  .reacts button[aria-pressed="true"] {
    animation: pop 0.35s ease;
  }

  @media (hover: hover) {
    .step {
      transition: transform 0.25s ease;
    }

    .step:hover {
      transform: translateY(-4px);
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes pop {
  0% { transform: scale(0.92); }
  55% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
