/* Editorial comparison layout — independent from the MacNotch marketing site. */

:root {
  --bg: #ffffff;
  --bg-muted: #f6f6f4;
  --text: #1a1a1a;
  --text-secondary: #444444;
  --text-muted: #6b6b6b;
  --border: #e5e5e2;
  --border-strong: #cfcfc9;
  --link: #0b57d0;
  --link-hover: #0842a0;
  --good: #0f7b3a;
  --bad: #b42318;
  --highlight: #f0f6ff;
  --callout-bg: #faf9f6;
  --font-heading: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 720px;
  --table-max: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--link-hover); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap--wide {
  max-width: var(--table-max);
}

/* Header — quiet publisher chrome */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 22px; height: 22px; border-radius: 5px; }
.brand-sep {
  color: var(--border-strong);
  font-weight: 400;
  margin: 0 2px;
}
.brand-section {
  color: var(--text-muted);
  font-weight: 400;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
}
.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}
.header-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Article typography */
article {
  padding: 36px 0 64px;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  margin: 0 0 16px;
  font-weight: 650;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  margin: 48px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 1.2rem;
  margin: 28px 0 8px;
}

h4 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
  font-weight: 600;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: 0.4em; }
li::marker { color: var(--text-muted); }
strong { font-weight: 600; }

.lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.byline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Callouts */
.callout {
  background: var(--callout-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 0.975rem;
}
.callout h2, .callout h3 {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  font-size: 1.15rem;
}
.callout p:last-child,
.callout ul:last-child { margin-bottom: 0; }
.callout--disclosure {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Tables — classic comparison chart */
.table-scroll {
  overflow-x: auto;
  margin: 20px -20px;
  padding: 0 20px;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 960px) {
  .table-scroll {
    margin-left: calc((var(--max-width) - var(--table-max)) / 2);
    margin-right: calc((var(--max-width) - var(--table-max)) / 2);
    max-width: var(--table-max);
    width: var(--table-max);
  }
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px solid var(--border);
}

caption {
  caption-side: top;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0 0 10px;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: top;
}

th:last-child, td:last-child { border-right: 0; }

thead th {
  background: var(--bg-muted);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.8125rem;
  text-transform: none;
}

tbody th {
  font-weight: 600;
  background: var(--bg);
  min-width: 140px;
}

tbody tr:nth-child(even) th,
tbody tr:nth-child(even) td {
  background: #fafafa;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.yes { color: var(--good); font-weight: 600; }
.no { color: var(--bad); }
.mid { color: var(--text-muted); }

.row-highlight th,
.row-highlight td {
  background: var(--highlight) !important;
}

/* App sections — article subsections, not marketing cards */
.app {
  border-top: 1px solid var(--border);
  padding: 28px 0 8px;
  margin: 8px 0 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.app h3 {
  margin-top: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 0;
  padding-top: 0;
}

.app-price {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  white-space: nowrap;
}

.app-verdict {
  font-size: 0.975rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  padding: 12px 14px;
  background: var(--bg-muted);
  border-left: 3px solid var(--border-strong);
}

.pros-cons {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin: 14px 0 16px;
}

.pros-cons h4 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.pros-cons ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* Quick picks */
.picks {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  margin: 16px 0 28px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
}

.picks li {
  background: var(--bg);
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 16px;
  margin: 0;
  font-size: 0.975rem;
}

.picks li:last-child { border-bottom: 0; }

.picks strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

/* FAQ */
details {
  background: var(--bg);
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 0;
  margin: 0;
}

details:first-of-type { border-top: 1px solid var(--border); }

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}

details[open] summary { margin-bottom: 8px; }
details p:last-child { margin-bottom: 0; }

/* Soft end CTA — disclosure, not marketing hero */
.cta {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 22px;
  margin: 48px 0 0;
  text-align: left;
  box-shadow: none;
}

.cta h2 {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  font-size: 1.35rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 16px;
  border-radius: 4px;
  font-weight: 550;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover {
  background: #333;
  color: #fff;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text);
}

.cta-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 14px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 28px 0 36px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.module-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 12px 0 4px;
  padding: 0;
  list-style: none;
}

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

.module-grid li {
  margin: 0;
  padding: 12px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.module-grid strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 3px;
  color: var(--text);
}

.module-toggle {
  margin: 18px 0 20px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}

.module-toggle > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.module-toggle > summary::-webkit-details-marker { display: none; }

.module-toggle > summary::after {
  content: "Show";
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
}

.module-toggle[open] > summary::after {
  content: "Hide";
}

.module-toggle[open] > summary {
  border-bottom: 1px solid var(--border);
}

.module-toggle .module-grid {
  margin: 0;
  padding: 12px;
  border: 0;
}
