/* ============================================================
   Reanswer — shared site design system
   Used by index.html, privacy.html, terms.html.
   Colors / fonts / header / footer / buttons / background chrome
   come from here so every page looks like one product.
   ============================================================ */

/* Real Google Fonts (same faces as the design: Space Grotesk for
   headings, Inter for body text). Using the Google-hosted files
   instead of embedding font binaries keeps this file small and
   still gives pixel-identical type. */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* brand palette — same four accent colors used across the whole site */
  --c1: #1B6FF0; /* blue */
  --c2: #E06E95; /* pink/red */
  --c3: #F2B01E; /* yellow */
  --c4: #12A150; /* green */
  /* darker "text-safe" variants of each accent, mixed toward ink so text stays readable */
  --c1d: color-mix(in oklab, var(--c1) 58%, #04173A);
  --c2d: color-mix(in oklab, var(--c2) 62%, #3B0A22);
  --c3d: color-mix(in oklab, var(--c3) 52%, #241700);
  --c4d: color-mix(in oklab, var(--c4) 62%, #032013);
  --glow: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: #16181D;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--c1d); text-decoration: none; transition: color .3s ease; }
a:hover { color: #16181D; }
::selection { background: rgba(27,111,240,.18); color: #16181D; }
:focus-visible { outline: 2px solid #1B6FF0; outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }

.heading-font { font-family: 'Space Grotesk', sans-serif; }

/* ---------- background chrome (fine dot grid + soft color blobs + sakura petals) ---------- */

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(16,24,40,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,24,40,.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 18%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 18%, transparent 76%);
}
.bg-noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(rgba(16,24,40,.05) 1px, transparent 1px);
  background-size: 3px 3px;
}
[data-parallax] {
  position: fixed; inset: -15%; z-index: 0; pointer-events: none;
  opacity: var(--glow); transform: translate3d(0,0,0);
  transition: transform 1.4s cubic-bezier(.16,.84,.44,1); will-change: transform;
}
[data-parallax] div { position: absolute; border-radius: 50%; filter: blur(30px); }
.blob-1 { left: 0; top: -16%; width: 58vw; height: 58vw; background: radial-gradient(circle at 50% 50%, rgba(27,111,240,.20), rgba(27,111,240,0) 62%); animation: drift 26s ease-in-out infinite; }
.blob-2 { right: -8%; top: 2%; width: 50vw; height: 50vw; background: radial-gradient(circle at 50% 50%, rgba(232,120,150,.18), rgba(232,120,150,0) 62%); filter: blur(40px); animation: drift2 32s ease-in-out infinite; }
.blob-3 { left: 16%; top: 32%; width: 46vw; height: 40vw; background: radial-gradient(circle at 50% 50%, rgba(242,176,30,.18), rgba(242,176,30,0) 64%); filter: blur(46px); animation: drift2 38s ease-in-out infinite; }
.blob-4 { left: 26%; bottom: -22%; width: 54vw; height: 42vw; background: radial-gradient(circle at 50% 50%, rgba(18,161,80,.15), rgba(18,161,80,0) 65%); filter: blur(50px); animation: drift 34s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(3%,4%,0) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1.05); } 50% { transform: translate3d(-4%,-3%,0) scale(.95); } }

canvas[data-sakura] { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; display: block; }

[data-cursor] {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 280px; height: 280px; margin: -140px 0 0 -140px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(224,129,155,.16), rgba(224,129,155,0) 62%);
  transition: transform .5s cubic-bezier(.16,.84,.44,1), opacity .6s ease; will-change: transform;
}

.page { position: relative; z-index: 1; min-height: 100vh; background: transparent; }

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

header.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,.82); border-bottom: 1px solid #ECEFF5;
}
[data-hdr] {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #16181D; flex: 0 0 auto; }
.brand-badge {
  width: 32px; height: 32px; border-radius: 10px; background: #FFFFFF;
  border: 1px solid #EFE0E5; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 2px 6px -3px rgba(16,24,40,.26);
}
.brand-badge img { width: 30px; height: 30px; object-fit: contain; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
[data-hdr] nav {
  margin-left: auto; display: flex; gap: 26px; align-items: center;
  font-size: 14px; color: #555C6B; flex-wrap: wrap; justify-content: flex-end;
}
[data-hdr] nav a { color: #555C6B; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  padding: 9px 16px; border-radius: 11px; font-size: 14px; font-weight: 500; color: #fff;
  background: linear-gradient(100deg, var(--c1), var(--c1d)); background-size: 190% 100%; background-position: 0% 50%;
  box-shadow: 0 8px 20px -12px rgba(11,87,208,.8);
  transition: background-position .6s ease, transform .3s ease, box-shadow .3s ease;
}
.btn-primary:hover { background-position: 100% 50%; transform: scale(1.03); box-shadow: 0 12px 26px -12px rgba(11,87,208,.9); color: #fff; }
.btn-primary.large { padding: 15px 24px; border-radius: 14px; font-size: 16px; box-shadow: 0 14px 32px -16px rgba(11,87,208,.85); }
.btn-primary.large:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 40px -16px rgba(11,87,208,.95); }
.color-bar { height: 3px; display: grid; grid-template-columns: repeat(4,1fr); }
.color-bar span:nth-child(1) { background: var(--c1); }
.color-bar span:nth-child(2) { background: var(--c2); }
.color-bar span:nth-child(3) { background: var(--c3); }
.color-bar span:nth-child(4) { background: var(--c4); }

@media (max-width: 640px) {
  [data-hdr] { gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
  [data-hdr] nav { order: 3; width: 100%; margin-left: 0; justify-content: flex-start; gap: 18px; font-size: 13.5px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  [data-hdr] nav::-webkit-scrollbar { display: none; }
}

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

footer.site-footer { border-top: 1px solid #ECEFF5; padding: 34px 24px 44px; position: relative; z-index: 1; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-badge { width: 24px; height: 24px; border-radius: 8px; background: #FFFFFF; border: 1px solid #F1DCE3; display: grid; place-items: center; overflow: hidden; }
.footer-badge img { width: 22px; height: 22px; object-fit: contain; }
.footer-brand .name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15.5px; color: #16181D; }
.footer-brand .year { font-size: 13.5px; color: #676E82; }
footer.site-footer nav { display: flex; gap: 22px; font-size: 13.5px; color: #555C6B; flex-wrap: wrap; }
footer.site-footer nav a { color: #555C6B; }

/* ---------- generic content-card, reused on Privacy/Terms and on the landing page ---------- */

.card {
  position: relative; overflow: hidden; padding: 26px; border-radius: 20px;
  border: 1px solid #E4E7EF; background: #FFFFFF;
  box-shadow: 0 14px 30px -26px rgba(16,24,40,.4);
  transition: transform .4s cubic-bezier(.16,.84,.44,1), border-color .4s ease, box-shadow .4s ease;
}
.card:hover { transform: translateY(-4px); border-color: #C9D6EC; box-shadow: 0 26px 50px -30px rgba(16,24,40,.5); }
[data-glow-layer] { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; pointer-events: none; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #676E82; }

/* ---------- reveal-on-scroll (JS toggles opacity/transform via IntersectionObserver) ---------- */
[data-reveal] { }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
