/* -------------------------------------------------------------------
   Softbook Design System & CSS Stylesheet
   Theme: Crisp Light Mode (Black, White & Light Blue)
   ------------------------------------------------------------------- */

:root {
  /* Strict Color Palette: Black, White & Light Blue */
  --bg-light: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F9FF;
  --bg-light-blue: #E0F2FE;
  --bg-sky-subtle: #F0F9FF;
  
  --border-color: #E2E8F0;
  --border-blue: #BAE6FD;
  
  --primary-black: #0F172A;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;
  
  --light-blue: #0284C7;
  --light-blue-hover: #0369A1;
  --light-blue-bright: #38BDF8;
  --light-blue-glow: rgba(2, 132, 199, 0.15);

  --gradient-primary: #0284C7;
  --gradient-blue-subtle: #F0F9FF;
  --gradient-black: #0F172A;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows & Radius */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(2, 132, 199, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-black);
}

.text-gradient {
  color: var(--light-blue);
}

.text-gradient-accent {
  color: var(--light-blue);
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5.5rem 0;
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-new, .badge-emerald, .badge-purple {
  background: var(--bg-light-blue);
  color: var(--light-blue);
  border: 1px solid var(--border-blue);
}

.badge-sm {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary-black);
  color: #FFFFFF;
  /* box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15); */
}

.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-2px);
  /* box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25); */
}

.btn-glow {
  background: var(--gradient-primary);
  color: #FFFFFF;
  /* box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3); */
}

.btn-glow:hover {
  background: var(--light-blue-hover);
  transform: translateY(-2px);
  /* box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45); */
}

.btn-secondary {
  background: var(--bg-light-blue);
  color: var(--light-blue);
  border-color: var(--border-blue);
}

.btn-secondary:hover {
  background: #BAE6FD;
  color: var(--light-blue-hover);
  transform: translateY(-2px);
}

/* Header & Top Bar */
.top-bar {
  background: var(--bg-sky-subtle);
  border-bottom: 1px solid var(--border-blue);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-bar-text {
  color: var(--text-muted);
}

.top-bar-link {
  color: var(--light-blue);
  font-weight: 600;
}

.top-bar-link:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header.scrolled {
  background: #FFFFFF;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border-radius: var(--radius-sm);
  background: var(--bg-light-blue);
  border: 1px solid var(--border-blue); */
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-black);
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--light-blue);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-black);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--light-blue);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background-color: var(--primary-black);
  transition: var(--transition);
  border-radius: 2px;
}

/* Light Cards */
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  /* box-shadow: var(--shadow-sm); */
}

.card-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-blue);
  /* box-shadow: var(--shadow-lg); */
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 5.5rem;
  background: var(--gradient-blue-subtle);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 1.25rem 0;
  line-height: 1.15;
  color: var(--primary-black);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.trust-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-black);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mockup Display Box */
.hero-visual {
  position: relative;
}

.hero-visual-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08); */
  position: relative;
}

.window-header {
  background: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot.red { background: #CBD5E1; }
.window-dot.yellow { background: #94A3B8; }
.window-dot.green { background: #38BDF8; }

.window-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: monospace;
}

.mockup-body {
  padding: 1rem;
  background: #FFFFFF;
}

/* Feature Highlights Section */
.section-header {
  max-width: 680px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--light-blue);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

/* Dual Product Cards */
.products-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: var(--bg-light-blue);
  color: var(--light-blue);
  border: 1px solid var(--border-blue);
}

.product-card-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--primary-black);
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.check-icon {
  color: var(--light-blue);
  flex-shrink: 0;
}

/* Tabs System for Product Details */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary-black);
}

.tab-btn.active {
  color: var(--light-blue);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--light-blue);
  border-radius: 3px 3px 0 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pricing Grid */
.billing-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.switch-label {
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.switch-label.active {
  color: var(--primary-black);
}

.toggle-switch {
  width: 54px;
  height: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2px;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.toggle-circle {
  width: 22px;
  height: 22px;
  background: var(--light-blue);
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch.yearly .toggle-circle {
  transform: translateX(26px);
  background: var(--primary-black);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border-color: var(--light-blue);
  /* box-shadow: 0 10px 30px rgba(2, 132, 199, 0.15); */
  transform: scale(1.03);
}

.popular-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.price-header {
  margin-bottom: 1.5rem;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-black);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 1rem 0;
}

.price-currency {
  font-size: 1.75rem;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-light-blue);
  color: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-blue);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-black);
}

.input-field, .select-field, .textarea-field {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--primary-black);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-field:focus, .select-field:focus, .textarea-field:focus {
  outline: none;
  border-color: var(--light-blue);
  /* box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); */
}

.textarea-field {
  resize: vertical;
  min-height: 130px;
}

/* Alert Notification Box */
.alert-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: var(--bg-light-blue);
  border: 1px solid var(--border-blue);
  color: var(--light-blue);
}

.alert-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

/* Footer Styling */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1.25rem 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.social-btn:hover {
  color: var(--light-blue);
  background: var(--bg-light-blue);
  border-color: var(--border-blue);
}

.footer-title {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--primary-black);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--light-blue);
}

.footer-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
}

.compliance-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  background: var(--bg-surface);
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a:hover {
  color: var(--primary-black);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-grid, .products-dual-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .mobile-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    display: none;
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); */
  }
  .main-nav.show {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }
}

/* -------------------------------------------------------------------
   Legal & Document Pages Styling (Privacy, Terms, Security)
   ------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.toc-link:hover {
  color: var(--light-blue);
  background: var(--bg-sky-subtle);
  transform: translateX(3px);
}

.legal-section {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-black);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-section p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.legal-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.legal-list li::before {
  content: '•';
  color: var(--light-blue);
  font-size: 1.4rem;
  position: absolute;
  left: 0.25rem;
  top: -0.2rem;
}

.legal-callout {
  background: var(--bg-light-blue);
  border-left: 4px solid var(--light-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-callout h4 {
  font-size: 1rem;
  color: var(--primary-black);
  margin-bottom: 0.35rem;
}

.legal-callout p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--text-main);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.legal-table th, .legal-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.legal-table th {
  background: var(--bg-surface);
  color: var(--primary-black);
  font-weight: 600;
}

.legal-table td {
  color: var(--text-muted);
}

.legal-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.legal-card-mini {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.legal-contact-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.legal-contact-box p {
  margin-bottom: 0.5rem;
}

.legal-contact-box p:last-child {
  margin-bottom: 0;
}

/* Security Overview Badges & Live Status */
.security-badges-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.sec-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-black);
  /* box-shadow: var(--shadow-sm); */
}

.sec-badge-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-active {
  background: #10B981;
  /* box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); */
}

@media (max-width: 992px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    display: none;
  }
  .legal-body {
    padding: 1.75rem !important;
  }
}

