/* Paper Giants Publishing — shared shell for legal, refunds, terms, and pricing pages. */

:root {
  --pg-cream: #FAF7F2;
  --pg-cream-2: #F5F0E8;
  --pg-white: #FFFFFF;
  --pg-navy: #1C2541;
  --pg-navy-2: #2A3A5F;
  --pg-gold: #C4A265;
  --pg-text: #1C2541;
  --pg-text-body: #4A4640;
  --pg-text-muted: #7A756D;
  --pg-text-quiet: #A09B94;
  --pg-border: rgba(28, 37, 65, 0.10);
  --pg-border-soft: rgba(28, 37, 65, 0.06);
  --pg-font-serif: 'Cormorant Garamond', ui-serif, Georgia, 'Times New Roman', serif;
  --pg-font-sans: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pg-font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--pg-text-body);
  background: var(--pg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { max-width: 100%; }
a { color: var(--pg-navy); text-decoration: underline; text-decoration-color: rgba(28,37,65,0.3); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }

/* --- Nav (matches index.html post-scroll state) --- */
.pg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(28, 37, 65, 0.06);
}
.pg-brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.pg-brand img { height: 40px; width: auto; display: block; }
.pg-brand-text {
  font-family: var(--pg-font-serif);
  font-weight: 600; font-size: clamp(18px, 1.8vw, 23px);
  color: var(--pg-navy);
  letter-spacing: 0.015em; line-height: 1;
  white-space: nowrap;
}
.pg-back {
  font-family: var(--pg-font-sans);
  font-weight: 500; font-size: 14px;
  color: var(--pg-navy); opacity: 0.65;
  text-decoration: none;
  transition: opacity 0.2s;
}
.pg-back:hover { opacity: 1; }

/* --- Page shell --- */
.pg-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 128px 32px 96px;
}
.pg-page--wide {
  max-width: 1080px;
}

.pg-eyebrow {
  font-family: var(--pg-font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pg-gold);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.pg-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--pg-gold);
}
.pg-eyebrow--centered {
  justify-content: center;
}
.pg-eyebrow--centered::before {
  display: none;
}

h1 {
  font-family: var(--pg-font-serif);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--pg-navy);
  margin: 0 0 28px;
}
.pg-page--wide h1 { text-align: center; margin-bottom: 20px; }

.pg-deck {
  font-size: 14.5px;
  color: var(--pg-text-muted);
  border-top: 1px solid var(--pg-border);
  border-bottom: 1px solid var(--pg-border);
  padding: 16px 0;
  margin: 0 0 44px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
}
.pg-deck dt { font-weight: 600; color: var(--pg-navy); }
.pg-deck dd { margin: 0; color: var(--pg-text-muted); }

.pg-lede {
  font-size: 15.5px;
  color: var(--pg-text);
  line-height: 1.75;
  background: var(--pg-cream-2);
  border-left: 3px solid var(--pg-gold);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 0 0 44px;
}
.pg-lede strong { color: var(--pg-navy); font-weight: 600; }

h2 {
  font-family: var(--pg-font-serif);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--pg-navy);
  margin: 56px 0 16px;
}
h2 .pg-num {
  color: var(--pg-gold);
  font-family: var(--pg-font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
h3 {
  font-family: var(--pg-font-serif);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--pg-navy);
  margin: 32px 0 12px;
}
p {
  margin: 0 0 18px;
  color: var(--pg-text-body);
}
p strong, li strong, td strong { color: var(--pg-navy); font-weight: 600; }
ul, ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
li {
  margin-bottom: 10px;
  color: var(--pg-text-body);
}
li::marker { color: var(--pg-gold); }
li strong { display: inline; }

.pg-callout {
  background: var(--pg-cream-2);
  border-left: 3px solid var(--pg-gold);
  padding: 18px 22px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
}
.pg-callout strong { color: var(--pg-navy); font-weight: 600; }

.pg-caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: 0.02em; }

.pg-table-wrap { overflow-x: auto; margin: 8px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pg-border-soft);
  vertical-align: top;
}
thead th {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pg-gold);
  font-weight: 600;
  border-bottom: 1px solid var(--pg-border);
}
tbody tr:last-child td { border-bottom: none; }

.pg-hr {
  border: none;
  border-top: 1px solid var(--pg-border);
  margin: 64px 0 40px;
}

.pg-sign {
  font-family: var(--pg-font-serif);
  font-size: 20px;
  color: var(--pg-navy);
  margin-bottom: 4px;
}
.pg-sign-meta {
  font-size: 14px;
  color: var(--pg-text-muted);
  margin-bottom: 32px;
}
.pg-note {
  font-size: 13.5px;
  font-style: italic;
  color: var(--pg-text-quiet);
  line-height: 1.65;
  border-left: 2px solid var(--pg-border);
  padding-left: 18px;
}

/* --- Pricing page --- */
.pg-pricing-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.pg-pricing-intro p {
  font-size: 17px;
  color: var(--pg-text-muted);
  line-height: 1.65;
}
.pg-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .pg-pricing-grid { grid-template-columns: 1fr 1fr; }
}
.pg-pricing-card {
  background: var(--pg-white);
  border: 1px solid var(--pg-border);
  border-radius: 12px;
  padding: 32px 30px;
  display: flex; flex-direction: column;
}
.pg-pricing-icon {
  width: 48px; height: 48px;
  background: rgba(196, 162, 101, 0.14);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pg-pricing-card h3 {
  font-family: var(--pg-font-serif);
  font-size: 26px; font-weight: 600;
  color: var(--pg-navy);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.pg-pricing-tag {
  font-family: var(--pg-font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pg-gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.pg-pricing-desc {
  font-size: 14.5px;
  color: var(--pg-text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  flex: 1;
}
.pg-pricing-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--pg-border-soft);
}
.pg-pricing-price {
  font-family: var(--pg-font-serif);
  font-size: 30px; font-weight: 500;
  color: var(--pg-navy);
  line-height: 1;
}
.pg-pricing-unit {
  display: block;
  font-family: var(--pg-font-sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pg-text-quiet);
  margin-top: 6px;
}
.pg-btn {
  font-family: var(--pg-font-sans);
  font-weight: 600; font-size: 13.5px;
  padding: 11px 22px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.pg-btn--primary {
  color: var(--pg-cream);
  background: var(--pg-navy);
  border: none;
}
.pg-btn--primary:hover { background: var(--pg-navy-2); transform: translateY(-1px); }
.pg-btn--secondary {
  color: var(--pg-navy);
  background: transparent;
  border: 1.5px solid rgba(28,37,65,0.2);
}
.pg-btn--secondary:hover { border-color: rgba(28,37,65,0.5); background: rgba(28,37,65,0.03); }

.pg-pricing-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--pg-navy);
  font-weight: 500;
  margin: 32px 0 8px;
}
.pg-pricing-note-gold { color: var(--pg-gold); font-weight: 600; }
.pg-pricing-sub {
  text-align: center;
  font-size: 13px;
  color: var(--pg-text-muted);
  margin: 0;
}

.pg-books-card {
  max-width: 720px;
  margin: 64px auto 0;
  padding: 32px 30px;
  background: var(--pg-cream-2);
  border-radius: 12px;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.pg-books-body { flex: 1; min-width: 260px; }
.pg-books-body h3 {
  font-family: var(--pg-font-serif);
  font-size: 22px; font-weight: 600;
  color: var(--pg-navy);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.pg-books-body p {
  font-size: 14.5px;
  color: var(--pg-text-muted);
  line-height: 1.65;
  margin: 0 0 14px;
}

/* --- Footer (matches index.html) --- */
.pg-foot {
  background: var(--pg-navy);
  padding: 72px 48px 40px;
  margin-top: 64px;
}
.pg-foot-inner { max-width: 1140px; margin: 0 auto; }
.pg-foot-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 48px; margin: 0 0 56px;
}
.pg-foot-brand {
  display: flex; align-items: center; gap: 14px; margin: 0 0 14px;
}
.pg-foot-brand img { height: 56px; width: auto; opacity: 0.95; display: block; }
.pg-foot-brand-text {
  font-family: var(--pg-font-serif);
  font-weight: 600; font-size: 23px;
  color: var(--pg-cream); margin: 0; line-height: 1;
  letter-spacing: 0.015em;
}
.pg-foot-tag {
  font-family: var(--pg-font-sans);
  font-weight: 300; font-size: 14px;
  color: rgba(250,247,242,0.45);
  margin: 0; line-height: 1.65;
}
.pg-foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.pg-foot-col h4 {
  font-family: var(--pg-font-sans);
  font-weight: 600; font-size: 11px;
  color: var(--pg-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.pg-foot-links { display: flex; flex-direction: column; gap: 9px; }
.pg-foot-link {
  font-family: var(--pg-font-sans);
  font-size: 13px;
  color: rgba(250,247,242,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.pg-foot-link:hover { color: rgba(250,247,242,0.95); }
.pg-foot-hr { height: 1px; background: rgba(250,247,242,0.08); margin: 0 0 20px; }
.pg-foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.pg-foot-copy {
  font-family: var(--pg-font-sans);
  font-size: 12px;
  color: rgba(250,247,242,0.3);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .pg-nav { padding: 0 24px; }
  .pg-page { padding: 108px 24px 72px; }
  .pg-foot { padding: 56px 24px 32px; }
}
@media (max-width: 720px) {
  .pg-brand-text { display: none; }
  .pg-page { padding: 100px 22px 64px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; margin-top: 44px; }
  h3 { font-size: 18px; margin-top: 26px; }
  .pg-deck { grid-template-columns: 1fr; }
  .pg-deck dt { margin-top: 6px; }
  .pg-foot-row { gap: 32px; }
}
