/* Hire a Creative Strategist — shared design system (catalogue direction 19, retro sticker collage) */

/* Brand font swap — drop the file in assets/fonts/ and uncomment.
@font-face {
  font-family: 'Rindu Hujan';
  src: url('/assets/fonts/RinduHujan.woff2') format('woff2');
  font-display: swap;
} */

html { scroll-behavior: smooth; }
body { background-color: #FFF4E6; color: #0D2340; }
section[id] { scroll-margin-top: 24px; }

/* The "cutting mat": faint sky grid over cream paper */
.grid-paper {
  background-color: #FFF4E6;
  background-image:
    repeating-linear-gradient(0deg, rgba(183,214,239,.55) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(183,214,239,.55) 0 1px, transparent 1px 40px);
}
.grid-baby {
  background-color: #E6F2FB;
  background-image:
    repeating-linear-gradient(0deg, rgba(46,109,223,.13) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(46,109,223,.13) 0 1px, transparent 1px 40px);
}
.grid-navy {
  background-color: #0D2340;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,244,230,.07) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,244,230,.07) 0 1px, transparent 1px 40px);
}

.display { font-family: 'Lilita One', 'Rindu Hujan', system-ui, sans-serif; text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
h1.display, h2.display, h3.display { text-wrap: balance; }

/* Stickers: hard border + hard offset shadow, no blur */
.sticker { border: 3px solid #0D2340; border-radius: 18px; box-shadow: 6px 6px 0 #0D2340; }
.sticker-sm { border: 3px solid #0D2340; border-radius: 14px; box-shadow: 4px 4px 0 #0D2340; }

.btn { display: inline-flex; align-items: center; gap: .5rem; border: 3px solid #0D2340; border-radius: 999px; padding: .9rem 1.6rem; font-weight: 600; font-size: 15px; box-shadow: 4px 4px 0 #0D2340; transition: transform .12s ease, box-shadow .12s ease; white-space: nowrap; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #0D2340; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #0D2340; }
.btn-primary { background: #2E6DDF; color: #FFF4E6; }
.btn-secondary { background: #FFF4E6; color: #0D2340; }

/* Nav pill: page links grouped inside one cornflower pill, CTA as a cream pill at the end */
.navpill { align-items: center; gap: .25rem; padding: 6px; background: #2E6DDF; border: 3px solid #0D2340; border-radius: 999px; box-shadow: 4px 4px 0 #0D2340; }
.navpill > a { color: #FFF4E6; font-size: 14px; font-weight: 600; padding: .55rem .95rem; border-radius: 999px; white-space: nowrap; transition: opacity .12s ease; }
.navpill > a:hover { opacity: .75; }
.navpill > .navpill-cta { background: #FFF4E6; color: #0D2340; margin-left: .25rem; }
.navpill > .navpill-cta:hover { opacity: 1; background: #ffffff; }

/* Chips that sit inside the headline */
.chip { display: inline-block; vertical-align: middle; border: 2.5px solid #0D2340; border-radius: 999px; padding: .1em .45em; font-family: Poppins, system-ui, sans-serif; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .34em; line-height: 1.2; box-shadow: 3px 3px 0 #0D2340; margin: 0 .08em; }
.chip-sky { background: #B7D6EF; color: #0D2340; }
.chip-blue { background: #2E6DDF; color: #FFF4E6; }

/* Statement: one big sentence in the body face, mascot tiles sat inline between the words (breef-style) */
.statement { font-family: Poppins, system-ui, sans-serif; font-weight: 500; font-size: clamp(30px, 5.2vw, 66px); line-height: 1.22; letter-spacing: -0.015em; text-wrap: balance; text-align: center; max-width: 18em; margin-inline: auto; }
.statement .display { font-size: 1.04em; letter-spacing: .005em; }
.tile { display: inline-block; vertical-align: middle; width: 1.55em; height: 1.55em; object-fit: cover; border: 2.5px solid #0D2340; border-radius: .28em; box-shadow: 3px 3px 0 #0D2340; margin: 0 .12em; position: relative; top: -.06em; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.caption { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* Retro browser window */
.window { border: 3px solid #0D2340; border-radius: 16px; overflow: hidden; box-shadow: 6px 6px 0 #0D2340; background: #FFF4E6; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 3px solid #0D2340; background: #E6F2FB; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #0D2340; }

/* Number badge for steps */
.num { width: 44px; height: 44px; border: 3px solid #0D2340; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: 'Lilita One', sans-serif; font-size: 22px; background: #FFF4E6; box-shadow: 3px 3px 0 #0D2340; }

/* Starburst seal for the guarantee */
.seal { clip-path: polygon(50% 0%, 61% 10%, 75% 5%, 80% 19%, 95% 22%, 92% 37%, 100% 50%, 92% 63%, 95% 78%, 80% 81%, 75% 95%, 61% 90%, 50% 100%, 39% 90%, 25% 95%, 20% 81%, 5% 78%, 8% 63%, 0% 50%, 8% 37%, 5% 22%, 20% 19%, 25% 5%, 39% 10%); }

details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary .plus { transform: rotate(45deg); }
.plus { transition: transform .15s ease; }

input, select, textarea { width: 100%; background: #FFF4E6; border: 2.5px solid #0D2340; border-radius: 12px; padding: .8rem 1rem; font-size: 15px; color: #0D2340; outline: none; }
input:focus, select:focus, textarea:focus { box-shadow: 3px 3px 0 #2E6DDF; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: .4rem; }

/* ---------- Motion ----------
   Everything below is gated on prefers-reduced-motion: no-preference.
   Reveals use the `translate` / `scale` longhands so they never fight Tailwind's rotate-* (which owns `transform`). */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal: elements settle into place as they enter the viewport; --d staggers siblings */
  [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  [data-reveal].in { opacity: 1; translate: 0 0; }
  /* Stickers get "pressed down": start slightly enlarged, settle flat */
  [data-reveal].sticker, [data-reveal].sticker-sm, [data-reveal].window { scale: 1.04; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1), scale .7s cubic-bezier(.2,.7,.2,1); }
  [data-reveal].sticker.in, [data-reveal].sticker-sm.in, [data-reveal].window.in { scale: 1; }

  /* Hero entrance on load */
  .hero-in { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
  .chip { animation: slap .55s cubic-bezier(.34,1.56,.64,1) both; animation-delay: var(--d, 0ms); }
  @keyframes fadeUp { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
  @keyframes slap { from { opacity: 0; scale: .55; } to { opacity: 1; scale: 1; } }

  /* Marquee ticker */
  .marquee-track { animation: marquee 32s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { from { translate: 0 0; } to { translate: -50% 0; } }

  /* Hover: statement tiles straighten and grow */
  .tile { transition: rotate .25s cubic-bezier(.2,.7,.2,1), scale .25s cubic-bezier(.2,.7,.2,1); }
  .tile:hover { rotate: 0deg; scale: 1.12; z-index: 1; }

  /* The puzzled head slowly "thinks" */
  .think { animation: think 6s ease-in-out infinite; }
  @keyframes think { 0%,100% { translate: 0 0; rotate: 6deg; } 50% { translate: 0 -8px; rotate: 3deg; } }

  /* FAQ answers fade in when opened */
  details[open] > p { animation: fadeUp .35s ease both; }
}

.think { rotate: 6deg; }

/* Hero floaters: mascot tiles scattered in the hero margins, each with a file-name caption.
   Positioned as % of the hero so they scale with it; only shown at lg+ where there's margin to live in. */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floater { position: absolute; display: none; flex-direction: column; align-items: center; gap: .5rem; pointer-events: auto; rotate: var(--r, 0deg); transition: rotate .25s cubic-bezier(.2,.7,.2,1), scale .25s cubic-bezier(.2,.7,.2,1); }
.floater img { width: var(--s, 96px); height: var(--s, 96px); object-fit: cover; border: 3px solid #0D2340; border-radius: 16px; box-shadow: 5px 5px 0 #0D2340; display: block; }
.floater:hover { rotate: 0deg; scale: 1.1; z-index: 2; }
@media (min-width: 1024px) { .floater { display: flex; } .floater.inner { display: none; } }
@media (min-width: 1280px) { .floater.inner { display: flex; } }
@media (prefers-reduced-motion: no-preference) {
  .floater { animation: floatIn .8s cubic-bezier(.34,1.56,.64,1) both, drift var(--dur, 6s) ease-in-out infinite; animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + .8s); }
  @keyframes floatIn { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
  @keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
}

/* Ad cards: a polaroid-style sticker with the ad, a caption bar, and a metric sticker slapped on the corner */
.adcard { position: relative; background: #FFF4E6; border: 3px solid #0D2340; border-radius: 18px; box-shadow: 6px 6px 0 #0D2340; }
.adcard-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 15px 15px 0 0; background: #0D2340; }
.adcard-media img, .adcard-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.adcard-foot { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-top: 3px solid #0D2340; }
.metric { position: absolute; top: -14px; right: -12px; display: inline-block; background: #F2B233; color: #0D2340; border: 3px solid #0D2340; border-radius: 999px; padding: .45rem .9rem; font-size: 13px; font-weight: 600; box-shadow: 3px 3px 0 #0D2340; white-space: nowrap; }
.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; background: #FFF4E6; color: #0D2340; border: 3px solid #0D2340; box-shadow: 4px 4px 0 #0D2340; display: grid; place-items: center; cursor: pointer; transition: translate .12s ease, box-shadow .12s ease; }
.play svg { width: 28px; height: 28px; margin-left: 3px; }
.adcard-media[data-video] { cursor: pointer; }
.adcard-media[data-video]:hover .play { translate: calc(-50% + 2px) calc(-50% + 2px); box-shadow: 2px 2px 0 #0D2340; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee-track > span { display: inline-flex; align-items: center; gap: 1.25rem; padding-right: 1.25rem; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Legal pages (/privacy, /terms): long-form prose */
.legal .legal-updated { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .65; margin-bottom: 28px; }
.legal h2 { font-family: 'Lilita One', 'Rindu Hujan', system-ui, sans-serif; text-transform: uppercase; font-size: 28px; line-height: 1.05; margin: 52px 0 14px; }
.legal h3 { font-weight: 600; font-size: 17px; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal p { margin: 0 0 16px; }
.legal ul { list-style: disc; margin: 0 0 20px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: #2E6DDF; }
.legal a { color: #2E6DDF; text-decoration: underline; text-underline-offset: 3px; }
.legal strong { font-weight: 600; }
@media (max-width: 760px) { .legal h2 { font-size: 24px; } }
