/* Factory33 site styles. Orange highlights the 33 in the logo. */

:root {
  --ink: #111113;
  --ink-soft: #2a2a2e;
  --paper: #f6f5f1;
  --white: #ffffff;
  --muted: #5d5d63;
  --line: #d9d7d0;
  --accent: #ff5a1f;
  --accent-dark: #d9430c;
  --error: #b3261e;
  --radius: 6px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  z-index: 10;
}

.skip:focus {
  left: 16px;
}

/* Headings */

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 40em;
  font-size: 1.1875rem;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn-ghost:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Currency bar (home page) */

.currency-bar {
  background: #000;
  color: #c9c9cf;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--ink-soft);
}

.currency-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 12px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.currency-bar label {
  font-weight: 600;
}

.currency-bar select {
  width: auto;
  max-width: 220px;
  padding: 4px 8px;
  border: 1px solid #3c3c42;
  border-radius: 4px;
  background: var(--ink-soft);
  color: var(--white);
  font-size: 0.875rem;
}

/* Header */

.site-header {
  background: var(--ink);
  color: var(--white);
}

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

.wordmark img {
  width: auto;
  height: 26px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--accent);
}

.site-nav .btn {
  padding: 10px 16px;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .site-nav a:not(.btn) {
    display: none;
  }
}

.site-nav .btn {
  white-space: nowrap;
}

@media (max-width: 400px) {
  .wrap {
    padding: 0 16px;
  }

  .wordmark img {
    height: 18px;
  }

  .site-nav .btn {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
}

/* Hero */

.hero {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 88px;
}

.hero .lede {
  color: #c9c9cf;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.4vw, 3.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: center;
  gap: 56px;
}

.hero-logo {
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-logo {
    display: none;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Facts strip */

.facts {
  background: var(--ink-soft);
  color: var(--white);
}

.facts ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 28px 20px;
  border-left: 1px solid #3c3c42;
}

.facts li:first-child {
  border-left: 0;
  padding-left: 0;
}

.facts strong {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--accent);
}

.facts span {
  color: #c9c9cf;
  font-size: 0.9375rem;
}

@media (max-width: 720px) {
  .facts ul {
    grid-template-columns: 1fr;
  }

  .facts li,
  .facts li:first-child {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid #3c3c42;
  }

  .facts li:first-child {
    border-top: 0;
  }
}

/* Sections */

.section {
  padding: 80px 0;
}

.section-head {
  max-width: 44em;
  margin-bottom: 40px;
}

.section-alt {
  background: var(--white);
}

/* Products */

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.products li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.products li h3 {
  margin: 0;
}

.products .other {
  grid-column: span 2;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.products .other p {
  margin: 8px 0 0;
  color: #c9c9cf;
  font-size: 0.9375rem;
}

@media (max-width: 600px) {
  .products {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .products li {
    min-height: 112px;
    padding: 16px;
  }

  .products li h3 {
    font-size: 1.0625rem;
  }
}

@media (max-width: 360px) {
  .products {
    grid-template-columns: 1fr;
  }

  .products .other {
    grid-column: auto;
  }

  .products li {
    min-height: 0;
  }
}

/* Pricing */

.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .prices {
    grid-template-columns: minmax(0, 1fr);
  }
}

.price-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.price-card h3 {
  margin-bottom: 6px;
}

.price-note {
  color: var(--muted);
  font-size: 0.9375rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th {
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.price-table td {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.price-table th:last-child,
.price-table td:last-child {
  text-align: right;
}

.price-table td:last-child {
  font-size: 1.25rem;
  font-weight: 900;
}

.price-est {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.price-callout {
  margin-top: 16px;
  padding: 24px;
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.price-callout h3 {
  margin-bottom: 6px;
  color: var(--accent);
}

.price-callout p {
  margin: 0;
  color: #c9c9cf;
}

.price-terms {
  max-width: 48em;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.price-terms li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
  color: var(--muted);
}

.price-terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.price-terms strong {
  color: var(--ink);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 4px solid var(--ink);
  padding-top: 20px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.steps p {
  color: var(--muted);
}

/* How it works, with the factory video */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.how-grid .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.factory-video {
  margin: 0;
}

.factory-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--ink);
}

.factory-video figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .factory-video {
    order: -1;
    max-width: 240px;
  }
}

@media (max-width: 600px) {
  .how-grid .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FAQ */

.faq {
  max-width: 48em;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 20px 32px 20px 0;
  position: relative;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* CTA band */

.cta {
  background: var(--accent);
  color: var(--ink);
  padding: 64px 0;
}

.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 {
  margin: 0;
}

.cta .btn {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.cta .btn:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}

/* Page header (inner pages) */

.page-head {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0;
}

.page-head .lede {
  color: #c9c9cf;
  margin-bottom: 0;
}

.page-head .lede a:hover {
  color: var(--accent);
}

/* Forms */

.form {
  max-width: 44em;
}

.field {
  margin-bottom: 24px;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.field .hint {
  display: block;
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 400;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #b9b7ae;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

@media (max-width: 600px) {
  .row {
    grid-template-columns: 1fr;
  }
}

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #b9b7ae;
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 500;
  cursor: pointer;
}

.choices input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent-dark);
}

.field-error {
  display: block;
  margin-top: 6px;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}

.field-error:empty {
  display: none;
}

[aria-invalid="true"] {
  border-color: var(--error);
}

.form-status {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--error);
  background: #fbeceb;
  color: var(--error);
  font-weight: 600;
}

.form-status[hidden] {
  display: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: #c9c9cf;
  padding: 40px 0;
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
