/* VirtualStagingCo — theme
   Warm white #FAF9F6 / charcoal #1A1D20 / walnut-brass #9A7B4F. No gradients, no glow.
   Minimum font size 12px everywhere. */

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --sunken: #F2EFE9;
  --ink: #1A1D20;
  --ink-2: #3A3D40;
  --muted: #625E57;
  --line: #E5DFD5;
  --line-strong: #CFC6B8;
  --brass: #9A7B4F;
  --brass-dark: #7A6140;
  --brass-tint: #F4EEE4;
  --ok: #2F5D45;
  --ok-tint: #EAF2EC;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --gf-sticky-offset: 88px;
}

/* Never override the engine's hidden state */
[hidden] { display: none !important; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: 1440px; }
.wrap--narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 18px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { border-color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.btn.btn--primary, a.btn.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.btn--primary:hover { background: #000; border-color: #000; color: var(--bg); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 246, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 2px; position: relative; }
.brand__mark::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 6px; background: var(--brass); }
.brand__name { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: 0.005em; }
.brand__accent { color: var(--brass); }

.site-nav { display: flex; gap: 22px; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }

.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-burger { display: none; }

.member-bar { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.member-bar__credits {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink-2); white-space: nowrap;
}
.member-bar__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.member-bar__login {
  appearance: none; cursor: pointer; padding: 7px 16px; border-radius: 4px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-size: 14px; white-space: nowrap;
}
.member-bar__login:hover { background: #000; }
.member-bar__login:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------- Main ---------- */
main { display: block; min-height: 60vh; }

.studio { padding: 28px 0 56px; }
.studio__intro { margin-bottom: 20px; max-width: 820px; }
.studio__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em;
}
.studio__sub { margin: 0; color: var(--muted); font-size: 15px; }
.studio__tool { min-width: 0; }

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 52px 0 56px; background: var(--surface); }
.trust__title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.3vw, 32px); margin: 0 0 28px; }
.trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trust__card { border-top: 2px solid var(--ink); padding-top: 16px; }
.trust__card h3 { font-size: 16px; margin: 0 0 8px; font-weight: 600; }
.trust__card p { margin: 0; color: var(--muted); font-size: 15px; }
.trust__card a { color: var(--brass-dark); }

/* ---------- Page heads ---------- */
.page-head, .tool-head { padding: 52px 0 28px; }
.page-head__title, .tool-head__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.01em;
}
.page-head__lead, .tool-head__lead { margin: 0; font-size: 18px; color: var(--muted); max-width: 720px; }
.page-head__cta { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.page-head--legal { padding-bottom: 12px; }
.page-head--pricing { text-align: center; }
.page-head--pricing .page-head__lead { margin: 0 auto; }

.tool-wrap { padding: 0 0 40px; }
.tool-box { min-width: 0; }
.tool-cta { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.tool-cta a { color: var(--brass-dark); }

/* ---------- Prose ---------- */
.prose { padding: 24px 24px 48px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(24px, 2.2vw, 30px); line-height: 1.25; margin: 48px 0 14px;
}
.prose h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 30px 0 8px; line-height: 1.4; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--brass); }
.prose a { color: var(--brass-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  margin: 0 0 22px; padding: 14px 18px; border-left: 3px solid var(--brass);
  background: var(--brass-tint); color: var(--ink); border-radius: 0 4px 4px 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-size: 15px; background: var(--sunken); padding: 1px 6px; border-radius: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table {
  display: block; width: 100%; overflow-x: auto; border-collapse: collapse;
  margin: 0 0 24px; font-size: 15px; line-height: 1.5;
}
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 120px; }
.prose th { font-weight: 600; color: var(--ink); background: var(--sunken); border-bottom: 1px solid var(--line-strong); }
.prose--legal { font-size: 16px; }
.prose--legal h2 { font-size: 22px; margin-top: 36px; }

/* ---------- Next-step box ---------- */
.page-next { padding-bottom: 64px; }
.page-next__box { border: 1px solid var(--line); border-top: 2px solid var(--ink); background: var(--surface); padding: 24px 26px; border-radius: 0 0 6px 6px; }
.page-next__box p { margin: 0 0 14px; color: var(--muted); }
.page-next__box p:last-child { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.page-next__title { font-family: var(--serif); font-size: 22px; color: var(--ink) !important; }

/* ---------- Pricing ---------- */
.pricing { padding: 8px 0 24px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px 24px;
}
.plan--featured { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan__badge {
  position: absolute; top: -12px; left: 24px; margin: 0;
  background: var(--brass); color: #FFFFFF; font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 3px;
}
.plan__name { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-dark); }
.plan__price { margin: 0; font-family: var(--serif); font-size: 44px; line-height: 1.1; color: var(--ink); }
.plan__credits { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.plan__per { margin: 2px 0 18px; font-size: 14px; color: var(--muted); }
.plan__list { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); flex: 1; font-size: 15px; color: var(--ink-2); }
.plan__list li { position: relative; padding-left: 20px; margin: 0 0 10px; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; background: var(--brass); border-radius: 1px; }
.pricing__note { margin: 22px auto 0; max-width: 760px; text-align: center; font-size: 14px; color: var(--muted); }
.pricing__note a { color: var(--brass-dark); }

.pay-notice { margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--line-strong); border-left: 3px solid var(--brass); background: var(--brass-tint); border-radius: 4px; }
.pay-notice--ok { border-left-color: var(--ok); background: var(--ok-tint); }
.pay-notice p { margin: 0; font-size: 15px; }
.pay-notice a { color: var(--ink); }
.pay-notice__title { font-weight: 600; margin-bottom: 4px !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 44px 0 28px; font-size: 14px; color: var(--muted); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.site-footer__about p { margin: 0 0 10px; max-width: 360px; }
.site-footer__about a { color: var(--ink-2); }
.site-footer__brand { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col a { color: var(--ink-2); text-decoration: none; }
.site-footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__head { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.site-footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.site-footer__bottom p { margin: 0; font-size: 13px; }
.site-footer__disclaimer { flex: 1 1 520px; max-width: 860px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav { gap: 16px; font-size: 13px; }
  .site-header__inner { gap: 20px; }
}

@media (max-width: 980px) {
  :root { --gf-sticky-offset: 0px; }
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px; padding: 10px; cursor: pointer; order: 3; margin-left: 4px;
    border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  }
  .nav-burger span { display: block; height: 1.5px; background: var(--ink); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; padding: 8px 24px 16px; font-size: 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--brass); outline-offset: 2px; }
  .member-bar { order: 2; }
  .trust__grid, .plans { grid-template-columns: 1fr; gap: 20px; }
  .plans { max-width: 480px; margin: 0 auto; gap: 28px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 56px; }
  .wrap { padding: 0 16px; }
  .site-header__inner { gap: 10px; }
  .brand__name { font-size: 18px; }
  .member-bar { gap: 8px; font-size: 13px; }
  .member-bar__credits { padding: 4px 10px; }
  .member-bar__login { padding: 6px 12px; font-size: 13px; }
  .studio { padding: 18px 0 40px; }
  .studio__sub { font-size: 14px; }
  .page-head, .tool-head { padding: 32px 0 18px; }
  .page-head__lead, .tool-head__lead { font-size: 16px; }
  .prose { padding: 16px 16px 40px; font-size: 16px; }
  .trust { padding: 40px 0 44px; }
}

@media (max-width: 420px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
