/* Jingle Jotter marketing site — brand foundation.
   Palette and whimsy match the app (app/globals.css); light cosy theme only,
   committed deliberately. Fonts: Fredoka (headings), Nunito (body),
   Shantell Sans (festive display — wordmark + hero only). */

:root {
  --cream: #faf3e4;
  --tag-cream: #f5e9ce;
  --paper: #fffdf7;
  --berry: #d9382e;
  --berry-deep: #b02a22;
  --pine: #1f6b45;
  --pine-deep: #14532d;
  --amber: #e9a63c;
  --amber-ink: #8a5c10; /* amber dark enough for text on cream */
  --cocoa: #4a3728;
  --cocoa-soft: #8a715c;
  --line: #eadfc8;
  --radius: 1.25rem;
  --radius-squircle: 1.75rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif;
  font-weight: 600;
  color: var(--pine-deep);
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--pine); }

.festive {
  font-family: "Shantell Sans", "Fredoka", cursive;
  font-weight: 700;
}

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.section--tight { padding: 2.5rem 0; }

/* ---- Buttons: one primary, one secondary, one quiet ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--berry); color: #fff; }
.btn-primary:hover { background: var(--berry-deep); }
.btn-secondary { border-color: var(--pine); color: var(--pine-deep); background: transparent; }
.btn-secondary:hover { background: rgba(31, 107, 69, 0.08); }
.btn-ghost { color: var(--pine-deep); background: transparent; padding: 0.7rem 1rem; }
.btn-ghost:hover { background: rgba(31, 107, 69, 0.08); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; border-radius: 4px; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--pine-deep);
  font-size: 1.25rem;
  margin-right: auto;
}
.logo-mark { display: block; border-radius: 16px; }
.snowman { display: block; height: auto; }
.footer-scene { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.brand-lockup .word-jingle { color: var(--berry); }
.brand-lockup .word-jotter { color: var(--pine-deep); }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--cocoa);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--tag-cream); color: var(--pine-deep); }
@media (max-width: 700px) {
  .site-nav a:not(.btn) { display: none; } /* mockup: collapse to CTA only on small screens */
}

/* ---- Cards ---- */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(74, 55, 40, 0.08);
  padding: 1.5rem;
}
.gift-tag-shape {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  border-top-left-radius: 0;
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%, 0 24px);
}

/* ---- Candy-stripe progress (matches app) ---- */
.progress-track {
  background: var(--tag-cream);
  border-radius: 999px;
  height: 0.6rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--pine);
  position: relative;
}
.progress-fill.is-over { background: var(--berry); }
.candy-stripe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.18) 0,
    rgba(255, 255, 255, 0.18) 3px,
    transparent 3px,
    transparent 6px
  );
}
.candy-stripe { position: relative; }

/* ---- FAQ ---- */
.faq details {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 1px 3px rgba(74, 55, 40, 0.07);
}
.faq summary {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--pine-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--berry); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.8rem 0 0.2rem; }

/* ---- Footer ---- */
.site-footer { margin-top: 3rem; }
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 1.2rem 1rem 0.4rem;
  font-size: 0.9rem;
}
.site-footer .footer-links a { color: var(--cocoa-soft); text-decoration: none; }
.site-footer .footer-links a:hover { color: var(--pine-deep); text-decoration: underline; }
.site-footer .footer-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--cocoa-soft);
  padding-bottom: 0.6rem;
}
.rooftops-holder { line-height: 0; margin-bottom: -2px; }
.rooftops-holder svg { display: block; width: 100%; height: auto; }

/* ---- Whimsy plumbing (classes used by the rendered app SVGs) ---- */
.whimsy-decor { width: 100%; }
.whimsy-decor svg, svg.whimsy-decor { display: block; width: 100%; height: auto; }
.block { display: block; }
.h-auto { height: auto; }
.w-full { width: 100%; }
.-mb-6 { margin-bottom: -1.5rem; }
@media (min-width: 768px) { .md\:-mb-8 { margin-bottom: -2rem; } }

@keyframes twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}
.twinkle { animation: twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bulb-twinkle {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.bulb-twinkle { animation: bulb-twinkle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .twinkle, .bulb-twinkle { animation: none; }
}

/* ---- Guide article styling ---- */
.article { max-width: 44rem; }
.article h2 { margin-top: 2.4rem; font-size: 1.5rem; }
.article h3 { margin-top: 1.8rem; }
.article ul, .article ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.article li { margin-bottom: 0.4rem; }
.article li::marker { color: var(--berry); }
.eyebrow {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry);
  display: block;
  margin-bottom: 0.5rem;
}
