/* ---------------------------------------------
   The Magnet Fairy — design tokens
--------------------------------------------- */
:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #0088b0;
  --color-accent-700: #006786;
  --color-accent-2: #d6006c;

  --color-text-muted: rgba(32, 30, 29, 0.65);
  --color-text-muted-light: rgba(32, 30, 29, 0.55);
  --color-border: rgba(32, 30, 29, 0.12);

  --font-body: "Source Serif 4", system-ui, sans-serif;
  --font-heading: "Source Serif 4", system-ui, sans-serif;

  --max-width: 1180px;
  --space-1: 5px;
  --space-2: 10px;
  --space-3: 15px;
  --space-4: 20px;
  --space-6: 30px;
  --space-8: 40px;

  --radius-sm: 2px;
  --radius-lg: 4px;

  --shadow-sm: 0 2px 8px rgba(32, 30, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

::selection {
  background: color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
}

p {
  margin: var(--space-2) 0 0;
}

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

/* ---------------------------------------------
   Nav
--------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.nav-brand {
  font-weight: 600;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
}

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

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero {
  padding: var(--space-8) 0 var(--space-6);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-copy h1 {
  font-size: 72px;
  max-width: 11ch;
  line-height: 1.05;
}

.tagline {
  font-size: 24px;
  font-family: var(--font-heading);
  max-width: 14ch;
  color: var(--color-accent-700);
  margin-top: var(--space-1);
}

.lead {
  font-size: 19px;
  max-width: 46ch;
  color: var(--color-text-muted);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.hero-image {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder {
  color: var(--color-text-muted-light);
  font-size: 14px;
  text-align: center;
  padding: var(--space-4);
}

.hero-image-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--color-accent-700);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: rgba(32, 30, 29, 0.05);
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------------------------------------------
   Sections / headings
--------------------------------------------- */
.section {
  padding: var(--space-8) 0;
}

.eyebrow {
  color: var(--color-accent-700);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.section-title {
  font-size: 32px;
  max-width: 20ch;
  margin-top: var(--space-2);
  margin-bottom: var(--space-6);
}

.text-muted {
  color: var(--color-text-muted);
}

/* ---------------------------------------------
   Cards / What we make
--------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.card-title {
  font-size: 20px;
  margin-top: var(--space-3);
}

.card-body {
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.tag-accent {
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  color: var(--color-accent-700);
}

.tag-accent-2 {
  background: color-mix(in srgb, var(--color-accent-2) 15%, transparent);
  color: var(--color-accent-2);
}

.tag-neutral {
  background: rgba(32, 30, 29, 0.08);
  color: var(--color-text);
}

/* ---------------------------------------------
   How it works
--------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.step-num {
  font-size: 40px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-accent);
}

.step h4 {
  font-size: 20px;
  margin-top: var(--space-2);
}

.step p {
  margin-top: var(--space-1);
}

/* ---------------------------------------------
   Contact
--------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.contact-copy .lead {
  max-width: 40ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.field label {
  font-size: 13px;
  font-weight: 600;
}

.input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
}

textarea.input {
  min-height: 100px;
  resize: vertical;
}

.input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-success {
  margin: 0;
}

.form-error {
  margin: 0;
  color: var(--color-accent-2);
  font-size: 14px;
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.footer {
  padding: var(--space-6);
  color: var(--color-text-muted-light);
  font-size: 13px;
}

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

  .hero-image {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .hero-copy h1 {
    font-size: 48px;
    max-width: none;
  }

  .tagline {
    max-width: none;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
}
