/* Pelaikan Landing Page Styles */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Legal Pad theme colors */
  --bg: #F9F7F1;              /* Legal Pad Cream */
  --bg-alt: #F3F0E8;          /* Slightly darker cream */
  --bg-white: #FFFDF8;        /* Warm white for cards */
  --bg-card: #F4F4DC;         /* Icon background - light olive cream */
  --text: #1A1A2E;            /* Charcoal/Deep Indigo - never pure black */
  --text-muted: #4A4A5A;      /* Muted charcoal */
  --border: #E0DCD4;          /* Warm border */
  --rubric-primary: #A83232;  /* Cinnabar/Dried Ink */
  --rubric-secondary: #8B2828;/* Darker dried ink */
  --rubric-accent: #6B1F1F;   /* Deep dried ink */
  --rubric-light: #F5E6E6;    /* Light warm tint */
  --positive: #2D6A4F;        /* Muted forest green */
  --warning: #B5651D;         /* Amber/sepia */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(26, 26, 46, 0.08), 0 2px 4px -1px rgba(26, 26, 46, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(26, 26, 46, 0.1), 0 4px 6px -2px rgba(26, 26, 46, 0.05);
}

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

body {
  font-family: 'Century Schoolbook', 'EB Garamond', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

/* Headings use slightly different weight for contrast */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Centaur', 'EB Garamond', 'Palatino Linotype', Georgia, serif;
  font-weight: 600;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(249, 247, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { text-decoration: none; }

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--rubric-primary);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--rubric-primary) !important;
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--rubric-secondary) !important;
  transform: translateY(-1px);
}

/* Nav Auth */
.nav-auth-btn {
  margin-left: 8px;
}

.nav-user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

.nav-user-email {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--rubric-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--rubric-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
}

.btn-large { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-google {
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-google:hover { background: var(--bg-alt); }

.google-icon {
  font-weight: 700;
  color: #4285f4;
}

/* Hero Section */
.hero {
  padding: 140px 24px 80px;
  background: linear-gradient(135deg, var(--rubric-light) 0%, var(--bg) 50%, #F0EDE5 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-accent { color: var(--rubric-primary); }

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Mockup */
.hero-mockup {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup-header {
  background: var(--bg-alt);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #22c55e; }

.mockup-content { padding: 20px; }

.mockup-citation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 14px;
}

.mockup-citation:last-child { margin-bottom: 0; }

.mockup-citation.verified {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.mockup-citation.verified .citation-icon { color: var(--positive); }

.mockup-citation.warning {
  background: var(--bg-alt);
  border: 1px solid #fde68a;
}

.mockup-citation.warning .citation-icon { color: var(--warning); }

.citation-icon { font-size: 18px; font-weight: 700; }
.citation-text { color: var(--text); }

/* Page Bottom Banner */
.page-banner {
  width: 100%;
  display: block;
}

/* Sections */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

/* Features */
.features { padding: 80px 24px; background: var(--bg); }

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

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

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

.feature-icon { font-size: 36px; margin-bottom: 16px; }

.feature-icon-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Products */
.products { padding: 80px 24px; background: var(--bg-alt); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  position: relative;
  padding: 32px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-icon { font-size: 48px; margin-bottom: 16px; }

.product-icon-img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.product-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.product-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.product-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.product-features li:last-child { border-bottom: none; }

.product-features li::before {
  content: "✓";
  color: var(--positive);
  margin-right: 8px;
  font-weight: 700;
}

.product-downloads {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}

.btn-download {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
}

.btn-download .btn-icon {
  margin-right: 6px;
}

.product-card .download-version {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Testimonials */
.testimonials { padding: 80px 24px; background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

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

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--rubric-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-info strong {
  font-size: 14px;
  color: var(--text);
}

.author-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Try It Section */
.try-section {
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--rubric-light) 0%, var(--bg-white) 100%);
}

.upload-container {
  max-width: 600px;
  margin: 0 auto;
}

.upload-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.upload-method { margin-bottom: 24px; }

.upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.upload-icon { font-size: 18px; }

.url-input-group { display: flex; gap: 12px; }

.url-input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.url-input:focus {
  outline: none;
  border-color: var(--rubric-primary);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.upload-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.upload-divider::before,
.upload-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* File Drop Zone */
.file-drop-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
  border-color: var(--rubric-primary);
  background: rgba(185, 28, 28, 0.02);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-icon { font-size: 40px; margin-bottom: 12px; }

.drop-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.drop-subtext {
  font-size: 14px;
  color: var(--text-muted);
}

.browse-link {
  color: var(--rubric-primary);
  font-weight: 500;
  cursor: pointer;
}

.file-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.file-icon { font-size: 24px; }

.file-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.file-remove:hover {
  background: var(--rubric-light);
  color: var(--rubric-primary);
}

.upload-actions { margin-top: 32px; }

.upload-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

.upload-hint a {
  color: var(--rubric-primary);
  text-decoration: none;
}

.upload-hint a:hover { text-decoration: underline; }

.upload-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.upload-status.error {
  background: var(--rubric-light);
  border: 1px solid var(--rubric-light);
  color: var(--rubric-primary);
}

.upload-status.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--positive);
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 60px 24px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  color: white;
  font-size: 28px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-column a:hover { color: white; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Auth Modal */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.auth-modal {
  position: relative;
  max-width: 400px;
  width: 90%;
  padding: 40px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.auth-close:hover { color: var(--text); }

.auth-modal h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--rubric-primary);
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-input-group { margin-bottom: 20px; }

.auth-input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-bottom: 12px;
}

.auth-input-group input:last-child { margin-bottom: 0; }

.auth-input-group input:focus {
  outline: none;
  border-color: var(--rubric-primary);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-buttons .btn { width: 100%; }

.auth-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--rubric-light);
  border: 1px solid var(--rubric-light);
  border-radius: var(--radius-sm);
  color: var(--rubric-primary);
  font-size: 14px;
}

.auth-success {
  margin-top: 16px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  color: var(--positive);
  font-size: 14px;
}

.auth-loading {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.loading-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--rubric-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid, .products-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-title { font-size: 36px; }
  .section-title { font-size: 28px; }
  .features-grid, .products-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .upload-card { padding: 24px; }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }
}
