/* =========================================================
   Uptooly — Design Tokens & Custom Styles
   Blue / Indigo SaaS system. Tailwind (CDN) handles utility
   layout; this file carries brand tokens + bespoke components
   that Tailwind's default palette can't express.
   ========================================================= */

:root{
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-2: #EEF0F8;
  --border: #E1E4F1;
  --text: #171B2E;
  --text-muted: #5B6178;

  --primary: #4F46E5;      /* indigo-600 */
  --primary-2: #6366F1;    /* indigo-500 */
  --accent: #2563EB;       /* blue-600 */
  --accent-2: #38BDF8;     /* sky-400 */

  --brand-gradient: linear-gradient(135deg, #4F46E5 0%, #2F5CF0 45%, #38BDF8 100%);
  --shadow-soft: 0 20px 45px -20px rgba(43, 55, 130, 0.28);
  --shadow-card: 0 10px 30px -12px rgba(43, 55, 130, 0.22);
  --ring: 0 0 0 3px rgba(79, 70, 229, 0.25);

  color-scheme: light;
}


html{ scroll-behavior: smooth; }
html, body{ max-width: 100%; overflow-x: hidden; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  transition: background-color .35s ease, color .35s ease;
}

.font-display{ font-family: 'Sora', 'Inter', ui-sans-serif, sans-serif; }
.font-mono-ui{ font-family: 'JetBrains Mono', ui-monospace, monospace; }

::selection{ background: var(--primary); color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

/* ---------- Surfaces ---------- */
.surface{ background: var(--surface); border: 1px solid var(--border); }
.surface-2{ background: var(--surface-2); border: 1px solid var(--border); }
.text-muted{ color: var(--text-muted); }
.border-soft{ border-color: var(--border); }

/* ---------- Brand text / buttons ---------- */
.brand-gradient-text{
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary{
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary:hover{ transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary:active{ transform: translateY(0); }

.btn-ghost{
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
.btn-ghost:hover{ border-color: var(--primary); transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  color: var(--text-muted);
  position: relative;
  transition: color .2s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute; 
  left: 0; 
  bottom: -6px;
  width: 0; 
  height: 2px;
  background: var(--brand-gradient);
  transition: width .25s ease;
  border-radius: 2px;
}

.nav-link:hover::after { 
  width: 100%; 
}
[data-mobile-menu]:not(.pointer-events-none) {
  pointer-events: auto !important;
}

.mobile-sidebar-panel {
  background-color: #ffffff !important;
  color: #111827 !important;
}

/* ---------- Hero quote-card mockup ---------- */
.hero-stage{ perspective: 1400px; }

.mock-card{
  width: min(360px, 78vw);
  aspect-ratio: 1/1;
  border-radius: 22px;
  padding: 34px;
  display:flex; flex-direction:column; justify-content:center;
  background: linear-gradient(160deg,#312E81,#1E3A8A 55%,#0C4A6E);
  color: #F5F6FF;
  box-shadow: var(--shadow-soft);
  transform: rotate(-4deg);
  transition: transform .5s ease;
  position: relative;
  z-index: 2;
}
.hero-stage:hover .mock-card{ transform: rotate(-1.5deg) scale(1.01); }

.mock-card .mock-quote{
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.35;
}
.mock-card .mock-rule{ width: 40px; height: 3px; border-radius: 2px; background: var(--accent-2); margin: 18px 0 14px; }
.mock-card .mock-author{ font-size: .9rem; opacity: .85; letter-spacing: .02em; }

.chip{
  position: absolute;
  display:flex; align-items:center; gap:6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}
.chip svg{ width: 14px; height:14px; }
.chip-a{ top: -6%; right: -8%; animation-delay: 0s; }
.chip-b{ bottom: 10%; left: -12%; animation-delay: 1.2s; }
.chip-c{ bottom: -6%; right: 6%; animation-delay: 2.4s; }

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

/* ---------- Studio (tool) ---------- */
.studio-shell{ border-radius: 24px; }

.canvas-frame{
  border-radius: 18px;
  background:
    linear-gradient(45deg, var(--surface-2) 25%, transparent 25%) -10px 0/ 20px 20px,
    linear-gradient(-45deg, var(--surface-2) 25%, transparent 25%) -10px 0/ 20px 20px,
    linear-gradient(45deg, transparent 75%, var(--surface-2) 75%) -10px 0/ 20px 20px,
    linear-gradient(-45deg, transparent 75%, var(--surface-2) 75%) -10px 0/ 20px 20px,
    var(--surface);
  border: 1px solid var(--border);
  display:grid; place-items:center;
  padding: 20px;
  box-shadow: var(--shadow-card);
}

#quoteCanvas{
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.35);
}

.tab-btn{
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .875rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all .2s ease;
}
.field-label{
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input[type="range"]{
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--brand-gradient);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb{
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--primary);
  border: 2px solid #fff;
  cursor: pointer;
}

.swatch{
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.swatch:hover{ transform: scale(1.08); }
.swatch[aria-pressed="true"]{ border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.25); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }

.preset-btn{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  transition: border-color .2s ease, transform .2s ease;
  background: var(--surface);
}
.preset-btn:hover{ border-color: var(--primary); transform: translateY(-1px); }
.preset-btn[aria-pressed="true"]{ border-color: var(--primary); background: var(--surface-2); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }

/* ---------- Template cards ---------- */
.tmpl-card{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.tmpl-card:hover{ transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow-card); }
.tmpl-thumb{
  aspect-ratio: 1/1;
  display:flex; flex-direction:column; justify-content:center;
  padding: 18px;
  color: #fff;
}
.tmpl-thumb .t-quote{ font-family:'Sora',sans-serif; font-weight:700; font-size: .8rem; line-height:1.3; }
.tmpl-thumb .t-rule{ width: 24px; height:2px; background:rgba(255,255,255,.75); margin: 10px 0 8px; border-radius:2px; }
.tmpl-thumb .t-author{ font-size: .68rem; opacity:.85; }
.tmpl-meta{ padding: 10px 12px; display:flex; align-items:center; justify-content:space-between; }
.tmpl-cat{
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--primary);
}

.filter-pill{
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  background: white;
  color: black;
}

.filter-pill[aria-pressed="true"]{
  background: var(--brand-gradient);
  color: #fff;
  border: 2px solid #4d505c;
}


/* ---------- Feature / icon cards ---------- */
.feature-card{
  border-radius: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-card); }
.feature-icon{
  width: 44px; height:44px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: var(--brand-gradient);
  color:#fff;
  margin-bottom: 14px;
}
.feature-icon svg{ width:22px; height:22px; }


  
/* FAQ Container Limit setup */
.faq-item {
  border-bottom: 1px solid var(--border, #e5e7eb);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  text-align: left;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
}

.faq-q .plus {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item[data-open="true"] .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.25s ease, 
              padding 0.35s ease;
  color: var(--text-muted, #6b7280);
  line-height: 1.65;
  padding-bottom: 0;
}

.faq-item[data-open="true"] .faq-a {
  max-height: 500px; 
  opacity: 1;
  padding-bottom: 18px;
}

/* ---------- Prose (SEO / legal content) ---------- */
.prose-uptooly h2{
  font-family:'Sora',sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-top: 2.2em;
  margin-bottom: .6em;
}
.prose-uptooly h3{
  font-family:'Sora',sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1.6em;
  margin-bottom: .5em;
}
.prose-uptooly p{ color: var(--text-muted); line-height: 1.8; margin-bottom: 1.1em; }
.prose-uptooly ul{ color: var(--text-muted); line-height: 1.8; margin: 1em 0 1.4em; padding-left: 1.4em; list-style: disc; }
.prose-uptooly li{ margin-bottom: .4em; }
.prose-uptooly strong{ color: var(--text); }
.prose-uptooly a{ color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Skip link ---------- */
.skip-link{
  position:absolute; left:-9999px; top:auto;
  background: var(--primary); color:#fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus{ left: 16px; top: 16px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--surface); border-top: 1px solid var(--border); }

/* ---------- Utility ---------- */
.section-pad{ padding-top: clamp(60px, 8vw, 5px); padding-bottom: clamp(60px, 8vw, 96px); }
.container-uptooly{ max-width: 1200px; margin-inline:auto; padding-inline: 20px; }

@media (min-width: 640px){ .container-uptooly{ padding-inline: 32px; } }



header.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

body {
  padding-top: 72px; 
}