/* ==========================================================================
   Easy Prints — shared styles
   Palette: graphite base, filament-green accent, amber secondary
   Type: Space Grotesk (display) + Inter (body) + JetBrains Mono (specs)
   ========================================================================== */

:root {
  --ink: #14161a;
  --panel: #1c1f26;
  --panel-raised: #232730;
  --line: #2f333d;
  --text: #edeff2;
  --text-muted: #8b93a1;
  --accent: #b4ff39;       /* filament green */
  --accent-dim: #8fd42b;
  --amber: #ffb020;        /* secondary — payment / status cues */
  --danger: #ff6b6b;

  --radius: 10px;
  --max-width: 1080px;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Layer-line texture: the signature visual motif. Repeating horizontal
   ridges evoke a print building up layer by layer. Used sparingly. */
.layer-lines {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(180, 255, 57, 0.05) 0px,
    rgba(180, 255, 57, 0.05) 1px,
    transparent 1px,
    transparent 6px
  );
}

a { color: inherit; }

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

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(20, 22, 26, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo .dot {
  color: var(--accent);
}

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

.site-nav nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.site-nav nav a:hover,
.site-nav nav a.active {
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: scale(0.97); }

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

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

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

.btn-ghost:hover { border-color: var(--text-muted); }

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 14ch;
}

.hero p.lede {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Print-progress bar — signature element reused across the site */
.print-bar {
  margin-top: 64px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.print-bar .track {
  height: 6px;
  background: var(--panel-raised);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.print-bar .fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 999px;
  animation: grow 1.6s ease-out;
}

@keyframes grow {
  from { width: 0%; }
  to { width: 72%; }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-head .meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.step .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: block;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-swatch {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(237, 239, 242, 0.35);
  position: relative;
  overflow: hidden;
}

.card-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
}

.card-specs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-price {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 1rem;
  margin-top: auto;
}

/* ---------- Form ---------- */
.form-page {
  padding: 64px 0 96px;
}

.form-shell {
  max-width: 560px;
  margin: 0 auto;
}

.order-summary {
  background: var(--panel);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-summary .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 4px;
}

.order-summary .item-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.order-summary .item-price {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 1.1rem;
  white-space: nowrap;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field .hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.checkbox-row input { margin-top: 3px; }

.checkbox-row label { color: var(--text); font-size: 0.9rem; margin: 0; }

.payment-note {
  background: var(--panel-raised);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.payment-note strong { color: var(--text); }

#form-status {
  margin-top: 18px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

#form-status.success { color: var(--accent); display: block; }
#form-status.error { color: var(--danger); display: block; }

.no-item-warning {
  background: var(--panel);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .site-nav nav { gap: 18px; }
  .hero { padding: 64px 0 48px; }
  .order-summary { flex-direction: column; align-items: flex-start; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
