/* ====================================================
   Solvaya Concept E — The Roast
   Hand-crafted personality styles
   ==================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Caveat:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Light mode */
  --color-bg: #FFFBF5;
  --color-surface: #FFF0E6;
  --color-surface-hover: #FFE4D4;
  --color-primary: #FF6B6B;
  --color-primary-hover: #FF5252;
  --color-secondary: #FFD93D;
  --color-success: #4ECDC4;
  --color-text: #2D1B35;
  --color-text-muted: #7A6A8A;
  --color-text-muted-2: #A898B8;
  --color-border: #E8D5D0;
  --color-border-light: #F0E5E0;
  --color-accent-soft: #FFE8E0;
  --color-highlight-yellow: rgba(255, 217, 61, 0.35);
  --color-highlight-pink: rgba(255, 107, 107, 0.2);
  --color-highlight-mint: rgba(78, 205, 196, 0.2);
  --color-nav-bg: rgba(255, 251, 245, 0.85);
  --color-card-bg: #FFFFFF;
  --color-sticky-note: #FFF8E1;
  --color-sticky-note-alt: #FFE8E0;
  --color-sticky-note-alt2: #E0F7F4;
  --color-speech-bubble: #FFFFFF;
  --color-cta-bg: #2D1B35;
  --color-cta-text: #F8F5F0;
  --color-input-bg: #FFFFFF;
  --color-input-border: #E0D5D0;
  --color-input-focus: #FF6B6B;
  --color-success-bg: #E0F7F4;
  --color-star: #FFD93D;
  --color-roast-border: #E0D0C8;
  --shadow-sm: 0 2px 8px rgba(45, 27, 53, 0.08);
  --shadow-md: 0 4px 16px rgba(45, 27, 53, 0.1);
  --shadow-lg: 0 8px 32px rgba(45, 27, 53, 0.12);
  --shadow-xl: 0 16px 48px rgba(45, 27, 53, 0.15);
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-hand: 'Caveat', cursive;
}

.dark {
  --color-bg: #1A0E1F;
  --color-surface: #2D1B35;
  --color-surface-hover: #3A2545;
  --color-primary: #FF8A65;
  --color-primary-hover: #FF7043;
  --color-secondary: #FFD93D;
  --color-success: #4ECDC4;
  --color-text: #F8F5F0;
  --color-text-muted: #B8B0C8;
  --color-text-muted-2: #8A7A9A;
  --color-border: #3A2545;
  --color-border-light: #2D1B35;
  --color-accent-soft: #3A2545;
  --color-highlight-yellow: rgba(255, 217, 61, 0.25);
  --color-highlight-pink: rgba(255, 138, 101, 0.25);
  --color-highlight-mint: rgba(78, 205, 196, 0.25);
  --color-nav-bg: rgba(26, 14, 31, 0.9);
  --color-card-bg: #2D1B35;
  --color-sticky-note: #3A2A25;
  --color-sticky-note-alt: #3A2535;
  --color-sticky-note-alt2: #253A35;
  --color-speech-bubble: #2D1B35;
  --color-cta-bg: #FF6B6B;
  --color-cta-text: #1A0E1F;
  --color-input-bg: #2D1B35;
  --color-input-border: #3A2545;
  --color-input-focus: #FF8A65;
  --color-success-bg: #1A2D28;
  --color-star: #FFD93D;
  --color-roast-border: #3A2545;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* --- Alpine.js x-cloak --- */
[x-cloak] { display: none !important; }

/* --- Base Styles --- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
  background: var(--color-highlight-yellow);
  color: var(--color-text);
}

/* --- Typography --- */
.font-display { font-family: var(--font-display); }
.font-hand { font-family: var(--font-hand); }

/* Highlighter Effects */
.highlight-yellow {
  background: linear-gradient(180deg, transparent 60%, var(--color-highlight-yellow) 60%);
  display: inline;
  padding: 0 0.1em;
}

.highlight-pink {
  background: linear-gradient(180deg, transparent 60%, var(--color-highlight-pink) 60%);
  display: inline;
  padding: 0 0.1em;
}

.highlight-mint {
  background: linear-gradient(180deg, transparent 60%, var(--color-highlight-mint) 60%);
  display: inline;
  padding: 0 0.1em;
}

.underline-wavy {
  text-decoration: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'%3E%3Cpath d='M0,4 Q12.5,0 25,4 T50,4 T75,4 T100,4' stroke='%23FF6B6B' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 50px 8px;
  padding-bottom: 4px;
}

.underline-dotted {
  text-decoration: none;
  border-bottom: 3px dotted var(--color-primary);
  padding-bottom: 2px;
}

/* --- Section Dividers (Torn Paper) --- */
.torn-divider-top {
  position: relative;
  margin-top: -3rem;
}
.torn-divider-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--color-bg);
  clip-path: polygon(
    0% 0%, 3% 40%, 7% 15%, 12% 50%, 16% 20%, 21% 55%,
    25% 25%, 30% 60%, 34% 30%, 39% 65%, 43% 35%, 48% 70%,
    52% 40%, 57% 75%, 61% 45%, 66% 80%, 70% 50%, 75% 85%,
    79% 55%, 84% 90%, 88% 60%, 93% 95%, 97% 65%, 100% 100%,
    100% 0%
  );
  z-index: 2;
}

.torn-divider-bottom {
  position: relative;
}
.torn-divider-bottom::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--color-bg);
  clip-path: polygon(
    0% 100%, 3% 60%, 7% 85%, 12% 50%, 16% 80%, 21% 45%,
    25% 75%, 30% 40%, 34% 70%, 39% 35%, 43% 65%, 48% 30%,
    52% 60%, 57% 25%, 61% 55%, 66% 20%, 70% 50%, 75% 15%,
    79% 45%, 84% 10%, 88% 40%, 93% 5%, 97% 35%, 100% 0%,
    100% 100%
  );
  z-index: 2;
}

/* --- Hand-drawn Border Classes --- */
.border-hand {
  border: 3px solid var(--color-border);
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}

.border-hand-sm {
  border: 2px solid var(--color-border);
  border-radius: 225px 15px 235px 15px/10px 215px 10px 245px;
}

.border-hand-lg {
  border: 4px solid var(--color-border);
  border-radius: 30px 255px 15px 245px/250px 20px 255px 20px;
}

.border-hand-dashed {
  border: 2px dashed var(--color-border);
  border-radius: 245px 25px 235px 25px/25px 235px 25px 245px;
}

/* --- Speech Bubbles --- */
.speech-bubble {
  position: relative;
  background: var(--color-speech-bubble);
  border: 2px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 30px;
  border-width: 16px 16px 0 0;
  border-style: solid;
  border-color: var(--color-speech-bubble) transparent transparent transparent;
}
.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -19px;
  left: 28px;
  border-width: 18px 18px 0 0;
  border-style: solid;
  border-color: var(--color-border) transparent transparent transparent;
  z-index: -1;
}

.speech-bubble-right::after {
  left: auto;
  right: 30px;
  border-width: 16px 0 0 16px;
}
.speech-bubble-right::before {
  left: auto;
  right: 28px;
  border-width: 18px 0 0 18px;
}

/* --- Sticky Notes --- */
.sticky-note {
  background: var(--color-sticky-note);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,0,0,0.03);
  position: relative;
  transform: rotate(var(--rot, -0.5deg));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-note:hover {
  transform: rotate(var(--rot, -0.5deg)) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.03);
}

.sticky-note::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  border-radius: 50%;
}

.sticky-note-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
}

.sticky-note-pin::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

/* --- Roast Cards --- */
.roast-card {
  position: sticky;
  top: 100px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  transform-origin: center;
}

.roast-card:nth-child(odd) {
  transform: rotate(-0.8deg);
}

.roast-card:nth-child(even) {
  transform: rotate(0.6deg);
}

.roast-card:hover {
  transform: rotate(0deg) scale(1.01);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: white;
  background: var(--color-primary);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: scale(1.04) translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text);
  background: transparent;
  border: 2px solid var(--color-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.02) translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--color-text);
}

/* --- Navigation --- */
.nav-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-border-light);
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-active {
  color: var(--color-text);
}

.nav-link-active::after {
  width: 100%;
}

/* --- Dark Mode Toggle --- */
.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  border-radius: 100px;
  background: var(--color-surface);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: rotate(15deg);
}

/* --- Animations --- */
@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.8) translateY(20px); }
  60% { opacity: 1; transform: scale(1.03) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(255, 107, 107, 0); }
}

@keyframes draw-line {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes highlight-pulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.animate-bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-wiggle {
  animation: wiggle 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-pop {
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- Scroll Animation Classes --- */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Form Styles --- */
.form-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-input-bg);
  border: 2px solid var(--color-input-border);
  border-radius: 12px;
  transition: all 0.25s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--color-text-muted-2);
}

.form-input:focus {
  border-color: var(--color-input-focus);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.form-input.error {
  border-color: var(--color-primary);
  animation: shake 0.4s ease;
}

.form-select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-input-bg);
  border: 2px solid var(--color-input-border);
  border-radius: 12px;
  transition: all 0.25s ease;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A6A8A' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select:focus {
  border-color: var(--color-input-focus);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.form-textarea {
  width: 100%;
  min-height: 140px;
  padding: 0.875rem 1.125rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-input-bg);
  border: 2px solid var(--color-input-border);
  border-radius: 12px;
  transition: all 0.25s ease;
  outline: none;
  resize: vertical;
}

.form-textarea::placeholder {
  color: var(--color-text-muted-2);
}

.form-textarea:focus {
  border-color: var(--color-input-focus);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* --- Accordion --- */
.accordion-item {
  border: 2px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
  background: var(--color-card-bg);
}

.accordion-item:hover,
.accordion-item.is-open {
  border-color: var(--color-primary);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.accordion-trigger:hover {
  color: var(--color-primary);
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.accordion-item.is-open .accordion-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.is-open .accordion-content {
  max-height: 600px;
}

.accordion-content-inner {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border-light);
  padding-top: 1.25rem;
}

/* --- Pricing Toggle --- */
.pricing-toggle-bg {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--color-border);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pricing-toggle-bg.is-annual {
  background: var(--color-primary);
}

.pricing-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pricing-toggle-bg.is-annual .pricing-toggle-knob {
  transform: translateX(22px);
}

/* --- Testimonial Chat Bubbles --- */
.chat-bubble {
  position: relative;
  padding: 1.5rem;
  background: var(--color-speech-bubble);
  border-radius: 20px;
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.chat-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 20px;
  height: 20px;
  background: var(--color-speech-bubble);
  border-right: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  transform: rotate(45deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.chat-bubble-right::before {
  left: auto;
  right: 30px;
}

/* --- Bar Chart Styles --- */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  height: 200px;
  padding: 1rem;
}

.bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  max-width: 80px;
  border-radius: 8px 8px 0 0;
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 8px;
}

.bar-airbnb {
  background: linear-gradient(180deg, #FF5A5F, #FF385C);
  height: 0;
}

.bar-you {
  background: linear-gradient(180deg, #4ECDC4, #44B5AD);
  height: 0;
}

.bar-chart.animate .bar-airbnb {
  height: 90%;
}

.bar-chart.animate .bar-you {
  height: 12%;
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-bg);
  border-left: 1px solid var(--color-border-light);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-panel.is-open {
  transform: translateX(0);
}

/* --- SVG Doodle Backgrounds --- */
.doodle-dots {
  background-image: radial-gradient(circle, var(--color-text-muted-2) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* --- Unsplash Overlay Styles --- */
.img-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 217, 61, 0.1));
  z-index: 1;
}

.img-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-overlay:hover img {
  transform: scale(1.05);
}

/* --- Price Tag Doodle --- */
.price-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 1.5rem;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 4px 100px 100px 4px;
  box-shadow: var(--shadow-md);
}

.price-tag::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-bg);
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

/* --- Rating Stars (CSS-only) --- */
.star {
  display: inline-block;
  width: 20px;
  height: 20px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: var(--color-star);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted-2);
}

/* --- Tag/Pill --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 100px;
  background: var(--color-accent-soft);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-light);
}

.pill-primary {
  background: rgba(255, 107, 107, 0.1);
  color: var(--color-primary);
  border-color: rgba(255, 107, 107, 0.2);
}

.pill-success {
  background: rgba(78, 205, 196, 0.1);
  color: var(--color-success);
  border-color: rgba(78, 205, 196, 0.2);
}

.pill-warning {
  background: rgba(255, 217, 61, 0.1);
  color: #C8A800;
  border-color: rgba(255, 217, 61, 0.2);
}

.dark .pill-warning {
  color: #FFD93D;
}

/* --- Countup numbers --- */
.countup-number {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

/* --- Footer --- */
.footer-link {
  color: var(--color-text-muted-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-text);
}

/* --- Transition helpers --- */
.transition-theme {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- Gradient text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Container max-width helper --- */
.max-w-readable {
  max-width: 65ch;
}

/* --- Success / Error states --- */
.submit-success {
  text-align: center;
  padding: 2rem;
  border: 2px dashed var(--color-success);
  border-radius: 16px;
  background: var(--color-success-bg);
}

/* --- Section background variants --- */
.section-default {
  background: var(--color-bg);
}

.section-surface {
  background: var(--color-surface);
}

.section-dark {
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
}

/* --- Cursor fun --- */
.cursor-doodle {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23FF6B6B' stroke-width='2' opacity='0.5'/%3E%3C/svg%3E"), auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .roast-card {
    top: 80px;
  }

  .bar-chart {
    height: 150px;
  }

  .accordion-trigger {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .accordion-content-inner {
    padding: 0 1.25rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .roast-card {
    top: 70px;
  }
}

/* --- Print --- */
@media print {
  .no-print { display: none !important; }
  body { background: white !important; color: black !important; }
}
