/* ============================================================
   Formwork — Brand System CSS
   Palette: #FFFFFF #1A1A1A #4A6FA5
   Typography: Inter, sharp corners (0px radius everywhere)
   Grid: 12-col, 1200px max-width, 8px spacing unit
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #FFFFFF;
  color: #1A1A1A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: #4A6FA5; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Grid / Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

.row { display: flex; flex-wrap: wrap; gap: 48px; }
.col-4 { flex: 0 0 calc(33.333% - 32px); min-width: 0; }
.col-3 { flex: 0 0 calc(25% - 36px); min-width: 0; }
.col-2 { flex: 0 0 calc(50% - 24px); min-width: 0; }
@media (max-width: 900px) {
  .col-4, .col-3 { flex: 0 0 calc(50% - 24px); }
}
@media (max-width: 600px) {
  .col-4, .col-3, .col-2 { flex: 1 1 100%; }
  .row { gap: 24px; }
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { font-size: 1rem; line-height: 1.7; color: #3A3A3A; }
.lead { font-size: 1.25rem; line-height: 1.6; color: #3A3A3A; }
.label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A6FA5;
}
.divider {
  height: 1px;
  background: #E8E8E8;
  margin: 0;
}

/* ── Section spacing ── */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark {
  background: #1A1A1A;
  color: #FFFFFF;
}
.section--dark p { color: #AAAAAA; }
.section-header { margin-bottom: 48px; }
.section-header h2 { margin: 12px 0; }
.section-header p { max-width: 560px; }
.section--dark .section-header p { color: #AAAAAA; }

/* ── Email Form ── */
.email-form {
  display: flex;
  gap: 0;
  max-width: 480px;
}
.email-form input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #1A1A1A;
  border-right: none;
  background: #FFFFFF;
  color: #1A1A1A;
  outline: none;
  transition: border-color 0.15s;
}
.email-form input[type="email"]:focus {
  border-color: #4A6FA5;
}
.email-form button {
  padding: 14px 24px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: #1A1A1A;
  color: #FFFFFF;
  border: 2px solid #1A1A1A;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.email-form button:hover { background: #4A6FA5; border-color: #4A6FA5; }
.email-form .form-error {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #C0392B;
  min-height: 20px;
}
.email-form .form-success {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #2D7A3A;
  min-height: 20px;
}
@media (max-width: 500px) {
  .email-form { flex-direction: column; }
  .email-form input[type="email"] { border-right: 2px solid #1A1A1A; }
  .email-form input[type="email"]:focus { border-color: #4A6FA5; }
  .email-form button { padding: 14px; }
}

/* ── Cards (Homeowner tools) ── */
.card {
  border: 1px solid #E0E0E0;
  padding: 32px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 { margin-bottom: 4px; }
.card p { font-size: 0.9375rem; }
.card .badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #4A6FA5;
  color: #FFFFFF;
  padding: 3px 8px;
  align-self: flex-start;
}

/* ── Pricing Tiers (Builder SaaS) ── */
.tier-card {
  border: 1px solid #E0E0E0;
  padding: 32px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier-card--dark {
  background: #2A2A2A;
  border-color: #3A3A3A;
}
.tier-card h3 { font-size: 1.125rem; font-weight: 700; }
.tier-card .price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1A1A1A;
  letter-spacing: -0.02em;
}
.tier-card--dark .price { color: #FFFFFF; }
.tier-card .price-sub {
  font-size: 0.75rem;
  color: #888;
  margin-top: -8px;
}
.tier-card--dark .price-sub { color: #888; }
.tier-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tier-card li {
  font-size: 0.875rem;
  color: #3A3A3A;
  padding-left: 20px;
  position: relative;
}
.tier-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: #4A6FA5;
}
.tier-card--dark li { color: #BBBBBB; }
.tier-card .cta-small {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #4A6FA5;
  color: #FFFFFF;
  border: 2px solid #4A6FA5;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
}
.tier-card .cta-small:hover { background: #3A5A8A; border-color: #3A5A8A; }
.tier-card--dark .cta-small {
  background: transparent;
  border-color: #4A6FA5;
  color: #4A6FA5;
}
.tier-card--dark .cta-small:hover {
  background: #4A6FA5;
  color: #FFFFFF;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #E8E8E8;
}
.hero-content {
  padding: 96px 64px 96px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}
.hero-content h1 { max-width: 14ch; }
.hero-content .lead { max-width: 40ch; }
.hero-image {
  background: #1A1A1A;
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  mix-blend-mode: luminosity;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 80px 0 64px; }
  .hero-image { height: 320px; }
}

/* ── Newsletter CTA ── */
.newsletter-cta {
  background: #F4F4F4;
  padding: 64px 0;
}
.newsletter-cta .inner {
  max-width: 640px;
}
.newsletter-cta .form-wrap {
  margin-top: 24px;
}

/* ── Footer ── */
.footer {
  background: #1A1A1A;
  color: #AAAAAA;
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}
.footer-brand h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.footer-brand p {
  font-size: 0.875rem;
  color: #888888;
  max-width: 360px;
}
.footer-legal p {
  font-size: 0.75rem;
  color: #666666;
  max-width: 420px;
  line-height: 1.6;
  text-align: right;
}
.footer-bottom {
  border-top: 1px solid #2A2A2A;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #555555;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #555555; font-size: 0.75rem; }
.footer-links a:hover { color: #4A6FA5; }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal p { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ── Misc ── */
.form-note {
  font-size: 0.75rem;
  color: #888;
  margin-top: 6px;
}
.section--centered { text-align: center; }
.section--centered .section-header { margin: 0 auto 48px; }
.section--centered .section-header p { margin: 0 auto; }

/* Form feedback states */
.form-row { display: flex; flex-direction: column; gap: 4px; }