/* ============================================================
   CommSheet — Styles
   Design direction: Financial ledger meets modern SaaS.
   Monospaced accents, clean grid lines, trustworthy blues/greens.
   ============================================================ */

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

:root {
  /* Brand palette */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --brand-blue: #1d4ed8;
  --brand-blue-light: #3b82f6;
  --brand-blue-dark: #1e40af;
  --brand-blue-50: #eff6ff;

  --brand-green: #059669;
  --brand-green-light: #10b981;
  --brand-green-dark: #047857;
  --brand-green-50: #ecfdf5;

  --accent-amber: #d97706;
  --accent-amber-light: #f59e0b;
  --accent-amber-50: #fffbeb;

  --white: #ffffff;
  --danger: #dc2626;
  --danger-light: #fef2f2;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;

  /* Spacing */
  --section-pad: 96px 0;
  --container-max: 1120px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 6px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 10px 24px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04);
  --shadow-xl: 0 20px 40px rgba(15,23,42,0.1);

  /* Borders */
  --border: 1px solid var(--slate-200);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

a {
  color: var(--brand-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 18px;
  color: var(--slate-600);
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--slate-900);
  font-weight: 700;
  font-size: 18px;
}

.nav-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--brand-blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.02em;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-logo-text {
  font-family: var(--font-sans);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--slate-900);
  text-decoration: none;
}

.nav-cta {
  background: var(--brand-blue);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background 0.15s;
}
.nav-cta:hover {
  background: var(--brand-blue-dark);
  text-decoration: none !important;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--brand-blue-50) 0%, var(--white) 100%);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-blue);
  background: var(--white);
  border: 1px solid var(--brand-blue);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--slate-900);
}

.hero-sub {
  font-size: 19px;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 20px;
}

.hero-form input {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.15s;
}
.hero-form input:focus {
  border-color: var(--brand-blue);
}

.hero-form button {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--brand-blue);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.hero-form button:hover {
  background: var(--brand-blue-dark);
}
.hero-form button:active {
  transform: scale(0.98);
}

.hero-proof {
  font-size: 14px;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.proof-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--brand-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: var(--border);
}

.hero-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: -0.03em;
}

.hero-stat-label {
  display: block;
  font-size: 14px;
  color: var(--slate-500);
  margin-top: 4px;
}

/* ============================================================
   Problem Section
   ============================================================ */

.problem {
  padding: var(--section-pad);
  background: var(--white);
  text-align: center;
}

.problem h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.problem-card {
  background: var(--danger-light);
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 28px;
}

.problem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: var(--danger);
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--slate-900);
}

.problem-card p {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ============================================================
   Features Section
   ============================================================ */

.features {
  padding: var(--section-pad);
  background: var(--slate-50);
  text-align: center;
}

.features h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 12px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.feature-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card--highlight {
  background: var(--brand-blue-50);
  border-color: var(--brand-blue-light);
  grid-column: span 1;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ============================================================
   AI Demo Section
   ============================================================ */

.ai-demo {
  padding: var(--section-pad);
  background: var(--white);
  text-align: center;
}

.ai-demo h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 12px;
}

.ai-demo-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}

.ai-demo-input label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 10px;
}

.ai-demo-input textarea {
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-sm);
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  min-height: 160px;
}
.ai-demo-input textarea:focus {
  border-color: var(--brand-blue);
}

.ai-demo-input button {
  margin-top: 14px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--brand-green);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s;
  width: 100%;
}
.ai-demo-input button:hover {
  background: var(--brand-green-dark);
}
.ai-demo-input button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-demo-output {
  background: var(--slate-50);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 260px;
  overflow-y: auto;
  max-height: 500px;
}

.ai-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: var(--slate-400);
  text-align: center;
  gap: 12px;
}
.ai-placeholder p {
  font-size: 14px;
}

.ai-result {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-800);
}

.ai-result h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 20px 0 8px;
  font-family: var(--font-mono);
}
.ai-result h4:first-child {
  margin-top: 0;
}

.ai-result table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
  font-family: var(--font-mono);
}
.ai-result table th,
.ai-result table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
}
.ai-result table th {
  background: var(--slate-100);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-600);
}

.ai-result ul {
  padding-left: 20px;
  margin: 8px 0;
}
.ai-result li {
  margin-bottom: 4px;
}

.ai-result p {
  margin-bottom: 8px;
}

.ai-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: 200px;
  color: var(--slate-500);
  font-size: 14px;
}

.ai-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--slate-300);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-error {
  color: var(--danger);
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* ============================================================
   Testimonials
   ============================================================ */

.testimonials {
  padding: var(--section-pad);
  background: var(--slate-50);
  text-align: center;
}

.testimonials h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 48px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.testimonial-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.testimonial-stars {
  color: var(--accent-amber);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--slate-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--brand-blue-50);
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  color: var(--slate-900);
}
.testimonial-author span {
  display: block;
  font-size: 13px;
  color: var(--slate-500);
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing {
  padding: var(--section-pad);
  background: var(--white);
  text-align: center;
}

.pricing h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  text-align: left;
}

.pricing-card--popular {
  border: 2px solid var(--brand-blue);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.pricing-price span {
  font-size: 18px;
  font-weight: 500;
  color: var(--slate-500);
}

.pricing-desc {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--slate-700);
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
  padding-left: 22px;
  position: relative;
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  background: var(--brand-green-50);
  border: 1px solid var(--brand-green);
  border-radius: 50%;
}
.pricing-features li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--brand-green);
  border-bottom: 1.5px solid var(--brand-green);
  transform: rotate(-45deg);
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  background: var(--brand-blue);
  color: var(--white);
}
.pricing-cta:hover {
  background: var(--brand-blue-dark);
  text-decoration: none;
  color: var(--white);
}

.pricing-cta--secondary {
  background: var(--white);
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}
.pricing-cta--secondary:hover {
  background: var(--brand-blue-50);
  color: var(--brand-blue);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  padding: var(--section-pad);
  background: var(--slate-50);
  text-align: center;
}

.faq h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 48px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: var(--border);
}
.faq-item:first-child {
  border-top: var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-900);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  gap: 16px;
}
.faq-question:hover {
  color: var(--brand-blue);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.7;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 80px 0 40px;
  background: var(--slate-900);
  color: var(--slate-300);
  text-align: center;
}

.footer-cta {
  max-width: 560px;
  margin: 0 auto 56px;
}

.footer-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--white);
  margin-bottom: 12px;
}

.footer-cta p {
  font-size: 16px;
  color: var(--slate-400);
  margin-bottom: 24px;
}

.footer-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.footer-form input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--slate-600);
  border-radius: var(--radius-sm);
  background: var(--slate-800);
  color: var(--white);
  outline: none;
  font-family: var(--font-sans);
  transition: border-color 0.15s;
}
.footer-form input::placeholder {
  color: var(--slate-500);
}
.footer-form input:focus {
  border-color: var(--brand-blue-light);
}

.footer-form button {
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--brand-blue);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
  transition: background 0.15s;
}
.footer-form button:hover {
  background: var(--brand-blue-light);
}

.footer-bottom {
  border-top: 1px solid var(--slate-700);
  padding-top: 32px;
}

.footer-bottom .nav-logo-icon {
  background: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 11px;
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--slate-400);
  margin-bottom: 16px;
}

.footer-made {
  font-size: 13px;
  color: var(--slate-500);
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 13px;
  color: var(--slate-600);
}

/* ============================================================
   Form Success / Error States
   ============================================================ */

.form-message {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  text-align: center;
}

.form-message--success {
  background: var(--brand-green-50);
  color: var(--brand-green-dark);
  border: 1px solid var(--brand-green);
}

.form-message--error {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .hero-stat-num {
    font-size: 24px;
  }
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .pricing-card--popular {
    transform: none;
  }
  .ai-demo-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 120px 16px 64px;
  }
  .hero-form {
    flex-direction: column;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-form {
    flex-direction: column;
  }
  .section-label {
    font-size: 12px;
  }
  :root {
    --section-pad: 64px 0;
  }
}
