/* === Jutco Industries — Shared Styles === */

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

:root {
  --text: #1a1a1a;
  --text-muted: #666;
  --text-faint: #aaa;
  --bg: #FAFAFA;
  --bg-alt: #f0f0f0;
  --border: #eee;
  --accent: #7C3AED;
  --accent-bg: rgba(124, 58, 237, 0.08);
  --accent-deep: #5B21B6;
  --card-bg: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f0f0f0;
    --text-muted: #999;
    --text-faint: #666;
    --bg: #111111;
    --bg-alt: #1a1a1a;
    --border: #333;
    --accent: #A78BFA;
    --accent-bg: rgba(167, 139, 250, 0.1);
    --accent-deep: #7C3AED;
    --card-bg: #1a1a1a;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

/* --- Layout --- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Site Header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  max-width: 960px;
  margin: 0 auto;
}

.site-header .logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-header .logo:hover { text-decoration: none; color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* --- Site Footer --- */
.site-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 6rem;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--accent); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}
.footer-trademark {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-faint);
  opacity: 0.7;
}

/* --- Homepage Hero --- */
.home-hero {
  text-align: center;
  padding: min(12vh, 10rem) 2rem 4rem;
  background: radial-gradient(ellipse at center, var(--accent-bg) 0%, transparent 70%);
}
.home-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}
.home-hero h1::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1rem auto 0;
}
.home-hero .tagline {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  letter-spacing: 0.01em;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* --- Product Cards --- */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
  text-decoration: none;
}
.product-card .product-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}
.product-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.product-card .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-top: 0.75rem;
}

/* --- About Section --- */
.about {
  max-width: 560px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  text-align: center;
}
.about p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about .contact-link {
  font-size: 0.9rem;
}
.home-about {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  margin-top: 0;
}
.contact-cta a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  padding-bottom: 2px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.contact-cta a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* --- Page Content (Privacy, Support) --- */
.page-content {
  padding: 3rem 0 2rem;
}
.page-content h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-content .page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}
.page-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.page-content p,
.page-content ul {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.page-content ul {
  padding-left: 1.25rem;
}
.page-content li {
  margin-bottom: 0.35rem;
}
.page-content code {
  font-size: 0.82rem;
  background: var(--bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  word-break: break-all;
}
.page-content .contact-block {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--accent-bg);
  border-radius: 10px;
  text-align: center;
}
.page-content .contact-block p {
  color: var(--text);
  margin-bottom: 0.5rem;
}
.page-content .contact-block a {
  font-weight: 500;
}

/* --- FAQ (details/summary) --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item summary {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+';
  display: inline-block;
  width: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}
.faq-item[open] summary::before { content: '\2212'; }
.faq-item .faq-answer {
  padding: 0 0 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item .faq-answer p { margin-bottom: 0.75rem; }
.faq-item .faq-answer ul { padding-left: 1.25rem; }

/* --- Gist Product Page --- */
.gist-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
}
.gist-hero .app-icon {
  width: 140px;
  height: 140px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(91, 33, 182, 0.25));
}
.gist-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.gist-hero .subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}
.pill {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
}
.system-req {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* --- Section blocks --- */
.section {
  padding: 3rem 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-align: center;
}
.section > p,
.section .section-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

/* --- Before/After Table --- */
.rename-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1.5rem 0;
}
.rename-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  padding: 0.5rem 1rem;
  border-bottom: 2px solid var(--border);
}
.rename-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
}
.rename-table .before { color: var(--text-faint); }
.rename-table .after { color: var(--accent); font-weight: 500; }

/* --- Three-Column Breakdown --- */
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.three-col .col h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.three-col .col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.feature {
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.feature h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Pricing --- */
.pricing-block {
  text-align: center;
  padding: 2rem 0;
}
.pricing-block .price {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.pricing-block .price-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- File Types --- */
.file-types {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.file-types strong {
  color: var(--text);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .products { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-header { padding: 1rem 1.5rem; }
  .site-nav { gap: 1rem; font-size: 0.85rem; }
  .gist-hero .app-icon { width: 100px; height: 100px; }
}