/* Solancr - Main Stylesheet
   Simple black & white theme. Off-white background.
   No gradients, blur, shadows, neon, or animations.
   Fully responsive with mobile nav toggle. */

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li,
figure, blockquote,
dl, dd,
fieldset, legend {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
svg,
canvas {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Base ---------- */

:root {
  --bg: #fafafa;
  --fg: #111111;
  --muted: #555555;
  --line: #111111;
  --soft: #e6e6e6;
  --white: #ffffff;
  --max-width: 1120px;
  --narrow-width: 760px;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100%;
  padding-top: 60px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: var(--narrow-width);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

h2 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
}

h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 14px;
}

ul,
ol {
  margin-bottom: 14px;
  padding-left: 20px;
}

ul li {
  list-style: disc;
  margin-bottom: 6px;
}

ol li {
  list-style: decimal;
  margin-bottom: 6px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--soft);
  padding: 2px 6px;
}

a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: none;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--fg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand-name {
  color: var(--fg);
}

/* Hamburger toggle (hidden on desktop) */

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--fg);
  padding: 6px 8px;
  cursor: pointer;
  line-height: 0;
  border-radius: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  margin: 4px 0;
}

.nav-toggle span:first-child { margin-top: 0; }
.nav-toggle span:last-child { margin-bottom: 0; }

/* Desktop nav */

.site-nav ul {
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 0;
}

.site-nav li {
  list-style: none;
  margin: 0;
}

.site-nav a {
  font-size: 15px;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--fg);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--fg);
}

/* ---------- Main ---------- */

main {
  display: block;
  padding-bottom: 40px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--soft);
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-hero {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--soft);
}

.page-hero-compact {
  padding: 28px 0 20px;
}

.page-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 720px;
}

.page-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* Hide breadcrumb */

.breadcrumb {
  display: none;
}

/* ---------- Sections ---------- */

.section {
  padding: 40px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--soft);
  border-bottom: 1px solid var(--soft);
}

.section-lead {
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 24px;
}

.section-cta {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--fg);
  cursor: pointer;
  background: var(--bg);
  color: var(--fg);
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--bg);
  color: var(--fg);
}

.btn-secondary {
  background: var(--bg);
  color: var(--fg);
}

.btn-secondary:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--bg);
  color: var(--fg);
}

.btn-small {
  padding: 6px 12px;
  font-size: 14px;
}

/* ---------- Links ---------- */

.link-arrow {
  display: inline-block;
  text-decoration: underline;
  font-weight: 500;
}

/* ---------- QR Grid (homepage) ---------- */

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
}

.qr-card {
  list-style: none;
  margin: 0;
  border: 1px solid var(--soft);
  background: var(--white);
}

.qr-card a {
  display: block;
  padding: 18px 16px;
  text-decoration: none;
  color: var(--fg);
}

.qr-card img {
  margin-bottom: 12px;
}

.qr-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 600;
}

.qr-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.qr-card a:hover {
  border-color: var(--fg);
  outline: 1px solid var(--fg);
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.feature {
  border-left: 2px solid var(--fg);
  padding-left: 14px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  padding-left: 0;
}

.steps li {
  list-style: none;
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--soft);
  padding: 14px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  padding-right: 24px;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- QR Tool ---------- */

.qr-tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.qr-form-heading,
.qr-preview-heading {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fg);
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="url"],
.field input[type="tel"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.field-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}

/* ---------- QR Preview ---------- */

.qr-preview-box {
  border: 1px solid var(--soft);
  background: var(--white);
  padding: 20px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-placeholder {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.qr-placeholder[hidden] {
  display: none;
}

.qr-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  image-rendering: pixelated;
}

.qr-image[hidden] {
  display: none;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.qr-actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
}

.qr-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

/* ---------- List of Links ---------- */

.links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 8px;
  align-items: center;
}

.link-row input {
  padding: 8px 10px;
  border: 1px solid var(--fg);
  background: var(--bg);
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.link-row button {
  padding: 8px 10px;
  border: 1px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  cursor: pointer;
}

.link-row button:hover {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- Contact email ---------- */

.contact-email {
  font-size: 18px;
  font-weight: 500;
  margin: 12px 0 20px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--fg);
  background: var(--bg);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-col p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.footer-col ul {
  padding: 0;
  margin: 0;
}

.footer-col li {
  list-style: none;
  margin: 0 0 6px;
}

.footer-col a {
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 0;
  border-top: 1px solid var(--soft);
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Mobile (<= 900px) ---------- */

@media (max-width: 900px) {
  .qr-tool {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* ---------- Mobile nav (<= 720px) ---------- */

@media (max-width: 720px) {

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--fg);
    padding: 8px 0;
    z-index: 999;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .site-nav li {
    border-top: 1px solid var(--soft);
  }

  .site-nav li:first-child {
    border-top: none;
  }

  .site-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    border-bottom: none;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: var(--soft);
    border-bottom: none;
  }

  .qr-card {
    text-align: center;
  }

  .qr-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .qr-card img {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    padding-top: 58px;
  }
}

/* ---------- Small mobile (<= 640px) ---------- */

@media (max-width: 640px) {

  h1 { font-size: 26px; }
  h2 { font-size: 20px; }

  .hero {
    padding: 40px 0 28px;
  }

  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }

  .container { padding: 0 16px; }

  .field-row { grid-template-columns: 1fr; }

  .link-row { grid-template-columns: 1fr; }

  .qr-actions { flex-direction: column; }
  .qr-actions .btn { width: 100%; }

  .qr-preview-box { padding: 16px; min-height: 240px; }
  .qr-image { max-width: 260px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 20px 24px;
    text-align: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4 {
    text-align: center;
  }

  .footer-col p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 320px;
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .footer-col li {
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
    padding: 16px 16px 0;
  }
}

/* ---------- Extra small (<= 380px) ---------- */

@media (max-width: 380px) {
  h1 { font-size: 22px; }
  .hero h1 { font-size: 24px; }
  .btn { padding: 9px 14px; font-size: 14px; }

  body {
    padding-top: 56px;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .site-footer,
  .qr-actions,
  .qr-form,
  .btn,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .qr-preview-box {
    border: none;
    padding: 0;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}