/* MarginKept landing page styles */

:root {
  --paper: #EFEDE7;
  --ink: #14201F;
  --orange: #C24A0B;
  --steel: #2B5F75;
  --green: #3A7D44;
  --amber: #C99A1E;
  --red: #B23A2E;
  --line: rgba(20, 32, 31, 0.12);
  --max-width: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .numeral {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 1em; }

a { color: var(--steel); }

img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo span { color: var(--orange); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--steel);
  text-decoration: none;
}

.nav-link:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover { background: #a83e08; }

.btn-small {
  padding: 10px 16px;
  font-size: 0.8rem;
}

/* Hero */
.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}

.hero-shot {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 0 var(--line);
  max-height: 440px;
  max-width: 460px;
  justify-self: end;
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { display: none; }
}

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  max-width: 22ch;
}

.hero .subhead {
  margin-top: 18px;
  font-size: 1.1rem;
  max-width: 52ch;
  color: rgba(20, 32, 31, 0.78);
}

.hero .tagline {
  color: var(--steel);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

/* Email form */
.email-form {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
}

.email-form input[type="email"] {
  flex: 1 1 220px;
  padding: 13px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

.email-form input[type="email"]:focus {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
}

.form-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(20, 32, 31, 0.6);
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* Sections */
section { padding: 56px 0; }

.section-label {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  max-width: 30ch;
  margin-bottom: 8px;
}

.section-intro {
  max-width: 60ch;
  color: rgba(20, 32, 31, 0.75);
  margin-top: 12px;
}

/* Problem grid */
.problem-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 20px;
}

.problem-card .num {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--orange);
  margin-bottom: 10px;
}

.problem-card h3 {
  font-size: 1.05rem;
  text-transform: none;
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 0.92rem;
  color: rgba(20, 32, 31, 0.75);
  margin: 0;
}

.problem-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-section .wrap { padding: 56px 20px; }
.problem-section .problem-card { background: var(--paper); }

/* Product section */
.product-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-item figure {
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 0 var(--line);
}

.product-item figure img {
  width: 100%;
  height: auto;
  display: block;
}

.product-item figcaption {
  font-size: 0.92rem;
  color: rgba(20, 32, 31, 0.8);
}

.product-item figcaption strong {
  color: var(--ink);
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.demo-cta {
  margin-top: 40px;
  text-align: center;
}

.demo-cta p {
  color: rgba(20, 32, 31, 0.75);
  margin-bottom: 14px;
}

/* Credibility */
.credibility {
  background: var(--ink);
  color: var(--paper);
}

.credibility .wrap { padding: 48px 20px; }

.credibility .section-label { color: var(--orange); }

.credibility p {
  font-size: 1.1rem;
  max-width: 62ch;
  color: rgba(239, 237, 231, 0.92);
}

.credibility .signature {
  margin-top: 18px;
  font-weight: 700;
  color: #fff;
}

/* Second capture */
.capture-again {
  text-align: center;
  border-top: 1px solid var(--line);
}

.capture-again .email-form { margin-left: auto; margin-right: auto; justify-content: center; }

.capture-again .section-title { max-width: 100%; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(20, 32, 31, 0.65);
}

.site-footer .logo { font-size: 1rem; }

/* Responsive */
@media (max-width: 780px) {
  .problem-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .site-header .btn-small { padding: 9px 12px; font-size: 0.72rem; }
  .hero { padding: 40px 0 36px; }
  section { padding: 40px 0; }
}
