:root {
  --paper: #ffffff;
  --page-bg: #f4f4f1;
  --ink: #1a1d1b;
  --ink-body: #2c312e;
  --ink-muted: #5f6661;
  --rule: #e2e4df;
  --rule-strong: #c8cdc6;
  --accent: #1d5336;
  --accent-dark: #133b25;
  --cta: #b84a1e;
  --cta-dark: #973b15;
  --soft: #f7f8f5;
  --tint-green: #eef5f0;
  --danger: #b42318;
  --success: #157347;
  --serif: Georgia, "Times New Roman", "Liberation Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--page-bg);
  color: var(--ink-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Editorial Masthead --- */
.masthead {
  background: var(--paper);
  border-top: 3px solid var(--accent-dark);
  border-bottom: 1px solid var(--rule);
}

.masthead-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--rule);
}

.brand-mark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.masthead-meta {
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.masthead-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 9px 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.masthead-nav span {
  white-space: nowrap;
}

.masthead-nav span.active {
  color: var(--accent-dark);
  font-weight: 700;
}

/* Keep legacy top-bar for thanks & legal pages */
.top-bar { background: var(--paper); border-top: 3px solid var(--accent-dark); border-bottom: 1px solid var(--rule); padding: 14px 0; }
.top-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.editorial-badge { background: var(--tint-green); color: var(--accent-dark); padding: 4px 10px; border-radius: 4px; font-weight: 600; font-size: 13px; }

/* --- Main Paper Column --- */
.paper-sheet {
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 28px 40px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .paper-sheet { padding: 20px 16px 32px; border-left: 0; border-right: 0; }
  .container { padding: 0; }
  .masthead .container, .site-footer .container { padding: 0 16px; }
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.breadcrumb strong {
  color: var(--cta);
  font-weight: 700;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4.3vw, 37px);
  line-height: 1.22;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 14px;
}

.article-deck {
  font-size: 19px;
  line-height: 1.55;
  color: #3c423e;
  margin: 0 0 18px;
}

.byline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.byline-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tint-green);
  color: var(--accent-dark);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  flex-shrink: 0;
}

.byline-name {
  color: var(--ink);
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.editorial-figure {
  margin: 0 0 24px;
}

.editorial-figure img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

.editorial-figure figcaption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.article-body p {
  margin: 0 0 16px;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
  margin: 30px 0 12px;
  padding-top: 8px;
}

.pull-quote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}

.pull-quote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* Editorial split media block */
.media-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  margin: 22px 0 26px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

@media (min-width: 640px) {
  .media-split { grid-template-columns: 240px 1fr; }
}

.media-split img {
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

.media-split h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--ink);
}

.media-split p {
  margin: 0 0 10px;
  font-size: 15.5px;
}

/* Comparison table (journalism style) */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 15px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.compare-table th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
  border-top: 2px solid var(--ink);
}

.compare-table td.col-good {
  color: var(--accent-dark);
  font-weight: 600;
}

/* Numbered routine steps */
.routine-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  border-top: 1px solid var(--rule);
}

.routine-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.routine-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.inline-jump-box {
  margin: 22px 0;
  padding: 16px 18px;
  background: var(--tint-green);
  border: 1px solid #c6dccb;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inline-jump-box p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
  flex: 1 1 320px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 22px;
  border: 0;
  border-radius: 5px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-accent { background: var(--cta); }
.btn-accent:hover { background: var(--cta-dark); }
.btn-inline { width: auto; min-height: 44px; padding: 10px 18px; font-size: 15px; }
.cta-subtext { text-align: center; font-size: 13.5px; color: var(--ink-muted); margin-top: 8px; }

/* --- Interactive Self-Check (Magazine Box) --- */
.quiz-section {
  margin: 30px 0;
  padding: 24px 22px;
  background: var(--soft);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
}

.quiz-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.quiz-intro-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 14px;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-dark);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: #dde3de;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-fill {
  height: 100%;
  width: 25%;
  background: var(--accent);
  transition: width 0.25s ease;
}

.quiz-question-title {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}

.quiz-options { display: grid; gap: 9px; }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.quiz-option::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #9aa39d;
  flex-shrink: 0;
}

.quiz-option:hover,
.quiz-option.selected {
  border-color: var(--accent);
  background: var(--tint-green);
}

.quiz-option.selected::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.quiz-nav { margin-top: 12px; }
.btn-link-muted { background: none; border: 0; color: var(--ink-muted); font-size: 14px; cursor: pointer; padding: 6px 0; text-decoration: underline; }

.quiz-analyzing { text-align: center; padding: 28px 12px; }
.spinner { width: 38px; height: 38px; border: 3px solid #dde3de; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.85s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Order Section --- */
.order-section {
  margin: 28px 0;
  padding: 24px 22px;
  background: var(--paper);
  border: 1.5px solid var(--cta);
  border-radius: 4px;
}

.is-hidden { display: none; }

.result-summary {
  background: var(--tint-green);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.result-summary h3 {
  font-family: var(--serif);
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 18px;
}

.offer-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 660px) {
  .offer-box { grid-template-columns: 1.05fr 1fr; align-items: start; }
}

.discount-pill {
  display: inline-block;
  background: var(--cta);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.price-row { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 12px; }
.price-new { font-size: 30px; font-weight: 800; color: var(--ink); }
.price-old { font-size: 17px; color: var(--ink-muted); text-decoration: line-through; }

.trust-bullets { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14.5px; }
.trust-bullets li { margin-bottom: 7px; padding-left: 20px; position: relative; }
.trust-bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }

.guarantee-box {
  margin-top: 14px;
  padding: 11px 13px;
  background: #fdf9ed;
  border: 1px solid #e9d9a4;
  border-radius: 4px;
  font-size: 13.5px;
  color: #5c4314;
}

.cc-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  background: var(--soft);
  border: 1px solid var(--rule);
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
  color: var(--ink);
}

.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.status-dot.after-hours { background: var(--cta); }

.form-group { margin-bottom: 13px; }
.form-group label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  font-size: 16.5px;
  border: 1.5px solid #b8c0ba;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 83, 54, 0.12); }
.form-error { color: var(--danger); font-size: 14px; font-weight: 600; margin: 6px 0 10px; min-height: 20px; }
.form-note { font-size: 12.5px; color: var(--ink-muted); text-align: center; margin-top: 9px; }

/* --- Reader Comments (Authentic Newspaper Thread) --- */
.comments-section {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.comments-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.comments-header h2 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0;
  color: var(--ink);
}

.comments-count {
  font-size: 13px;
  color: var(--ink-muted);
}

.comment-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e9ece8;
  color: #3a423d;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author { font-weight: 700; font-size: 15px; color: var(--ink); }
.comment-loc { font-size: 13px; color: var(--ink-muted); }
.comment-text { margin: 0 0 6px; font-size: 15.5px; line-height: 1.55; }
.comment-foot { font-size: 12.5px; color: var(--ink-muted); }

/* --- Legacy cards kept clean for thanks/whitepage/legal --- */
.article-card { background: var(--paper); margin: 20px auto; padding: 26px; border: 1px solid var(--rule); border-radius: 4px; }
.editorial-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 20px 0 24px; }
.highlight-card { background: var(--soft); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; font-size: 15px; }
.highlight-card strong { display: block; color: var(--ink); margin-bottom: 4px; }
.thanks-card { background: var(--paper); margin: 28px auto; padding: 32px 24px; border-radius: 4px; border: 1px solid var(--rule); text-align: center; }
.check-circle { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; margin: 0 auto 14px; }
.order-code-pill { display: inline-block; background: var(--tint-green); border: 1px solid var(--rule); padding: 8px 18px; border-radius: 4px; font-size: 18px; font-weight: 800; color: var(--accent-dark); margin: 12px 0; }

/* --- Footer --- */
.site-footer {
  padding: 24px 0 34px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 12px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.disclaimer-text { text-align: center; max-width: 720px; margin: 0 auto; line-height: 1.5; }
