/* SmartBucket Marketing Pages - Shared Styles */

/* ============================================
   LAYOUT
   ============================================ */

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  background: var(--sb-white);
  border-bottom: 1px solid var(--sb-teal-50);
  z-index: 100;
  padding: 1rem 1.5rem;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.header-logo {
  height: 36px;
  width: auto;
  max-width: 180px;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--sb-text-brand);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--sb-accent);
}

/* Footer */
.site-footer {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--sb-text-secondary);
  font-size: 0.875rem;
  border-top: 1px solid var(--sb-teal-50);
  margin-top: 4rem;
}

/* Section containers */
.section {
  padding: 4rem 1.5rem;
}

.section--alt {
  background: var(--sb-teal-50);
}

.section-content {
  max-width: 720px;
  margin: 0 auto;
}

.section-content--wide {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--sb-text-brand);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--sb-text-secondary);
  margin-bottom: 2rem;
}

/* ============================================
   EMAIL FORM
   ============================================ */

.email-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
}

.email-form--centered {
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--sb-teal-50);
  border-radius: 8px;
  background: var(--sb-white);
  color: var(--sb-text-brand);
  transition: border-color 0.2s;
}

.email-input:focus {
  outline: none;
  border-color: var(--sb-accent);
}

.email-input::placeholder {
  color: var(--sb-text-secondary);
}

.email-button {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--sb-accent);
  color: var(--sb-text-brand);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s, box-shadow 0.2s;
}

.email-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 176, 64, 0.3);
}

.email-button:active {
  transform: translateY(0);
}

.email-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
}

.form-message--success {
  color: #16a34a;
}

.form-message--error {
  color: #dc2626;
}

/* Responsive form */
@media (max-width: 480px) {
  .email-form {
    flex-direction: column;
  }

  .email-button {
    width: 100%;
  }
}

/* ============================================
   CHAT MESSAGE BUBBLES
   ============================================ */

.chat-example {
  background: var(--sb-white);
  border: 1px solid var(--sb-teal-50);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  max-width: 85%;
  padding: 0.875rem 1.125rem;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.chat-message--user {
  align-self: flex-end;
  background: var(--sb-teal-700);
  color: var(--sb-white);
  border-bottom-right-radius: 4px;
}

.chat-message--ai {
  align-self: flex-start;
  background: var(--sb-teal-50);
  color: var(--sb-text-brand);
  border-bottom-left-radius: 4px;
}

.chat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--sb-text-secondary);
}

.chat-message--user .chat-label {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   CAPABILITY GRID (2x2)
   ============================================ */

.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.capability-card {
  padding: 1.5rem;
  background: var(--sb-white);
  border: 1px solid var(--sb-teal-50);
  border-radius: 12px;
}

.capability-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sb-text-brand);
  margin-bottom: 0.5rem;
}

.capability-card p {
  font-size: 0.9375rem;
  color: var(--sb-text-secondary);
  line-height: 1.6;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-table {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--sb-teal-50);
  width: 50%;
}

.comparison-table th {
  font-weight: 600;
  color: var(--sb-text-brand);
  background: var(--sb-teal-50);
}

.comparison-table th:first-child {
  border-top-left-radius: 8px;
}

.comparison-table th:last-child {
  border-top-right-radius: 8px;
}

.comparison-table td:first-child {
  color: var(--sb-text-secondary);
}

.comparison-table td:last-child {
  color: var(--sb-text-brand);
  font-weight: 500;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Mobile: Stack table cells */
@media (max-width: 600px) {
  .comparison-table {
    display: block;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody,
  .comparison-table tr {
    display: block;
  }

  .comparison-table tr {
    margin-bottom: 1.5rem;
    background: var(--sb-white);
    border: 1px solid var(--sb-teal-50);
    border-radius: 8px;
    overflow: hidden;
  }

  .comparison-table td {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--sb-teal-50);
  }

  .comparison-table td:first-child {
    background: var(--sb-teal-50);
    font-weight: 500;
    color: var(--sb-text-brand);
  }

  .comparison-table td:last-child {
    border-bottom: none;
  }

  .comparison-table td::before {
    display: none;
  }
}

/* ============================================
   ESSAY / PHILOSOPHY PAGE
   ============================================ */

.essay {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.essay h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--sb-text-brand);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.essay .subtitle {
  font-size: 1.25rem;
  color: var(--sb-text-secondary);
  margin-bottom: 3rem;
}

.essay h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sb-text-brand);
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.essay h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sb-text-brand);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.essay p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--sb-text-brand);
  margin-bottom: 1.25rem;
}

.essay ul,
.essay ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.essay li {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--sb-text-brand);
  margin-bottom: 0.5rem;
}

.essay strong {
  font-weight: 600;
  color: var(--sb-text-brand);
}

.essay em {
  font-style: italic;
}

.essay blockquote {
  border-left: 3px solid var(--sb-accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--sb-text-secondary);
  font-style: italic;
}

/* ============================================
   HERO SECTION (Landing Page)
   ============================================ */

.hero-section {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.hero-logo {
  width: 80px;
  height: auto;
  margin-bottom: 2rem;
}

.hero-logo--large {
  width: clamp(280px, 40vw, 420px);
  margin-bottom: 2rem;
}

.hero-flow {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--sb-text-brand);
  letter-spacing: 0.1em;
}

.accent {
  color: var(--sb-accent);
}

.hero-headline {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--sb-text-brand);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subheadline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--sb-text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ============================================
   CORE LOOP SECTION
   ============================================ */

.core-loop {
  margin: 2rem 0;
}

.core-loop-step {
  margin-bottom: 3rem;
}

.core-loop-step:last-child {
  margin-bottom: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--sb-accent);
  color: var(--sb-text-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sb-text-brand);
}

.step-description {
  color: var(--sb-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--sb-teal-700);
  color: var(--sb-white);
}

.cta-headline {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.cta-section .email-input {
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .email-input:focus {
  border-color: var(--sb-accent);
}

.cta-section .form-message--success {
  color: #86efac;
}

.cta-section .form-message--error {
  color: #fca5a5;
}

/* ============================================
   PRIVACY SECTION
   ============================================ */

.privacy-section {
  text-align: center;
}

.privacy-contexts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .privacy-contexts {
    grid-template-columns: repeat(2, 1fr);
  }
}

.privacy-context {
  padding: 1.5rem;
  background: var(--sb-white);
  border: 1px solid var(--sb-teal-50);
  border-radius: 12px;
  text-align: left;
}

.privacy-context h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sb-text-brand);
  margin-bottom: 0.5rem;
}

.privacy-context p {
  font-size: 0.9375rem;
  color: var(--sb-text-secondary);
  line-height: 1.5;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Visually hidden (accessible) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
