/* Opnclo blog post styles. Brand-aligned: Inter, #1A1D17, cream #F6EEE5. */

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

:root {
  --white: #ffffff;
  --warm-white: #f6f5f4;
  --warm-100: #eeedeb;
  --warm-200: #e0dedb;
  --warm-300: #a39e98;
  --warm-500: #615d59;
  --warm-dark: #31302e;
  --near-black: rgba(0,0,0,0.9);
  --ink: #1A1D17;
  --accent: #1A1D17;
  --accent-hover: #1A1D17;
  --accent-light: #F6EEE5;
  --accent-badge-bg: #F6EEE5;
  --accent-badge-text: #1A1D17;
  --whisper-border: 1px solid rgba(0,0,0,0.08);
  --card-shadow: rgba(0,0,0,0.04) 0px 4px 18px, rgba(0,0,0,0.02) 0px 2px 7px;
  --font: 'Inter', -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--near-black); background: var(--white); font-size: 16px; line-height: 1.6; }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation (shared with marketing) */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: var(--whisper-border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: inline-flex; align-items: center; }
.nav-brand img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--warm-500); transition: color .15s; }
.nav-link:hover, .nav-link.active { color: var(--warm-dark); }
.nav-link.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta { background: var(--accent); color: #fff; padding: 9px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; transition: background .15s; }
.nav-cta:hover { background: var(--accent-hover); }
.mobile-menu-btn { display: none; background: transparent; border: 0; cursor: pointer; color: var(--warm-dark); }

/* Mobile drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 200; background: var(--warm-white); display: none; flex-direction: column; padding: 88px 32px 40px; overflow-y: auto; }
.mobile-drawer.open { display: flex; }
.mobile-drawer-close { position: absolute; top: 14px; right: 18px; background: transparent; border: 0; cursor: pointer; color: var(--warm-dark); padding: 8px; line-height: 0; }
.mobile-drawer-link { display: block; padding: 18px 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--warm-dark); border-bottom: var(--whisper-border); }
.mobile-drawer-link.active { color: var(--accent); }
.mobile-drawer-link.cta { margin-top: 32px; padding: 18px 28px; background: var(--accent); color: #fff; border-radius: var(--radius-md); border: 0; text-align: center; font-size: 16px; }
body.drawer-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-links, .nav-actions > .nav-link, .nav-actions > .nav-cta { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

/* Breadcrumb */
.breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 0;
  font-size: 13px;
  color: var(--warm-500);
}
.breadcrumb a { color: var(--warm-500); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: var(--warm-300); }

/* Article header */
.article-header {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.article-header .badge {
  display: inline-block;
  background: var(--accent-badge-bg);
  color: var(--accent-badge-text);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.article-header h1 {
  font-family: var(--font);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--warm-dark);
  margin-bottom: 24px;
}
.article-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  color: var(--warm-500);
  padding-bottom: 32px;
  border-bottom: var(--whisper-border);
  flex-wrap: wrap;
}
.article-meta .author { font-weight: 600; color: var(--warm-dark); }

/* Article content */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}
.article-content h2 {
  font-family: var(--font);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--warm-dark);
  line-height: 1.2;
}
.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--warm-dark);
}
.article-content p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--near-black);
}
.article-content ul, .article-content ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}
.article-content li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--near-black);
}
.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(26, 29, 23, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.article-content a:hover { text-decoration-color: var(--accent); }
.article-content strong { font-weight: 600; color: var(--warm-dark); }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 22px;
  margin: 32px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 17px;
  color: var(--warm-dark);
}
.article-content blockquote p:last-child { margin-bottom: 0; }

/* Step box */
.step-box {
  background: var(--white);
  border: var(--whisper-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
}
.step-box .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
  margin-bottom: 14px;
}
.step-box h3 { margin-top: 4px; font-size: 19px; }
.step-box p { font-size: 16px; margin-bottom: 14px; }
.step-box p:last-child { margin-bottom: 0; }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--whisper-border);
}
.comparison-table thead {
  background: var(--ink);
  color: #fff;
}
.comparison-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}
.comparison-table td {
  padding: 14px 18px;
  border-bottom: var(--whisper-border);
}
.comparison-table tbody tr:nth-child(even) { background: var(--warm-white); }
.comparison-table tbody tr:last-child td { border-bottom: none; }

/* Tip box */
.tip-box {
  background: var(--accent-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
}
.tip-box .tip-label {
  font-weight: 700;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.tip-box p { margin-bottom: 6px; font-size: 15px; }
.tip-box p:last-child { margin-bottom: 0; }

/* CTA banner */
.cta-banner {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  color: #fff;
  margin: 48px 0;
}
.cta-banner h2 {
  font-family: var(--font);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #fff;
}
.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
}
.cta-button {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s;
}
.cta-button:hover { transform: translateY(-2px); color: var(--ink); }

/* FAQ */
.faq-section { margin-top: 24px; }
.faq-item {
  border-bottom: var(--whisper-border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin-top: 0; font-size: 17px; margin-bottom: 8px; }
.faq-item p { font-size: 16px; margin-bottom: 0; }

/* Related articles */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: var(--whisper-border);
}
.related-articles h2 {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--warm-dark);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  background: var(--white);
  border: var(--whisper-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-decoration: none;
  color: var(--warm-dark);
  transition: transform .15s, box-shadow .15s;
  display: block;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}
.related-card .related-tag {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.related-card h3 {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.35;
  color: var(--warm-dark);
}

/* Variant used by qr-code-menu-guide: <main> wraps body */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}
main p, main li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--near-black);
}
main p { margin-bottom: 20px; }
main ul, main ol { margin: 0 0 24px 0; padding-left: 24px; }
main li { margin-bottom: 10px; }
main h2 {
  font-family: var(--font);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--warm-dark);
  line-height: 1.2;
}
main h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--warm-dark);
}
main a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(26, 29, 23, 0.25);
  text-underline-offset: 3px;
}
main a:hover { text-decoration-color: var(--accent); }
main strong { font-weight: 600; color: var(--warm-dark); }
main .intro { font-size: 18px; color: var(--warm-500); line-height: 1.7; margin-bottom: 20px; }

/* Table of contents */
.toc {
  background: var(--warm-white);
  border: var(--whisper-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
}
.toc h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-500);
  margin: 0 0 14px;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 8px; font-size: 15px; }
.toc a { color: var(--warm-dark); text-decoration: none; transition: color .15s; }
.toc a:hover { color: var(--accent); }

/* Stats box */
.stats-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}
@media (max-width: 640px) { .stats-box { grid-template-columns: 1fr; } }
.stat-item {
  background: var(--warm-white);
  border: var(--whisper-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  font-size: 15px;
  color: var(--warm-500);
  line-height: 1.5;
}
.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

/* Highlight inline */
.highlight {
  background: var(--accent-light);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--warm-dark);
  font-weight: 600;
}

/* Steps list (qr-code-menu-guide) */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 18px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 50%;
}

/* FAQ accordion (qr-code-menu-guide) */
.faq .faq-item, main .faq-item {
  border: var(--whisper-border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  padding: 0;
  background: var(--white);
  overflow: hidden;
}
.faq-question {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--warm-dark);
  cursor: pointer;
  position: relative;
  user-select: none;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--warm-500);
  font-weight: 400;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 18px;
}
.faq-answer p { font-size: 15px; margin-bottom: 0; color: var(--warm-500); line-height: 1.65; }

/* Related list (qr-code-menu-guide) */
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { margin-bottom: 10px; }
.related-list a {
  display: block;
  padding: 16px 20px;
  background: var(--warm-white);
  border: var(--whisper-border);
  border-radius: var(--radius-md);
  color: var(--warm-dark);
  font-weight: 600;
  font-size: 15px;
  transition: background .15s, transform .15s;
}
.related-list a:hover { background: var(--accent-light); transform: translateY(-1px); }

/* Footer (shared with marketing) */
.footer { background: var(--white); border-top: var(--whisper-border); padding: 64px 24px 40px; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; max-width: 1200px; margin-left: auto; margin-right: auto; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand { display: inline-flex; align-items: center; margin-bottom: 12px; }
.footer-brand img { height: 40px; width: auto; display: block; }
.footer-tagline { font-size: 14px; color: var(--warm-500); line-height: 1.6; max-width: 300px; }
.footer-heading { font-size: 13px; font-weight: 600; color: var(--warm-dark); letter-spacing: 0.02em; margin-bottom: 16px; }
.footer-link { display: block; font-size: 14px; color: var(--warm-500); padding: 5px 0; transition: color .15s; }
.footer-link:hover { color: var(--accent); }
.footer-bottom { border-top: var(--whisper-border); padding-top: 24px; max-width: 1200px; margin: 0 auto; }
.footer-copyright { font-size: 13px; color: var(--warm-500); }
