/* 19DollarNovel — Site Styles */

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

:root {
  --sage: #689B94;
  --sage-dark: #547D77;
  --sage-light: #E8F0EF;
  --sage-glow: #7AB3AB;
  --black: #1A1A1A;
  --grey-700: #444;
  --grey-500: #777;
  --grey-300: #CCC;
  --grey-100: #F5F3F0;
  --white: #FFFFFF;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-w: 700px;
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─── */
.site-header {
  background: var(--sage);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}

.site-header a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.03em;
}

.header-cta {
  background: var(--white);
  color: var(--sage-dark) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ─── Hero ─── */
.hero {
  background: linear-gradient(165deg, var(--sage) 0%, var(--sage-dark) 100%);
  padding: 72px 24px 80px;
  color: var(--white);
  text-align: center;
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 auto 18px;
  max-width: var(--max-w);
  letter-spacing: -0.02em;
}

.hero .lead {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Content sections ─── */
.content-section {
  padding: 48px 24px;
}

.content-section .container {
  padding: 0;
}

.content-section h2 {
  font-size: 23px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.content-section h2:not(:first-child) {
  margin-top: 48px;
}

.content-section p {
  margin-bottom: 18px;
  color: var(--grey-700);
}

.content-section ul, .content-section ol {
  margin-bottom: 18px;
  padding-left: 20px;
}

.content-section li {
  margin-bottom: 10px;
  color: var(--grey-700);
  line-height: 1.6;
}

.content-section li strong {
  color: var(--black);
}

.content-section strong {
  font-weight: 700;
  color: var(--black);
}

.content-section a {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(84, 125, 119, 0.3);
  transition: text-decoration-color 0.15s;
}

.content-section a:hover {
  text-decoration-color: var(--sage);
}

/* ─── Band sections (full-width colour breaks) ─── */
.band-sage {
  background: var(--sage-light) !important;
  border-top: 1px solid rgba(104, 155, 148, 0.15);
  border-bottom: 1px solid rgba(104, 155, 148, 0.15);
}

.band-warm {
  background: var(--grey-100) !important;
}

/* ─── Feature grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid #E0E0E0;
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 16px rgba(104, 155, 148, 0.12);
}

.feature-card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--black);
}

.feature-card span {
  font-size: 14px;
  color: var(--grey-500);
  line-height: 1.5;
  display: block;
}

/* ─── VS comparison cards ─── */
.vs-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 28px;
}

.vs-card {
  border: 1px solid #E0E0E0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.vs-label {
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  background: #FAFAF8;
  border-bottom: 1px solid #ECECEC;
  color: var(--black);
}

.vs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.vs-col {
  padding: 18px 20px;
}

.vs-col:first-child {
  border-right: 1px solid #ECECEC;
}

.vs-col p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-700);
  margin: 0;
}

.vs-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  background: #ECECEC;
  color: var(--grey-500);
}

.vs-tag-ours {
  background: var(--sage-light);
  color: var(--sage-dark);
}

@media (max-width: 600px) {
  .vs-row { grid-template-columns: 1fr; }
  .vs-col:first-child { border-right: none; border-bottom: 1px solid #ECECEC; }
}

/* ─── Comparison table ─── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0 32px;
  font-size: 15px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  border: 1px solid #E0E0E0;
}

.compare-table th {
  background: var(--sage);
  color: var(--white);
  text-align: left;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #ECECEC;
  color: var(--grey-700);
  vertical-align: top;
  line-height: 1.5;
}

.compare-table td strong {
  color: var(--black);
  font-weight: 600;
}

.compare-table tr:nth-child(even) td {
  background: #FAFAF8;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td:last-child {
  color: var(--black);
  font-weight: 500;
}

/* ─── CTA block ─── */
.cta {
  background: linear-gradient(165deg, var(--sage) 0%, var(--sage-dark) 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  margin: 48px 0 24px;
  text-align: center;
  color: var(--white);
}

.cta h2 {
  color: var(--white) !important;
  margin: 0 0 10px 0 !important;
  font-size: 26px;
  font-weight: 800;
}

.cta p {
  margin-bottom: 24px;
  color: rgba(255,255,255,0.88) !important;
  font-size: 17px;
}

.cta-button {
  display: inline-block;
  background: var(--white);
  color: var(--sage-dark);
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 17px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  text-decoration: none !important;
}

/* ─── Medium link ─── */
.medium-link {
  text-align: center;
  padding: 8px 0 16px;
  font-size: 16px;
}

.medium-link a {
  color: var(--sage-dark);
  font-weight: 600;
}

.medium-link-prominent {
  background: var(--sage-light);
  border-left: 4px solid var(--sage);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 17px;
}

.medium-link-prominent a {
  color: var(--sage-dark);
  font-weight: 600;
}

.medium-link-prominent a:hover {
  color: var(--sage);
}

/* ─── Keep reading ─── */
.read-more {
  margin-top: 48px;
  padding: 32px;
  background: var(--grey-100);
  border-radius: var(--radius);
}

.read-more h3 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.read-more ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.read-more li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: var(--black);
}

.read-more li:last-child {
  margin-bottom: 0;
}

.read-more li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

.read-more a {
  color: var(--black) !important;
  text-decoration: none !important;
  font-weight: 600;
}

.read-more a:hover {
  color: var(--sage-dark) !important;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--black);
  color: var(--grey-500);
  padding: 40px 24px;
  font-size: 14px;
  text-align: center;
}

.site-footer a {
  color: var(--sage-glow);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-nav {
  max-width: 720px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #333;
}

.footer-nav a {
  color: var(--grey-300);
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--sage-glow);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .hero { padding: 48px 20px 56px; }
  .hero h1 { font-size: 28px; }
  .hero .lead { font-size: 17px; }
  .content-section { padding: 36px 20px; }
  .content-section h2 { font-size: 20px; }
  .content-section h2:not(:first-child) { margin-top: 36px; }
  .cta { padding: 36px 24px; }
  .cta h2 { font-size: 22px !important; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .read-more { padding: 24px 20px; }
  .site-header img { width: 32px; height: 32px; }
  .header-brand { gap: 10px; }
  .site-header a { font-size: 15px; }
  .header-cta { padding: 7px 14px; font-size: 13px !important; }
  .header-inner { padding: 0 16px; }
}
