/* ================================================================
   HandyPrintz Public Pages – Shared Styles
   Matches the landing page dark + accent blue palette
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #e4e4e7;
  background-color: #0f0f12;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;

  /* Theme variables */
  --muted-text: #a1a1aa;
  --accent-blue: #2563eb;
  --accent-green: #22c55e;
}

a { color: #60a5fa; text-decoration: none; }
a:hover { color: #93bbfd; text-decoration: underline; }

/* ── Layout ──────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navbar ──────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e1e24;
}

.nav-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}
.nav-logo span { color: #2563eb; }

/* Hamburger button (visible on mobile) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #a1a1aa;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-toggle:hover span { background: #fff; }

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(15, 15, 18, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #27272a;
  padding: 16px 20px;
  gap: 16px;
}
.nav-links.open {
  display: flex;
}
.nav-links a {
  font-size: 0.9rem;
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

/* ── Page Content ────────────────────────────────────── */

.page-content {
  padding: 48px 0 80px;
}

.page-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 0.95rem;
  color: #71717a;
  margin-bottom: 36px;
}

.page-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-top: 36px;
  margin-bottom: 12px;
}

.page-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e4e4e7;
  margin-top: 28px;
  margin-bottom: 8px;
}

.page-content p {
  font-size: 0.95rem;
  color: #a1a1aa;
  margin-bottom: 16px;
}

.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content li {
  font-size: 0.95rem;
  color: #a1a1aa;
  margin-bottom: 8px;
}

/* Shop count (social proof) */
.shop-count {
  color: #22c55e;
  font-weight: 500;
  font-size: 0.9rem;
}

/* ── Steps (how-it-works) ────────────────────────────── */

.step-list {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.step-list li {
  counter-increment: step;
  background: #1a1a24;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 20px 20px 20px 60px;
  margin-bottom: 14px;
  position: relative;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-list li strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

/* ── Contact Form ────────────────────────────────────── */

.contact-form {
  max-width: 480px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #d4d4d8;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #1a1a24;
  border: 1px solid #27272a;
  border-radius: 6px;
  color: #e4e4e7;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

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

.btn-submit {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: #1d4ed8; }

/* ── Info Card ───────────────────────────────────────── */

.info-card {
  background: #1a1a24;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
}

.info-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
  margin-top: 0;
}

.info-card p {
  margin-bottom: 0;
}

/* ── FAQ Accordion ───────────────────────────────────── */

.faq-item {
  background: #1a1a24;
  border: 1px solid #27272a;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question:hover {
  background: #1e1e2a;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #71717a;
  transition: transform 0.3s;
}

.faq-item.open .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-answer p {
  margin-bottom: 10px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ── Format Table ────────────────────────────────────── */

.format-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}
.format-table th,
.format-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid #27272a;
}
.format-table th {
  color: #fff;
  font-weight: 600;
  background: #1a1a24;
}
.format-table td {
  color: #a1a1aa;
}

/* Responsive stacked table on small screens */
@media (max-width: 599px) {
  .format-table thead { display: none; }
  .format-table,
  .format-table tbody,
  .format-table tr,
  .format-table td {
    display: block;
    width: 100%;
  }
  .format-table tr {
    background: #1a1a24;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
  }
  .format-table td {
    border-bottom: none;
    padding: 4px 0;
    font-size: 0.9rem;
  }
  .format-table td:first-child {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
  }
  .format-table td:nth-child(2) {
    color: #60a5fa;
    font-size: 0.85rem;
  }
  .format-table td:last-child {
    color: #a1a1aa;
    font-size: 0.85rem;
  }
}

/* ── Page Section Highlight ──────────────────────────── */

.highlight-box {
  background: linear-gradient(135deg, #1a1a24, #1e1e2a);
  border: 1px solid #27272a;
  border-left: 3px solid #2563eb;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 20px 0;
}
.highlight-box p {
  margin-bottom: 0;
}

/* ── Founder Card ───────────────────────────────────── */

.founder-card {
  background: #1a1a24;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 24px;
  margin: 28px 0;
  text-align: center;
}

.founder-card h3 {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 16px;
}

.founder-photo {
  width: 100px;
  height: 100px;
  background: #27272a;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  font-size: 0.85rem;
}

.founder-intro {
  font-size: 0.9rem;
  color: #a1a1aa;
  margin: 0;
}

/* ── Ad Placeholder ──────────────────────────────────── */

.ad-container {
  background: #13131a;
  border: 1px dashed #27272a;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 32px 0;
  min-height: 90px;
}

/* ── Footer ──────────────────────────────────────────── */

.footer {
  padding: 36px 0 28px;
  background: #0a0a0d;
  border-top: 1px solid #1e1e24;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.footer-links a {
  font-size: 0.82rem;
  color: #71717a;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 0.75rem;
  color: #3f3f46;
}

/* ── Read More Link ──────────────────────────────────── */

.read-more {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #60a5fa;
  margin-top: 4px;
}
.read-more:hover {
  color: #93bbfd;
}

/* ── Responsive: Small mobile fixes ─────────────────── */

@media (max-width: 599px) {
  .page-content h1 {
    font-size: 1.45rem;
    word-break: break-word;
  }
  .page-content h2 {
    font-size: 1.1rem;
  }
  .page-content ul, .page-content ol {
    padding-left: 18px;
  }
  .page-content li {
    font-size: 0.88rem;
  }
  .highlight-box {
    padding: 16px 18px;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 0.92rem;
  }
  .faq-answer {
    padding: 0 18px 16px;
  }
}

/* ── Responsive ──────────────────────────────────────── */

@media (min-width: 600px) {
  /* Show desktop nav, hide hamburger */
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: 0;
    gap: 18px;
    align-items: center;
  }

  .page-content { padding: 64px 0 100px; }
  .page-content h1 { font-size: 2.1rem; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
