/* ===========================================================
   OpenVaultStudio.com — shared stylesheet
   Warm editorial look: cream paper background, serif headings,
   pull-quote style callouts instead of flat colored boxes.
   =========================================================== */

:root {
  --paper: #faf6ef;
  --paper-2: #f2ebdd;
  --ink: #2b2620;
  --ink-soft: #5c5346;
  --ink-faint: #8a8072;
  --rule: #e3d9c4;
  --rule-strong: #d3c6a8;
  --accent: #a8462f;
  --accent-dark: #7d3220;
  --green: #4b7a52;
  --gold: #a97a1f;
  --plum: #6a5a8f;
  --white: #ffffff;
  --radius: 8px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

p { margin: 0 0 1.1em; }

img, iframe { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / nav ---------- */

header.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 500;
}

nav.main-nav > a { color: var(--ink-soft); }
nav.main-nav > a:hover { color: var(--accent); text-decoration: none; }

.dropdown { position: relative; }

.dropdown > button {
  font: inherit;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
}
.dropdown > button:hover { color: var(--accent); }
.dropdown > button::after {
  content: "▾";
  font-size: 0.7em;
  margin-top: 2px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(43,38,32,0.14);
  min-width: 220px;
  padding: 8px;
  margin-top: 8px;
}

.dropdown-group-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  color: var(--ink-faint);
  padding: 10px 12px 4px;
}

.dropdown-divider {
  height: 1px;
  background: var(--rule);
  margin: 6px 4px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a,
.flyout-menu a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}
.dropdown-menu a:hover,
.flyout-menu a:hover { background: var(--paper-2); text-decoration: none; }
.dropdown-menu .num,
.flyout-menu .num {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-top: 1px;
}

/* Platform rows: top level of the Ways to Earn menu shows platforms only */
.platform-item { position: relative; }

.platform-trigger {
  width: 100%;
  font: inherit;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  text-align: left;
}
.platform-item:hover > .platform-trigger,
.platform-item:focus-within > .platform-trigger {
  background: var(--paper-2);
  color: var(--accent);
}

.flyout-arrow {
  color: var(--ink-faint);
  font-size: 1.1em;
  line-height: 1;
  transition: transform .15s ease, color .15s ease;
}
.platform-item:hover .flyout-arrow,
.platform-item:focus-within .flyout-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Slide-out submenu: each platform's ways to earn */
.flyout-menu {
  display: block;
  position: absolute;
  top: -9px;
  left: 100%;
  z-index: 60;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(43,38,32,0.14);
  min-width: 320px;
  max-height: 78vh;
  overflow-y: auto;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
}

.platform-item:hover .flyout-menu,
.platform-item:focus-within .flyout-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--rule);
}
.hero h1 { font-family: var(--serif); font-size: 2.2rem; margin: 0 0 14px; }
.hero p.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 700px; }
.hero .badge-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* ---------- Content blocks ---------- */

main { padding: 40px 0 80px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.3; color: var(--ink); }
h2 { font-size: 1.55rem; margin-top: 2.4em; }
h3 { font-size: 1.2rem; margin-top: 1.8em; }

.subtitle { color: var(--ink-soft); font-size: 1.05rem; margin-top: -6px; }

.hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(43,38,32,0.14);
  margin: 20px 0 8px;
}

.card {
  border: none;
  border-left: 3px solid var(--rule-strong);
  border-radius: 0 6px 6px 0;
  padding: 22px 24px 22px 28px;
  margin: 24px 0;
  background: var(--paper-2);
  position: relative;
}
.card h3 {
  font-style: italic;
  font-weight: 600;
  margin-top: 0;
}

.card.plain-english {
  border-left-color: var(--accent);
  background: #f9ece5;
}
.card.plain-english::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  left: -6px;
  font-family: var(--serif);
  font-size: 3.2rem;
  color: var(--accent);
  opacity: 0.28;
  line-height: 1;
}
.card.plain-english h3 { color: var(--accent-dark); }

.card.tip { border-left-color: var(--green); background: #eef4ee; }
.card.tip h3 { color: var(--green); }

.card.warning { border-left-color: var(--accent-dark); background: #f8ece8; }
.card.warning h3 { color: var(--accent-dark); }

.card.money { border-left-color: var(--gold); background: #f8f0dd; }
.card.money h3 { color: var(--gold); }

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 0.88rem;
  margin: 10px 0 6px;
}
.byline a { color: var(--ink-soft); font-weight: 600; }
.byline .dot { color: var(--rule-strong); }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.72rem;
  flex: 0 0 auto;
}

.sources-list { margin: 16px 0; padding-left: 0; list-style: none; }
.sources-list li {
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  background: var(--paper);
}
.sources-list li a { font-weight: 600; }
.sources-list .src-desc { color: var(--ink-faint); display: block; margin-top: 2px; font-size: 0.85rem; }

.card.trust h3 { margin-top: 0; font-style: normal; }
.card.trust ul { margin: 8px 0 0; padding-left: 20px; }
.card.trust li { margin-bottom: 6px; }

.card.donate {
  border-left-color: var(--plum);
  background: #f1eef6;
  text-align: center;
  padding: 28px 24px;
}
.card.donate h3 { margin-top: 0; color: var(--plum); font-style: normal; }
.card.donate p { max-width: 520px; margin: 0 auto 18px; color: var(--ink-soft); }
.btn-donate {
  display: inline-block;
  background: var(--plum);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background .15s;
}
.btn-donate:hover { background: #564a78; text-decoration: none; color: #ffffff; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 4px 46px;
  margin-bottom: 26px;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-family: var(--serif);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.steps h3 { margin: 0 0 6px; font-size: 1.05rem; font-style: normal; }
.steps p { margin: 0 0 8px; }

.glossary { display: grid; gap: 14px; }
.glossary dt { font-weight: 700; color: var(--ink); font-family: var(--serif); }
.glossary dd { margin: 2px 0 0; color: var(--ink-soft); }

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  margin: 18px 0 6px;
}
.video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.video-caption { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 10px; }

table.compare { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.92rem; }
table.compare th, table.compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
table.compare th { color: var(--ink-faint); font-weight: 600; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.method-card {
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow .15s, transform .15s;
}
.method-card:hover { box-shadow: 0 10px 24px rgba(43,38,32,0.10); transform: translateY(-2px); }
.method-card .tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); font-weight: 700; }
.method-card h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.method-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.method-card a.card-link { display: block; margin-top: 12px; font-weight: 600; font-size: 0.9rem; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-faint);
  font-weight: 700;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
  margin-top: 60px;
  padding-top: 20px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 34px 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
footer.site-footer .footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
footer.site-footer a { color: var(--ink); font-weight: 600; }
footer.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site-footer .footer-contact { margin: 8px 0 0; font-size: 0.88rem; }
footer.site-footer .footer-contact a { font-weight: 600; }

@media (max-width: 720px) {
  nav.main-nav { display: none; }
  .hero h1 { font-size: 1.7rem; }
}
