/* Drainly — Global Styles */

/* Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&display=swap');

/* Custom properties */
:root {
  --brand-blue: #1d4ed8;
  --brand-blue-dark: #1e3a8a;
  --brand-blue-mid: #2563eb;
  --brand-blue-light: #dbeafe;
  --brand-orange: #f97316;
  --brand-orange-dark: #ea580c;
  --brand-orange-light: #fff7ed;
  --brand-emerald: #10b981;
  --brand-emerald-dark: #059669;
  --brand-emerald-light: #d1fae5;
  --text-dark: #0f172a;
  --text-body: #374151;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-blue: 0 8px 24px rgba(29, 78, 216, 0.35);
  --shadow-orange: 0 8px 24px rgba(249, 115, 22, 0.4);
  --shadow-emerald: 0 8px 24px rgba(16, 185, 129, 0.35);
}

/* Apply Inter globally */
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* App Store badge */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #000;
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.625rem 1.375rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.app-store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.app-store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.app-store-badge .badge-sub {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0.8;
}
.app-store-badge .badge-main {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Placeholder tool block */
.tool-placeholder {
  border: 2px dashed #cbd5e1;
  border-radius: 0.875rem;
  padding: 3rem;
  text-align: center;
  background: var(--bg-light);
}

/* Template preview placeholder */
.template-preview-placeholder {
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.875rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  aspect-ratio: 8.5 / 11;
  max-width: 400px;
  margin: 0 auto;
}

/* Navigation active state */
.nav-link-active {
  color: var(--brand-blue);
  font-weight: 600;
}

/* Hero gradient — deep, rich */
.hero-gradient {
  background: linear-gradient(140deg, #0c1a3a 0%, #1a2f62 32%, #1d4ed8 68%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 38%, rgba(147, 197, 253, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 12% 82%, rgba(37, 99, 235, 0.18) 0%, transparent 45%);
  pointer-events: none;
}

/* Card hover effect */
.card-hover {
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s cubic-bezier(0.4,0,0.2,1);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

/* Prose styles for guide content */
.prose-guide h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
  letter-spacing: -0.02em;
}
.prose-guide h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}
.prose-guide p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1.125rem;
}
.prose-guide ul, .prose-guide ol {
  padding-left: 1.5rem;
  margin-bottom: 1.125rem;
}
.prose-guide li {
  color: var(--text-body);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.prose-guide table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.prose-guide th {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}
.prose-guide td {
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
}
.prose-guide tr:nth-child(even) td {
  background: #f8fafc;
}

/* Mobile nav */
#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: block;
}

/* FAQ accordion */
.faq-answer {
  display: none;
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}
.faq-icon {
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.faq-item {
  transition: border-color 0.2s, background 0.2s;
}
.faq-item.open {
  border-color: #93c5fd;
  background: #f0f7ff;
}
.faq-item.open .faq-question {
  color: var(--brand-blue);
}
.faq-item.open .faq-icon {
  color: var(--brand-blue);
}

/* Gap reset — prevent any default browser margin on layout containers */
body { margin: 0; }
main { margin: 0; padding: 0; display: block; }

/* Sticky header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

/* Nav link — underline slide animation */
.desktop-nav-link {
  position: relative;
  padding-bottom: 1px;
  color: #4b5563;
  transition: color 0.15s;
}
.desktop-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 1px;
  transition: width 0.2s ease;
}
.desktop-nav-link:hover {
  color: var(--brand-blue);
}
.desktop-nav-link:hover::after {
  width: 100%;
}

/* Step number badge */
.step-badge {
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.38);
  letter-spacing: -0.02em;
}

/* Feature icon wrapper */
.feature-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.12);
}

/* Trade card */
.trade-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1.375rem 1rem;
  border-radius: 0.875rem;
  border: 1.5px solid #e2e8f0;
  background: white;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  text-align: center;
  color: #1f2937;
}
.trade-card:hover {
  border-color: var(--brand-blue);
  background: #eff6ff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.14);
}
.trade-card .trade-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.trade-card:hover .trade-icon {
  transform: scale(1.08);
}

/* Orange button */
.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 0.875rem;
  padding: 0.875rem 1.75rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: var(--shadow-orange);
  letter-spacing: -0.01em;
}
.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.5);
  filter: brightness(1.05);
}

/* Emerald / success accent */
.badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--brand-emerald-light);
  color: var(--brand-emerald-dark);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Feature icon wrap — orange variant */
.feature-icon-wrap-orange {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

/* Feature icon wrap — emerald variant */
.feature-icon-wrap-emerald {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Phone mockup */
.phone-mockup {
  position: relative;
}
.float-badge {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  animation: floatBadge 3s ease-in-out infinite alternate;
}
@keyframes floatBadge {
  from { transform: translateY(0px); }
  to   { transform: translateY(-5px); }
}

/* Print styles */
@media print {
  header, footer, .cta-section { display: none; }
}
