/* ==========================================================================
   APPLES AND BANANAS — SOFTWARE STUDIO DESIGN SYSTEM
   Modern, Warm, Human-Centered, Crisp & Ultra-Readable
   ========================================================================== */

:root {
  --bg-page: #fbfbfd;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f5f5f7;
  --text-main: #1d1d1f;
  --text-muted: #6e6e73;
  --text-body: #333336;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);
  --accent-apple: #e11d48;
  --accent-banana: #f59e0b;
  --accent-emerald: #10b981;
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html.dark {
  --bg-page: #090d16;
  --bg-surface: #111827;
  --bg-surface-alt: #1a2234;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-body: #d1d5db;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
}

/* Base HTML & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-body);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Reset buttons, inputs, links, media */
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, picture, video {
  max-width: 100%;
  display: block;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Containers */
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Display & Flexbox */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.shrink-0 { flex-shrink: 0; }

/* Grid Layouts */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Gaps */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* Padding */
.p-1 { padding: 0.25rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }

.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }

.pl-8 { padding-left: 2rem; }
.pr-1 { padding-right: 0.25rem; }

/* Margin & Spacing */
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem; }
.space-y-16 > :not([hidden]) ~ :not([hidden]) { margin-top: 4rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.ml-2 { margin-left: 0.5rem; }

/* Positioning & Sizing */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-2\.5 { top: 0.625rem; }
.top-3 { top: 0.75rem; }
.-top-10 { top: -2.5rem; }
.left-0 { left: 0; }
.left-2\.5 { left: 0.625rem; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.left-1\/2 { left: 50%; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.right-5 { right: 1.25rem; }
.bottom-0 { bottom: 0; }
.bottom-2 { bottom: 0.5rem; }
.bottom-3 { bottom: 0.75rem; }
.bottom-5 { bottom: 1.25rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.-translate-x-1\/2 { transform: translateX(-50%); }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1\.5 { width: 0.375rem; }
.w-2 { width: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.w-3 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }

.min-h-\[190px\] { min-height: 190px; }
.max-h-36 { max-height: 9rem; }
.max-h-48 { max-height: 12rem; }
.max-h-\[80vh\] { max-height: 80vh; }
.max-h-\[90vh\] { max-height: 90vh; }

.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[16\/6\] { aspect-ratio: 16 / 6; }
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-top { object-position: top; }
.object-left-top { object-position: left top; }

/* Backgrounds & Text Colors */
.bg-studio-page { background-color: var(--bg-page); }
.bg-studio-card { background-color: var(--bg-surface); }
.bg-studio-alt { background-color: var(--bg-surface-alt); }
.bg-studio-main { background-color: var(--text-main); }
.text-studio-main { color: var(--text-main); }
.text-studio-muted { color: var(--text-muted); }
.text-studio-body { color: var(--text-body); }
.text-studio-page { color: var(--bg-page); }

.bg-white { background-color: #ffffff; }
.text-white { color: #ffffff; }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-black\/70 { background-color: rgba(0, 0, 0, 0.7); }
.bg-black\/90 { background-color: rgba(0, 0, 0, 0.9); }
.bg-studio-page\/90 { background-color: rgba(251, 251, 253, 0.92); }
html.dark .bg-studio-page\/90 { background-color: rgba(9, 13, 22, 0.92); }
.bg-studio-card\/90 { background-color: rgba(255, 255, 255, 0.92); }
html.dark .bg-studio-card\/90 { background-color: rgba(17, 24, 39, 0.92); }

.bg-red-500 { background-color: #ef4444; }
.bg-yellow-500 { background-color: #f59e0b; }
.bg-green-500 { background-color: #10b981; }

/* Accent Colors */
.text-apple { color: #e11d48; }
.bg-apple-soft { background-color: rgba(225, 29, 72, 0.08); color: #be123c; }
.text-banana { color: #d97706; }
.bg-banana-soft { background-color: rgba(245, 158, 11, 0.12); color: #b45309; }
.text-emerald { color: #059669; }
.bg-emerald { background-color: #10b981; }
.bg-emerald-soft { background-color: rgba(16, 185, 129, 0.1); color: #047857; }
.text-blue { color: #2563eb; }
.bg-blue { background-color: #2563eb; }
.bg-blue-soft { background-color: rgba(37, 99, 235, 0.1); color: #1d4ed8; }

html.dark .bg-apple-soft { background-color: rgba(225, 29, 72, 0.2); color: #fda4af; }
html.dark .bg-banana-soft { background-color: rgba(245, 158, 11, 0.2); color: #fde68a; }
html.dark .bg-emerald-soft { background-color: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
html.dark .bg-blue-soft { background-color: rgba(37, 99, 235, 0.2); color: #93c5fd; }

/* Borders & Radii */
.border { border: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top: 1px solid var(--border-color); }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Typography */
.font-mono { font-family: var(--font-mono); }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.35rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.15; }
.text-6xl { font-size: 3.75rem; line-height: 1.1; }

.tracking-tight { letter-spacing: -0.03em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.2; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.65; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.select-none { user-select: none; }
.underline { text-decoration-line: underline; }

/* Visual Effects */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.backdrop-blur { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-md { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.pointer-events-none { pointer-events: none; }

/* Brand Logo Badge */
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.brand-badge:hover,
.group:hover .brand-badge {
  transform: scale(1.05);
  border-color: var(--border-hover);
}

/* Custom Studio Cards */
.studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.studio-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-hover);
}

/* FlowDeck Simulator HUD Cards */
.flowdeck-card {
  position: relative;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 0.875rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}
.flowdeck-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}
.flowdeck-card.active {
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 2px solid #10b981;
  box-shadow: 0 6px 16px -2px rgba(16, 185, 129, 0.25);
}
html.dark .flowdeck-card.active {
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.25), rgba(2, 44, 34, 0.6));
}

/* Clean Form Controls */
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-main);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236e6e73' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.25rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* FAQ Accordion Item Styling */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-main);
  background: transparent;
  border: none;
  padding: 0.25rem 0;
  cursor: pointer;
  transition: color 0.15s ease;
}
.faq-toggle:hover {
  color: #059669;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-weight: 700;
  font-size: 0.875rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}
html.dark .faq-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.faq-content {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Action Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1d1d1f;
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.625rem 1.25rem;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: #333336;
  transform: translateY(-1px);
}
html.dark .btn-primary {
  background: #f9fafb;
  color: #111827;
}
html.dark .btn-primary:hover {
  background: #e5e7eb;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.625rem 1.25rem;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-hover);
}

/* Toast Notifications */
.toast-msg {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hover States */
.hover\:underline:hover { text-decoration-line: underline; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:bg-studio-alt:hover { background-color: var(--bg-surface-alt); }
.hover\:bg-studio-card:hover { background-color: var(--bg-surface); }
.hover\:text-studio-main:hover { color: var(--text-main); }
.hover\:text-emerald:hover { color: #059669; }
.hover\:text-blue:hover { color: #2563eb; }
.hover\:text-apple:hover { color: #e11d48; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-\[1\.02\] { transform: scale(1.02); }
.group:hover .group-hover\:text-emerald { color: #059669; }
.group:hover .group-hover\:text-blue { color: #2563eb; }
.group:hover .group-hover\:text-banana { color: #d97706; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (PLACED AT BOTTOM TO GUARANTEE OVERRIDES)
   ========================================================================== */

/* SM: Tablets & Mobile Landscape (>= 640px) */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:col-span-3 { grid-column: span 3 / span 3; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:inline { display: inline; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:w-64 { width: 16rem; }
  .sm\:items-center { align-items: center; }
  .sm\:text-left { text-align: left; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.15; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1.1; }
}

/* MD: Tablets & Desktops (>= 768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:items-end { align-items: flex-end; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
}

/* LG: Large Screens (>= 1024px) */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
