:root {
  --ts-cream:  #F7F3EE;
  --ts-yellow: #F1BF41;
  --ts-dark:   #1A1714;
  --ts-brown:  #6B5E52;
  --ts-muted:  #9A8F87;
  --ts-border: #E2D9D0;

  --google:    #4285F4;
  --yelp:      #D32323;
  --instagram: #E1306C;
  --facebook:  #1877F2;
  --btn-text:  #FFFFFF;
}

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

html, body {
  height: 100%;
}

/* ── Page ─────────────────────────────────────────────────── */

body {
  font-family: 'Jost', sans-serif;
  /* Warm glow from center — gives depth without being generic */
  background: radial-gradient(ellipse at 50% 36%, #FDFAF6 0%, var(--ts-cream) 68%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 76px;
  animation: page-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Brand ────────────────────────────────────────────────── */

.brand-logo {
  width: 148px;
  height: auto;
  display: block;
  margin-bottom: 30px;
}

.divider {
  width: 28px;
  height: 3px;
  background: var(--ts-yellow);
  border-radius: 2px;
  margin-bottom: 18px;
}

/* Italic sentence-case — intentionally NOT all-caps/tracked */
.cta-label {
  font-size: 13.5px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--ts-brown);
  margin-bottom: 40px;
}

/* ── Button container ─────────────────────────────────────── */

#btn-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(296px, calc(100vw - 48px));
}

/* ── Buttons ──────────────────────────────────────────────── */

.review-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  color: var(--btn-text);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  opacity: 0;
  /* Spring easing makes the lift feel physical, not CSS-kit */
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 200ms ease,
              filter 200ms ease;
}

/* Colored shadows — each button feels grounded in its brand */
.review-btn--google {
  background: var(--google);
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.36);
}
.review-btn--yelp {
  background: var(--yelp);
  box-shadow: 0 4px 14px rgba(211, 35, 35, 0.36);
}
.review-btn--instagram {
  background: var(--instagram);
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.36);
}
.review-btn--facebook {
  background: var(--facebook);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.36);
}

/* ── Hover ────────────────────────────────────────────────── */

.review-btn:hover {
  transform: translateY(-2px) scale(1.013);
  filter: brightness(1.08);
}
.review-btn--google:hover    { box-shadow: 0 8px 24px rgba(66, 133, 244, 0.48); }
.review-btn--yelp:hover      { box-shadow: 0 8px 24px rgba(211, 35, 35, 0.48); }
.review-btn--instagram:hover { box-shadow: 0 8px 24px rgba(225, 48, 108, 0.48); }
.review-btn--facebook:hover  { box-shadow: 0 8px 24px rgba(24, 119, 242, 0.48); }

/* ── Active / press ───────────────────────────────────────── */

.review-btn:active {
  transform: translateY(1px) scale(0.988);
  filter: brightness(0.94);
  transition-duration: 55ms;
}
.review-btn--google:active    { box-shadow: 0 1px 6px rgba(66, 133, 244, 0.28); }
.review-btn--yelp:active      { box-shadow: 0 1px 6px rgba(211, 35, 35, 0.28); }
.review-btn--instagram:active { box-shadow: 0 1px 6px rgba(225, 48, 108, 0.28); }
.review-btn--facebook:active  { box-shadow: 0 1px 6px rgba(24, 119, 242, 0.28); }

/* ── Focus (keyboard nav) ─────────────────────────────────── */

.review-btn:focus-visible {
  outline: 2.5px solid var(--ts-yellow);
  outline-offset: 3px;
}

/* ── Entrance animation ───────────────────────────────────── */

@keyframes btn-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.review-btn.animate {
  animation: btn-in 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.review-btn.animate:hover {
  animation: none;
  opacity: 1;
  transform: translateY(-2px) scale(1.013);
  filter: brightness(1.08);
}

.review-btn.animate:active {
  transform: translateY(1px) scale(0.988);
  filter: brightness(0.94);
}

/* ── Loading ───────────────────────────────────────────────── */

.loading {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
}

.loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ts-yellow);
  animation: dot-pulse 1.1s ease-in-out infinite;
}

.loading span:nth-child(2) { animation-delay: 0.16s; }
.loading span:nth-child(3) { animation-delay: 0.32s; }

@keyframes dot-pulse {
  0%, 70%, 100% { transform: scale(0.65); opacity: 0.35; }
  35%           { transform: scale(1);    opacity: 1;    }
}

/* ── Error ────────────────────────────────────────────────── */

.error-text {
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.03em;
  color: var(--ts-muted);
  text-align: center;
}

/* ── Mobile ───────────────────────────────────────────────── */

@media (max-width: 390px) {
  .brand-logo    { width: 132px; }
  main           { padding: 44px 20px 56px; }
  .cta-label     { font-size: 12.5px; margin-bottom: 34px; }
  .review-btn    { height: 50px; font-size: 13px; }
  #btn-container { gap: 9px; }
}
