/* ============================================================
   Trinh Tools — Shared Stylesheet
   trinhtools.com
   ============================================================ */

:root {
  --primary:    #2563eb;
  --primary-dk: #1d4ed8;
  --success:    #10b981;
  --success-dk: #059669;
  --text:       #1e293b;
  --muted:      #64748b;
  --surface:    #ffffff;
  --bg:         #f5f6fa;
  --border:     #e2e8f0;
  --danger:     #ef4444;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --max-w:      1100px;
  --nav-h:      64px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 4vw, 3rem);   font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.2rem;  font-weight: 700; }
h4 { font-size: 1rem;    font-weight: 600; }
p  { color: var(--muted); line-height: 1.75; }
p.dark { color: var(--text); }

/* ── Layout helpers ─────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.center     { text-align: center; }
.flex       { display: flex; align-items: center; gap: 16px; }
.grid-2     { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 2px solid transparent; transition: all .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dk); border-color: var(--primary-dk);
  text-decoration: none; color: #fff;
}
.btn-success {
  background: var(--success); color: #fff; border-color: var(--success);
}
.btn-success:hover {
  background: var(--success-dk); border-color: var(--success-dk);
  text-decoration: none; color: #fff;
}
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary); color: #fff; text-decoration: none;
}
.btn-ghost {
  background: transparent; color: var(--muted); border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary); color: var(--primary); text-decoration: none;
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Navigation ─────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: 0.9rem;
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }
.nav-cta { margin-left: 16px; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0; transition: all .2s;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a6e 60%, #1d4ed8 100%);
  color: #fff; padding: 100px 0 90px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,.75);
  max-width: 560px; margin-bottom: 36px; line-height: 1.7;
}
.hero-sub.center { margin-left: auto; margin-right: auto; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-badge {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); padding: 6px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p  { font-size: 0.9rem; margin-bottom: 16px; }

/* Tool accent colors */
.accent-blue   { background: #eff6ff; color: #2563eb; }
.accent-purple { background: #f5f3ff; color: #7c3aed; }
.accent-cyan   { background: #ecfeff; color: #0891b2; }
.accent-green  { background: #ecfdf5; color: #059669; }
.accent-amber  { background: #fffbeb; color: #d97706; }
.accent-red    { background: #fef2f2; color: #dc2626; }

/* ── Pricing cards ──────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.pricing-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow); position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1), var(--shadow-lg);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 4px 16px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  white-space: nowrap;
}
.pricing-name { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; }
.pricing-price span { font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.pricing-once { font-size: 0.85rem; color: var(--success); font-weight: 600; margin: 6px 0 20px; }
.pricing-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  font-size: 0.9rem; color: var(--text); padding: 7px 0;
  border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start;
}
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Steps / How it works ───────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; padding: 24px 16px; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { margin-bottom: 8px; }

/* ── Trust / feature strips ─────────────────────────────── */
.trust-strip {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 500; color: var(--text); }
.trust-icon { font-size: 1.2rem; }

/* ── Section headers ────────────────────────────────────── */
.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary); margin-bottom: 10px;
}
.section-heading { margin-bottom: 12px; }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 0 auto 48px; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 0.95rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; font-size: 0.9rem; }

/* ── Comparison table ───────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table th {
  background: var(--primary); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600;
}
.compare-table th:first-child { border-radius: var(--radius) 0 0 0; }
.compare-table th:last-child  { border-radius: 0 var(--radius) 0 0; }
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: #f8fafc; }
.compare-table .highlight td:first-child { font-weight: 700; color: var(--success); }
.yes { color: var(--success); font-weight: 700; }
.no  { color: #94a3b8; }

/* ── CTA banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #1e3a6e, #2563eb);
  color: #fff; padding: 72px 0; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p  { color: rgba(255,255,255,.75); margin-bottom: 32px; font-size: 1.05rem; }
.cta-banner .btn-success { font-size: 1.05rem; padding: 16px 40px; }

/* ── Page hero (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a6e);
  color: #fff; padding: 64px 0 56px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto; }

/* ── About ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.about-photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  background: var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem; text-align: center; padding: 24px;
}
.about-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.about-tool-tag {
  background: #eff6ff; border: 1px solid #bfdbfe; color: var(--primary);
  padding: 8px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 500;
}

/* ── Contact ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-weight: 600; font-size: 0.875rem; display: block; margin-bottom: 4px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.9rem; font-family: inherit;
  background: var(--surface); color: var(--text); transition: border-color .15s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: #0f172a; color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: rgba(255,255,255,.5); font-size: 0.875rem; margin-top: 10px; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 0.875rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .03em; }
.footer-col a  {
  display: block; color: rgba(255,255,255,.55); font-size: 0.875rem;
  margin-bottom: 10px; text-decoration: none; transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 12px;
}
.footer-logo { font-weight: 800; font-size: 1.1rem; color: #fff; text-decoration: none; }
.footer-logo span { color: var(--primary); }

/* ── Prose (legal pages) ────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin: 40px 0 12px; color: var(--text); }
.prose h3 { font-size: 1.05rem; margin: 28px 0 8px; color: var(--text); }
.prose p  { color: var(--muted); margin-bottom: 16px; font-size: 0.95rem; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose li { color: var(--muted); margin-bottom: 8px; font-size: 0.95rem; line-height: 1.7; }
.prose strong { color: var(--text); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.prose .callout {
  background: #eff6ff; border-left: 4px solid var(--primary);
  padding: 16px 20px; border-radius: 0 6px 6px 0; margin: 24px 0;
}
.prose .callout p { color: var(--text); margin: 0; font-size: 0.9rem; }

/* ── Tool page ──────────────────────────────────────────── */
.tool-hero { padding: 72px 0 64px; }
.tool-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tool-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.tool-screenshot {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-lg); min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem; text-align: center;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2, .grid-3, .steps, .about-grid, .contact-grid, .tool-hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
