/* Lovegotchi marketing site — design tokens (matched to lovegotchi-flutter AppColors) */
:root {
  /* Accent — controlled by Tweaks. Default = roseMid from Flutter theme. */
  --accent: #B74E63;
  --accent-soft: #EBC2C8;
  --accent-deep: #7F2439;

  /* Brand palette */
  --bg-1: #FDF6F4;   /* warmWhite */
  --bg-2: #FFECF2;
  --bg-3: #F5EEF8;

  --ink: #2A222C;    /* textPrimary */
  --ink-soft: #6F6371;
  --ink-muted: #9C919E;
  --ink-faint: #D7CCD2;

  --card: #FFFFFF;
  --card-shadow: 0 10px 30px -12px rgba(127, 36, 57, 0.16), 0 4px 12px -6px rgba(127, 36, 57, 0.08);
  --card-shadow-lg: 0 20px 50px -20px rgba(127, 36, 57, 0.22), 0 8px 24px -8px rgba(127, 36, 57, 0.10);

  /* Mochi gradient (set by tweaked stage on JS side) — defaults match adult mochi */
  --mochi-1: #FFD6A8;
  --mochi-2: #B74E63;
  --mochi-glow: #E7B98E;

  /* Pastel category tints (matched to Flutter app accents) */
  --tint-blush: #FCE4EA;
  --tint-blush-ink: #C44F69;   /* AppColors.love */
  --tint-cream: #FBE9C7;
  --tint-cream-ink: #D9A441;   /* AppColors.happy */
  --tint-sky: #DAE9F2;
  --tint-sky-ink: #8FB1C7;     /* AppColors.sky */
  --tint-mint: #EAF2ED;        /* AppColors.mintLight */
  --tint-mint-ink: #5E9D7F;    /* AppColors.energy */
  --tint-lavender: #F0EAF4;    /* AppColors.lavenderLight */
  --tint-lavender-ink: #8D789E;
  --tint-peach: #FFE2D3;
  --tint-peach-ink: #E7B98E;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  --font: 'Quicksand', 'Nunito', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Decorative dotted texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(184, 58, 82, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* Site shell */
.site {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 560px) {
  .site { padding: 0 18px; }
}

/* Reusable */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(184, 58, 82, 0.12);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 8px 22px -8px var(--accent), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease;
}
.btn-ghost:hover { transform: translateY(-2px); }

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}

.section-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
  margin-top: 14px;
}

/* Section spacing */
.section {
  padding: clamp(60px, 9vw, 120px) 0;
}
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

/* Floating hearts cursor */
.heart-trail {
  position: fixed;
  pointer-events: none;
  font-size: 14px;
  color: var(--accent);
  z-index: 9999;
  animation: heart-rise 1.2s ease-out forwards;
  user-select: none;
}
@keyframes heart-rise {
  0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(-50%, calc(-50% - 60px)) scale(1); opacity: 0; }
}

/* Confetti */
.confetti-piece {
  position: fixed;
  width: 8px; height: 12px;
  pointer-events: none;
  z-index: 9998;
  border-radius: 2px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Mochi animations */
@keyframes mochi-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes mochi-wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}
@keyframes mochi-bounce {
  0%   { transform: translateY(0) scale(1, 1); }
  30%  { transform: translateY(-30px) scale(1.05, 0.95); }
  60%  { transform: translateY(0) scale(0.95, 1.05); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes heart-float {
  0%   { opacity: 0; transform: translateY(6px) scale(0.6); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-26px) scale(1); }
}
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(0.7); }
}
@keyframes heart-pop {
  0%   { transform: translate(-50%, 0) scale(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(-50%, -120px) scale(1.2); opacity: 0; }
}

.mochi-bob { animation: mochi-bob 3.6s ease-in-out infinite; }
.mochi-wiggle { animation: mochi-wiggle 0.6s ease-in-out infinite; }
.mochi-bounce { animation: mochi-bounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Mobile */
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .btn-primary { padding: 14px 22px; font-size: 15px; }
  .btn-ghost { padding: 12px 18px; font-size: 14px; }
  .card { padding: 22px; border-radius: 22px; }
}
@media (max-width: 420px) {
  .section { padding: 44px 0; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

/* Hide heart trail on small touch devices (cursors don't really exist) */
@media (hover: none) and (pointer: coarse) {
  .heart-trail { display: none; }
}

/* ── Secondary pages (about / contact / help / terms) ───────────────── */
.priv-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; color: var(--ink-soft);
  margin-bottom: 28px;
  transition: color 0.15s ease, gap 0.15s ease;
}
.priv-back svg { transform: rotate(180deg); }
.priv-back:hover { color: var(--accent); gap: 11px; }

.priv__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; color: var(--accent); font-size: 15px;
  margin-top: 6px;
  transition: gap 0.15s ease;
}
.priv__link:hover { gap: 11px; }

.pg-hero {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 40px; align-items: center;
}
.pg-hero__title {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04; letter-spacing: -0.03em;
  margin-top: 8px;
}
.pg-hero__art {
  display: flex; align-items: center; justify-content: center;
}

.pg-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px; align-items: start;
}
.pg-card {
  background: var(--card);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}
.pg-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pg-card__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pg-card__title { font-size: 22px; letter-spacing: -0.02em; }
.pg-card__body { color: var(--ink-soft); font-size: 15.5px; line-height: 1.62; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pg-card__body p { text-wrap: pretty; }
.pg-card__body a { color: var(--accent); font-weight: 800; }
.pg-list { display: flex; flex-direction: column; gap: 10px; padding-left: 0; list-style: none; }
.pg-list li { position: relative; padding-left: 26px; }
.pg-list li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

.pg-bigmail {
  display: inline-block;
  font-size: clamp(18px, 2.4vw, 24px); font-weight: 900;
  color: var(--accent) !important;
  padding: 12px 18px; border-radius: 16px;
  background: var(--bg-1);
  transition: transform 0.15s ease, background 0.15s ease;
}
.pg-bigmail:hover { transform: translateY(-2px); background: var(--tint-blush); }

.pg-terms { display: flex; flex-direction: column; gap: 16px; }

.pg-help-cta {
  display: flex; align-items: center; gap: 20px;
  margin-top: 28px; padding: 24px 28px;
  background: linear-gradient(135deg, #FFFDF8, #FFF1EE);
  border: 2px solid var(--tint-peach);
  border-radius: 26px;
}

@media (max-width: 820px) {
  .pg-hero { grid-template-columns: 1fr; gap: 20px; justify-items: center; text-align: center; }
  .pg-hero__art { order: -1; max-width: 200px; }
  .priv-back { align-self: flex-start; }
  .section-sub { margin-inline: auto; }
  .pg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pg-card { padding: 24px 22px; border-radius: 22px; }
  .pg-help-cta { flex-direction: column; text-align: center; padding: 24px; }
}

/* ── Auth action handler (auth/action) ──────────────────────────────── */
.auth {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 20px 40px;
}
.auth__bg-sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.auth__floater {
  position: absolute;
  font-size: 22px;
  color: var(--accent);
  opacity: 0.4;
  animation: floater 4s ease-in-out infinite;
}
@keyframes floater {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-18px) rotate(6deg); }
}

.auth__brand { display: block; }
.auth__logo { height: 56px; width: auto; display: block; }

.auth__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: 32px;
  padding: 30px 32px 34px;
  box-shadow: var(--card-shadow-lg);
  border: 1px solid rgba(255,255,255,0.8);
  text-align: center;
}

.auth__mochi {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -8px;
  margin-bottom: 6px;
  height: 160px;
}
.auth__mochi-halo {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 133, 232, 0.22), transparent 64%);
  pointer-events: none;
}
.auth__badge {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(127, 36, 57, 0.25);
}
.auth__badge--blush { background: var(--tint-blush); color: var(--tint-blush-ink); }
.auth__badge--mint  { background: var(--tint-mint);  color: var(--tint-mint-ink);  }
.auth__badge--peach { background: var(--tint-peach); color: var(--tint-peach-ink); }

.auth__head { margin-top: 16px; }
.auth__title {
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 8px 0 0;
  text-wrap: balance;
}
.auth__sub {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: 12px;
  text-wrap: pretty;
}
.auth__sub strong { color: var(--ink); font-weight: 800; }

/* Form */
.auth__form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; text-align: left; }
.auth__field { display: flex; flex-direction: column; gap: 7px; }
.auth__label {
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted);
}
.auth__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-1);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.auth__input-wrap:focus-within {
  border-color: var(--accent-soft);
  background: var(--card);
}
.auth__input-wrap input {
  flex: 1;
  width: 100%;
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 15px 16px;
}
.auth__input-wrap input::placeholder { color: var(--ink-faint); font-weight: 600; }
.auth__toggle {
  flex-shrink: 0;
  margin-right: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(183, 78, 99, 0.08);
  transition: background 0.15s ease;
}
.auth__toggle:hover { background: rgba(183, 78, 99, 0.16); }

.auth__rule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}
.auth__rule.is-ok  { color: var(--tint-mint-ink); }
.auth__rule.is-bad { color: var(--tint-blush-ink); }

.auth__error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--tint-blush);
  color: var(--tint-blush-ink);
  font-size: 14px;
  font-weight: 700;
  text-wrap: pretty;
}

.auth__submit { width: 100%; }
.auth__submit:disabled { opacity: 0.65; cursor: default; transform: none; }
.auth__ghost { width: 100%; justify-content: center; }

.auth__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }

/* Spinner */
.auth__spinner {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 6px;
}
.auth__spinner span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  animation: auth-pulse 1.2s ease-in-out infinite;
}
.auth__spinner span:nth-child(2) { animation-delay: 0.18s; }
.auth__spinner span:nth-child(3) { animation-delay: 0.36s; }
@keyframes auth-pulse {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%      { transform: scale(1);   opacity: 1; }
}

.auth__footnote {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
}
.auth__footnote a { color: var(--accent); font-weight: 800; }

@media (max-width: 480px) {
  .auth__card { padding: 24px 22px 28px; border-radius: 26px; }
  .auth__logo { height: 48px; }
  .auth__mochi { height: 140px; }
}
