/* Rockstar Virtual Solutions: Revision D, "Evergreen Ledger" (04-Marketing/_shared/brand.md).
   The brand layer over the kit, shared by the four pages. It loads after the kit's stylesheets and the
   :root block start.mjs printed; the kit's own files are never edited.
   Brand rules kept here: Spark #20EB01 only on dark grounds; Ledger green #1F6A10 for buttons, links and
   rules on light; sentence-case Archivo headings at 106%; Inter body; IBM Plex Mono labels; the accounting
   double underline, faint ruled lines and the logo's 40-degree slant bars as the signatures. */

:root {
  /* the brand over start.mjs brand: muted text on dark #A8B5A2, and the dark ground's action is the spark */
  --p-inv-muted: #a8b5a2;
  --p-inv-surface: #18211a;
  --p-inv-accent: #20eb01; --p-inv-accent-ink: #0e150c;
  --p-inv-action: #20eb01; --p-inv-action-ink: #0e150c;
  --p-accent-ink: #ffffff; --p-action-ink: #ffffff;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 500;
  --display-stretch: 106%;
  --spark: #20eb01;
  --ledger: #1f6a10;
  --ink-deep: #0e150c;
}
h1, h2, h3, .footer__lede, .btn--xl, .t-stat { font-stretch: var(--display-stretch); }

/* mono labels (IBM Plex Mono, sentence case, never tracked capitals) */
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.eyebrow { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--muted); margin: 0; }
.ground-inverse .eyebrow, .ground-inverse .hero__kicker { color: var(--spark); }
.hero__kicker { font-family: var(--font-mono); font-weight: 500; }

/* ---------------------------------------------------------------- the logo lockup: the mark, ROCKSTAR, Virtual Solutions */
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { height: 30px; width: auto; flex: none; }
.brand__word { font: 800 17px/1 var(--font-display); font-stretch: 118%; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.brand__sub { font: 400 13px/1 var(--font-text); color: var(--p-inv-muted); white-space: nowrap; }
.footer .brand img { height: 44px; }
.footer .brand__word { font-size: 24px; }
.footer .brand__sub { font-size: 15px; }
@media (max-width: 1100px) and (min-width: 640px) { .nav .brand__sub { display: none; } }
@media (max-width: 419px) { .footer .brand__sub { display: none; } }
@media (max-width: 639px) {
  .brand { gap: 8px; }
  .brand img { height: 26px; }
  .brand__word { font-size: 15px; }
  .nav .brand__sub { display: none; }
}

/* ---------------------------------------------------------------- dark heroes (the logo works on dark only) */
.hero.ground-inverse { background: var(--p-inv-bg); color: var(--p-inv-ink); }
.hero.ground-inverse .hero__lead { color: var(--p-inv-ink); }
.hero .hero__lead .muted { color: var(--p-inv-muted); }
.hero .ly-float { --bg: var(--p-inv-bg); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted); --line: color-mix(in oklab, var(--p-inv-ink) 16%, transparent); }
.ly-float .ly-float__title { font-family: var(--font-display); font-stretch: 106%; font-size: var(--t-card); }
.ly-float .ly-float__row span:first-child { font-family: var(--font-mono); }

/* ---------------------------------------------------------------- the ledger signatures */
/* the accounting double underline under the key word or total */
.dbl { position: relative; display: inline-block; white-space: nowrap; padding-bottom: 0.08em; }
.dbl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.06em; height: 7px;
  border-top: 2px solid var(--dbl, var(--ledger)); border-bottom: 2px solid var(--dbl, var(--ledger));
  transform-origin: left center;
}
.ground-inverse .dbl, .hero .dbl, .ly-float .dbl { --dbl: var(--spark); }
@media (prefers-reduced-motion: no-preference) {
  html.m-enter .hero .dbl::after { transform: scaleX(0); animation: dbl-draw 720ms cubic-bezier(.22,1,.36,1) 900ms forwards; }
}
@keyframes dbl-draw { to { transform: scaleX(1); } }

/* faint ruled lines inside a light panel, with the green margin line on its left */
.ruled {
  background-color: var(--p-bg);
  background-image:
    linear-gradient(to right, transparent 27px, color-mix(in oklab, var(--ledger) 40%, transparent) 27px 28px, transparent 28px),
    repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in oklab, var(--p-ink) 7%, transparent) 31px 32px);
}

/* faint ruled ledger lines across one light section of a page, the green margin line on the left line */
.ruled-ground {
  background-image:
    linear-gradient(to right, transparent calc(max(var(--gut), (100% - var(--container)) / 2) - 25px), color-mix(in oklab, var(--ledger) 35%, transparent) calc(max(var(--gut), (100% - var(--container)) / 2) - 25px) calc(max(var(--gut), (100% - var(--container)) / 2) - 24px), transparent calc(max(var(--gut), (100% - var(--container)) / 2) - 24px)),
    repeating-linear-gradient(to bottom, transparent 0 39px, color-mix(in oklab, var(--p-ink) 5%, transparent) 39px 40px);
}
@media (max-width: 639px) { .ruled-ground { background-image: repeating-linear-gradient(to bottom, transparent 0 39px, color-mix(in oklab, var(--p-ink) 5%, transparent) 39px 40px); } }

/* the logo's 40-degree slant bars, one SVG */
.slant { display: block; width: 88px; height: 56px; pointer-events: none; flex: none; }
.slant .s1 { fill: var(--ledger); } .slant .s2 { fill: #16400c; } .slant .s3 { fill: var(--spark); }

/* ---------------------------------------------------------------- photographs in a section (service: one radius) */
.photo { position: relative; overflow: hidden; margin: 0; border-radius: var(--r-lg); background: var(--surface); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.photo--side { height: min(600px, 100%); min-height: 480px; }
@media (max-width: 1023px) { .photo--side { height: auto; min-height: 0; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* ---------------------------------------------------------------- the headshot on a brand panel */
.portrait { position: relative; overflow: hidden; margin: 0; border-radius: var(--r-lg); background: var(--ledger); }
.portrait--ink { background: var(--ink-deep); }
.portrait > img { position: absolute; left: 50%; bottom: 0; width: auto; height: 92%; max-width: none; transform: translateX(-50%); }
.portrait > .slant { position: absolute; top: var(--s-5); right: var(--s-5); }
.portrait--ink > .slant .s1 { fill: #2b7d1a; }
.portrait-frame { height: min(560px, 100%); min-height: 460px; }
.hero__media.portrait { background: var(--ledger); }
/* founder portraits: an evergreen studio backdrop, ledger green behind the shoulders fading to ink */
.portrait:has(> img[data-subject="founder"]) { background: #0E150C; }
@media (max-width: 1023px) { main .split-fill > .wrap > .portrait:has(> img[data-subject="founder"]) { aspect-ratio: 1 / 1; height: auto; min-height: 0; } }
/* the founder photo carries its own evergreen backdrop, so it fills the whole panel */
.portrait > img[data-subject="founder"], .hero__media.portrait > img[data-subject="founder"] { inset: 0; left: 0; bottom: auto; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: 50% 18%; transform: none; }
.hero__media.portrait > img { inset: auto; left: 50%; bottom: 0; width: auto; height: 94%; max-width: none; object-fit: contain; transform: translateX(-50%); }
@media (max-width: 1023px) { .hero__media.portrait > img { height: 100%; } }

/* plan cards: what a package leaves out, in one line under its list */
.plan__out { margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-small); }
.plan__out .mono { display: block; color: var(--ink); margin-bottom: var(--s-1); font-size: var(--t-label); }

.card--plan > .btn { margin-top: auto; align-self: start; }
.card--plan { display: flex; flex-direction: column; }
.faq__photo { aspect-ratio: 4 / 3; margin-top: var(--s-7); }

/* the about page's tools column */
.tools__head { font: 500 var(--t-card)/1.3 var(--font-text); margin: 0 0 var(--s-5); }
.tools__note { margin: var(--s-5) 0 0; }

/* the form panel's ruled paper */
.ruled-panel { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in oklab, var(--p-ink) 6%, transparent) 31px 32px); }
@media (max-width: 1023px) { .portrait-frame { height: auto; min-height: 0; aspect-ratio: 1 / 1; margin-top: var(--s-7); } }

/* ---------------------------------------------------------------- package cards */
.card--plan { align-content: start; }
.plan__for { color: var(--muted); font-size: var(--t-small); margin: 0; }
.plan__price { display: flex; align-items: baseline; gap: var(--s-2); margin: 0; }
.plan__price b { font: var(--display-weight) var(--t-stat)/1 var(--font-display); font-stretch: 106%; letter-spacing: -0.01em; }
.plan__price > span { color: var(--muted); font-size: var(--t-small); }
.nw { white-space: nowrap; }
.card--plan .ticks { margin-top: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.plan__name { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.plan__tag { font: 500 var(--t-label)/1 var(--font-mono); color: #fff; background: var(--ledger); border-radius: 999px; padding: 6px 10px; }
.ticks { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.ticks svg { width: 20px; height: 20px; margin-top: 2px; }
.ticks circle { fill: color-mix(in oklab, var(--ledger) 14%, transparent); }
.ticks path { fill: none; stroke: var(--ledger); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 0; }
.ticks li.is-out svg circle { fill: color-mix(in oklab, var(--p-ink) 8%, transparent); }
.ticks li.is-out svg path { stroke: var(--p-muted); }
.ticks li.is-out { color: var(--muted); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card--plan:hover .ticks li:not(.is-out) path { animation: tick-draw 260ms cubic-bezier(.23,1,.32,1) both; }
  .card--plan:hover .ticks li:nth-child(2) path { animation-delay: 40ms; }
  .card--plan:hover .ticks li:nth-child(3) path { animation-delay: 70ms; }
  .card--plan:hover .ticks li:nth-child(4) path { animation-delay: 95ms; }
  .card--plan:hover .ticks li:nth-child(5) path { animation-delay: 115ms; }
  .card--plan:hover .ticks li:nth-child(6) path { animation-delay: 130ms; }
}
@keyframes tick-draw { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } }
.plan__rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------------------------------------------------------------- the proof ledger (dark band) */
.ledger-card { border-radius: var(--r-lg); background: var(--p-inv-surface); padding: var(--s-7); display: grid; gap: var(--s-5); position: relative; overflow: hidden; }
.ledger-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.ledger-card__title { font: var(--display-weight) var(--t-card)/1.3 var(--font-display); font-stretch: 106%; margin: var(--s-2) 0 0; }
.ledger-card dl { margin: 0; display: grid; }
.ledger-card dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: baseline; padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.ledger-card dt { color: var(--muted); }
.ledger-card dd { margin: 0; font: 500 var(--t-card)/1.2 var(--font-mono); font-variant-numeric: tabular-nums; }
.ledger-card dl > div:last-child { border-bottom: 0; }
.ledger-card dd.total { font-size: var(--t-stat); }

/* ---------------------------------------------------------------- tools: real icons, a product named in type when it has no mark */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--gutter); margin: 0; padding: 0; list-style: none; }
.tools li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--p-bg); min-height: 72px; }
.tools img { width: 40px; height: 40px; object-fit: contain; }
.tools .tool__type { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--ink-deep); color: var(--spark); font: 800 16px/1 var(--font-display); }
.tools strong { display: block; font-weight: 500; }
/* services: the three package cards fit one desktop screen */
@media (min-width: 1024px) { #packages .card--plan { row-gap: calc(var(--s-4) - 4px); } }
.tools .t-small { color: var(--muted); }
@media (max-width: 639px) { .tools { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- contact and the form */
.contact-lines { display: grid; gap: var(--s-5); margin: 0; }
.contact-lines dt { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--muted); }
.contact-lines dd { margin: var(--s-1) 0 0; font-size: var(--t-lead); overflow-wrap: anywhere; }
.contact-lines a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ledger); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--ledger) 40%, transparent); text-underline-offset: 4px; }
.form-panel { background: var(--p-surface); border-radius: var(--r-lg); padding: var(--s-7); }
.form-panel .form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.form-panel .form > .field--full, .form-panel .form > .btn-row, .form-panel .form > p { grid-column: 1 / -1; }
.form-panel .field :is(input, select, textarea) { background: var(--p-bg); }
.form-panel textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field .opt { color: var(--muted); font-weight: 400; }
@media (max-width: 639px) { .form-panel { padding: var(--s-5); } .form-panel .form { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- picture-develops host (as the kit's service model) */
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(560px, var(--ly-fit, 560px)); }
.develop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 3; margin-top: var(--s-7); } }

/* ---------------------------------------------------------------- the statement: its one strong word takes the double rule */
.statement strong { position: relative; }

/* ---------------------------------------------------------------- phones: a two-screen split fills its screens, the picture
   taking what the words leave, so the gaps between sections stay even */
@media (max-width: 639px) {
  .split-fill > .wrap { height: 100%; grid-template-rows: auto minmax(240px, 1fr); }
  .split-fill > .wrap > :is(.photo, .portrait, .ledger-card, .develop) { height: auto; min-height: 0; aspect-ratio: auto; margin-top: var(--s-7); }
  .plan--brief :is(.plan__desc, .ticks) { display: none; }
  .card--plan:has(.plan__out) { gap: var(--s-2); padding: var(--s-5); }
  .card--plan:has(.plan__out) > .btn { display: none; }
  .card--plan:has(.plan__out) .ticks { gap: 6px; padding-top: var(--s-4); }
  .card--plan:has(.plan__out) .plan__out { padding-top: var(--s-3); }
  .card--plan:has(.plan__out) .plan__out .mono { display: inline; margin-right: var(--s-2); }
  .card--plan:has(.plan__out) .ticks li { line-height: 1.4; }
  #packages .section-head:has(+ .grid > .card--plan .plan__out) > p { display: none; }
  .plan--brief { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-items: baseline; padding: var(--s-4) var(--s-5); }
  .plan--brief > .plan__name { grid-column: 1 / -1; }
  .plan--brief > :is(p, div) { margin: 0; }
  .plan--brief .plan__price b { font-size: var(--t-card); }
}
.actionbar.ground-inverse { background: var(--p-inv-bg); border-top-color: color-mix(in oklab, var(--p-inv-ink) 14%, transparent); }

/* ---------------------------------------------------------------- footer (dark: the logo works on dark only) */
.footer.ground-inverse .footer__legal a, .footer.ground-inverse .footer__col a { text-underline-offset: 3px; }
.footer .contact-small { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.footer .contact-small a { color: var(--ink); }
@media (max-width: 639px) { .footer__col--wide { display: none; } .closing__links .footer__col--contact { grid-column: 1 / -1; } }
.footer .contact-small a { overflow-wrap: anywhere; }

/* contact form honeypot: hidden from people, filled only by bots */
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
