/* ═══════════════════════════════════════════════════════════════
   XODE — CONTENT PAGES

   Shared styling for the pages that used to be one "under
   construction" placeholder wearing twenty different labels: terms,
   privacy, pricing, FAQ, services and the rest.

   Everything here is built from the tokens already in shared.css, so
   these pages inherit the site's palette, type and spacing rather than
   introducing a second look. No existing selector is redefined.
   ═══════════════════════════════════════════════════════════════ */

/* ── Page head ────────────────────────────────────────────────── */
.pg-hero {
  padding: 132px 0 56px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.pg-hero::before {
  content: '';
  position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 560px;
  background: radial-gradient(ellipse, var(--violet-glow) 0%, transparent 66%);
  pointer-events: none;
}
.pg-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--grad);
  opacity: .45;
}
.pg-hero > * { position: relative; z-index: 1; }

.pg-eyebrow {
  display: inline-block;
  font-family: var(--font-caption);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--violet-ink);
  padding: 7px 16px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  background: rgba(124,92,255,.08);
  margin-bottom: 22px;
}
.pg-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-0);
  margin: 0 0 16px;
}
.pg-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pg-sub {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto;
}
.pg-updated {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ── Body ─────────────────────────────────────────────────────── */
.pg-section { padding: 62px 0; }
.pg-narrow { max-width: 780px; margin: 0 auto; }

.pg-prose h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--text-0);
  margin: 46px 0 14px;
  scroll-margin-top: 90px;
}
.pg-prose h2:first-child { margin-top: 0; }
.pg-prose h3 {
  font-size: 16px; font-weight: 700;
  color: var(--text-1);
  margin: 28px 0 10px;
}
.pg-prose p,
.pg-prose li {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-2);
}
.pg-prose p { margin: 0 0 16px; }
.pg-prose ul, .pg-prose ol { margin: 0 0 18px; padding-left: 22px; }
.pg-prose li { margin-bottom: 9px; }
.pg-prose strong { color: var(--text-1); font-weight: 600; }
.pg-prose a { color: var(--violet-ink); text-decoration: none; }
.pg-prose a:hover { text-decoration: underline; }

.pg-callout {
  border: 1px solid var(--border-1);
  border-left: 3px solid var(--amber);
  background: linear-gradient(100deg, rgba(255, 180, 84, .11), transparent 42%), var(--bg-1);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 24px 0;
}
.pg-callout p { margin: 0; color: var(--text-1); font-size: 14px; }

/* ── Card grids ───────────────────────────────────────────────── */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pg-card {
  /* Each card carries its own accent, set by the rotation below. The
     whole card is tinted from that one variable — icon, hover border,
     bullets and the wash behind it — so a new colour is one line. */
  --c: var(--violet);
  --c-soft: rgba(124, 92, 255, .13);

  position: relative;
  background:
    linear-gradient(150deg, var(--c-soft) 0%, transparent 42%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
/* A hairline of the accent along the top edge, brightening on hover —
   the same move the topic cards on the homepage use. */
.pg-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--c), transparent 72%);
  opacity: .5;
  transition: opacity .18s;
}
.pg-card:hover {
  border-color: var(--c);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(var(--shadow-rgb), .3);
}
.pg-card:hover::before { opacity: 1; }

.pg-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--c-soft);
  border: 1px solid var(--c-line, rgba(124, 92, 255, .28));
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.pg-card-icon svg { width: 21px; height: 21px; stroke: var(--c); }

/* ── accent rotation ──────────────────────────────────────────
   Five accents cycling across each grid, so a row of four cards is
   never four of the same colour. Taken from the palette already in
   use on the homepage rather than invented here. */
.pg-grid > .pg-card:nth-child(5n + 1) { --c: #7C5CFF; --c-soft: rgba(124, 92, 255, .13); --c-line: rgba(124, 92, 255, .30); }
.pg-grid > .pg-card:nth-child(5n + 2) { --c: #B48CFF; --c-soft: rgba(180, 140, 255, .12); --c-line: rgba(180, 140, 255, .30); }
.pg-grid > .pg-card:nth-child(5n + 3) { --c: #2BB5A0; --c-soft: rgba(43, 181, 160, .12);  --c-line: rgba(43, 181, 160, .30); }
.pg-grid > .pg-card:nth-child(5n + 4) { --c: #FFB454; --c-soft: rgba(255, 180, 84, .11); --c-line: rgba(255, 180, 84, .30); }
.pg-grid > .pg-card:nth-child(5n + 5) { --c: #4A7FE8; --c-soft: rgba(74, 127, 232, .12);  --c-line: rgba(74, 127, 232, .30); }
.pg-card h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--text-0);
  margin: 0 0 8px;
  transition: color .18s;
}
.pg-card:hover h3 { color: var(--c); }
.pg-card p {
  font-size: 13.5px; line-height: 1.72;
  color: var(--text-2);
  margin: 0;
}
.pg-card-list { list-style: none; padding: 0; margin: 14px 0 0; }
.pg-card-list li {
  font-size: 13px; color: var(--text-2);
  padding-left: 20px; position: relative; margin-bottom: 7px;
}
.pg-card-list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c, var(--violet));
}

/* ── Pricing ──────────────────────────────────────────────────── */
.pg-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  align-items: start;
}
.pg-plan {
  --c: var(--text-2);
  position: relative;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1) 60%);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  overflow: hidden;
  transition: border-color .18s, transform .18s;
}
.pg-plan::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--c);
  opacity: .7;
}
.pg-plan:hover { border-color: var(--c); transform: translateY(-3px); }

/* Free reads calm, Pro is the one being recommended, Studio is the
   premium tier — the colour should say which is which before the
   price does. */
.pg-plans > .pg-plan:nth-child(1) { --c: #2BB5A0; }
.pg-plans > .pg-plan:nth-child(2) { --c: #7C5CFF; }
.pg-plans > .pg-plan:nth-child(3) { --c: #FFB454; }

.pg-plan-name { color: var(--text-0); }
/* The plan colours are accents used as words, so they take the
   theme ink mix: unchanged on dark, brought down to read on cream. */
.pg-plan:nth-child(1) .pg-plan-amount { --chip: #2BB5A0; color: color-mix(in srgb, var(--chip, var(--violet)) var(--ink-mix), var(--ink-with)); }
.pg-plan:nth-child(3) .pg-plan-amount { --chip: #FFB454; color: color-mix(in srgb, var(--chip, var(--violet)) var(--ink-mix), var(--ink-with)); }

.pg-plan.featured {
  border-color: var(--violet-ink);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124,92,255,.16), transparent 62%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1) 60%);
  box-shadow: 0 0 0 1px rgba(124,92,255,.16), 0 16px 44px rgba(124,92,255,.14);
}
.pg-plan.featured::before { opacity: 1; height: 4px; background: var(--grad); }
.pg-plan.featured .pg-plan-amount {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pg-plan-tag {
  position: absolute; top: -11px; left: 28px;
  font-family: var(--font-caption);
  font-size: 10px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #0B0C0F;
  background: var(--grad);
  padding: 5px 12px;
  border-radius: 100px;
}
.pg-plan-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--text-0);
  margin: 0 0 6px;
}
.pg-plan-note { font-size: 13px; color: var(--text-2); margin: 0 0 22px; }
.pg-plan-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 24px;
}
.pg-plan-amount {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800;
  color: var(--text-0);
  line-height: 1;
}
.pg-plan-period { font-size: 13px; color: var(--text-3); }
.pg-plan-features { list-style: none; padding: 0; margin: 0 0 26px; }
.pg-plan-features li {
  font-size: 13.5px; line-height: 1.6;
  color: var(--text-1);
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px solid var(--border-1);
}
.pg-plan-features li:last-child { border-bottom: 0; }
.pg-plan-features li::before {
  content: '';
  position: absolute; left: 2px; top: 15px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}
.pg-plan-features li.off { color: var(--text-3); }
.pg-plan-features li.off::before {
  border: 0;
  width: 10px; height: 2px;
  background: var(--text-3);
  transform: none;
  top: 18px;
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.pg-faq { max-width: 820px; margin: 0 auto; }
.pg-faq-item {
  border: 1px solid var(--border-1);
  border-radius: var(--r-md);
  background: var(--bg-1);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .18s, background .18s;
}
.pg-faq-item:hover { border-color: var(--border-2); }
.pg-faq-item.open {
  border-color: rgba(124, 92, 255, .45);
  background: linear-gradient(180deg, rgba(124, 92, 255, .09), var(--bg-1) 46%);
}
.pg-faq-item.open .pg-faq-q { color: var(--violet-ink); }
.pg-faq-item.open .pg-faq-q::after { border-color: var(--violet-ink); }
.pg-faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  background: none; border: 0;
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 600;
  color: var(--text-0);
  text-align: left;
  cursor: pointer;
}
.pg-faq-q::after {
  content: '';
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform .2s;
}
.pg-faq-item.open .pg-faq-q::after { transform: rotate(-135deg); }
.pg-faq-a {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .26s ease, padding .26s ease;
}
.pg-faq-item.open .pg-faq-a { padding: 0 22px 20px; max-height: 460px; }
.pg-faq-a p {
  margin: 0;
  font-size: 14px; line-height: 1.8;
  color: var(--text-2);
}

/* ── Steps ────────────────────────────────────────────────────── */
.pg-steps { counter-reset: step; display: grid; gap: 18px; }
.pg-step {
  --c: #7C5CFF;
  --c-soft: rgba(124, 92, 255, .14);
  position: relative;
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--border-1);
  border-left: 3px solid var(--c);
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--c-soft), transparent 34%), var(--bg-1);
  transition: border-color .18s, transform .18s;
}
.pg-step:hover { transform: translateX(3px); }
.pg-steps > .pg-step:nth-child(3n + 1) { --c: #7C5CFF; --c-soft: rgba(124, 92, 255, .14); }
.pg-steps > .pg-step:nth-child(3n + 2) { --c: #2BB5A0; --c-soft: rgba(43, 181, 160, .13); }
.pg-steps > .pg-step:nth-child(3n + 3) { --c: #FFB454; --c-soft: rgba(255, 180, 84, .12); }

.pg-step-num {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c-soft);
  border: 1px solid var(--c);
  color: var(--c);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 800;
}
.pg-step h3 { margin: 4px 0 6px; font-size: 15.5px; color: var(--text-0); font-weight: 700; }
.pg-step p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text-2); }

/* ── Closing call to action ───────────────────────────────────── */
/* .pg-cta moved to shared.css — index.html uses it and does not
   load this sheet, so the whole call-to-action block was unstyled
   there: no padding, no border, and its heading sitting flush on
   its paragraph. */


/* ── Contents rail, for the long legal pages ──────────────────── */
.pg-toc {
  border: 1px solid var(--border-1);
  border-left: 3px solid var(--violet);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(124, 92, 255, .10), transparent 40%), var(--bg-1);
  padding: 22px 24px;
  margin-bottom: 40px;
}
.pg-toc h2 {
  font-family: var(--font-caption);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}
.pg-toc ol { margin: 0; padding-left: 20px; }
.pg-toc li { margin-bottom: 7px; font-size: 13.5px; line-height: 1.6; }
.pg-toc a { color: var(--text-1); text-decoration: none; }
.pg-toc a:hover { color: var(--violet-ink); }

/* ── Small print table ────────────────────────────────────────── */
.pg-table-wrap { overflow-x: auto; margin: 20px 0; }
.pg-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}
.pg-table th, .pg-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-1);
  font-size: 13.5px;
  line-height: 1.65;
}
.pg-table thead tr { background: rgba(124, 92, 255, .07); }
.pg-table th {
  color: var(--violet-ink);
  font-weight: 600;
  font-family: var(--font-caption);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.pg-table td { color: var(--text-2); }

/* ── Phones ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .pg-hero { padding: 108px 0 44px; }
  .pg-section { padding: 44px 0; }
  .pg-card, .pg-plan { padding: 22px; }
  .pg-cta { padding: 40px 22px; }
  .pg-step { flex-direction: column; gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESUME BUILDER LANDING — the paper, and the layout grid

   Everything else on that page borrows landing.css, so it looks like
   the homepage by construction. These are the two things a resume
   page needs that a portfolio page does not: a sheet of A4, and a
   grid of pages rather than a grid of screens.

   Every selector here starts .rz- and is used on one page. Nothing
   existing can be affected by it.
   ═══════════════════════════════════════════════════════════════ */

/* ── The hero sheet ─────────────────────────────────────────────
   Three sheets stacked with a slight offset — a small pile of paper,
   which is what a resume is. The front one carries a real first page. */
.rz-sheet-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1 / 1.414;
}
.rz-sheet {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #FFFFFF;
}
.rz-sheet-back {
  transform: rotate(-4.5deg) translate(-14px, 10px);
  background: #E8E6F0;
  box-shadow: 0 10px 30px rgba(var(--shadow-rgb), .28);
}
.rz-sheet-mid {
  transform: rotate(2.5deg) translate(8px, 4px);
  background: #F4F2FA;
  box-shadow: 0 12px 34px rgba(var(--shadow-rgb), .3);
}
.rz-sheet-front {
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(var(--shadow-rgb), .5), 0 0 0 1px rgba(var(--fg-rgb), .07);
}
.rz-sheet-page { position: absolute; inset: 0; }

/* The floating labels are landing.css's own .ftag, re-anchored to the
   sheet instead of the editor window. */
.rz-sheet-stack .ftag { position: absolute; z-index: 4; }
.rz-sheet-stack .ftag.t1 { top: -14px; left: -18px; }
.rz-sheet-stack .ftag.t2 { bottom: -14px; right: -16px; }

/* ── The layout grid ───────────────────────────────────────────── */
.rz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.rz-card {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2, #1A1C22);
  border: 1px solid var(--border-1, #2A2C36);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.rz-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2, #383B46);
  box-shadow: 0 14px 34px rgba(var(--shadow-rgb), .38);
}
.rz-card:focus-visible {
  outline: 2px solid var(--violet, #7C5CFF);
  outline-offset: 2px;
}

/* The page itself, at true A4 proportion so the preview is not
   distorted into a shape no printer makes. */
.rz-card-sheet {
  position: relative;
  aspect-ratio: 1 / 1.414;
  background: #FFFFFF;
  overflow: hidden;
}

.rz-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px 13px;
}
.rz-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-0, #F5F5F7);
}
.rz-card-layout {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .rz-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
  .rz-card-meta { padding: 9px 10px 11px; }
  .rz-card-name { font-size: 12.5px; }
  .rz-card-layout { font-size: 10px; }
  .rz-sheet-stack { max-width: 260px; }
  .rz-sheet-stack .ftag.t1 { top: -10px; left: -8px; }
  .rz-sheet-stack .ftag.t2 { bottom: -10px; right: -6px; }
}

/* The layout name on a template card is the template's accent used as
   a word. It arrives as --chip from great-wall-more.js, so the theme
   can bring it down to read on paper — the same mix the profession
   badges and the plan amounts use. */
.rz-card-layout,
.rz-card-meta em,
.gw-r-card em {
  color: color-mix(in srgb, var(--chip, currentColor) var(--ink-mix), var(--ink-with));
}
