/* ============================================================
   Quotator Website — style.css
   ============================================================ */

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

:root {
  --bg:           #FDFCFA;
  --bg-alt:       #F5F1EB;
  --surface:      #FFFFFF;
  --border:       #E8E2D9;
  --text:         #1C1917;
  --text-sec:     #6B6460;
  --accent:       #6D4AFF;
  --accent-dark:  #5639D4;
  --accent-light: #EEE9FF;
  --quote-mark:   #C49A3C;
  --max:          960px;
  --nav-h:        64px;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 2px 12px rgba(28, 25, 23, 0.08);
  --shadow-lg:    0 8px 32px rgba(28, 25, 23, 0.12);
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-mark {
  font-size: 22px;
  color: var(--quote-mark);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-sec);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  border-radius: 100px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 80px 24px 72px;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--text-sec);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}

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

/* Hero widget mock */
.hero-mockup {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
}

.widget-mock {
  background: #1A1025;
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  font-family: Georgia, 'Times New Roman', serif;
  color: #F5E8C8;
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.widget-mock.medium {
  width: 280px;
  min-height: 140px;
}

.widget-mock.large {
  width: 280px;
  min-height: 280px;
  background: #0F2340;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  color: #E8F4FF;
}

.widget-mock::before {
  content: '"';
  position: absolute;
  top: -14px;
  left: 10px;
  font-size: 100px;
  opacity: 0.10;
  font-family: Georgia, serif;
  color: #fff;
  line-height: 1;
}

.widget-mock-text {
  font-size: 24px;
  line-height: 1.18;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.widget-mock.large .widget-mock-text {
  font-size: 34px;
  line-height: 1.15;
}

.widget-mock-author {
  font-size: 15px;
  opacity: 0.7;
  margin-top: 12px;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.widget-mock.large .widget-mock-author {
  font-size: 19px;
  margin-top: 16px;
}

/* ---- Section ---- */
.section {
  padding: 72px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
}

.section-alt .section {
  max-width: 100%;
  padding: 72px 24px;
}

.section-alt .section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.section-body {
  font-size: 18px;
  color: var(--text-sec);
  max-width: 560px;
  line-height: 1.6;
}

/* ---- Feature Cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

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

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

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.55;
}

/* ---- Key differentiator strip ---- */
.diff-strip {
  background: var(--text);
  color: #fff;
  padding: 56px 24px;
}

.diff-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

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

.diff-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--quote-mark);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}

.diff-label {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.45;
}

/* ---- Two-col layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: start;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ---- List styles ---- */
.feature-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--text);
}

.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Content pages (guide, faq, privacy) ---- */
.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.content-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.content-page .page-sub {
  font-size: 18px;
  color: var(--text-sec);
  margin-bottom: 48px;
}

.content-page h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 48px 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.content-page h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-page h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.content-page p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-page ul,
.content-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-page li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 6px;
}

.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 15px;
}

.content-page table th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--text-sec);
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
}

.content-page table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.content-page code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13.5px;
  padding: 1px 5px;
}

.content-page pre {
  background: var(--text);
  color: #F5F5F0;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 16px 0 24px;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  line-height: 1.4;
}

.faq-q::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--text-sec);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.7;
  padding-bottom: 20px;
}

.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }

.faq-item.open .faq-a {
  display: block;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.cta-band h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-decoration: none;
  color: var(--accent);
}

/* ---- Footer ---- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.55);
  padding: 40px 24px;
  font-size: 14px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #fff;
}

/* ---- Contact form ---- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  padding: 12px 24px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s;
}

.form-submit:hover {
  background: var(--accent-dark);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav-toggle { display: block; }
  .nav { position: sticky; }

  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }

  .hero { padding: 48px 20px 56px; }

  .section { padding: 52px 20px; }

  .widget-mock.medium, .widget-mock.large { width: 240px; }
  .widget-mock.large { min-height: 240px; }

  .diff-strip-inner { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 400px) {
  .diff-strip-inner { grid-template-columns: 1fr; }
}
