/* =========================================================
   The Hammer Lex marketing site — global styles
   Brand: navy #14213D, gold #C9A24B, DM Sans
   Edit color tokens here once; applies site-wide.
   ========================================================= */
:root {
  --color-bg: #ffffff;
  --color-surface: #F5F4F1;
  --color-text: #1A2238;
  --color-muted: #5C6478;
  --color-primary: #C9A24B;        /* HammerLex brand green */
  --color-primary-ink: #14213D;    /* readable text on green */
  --color-primary-dark: #A8842F;
  --color-forest: #14213D;         /* deep brand green (logo bg) */
  --color-border: #E6E6EC;
  --color-dark: #0E1830;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(20,33,61,0.12);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--color-text);
  background: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.18; color: var(--color-text); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--alt { background: var(--color-surface); }
.section--forest { background: var(--color-forest); color: #C9D2E2; }
.section--forest h2 { color: #fff; }
.section__head { max-width: 740px; margin: 0 auto 52px; text-align: center; }
.section__head p { color: var(--color-muted); font-size: 1.1rem; }
.section--forest .section__head p { color: #94A0BA; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 12px;
}
.section--forest .eyebrow { color: var(--color-primary); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: var(--color-primary-ink); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--color-primary-dark); color: #14213D; }
.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.btn--light { background: #fff; color: var(--color-primary-ink); }
.btn--light:hover { background: #FBF4E2; color: var(--color-primary-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* Grouped CTAs */
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta-band .cta-actions { margin-top: 4px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--color-text); }
.nav__brand:hover { text-decoration: none; }
.nav__brand img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--color-muted); font-weight: 500; }
.nav__links a:hover, .nav__links a.is-active { color: var(--color-text); text-decoration: none; }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; }

/* Hero */
.hero { padding: 96px 0 76px; background: radial-gradient(1100px 480px at 75% -10%, #F3EAD2 0%, transparent 60%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .pill {
  display: inline-flex; gap: 8px; align-items: center; background: #F6EEDA; color: var(--color-primary-dark);
  font-weight: 600; font-size: .82rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero p.lead { font-size: 1.18rem; color: var(--color-muted); max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__note { color: var(--color-muted); font-size: .88rem; margin-top: 14px; }
.hero__stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero__stat strong { display: block; font-size: 1.8rem; color: var(--color-text); }
.hero__stat span { color: var(--color-muted); font-size: .9rem; }
.hero__art {
  aspect-ratio: 4/3.2; border-radius: var(--radius); box-shadow: var(--shadow);
  background: linear-gradient(140deg, var(--color-forest) 0%, #243A6B 55%, var(--color-primary) 130%);
  position: relative; overflow: hidden;
}
.hero__art::before {
  content: ""; position: absolute; inset: 18px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
}
.hero__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(255,255,255,.30) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 66%, rgba(255,255,255,.22) 0 2px, transparent 3px);
  background-size: 46px 46px;
}

/* Product mockup screenshots (SVG) */
.app-shot {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(20,33,61,0.14);
}
.split .app-shot { box-shadow: 0 14px 40px rgba(20,33,61,0.12); }

/* Logos */
.logos { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center; opacity: .7; }
.logos span { font-weight: 700; color: var(--color-muted); font-size: 1.08rem; }

/* Cards / grid */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  background: #F6EEDA; color: var(--color-primary-dark); display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 800;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-muted); margin: 0; }

/* Split / values */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.value-list li { display: flex; gap: 14px; }
.value-list .tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: #F6EEDA;
  color: var(--color-primary-dark); display: grid; place-items: center; font-weight: 800; margin-top: 2px;
}
.value-list strong { display: block; }
.value-list span { color: var(--color-muted); }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--color-border); }
.compare thead th { background: var(--color-forest); color: #fff; font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--color-primary-dark); font-weight: 700; }
.compare .no { color: #b23b3b; font-weight: 700; }
.compare td small { color: var(--color-muted); display: block; font-weight: 400; }

/* Team */
.member { text-align: center; }
.member__avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--color-forest), var(--color-primary));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.5rem;
}
.member h3 { margin-bottom: 2px; }
.member span { color: var(--color-muted); font-size: .92rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-card { text-align: center; }
.price-card .tier { font-weight: 700; color: var(--color-muted); }
.price-card .amount { font-size: 2.1rem; font-weight: 700; margin: 8px 0 2px; }
.price-card .amount span { font-size: .9rem; color: var(--color-muted); font-weight: 400; display:block; }
.price-card.is-featured { border-color: var(--color-primary); box-shadow: var(--shadow); }
.price-panel {
  max-width: 720px; margin: 0 auto; text-align: left;
  background: #fff; border: 1px solid var(--color-border); border-radius: 18px;
  padding: 44px; box-shadow: var(--shadow);
}
.price-panel h2 { margin-bottom: 12px; }
.price-panel > p { color: var(--color-muted); font-size: 1.05rem; }
.badge { display:inline-block; background: var(--color-primary); color: var(--color-primary-ink); font-size:.72rem; font-weight:700; padding:4px 10px; border-radius:999px; margin-bottom:10px; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border: 1px solid var(--color-border); border-radius: 12px; padding: 4px 20px; margin-bottom: 14px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-primary-dark); font-size: 1.4rem; font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--color-muted); padding-bottom: 16px; margin: 0; }

/* CTA band */
.cta-band { background: var(--color-forest); color: #fff; border-radius: 18px; padding: 56px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #94A0BA; max-width: 580px; margin: 0 auto 28px; }

/* Quote */
.quote { max-width: 780px; margin: 0 auto; text-align: center; }
.quote h2 { font-weight: 500; }
.quote__who { color: var(--color-muted); margin-top: 16px; }

/* Page hero */
.page-hero { background: var(--color-surface); padding: 66px 0; text-align: center; border-bottom: 1px solid var(--color-border); }
.page-hero p { color: var(--color-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--color-text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(201,162,75,.30);
}
.form-note { font-size: .88rem; color: var(--color-muted); }
.contact-info ul { padding: 0; margin: 0; }
.contact-info li { list-style: none; margin: 0 0 18px; padding: 0; }
.contact-info strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); }
#form-status { margin-top: 14px; font-weight: 600; }

/* Footer */
.site-footer { background: var(--color-dark); color: #94A0BA; padding: 58px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.site-footer a { color: #94A0BA; }
.site-footer a:hover { color: #fff; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer__brand img { height: 30px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }

/* Responsive */
@media (max-width: 880px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    padding: 8px 0; transform: translateY(-130%); transition: transform .25s ease; height: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 24px; }
  .nav__cta { margin: 8px 24px 12px; }
  .nav__toggle { display: flex; }
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero__art, .hero__grid .app-shot { order: -1; }
  .grid--3, .grid--4, .price-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 24px; }
  .compare { font-size: .92rem; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4, .price-grid, .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
