/* =====================================================
   GAVEL — Marketing Site Stylesheet
   Design system matched to app.gavelusa.com
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0f1e3d;
  --navy-mid: #1a2f5a;
  --navy-light: #243d73;
  --gold: #c8a84b;
  --gold-light: #e8d5a3;
  --gold-pale: #f8f3e8;
  --cream: #faf8f4;
  --white: #ffffff;
  --gray-100: #f4f2ee;
  --gray-200: #e8e4dc;
  --gray-300: #d8d3c9;
  --gray-400: #9a9488;
  --gray-500: #7a7468;
  --gray-600: #5a5650;
  --gray-800: #2a2724;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;

  --max-width: 1180px;
  --max-width-narrow: 780px;
  --header-height: 72px;

  --shadow-sm: 0 1px 2px rgba(15, 30, 61, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 30, 61, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 30, 61, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-container {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 32px; height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo-link { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.logo-mark { width: 28px; height: 28px; }
.logo-text {
  font-family: var(--font-serif); font-weight: 700; font-size: 22px;
  letter-spacing: 0.5px; color: var(--navy);
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  letter-spacing: 0.02em; transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-login { font-size: 14px; font-weight: 500; color: var(--gray-600); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy);
  margin: 4px 0; transition: 0.3s;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  letter-spacing: 0.01em; padding: 12px 24px; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.18s ease; white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-primary:hover {
  background: var(--navy-mid); color: var(--gold-light);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn-secondary:hover { border-color: var(--navy); background: var(--white); color: var(--navy); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover {
  background: var(--gold-light); color: var(--navy);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-large { font-size: 16px; padding: 16px 32px; }
.btn-full { width: 100%; }

/* LAYOUT */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; }
.section-tight { padding: 60px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-gold-pale { background: var(--gold-pale); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--cream); }
.section-navy p { color: rgba(250, 248, 244, 0.8); }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.eyebrow-gray { color: var(--gray-400); }

/* TYPE */
h1, h2, h3, h4 {
  font-family: var(--font-serif); font-weight: 600;
  line-height: 1.15; color: var(--navy); letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(44px, 6vw, 72px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em;
}
h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 24px; }
h3 { font-size: 22px; margin-bottom: 12px; }
p { color: var(--gray-600); }
.lead { font-size: 20px; line-height: 1.55; color: var(--gray-600); margin-bottom: 32px; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-header p { font-size: 18px; margin-top: 16px; }

/* HERO */
.hero { position: relative; padding: 120px 0 100px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--gold-pale) 0%, transparent 65%);
  opacity: 0.7; pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 880px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero-sub {
  font-size: 21px; line-height: 1.5; color: var(--gray-600);
  max-width: 640px; margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14px; color: var(--gray-500); margin-left: 8px; }

/* FEATURE GRID */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-card {
  padding: 32px 28px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 8px;
  transition: all 0.25s ease;
}
.feature-card:hover {
  border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; background: var(--gold-pale);
  color: var(--gold); border-radius: 6px; margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; font-size: 20px; }
.feature-card p { font-size: 15px; line-height: 1.55; }

/* DOCS GRID */
.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.doc-tile {
  padding: 22px 20px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--navy);
  transition: all 0.18s ease; display: flex; align-items: center; gap: 10px;
}
.doc-tile:hover { border-color: var(--gold); background: var(--gold-pale); transform: translateY(-2px); }
.doc-tile-icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--gold); }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: step-counter; }
.step { position: relative; counter-increment: step-counter; }
.step::before {
  content: counter(step-counter, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 56px; font-weight: 400;
  color: var(--gold); line-height: 1; display: block;
  margin-bottom: 20px; opacity: 0.85;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.6; }

/* PRICING */
.pricing-card {
  max-width: 480px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 10px;
  padding: 48px 40px; text-align: center;
  box-shadow: var(--shadow-lg); position: relative;
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 10px 10px 0 0;
}
.pricing-label {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.pricing-amount {
  font-family: var(--font-serif); font-size: 72px; font-weight: 700;
  color: var(--navy); line-height: 1; margin: 8px 0;
}
.pricing-amount .currency {
  font-size: 36px; vertical-align: top; margin-right: 4px;
  color: var(--gray-400); font-weight: 500;
}
.pricing-amount .period {
  font-size: 18px; color: var(--gray-500); font-weight: 400;
  font-family: var(--font-sans); margin-left: 6px;
}
.pricing-card p.trial-note { font-size: 15px; color: var(--gray-500); margin: 16px 0 32px; }
.pricing-features {
  list-style: none; text-align: left; margin: 32px 0; padding: 32px 0;
  border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
}
.pricing-features li {
  padding: 8px 0; font-size: 15px; color: var(--gray-600);
  display: flex; align-items: flex-start; gap: 12px;
}
.pricing-features li::before {
  content: ''; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23c8a84b'><path fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
}

/* FORMS */
.form-card {
  max-width: 460px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 10px;
  padding: 48px 40px; box-shadow: var(--shadow-md);
}
.form-card h1 { font-size: 32px; margin-bottom: 8px; text-align: center; }
.form-card .form-sub {
  text-align: center; color: var(--gray-500); font-size: 15px; margin-bottom: 32px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--gray-600); margin-bottom: 6px; letter-spacing: 0.02em;
}
.form-input {
  width: 100%; padding: 12px 14px; font-family: var(--font-sans);
  font-size: 15px; color: var(--navy); background: var(--cream);
  border: 1px solid var(--gray-200); border-radius: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-input:focus {
  outline: none; border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.12);
}
.form-submit { margin-top: 10px; }
.form-footer { margin-top: 24px; text-align: center; font-size: 14px; color: var(--gray-500); }
.form-footer a { color: var(--navy); font-weight: 500; }
.form-footer a:hover { color: var(--gold); }
.form-hint { font-size: 13px; color: var(--gray-500); margin-top: 6px; }

.trial-banner {
  background: var(--gold-pale); border: 1px solid var(--gold-light);
  border-radius: 6px; padding: 14px 16px; margin-bottom: 24px;
  font-size: 14px; color: var(--navy); line-height: 1.5;
}
.trial-banner strong { color: var(--navy); font-weight: 600; }

.form-error {
  display: none; background: #fff0f0; border: 1px solid #e8c0c0;
  color: #8b1a1a; font-size: 14px; padding: 12px 14px;
  border-radius: 6px; margin-bottom: 16px;
}
.form-success {
  display: none; background: var(--gold-pale); border: 1px solid var(--gold-light);
  color: var(--navy); font-size: 14px; padding: 12px 14px;
  border-radius: 6px; margin-bottom: 16px;
}

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 24px 0; }
.faq-question {
  font-family: var(--font-serif); font-size: 19px; font-weight: 600;
  color: var(--navy); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-question::after {
  content: '+'; font-size: 24px; color: var(--gold);
  font-weight: 300; transition: transform 0.2s ease; flex-shrink: 0;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding-top: 14px; font-size: 16px; color: var(--gray-600); line-height: 1.65;
}

/* CTA BANNER */
.cta-banner {
  background: var(--navy); color: var(--cream);
  padding: 80px 32px; border-radius: 14px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200, 168, 75, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--cream); margin-bottom: 16px; position: relative; }
.cta-banner p {
  color: rgba(250, 248, 244, 0.8); font-size: 18px;
  margin-bottom: 32px; max-width: 560px;
  margin-left: auto; margin-right: auto; position: relative;
}
.cta-banner .btn { position: relative; }

/* FOOTER */
.site-footer {
  background: var(--navy); color: rgba(250, 248, 244, 0.7);
  padding: 72px 0 40px; font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo-text { color: var(--cream); margin-bottom: 12px; display: block; }
.footer-brand p {
  color: rgba(250, 248, 244, 0.6); font-size: 14px;
  max-width: 300px; line-height: 1.6;
}
.footer-col h4 {
  color: var(--gold); font-family: var(--font-sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(250, 248, 244, 0.7); font-size: 14px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid rgba(250, 248, 244, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: rgba(250, 248, 244, 0.5); font-size: 13px;
}
.footer-disclaimer { max-width: 720px; line-height: 1.55; }

/* PAGE HEADER */
.page-header {
  padding: 72px 0 48px; text-align: center;
  background: var(--cream); border-bottom: 1px solid var(--gray-200);
}
.page-header h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.page-header p { font-size: 19px; max-width: 640px; margin: 0 auto; }

/* LONGFORM */
.longform { max-width: 780px; margin: 0 auto; }
.longform h2 { font-size: 28px; margin-top: 48px; margin-bottom: 16px; }
.longform h2:first-child { margin-top: 0; }
.longform p { font-size: 16px; margin-bottom: 16px; color: var(--gray-600); line-height: 1.7; }
.longform ul { margin: 16px 0 24px 20px; }
.longform li { margin-bottom: 8px; color: var(--gray-600); }
.longform .updated { color: var(--gray-400); font-size: 14px; margin-bottom: 32px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 60px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links {
    display: none; position: absolute; top: var(--header-height);
    left: 0; right: 0; background: var(--cream);
    flex-direction: column; padding: 24px 32px;
    border-bottom: 1px solid var(--gray-200);
    gap: 20px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .nav-login { display: none; }
  .container, .nav-container { padding: 0 20px; }
  .docs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-card, .form-card { padding: 32px 24px; }
  .pricing-amount { font-size: 56px; }
  .cta-banner { padding: 48px 24px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .hero-note { margin-left: 0; text-align: center; }
}
