/* Scan Print Keepsakes — workshop design system.
   Zero-build, zero external requests: system fonts, pure CSS.
   Palette: warm workshop white, charcoal, scanner teal, filament amber. */

:root {
  --bg: #f5f5f2;
  --bg-2: #fdfdfb;
  --char: #24282b;
  --char-soft: #5a6167;
  --teal: #0e7c86;
  --teal-deep: #0a5f67;
  --amber: #c07a1e;
  --line: #e0e0d8;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 16px 44px rgba(36, 40, 43, 0.13);
  --shadow-soft: 0 6px 18px rgba(36, 40, 43, 0.08);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--char);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dl {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 750;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5.8vw, 4.3rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.muted {
  color: var(--char-soft);
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 242, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand strong {
  display: block;
  font-size: 0.97rem;
  line-height: 1.15;
}

.brand small {
  display: block;
  color: var(--char-soft);
  font-size: 0.72rem;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.topbar nav a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--char-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.topbar nav a:hover {
  background: rgba(14, 124, 134, 0.1);
  color: var(--teal-deep);
}

.topbar nav a.nav-cta {
  margin-left: 6px;
  background: var(--teal);
  color: #fff;
}

.topbar nav a.nav-cta:hover {
  background: var(--teal-deep);
  color: #fff;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--char);
  border-radius: 8px;
  padding: 11px 20px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  border-color: var(--teal-deep);
  background: var(--teal);
  color: #fff;
}

.button.primary:hover {
  background: var(--teal-deep);
}

.button.secondary {
  background: transparent;
  color: var(--char);
}

.button.secondary:hover {
  background: rgba(36, 40, 43, 0.06);
}

.button.compact {
  min-height: 36px;
  border-width: 1px;
  padding: 7px 12px;
  font-size: 0.84rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 110px) clamp(18px, 5vw, 72px) clamp(48px, 7vw, 96px);
  background-image:
    linear-gradient(rgba(224, 224, 216, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 224, 216, 0.55) 1px, transparent 1px);
  background-size: 34px 34px;
}

.lead {
  max-width: 620px;
  color: var(--char-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
}

.lead strong {
  color: var(--char);
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--char-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.trust-row li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--amber);
  vertical-align: 1px;
}

/* process diagram — concept, replaced by real footage after first commission */

.process-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  padding: 22px;
}

.process-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.process-visual figcaption {
  margin-top: 12px;
  color: var(--char-soft);
  font-family: var(--mono);
  font-size: 0.76rem;
}

/* ---------- shared section scaffolding ---------- */

.section {
  padding: clamp(48px, 7vw, 100px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--char-soft);
}

.band {
  border-top: 1px solid var(--line);
}

.band.tint {
  background: var(--bg-2);
}

.band.dark {
  background: var(--char);
  color: #f4f4f1;
}

.band.dark .eyebrow {
  color: #6fc7cf;
}

.band.dark .section-heading p,
.band.dark .muted {
  color: rgba(244, 244, 241, 0.72);
}

/* ---------- lanes ---------- */

.lane-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lane-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 24px 22px;
}

.lane-card .lane-tag {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 5px;
  padding: 4px 8px;
  background: rgba(14, 124, 134, 0.1);
  color: var(--teal-deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lane-card p {
  margin-bottom: 0;
  color: var(--char-soft);
  font-size: 0.95rem;
}

/* ---------- steps ---------- */

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

.steps li {
  counter-increment: step;
  border: 1px solid rgba(244, 244, 241, 0.2);
  border-radius: var(--radius);
  background: rgba(244, 244, 241, 0.06);
  padding: 22px 20px;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 12px;
  color: #6fc7cf;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.steps span {
  color: rgba(244, 244, 241, 0.72);
  font-size: 0.94rem;
}

/* ---------- offer ladder ---------- */

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

.offer-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 26px 24px;
}

.offer-card.featured {
  border-color: rgba(14, 124, 134, 0.55);
  box-shadow: var(--shadow);
}

.offer-card .status {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  border-radius: 5px;
  padding: 4px 9px;
  background: rgba(192, 122, 30, 0.13);
  color: #8a5715;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.offer-card.featured .status {
  background: rgba(14, 124, 134, 0.12);
  color: var(--teal-deep);
}

.price {
  margin: 2px 0 10px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price small {
  color: var(--char-soft);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
}

.offer-card p {
  color: var(--char-soft);
}

.offer-card ul {
  margin: 10px 0 18px;
  padding-left: 18px;
  color: var(--char-soft);
  font-size: 0.94rem;
}

.offer-card li {
  margin-bottom: 5px;
}

.offer-card .button {
  margin-top: auto;
}

/* ---------- honest limits ---------- */

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

.limit-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 22px 20px;
}

.limit-card h3 {
  font-size: 1rem;
}

.limit-card p {
  margin-bottom: 0;
  color: var(--char-soft);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 780px;
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}

.faq-list summary {
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--char-soft);
}

/* ---------- reserve / intake ---------- */

.reserve {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 1.08fr);
  gap: 26px;
  align-items: start;
}

.reserve .section-heading {
  grid-column: 1 / -1;
}

.intake-form {
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 26px 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--char-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: var(--char);
  font: inherit;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.form-hint {
  margin: 0;
  color: var(--char-soft);
  font-size: 0.84rem;
}

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

.output-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.output-header h3 {
  margin: 0;
}

.output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

pre {
  min-height: 110px;
  margin: 0 0 20px;
  overflow: auto;
  border-radius: 8px;
  padding: 16px;
  background: #1d2124;
  color: #eef2f0;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

pre:last-child {
  margin-bottom: 0;
}

/* ---------- guide pages ---------- */

.guide-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 40px) clamp(56px, 8vw, 100px);
}

.guide-main .lead {
  margin-bottom: 30px;
}

.guide-main h2 {
  margin-top: 44px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.guide-callout {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 20px 22px;
}

.guide-callout p {
  margin: 0;
  color: var(--char-soft);
}

.guide-callout strong {
  color: var(--char);
}

.guide-cta {
  display: grid;
  gap: 14px;
  margin: 44px 0 0;
  border: 1px solid rgba(14, 124, 134, 0.45);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: var(--shadow-soft);
  padding: 28px 26px;
}

.guide-cta h2 {
  margin: 0;
}

.guide-cta .button {
  justify-self: start;
}

.guide-links {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.guide-links a {
  color: var(--teal-deep);
  font-weight: 600;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--char);
  color: rgba(244, 244, 241, 0.85);
  padding: 40px clamp(18px, 5vw, 72px) 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: 28px;
}

.footer h3 {
  color: #f4f4f1;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer p {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 0.92rem;
}

.footer a {
  color: #8fd4da;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 244, 241, 0.16);
  color: rgba(244, 244, 241, 0.55);
  font-size: 0.8rem;
}

/* ---------- reveal motion ---------- */

.will-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: none;
  }
}

/* ---------- responsive ---------- */

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

  .lane-grid,
  .steps,
  .limit-list,
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .lane-grid,
  .steps,
  .limit-list,
  .offer-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
