/* =========================================================================
   Jean Pierre Dev — inner pages (/quanto-custa-um-site/ and the other search pages).
   Loaded after tokens.css + site.css: header, menu, buttons, chips, FAQ and footer come from there unchanged.
   The universe, lighter: no WebGL here. A still planet rendered by the site's own engine, CSS star dust and gold light;
   the full experience stays one click away on the home page.
   ========================================================================= */

/* ---------- Sky: fixed star dust behind everything (two tiles of different sizes, so the repeat never shows) ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: var(--z-stage);
  pointer-events: none;
  background:
    radial-gradient(52% 42% at 88% 8%, rgba(216, 182, 106, .07), transparent 72%),
    radial-gradient(40% 36% at 6% 96%, rgba(216, 182, 106, .045), transparent 70%),
    var(--c-void);
}
.sky::before, .sky::after { content: ""; position: absolute; inset: 0; }
.sky::before {
  opacity: .8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='509' height='509'%3E%3Ccircle cx='166' cy='80' r='1.05' fill='%23e8cc8c' fill-opacity='0.31'/%3E%3Ccircle cx='415' cy='51' r='0.9' fill='%23f4f2ee' fill-opacity='0.31'/%3E%3Ccircle cx='258' cy='23' r='0.8' fill='%23f4f2ee' fill-opacity='0.52'/%3E%3Ccircle cx='125' cy='280' r='0.55' fill='%23f4f2ee' fill-opacity='0.75'/%3E%3Ccircle cx='66' cy='116' r='1.05' fill='%23f4f2ee' fill-opacity='0.61'/%3E%3Ccircle cx='35' cy='297' r='0.55' fill='%23f4f2ee' fill-opacity='0.84'/%3E%3Ccircle cx='27' cy='434' r='0.7' fill='%23e8cc8c' fill-opacity='0.52'/%3E%3Ccircle cx='275' cy='290' r='0.9' fill='%23f4f2ee' fill-opacity='0.75'/%3E%3Ccircle cx='95' cy='295' r='1.05' fill='%23f4f2ee' fill-opacity='0.39'/%3E%3Ccircle cx='53' cy='361' r='0.9' fill='%23f4f2ee' fill-opacity='0.31'/%3E%3Ccircle cx='107' cy='345' r='0.8' fill='%23f4f2ee' fill-opacity='0.72'/%3E%3Ccircle cx='237' cy='467' r='0.7' fill='%23f4f2ee' fill-opacity='0.45'/%3E%3Ccircle cx='402' cy='354' r='0.6' fill='%23e8cc8c' fill-opacity='0.33'/%3E%3Ccircle cx='154' cy='252' r='0.7' fill='%23f4f2ee' fill-opacity='0.7'/%3E%3Ccircle cx='148' cy='495' r='0.55' fill='%23f4f2ee' fill-opacity='0.57'/%3E%3Ccircle cx='87' cy='175' r='0.8' fill='%23f4f2ee' fill-opacity='0.52'/%3E%3Ccircle cx='486' cy='43' r='0.9' fill='%23f4f2ee' fill-opacity='0.61'/%3E%3Ccircle cx='443' cy='161' r='1.05' fill='%23f4f2ee' fill-opacity='0.48'/%3E%3Ccircle cx='253' cy='403' r='0.55' fill='%23e8cc8c' fill-opacity='0.76'/%3E%3Ccircle cx='477' cy='242' r='1.05' fill='%23f4f2ee' fill-opacity='0.32'/%3E%3Ccircle cx='370' cy='159' r='0.9' fill='%23f4f2ee' fill-opacity='0.85'/%3E%3Ccircle cx='416' cy='147' r='0.8' fill='%23f4f2ee' fill-opacity='0.79'/%3E%3C/svg%3E");
}
.sky::after {
  opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='727' height='727'%3E%3Ccircle cx='329' cy='406' r='1.2' fill='%23e8cc8c' fill-opacity='0.55'/%3E%3Ccircle cx='369' cy='426' r='0.6' fill='%23f4f2ee' fill-opacity='0.74'/%3E%3Ccircle cx='346' cy='445' r='0.6' fill='%23f4f2ee' fill-opacity='0.33'/%3E%3Ccircle cx='222' cy='69' r='1.2' fill='%23f4f2ee' fill-opacity='0.79'/%3E%3Ccircle cx='460' cy='432' r='0.8' fill='%23f4f2ee' fill-opacity='0.83'/%3E%3Ccircle cx='474' cy='447' r='0.6' fill='%23e8cc8c' fill-opacity='0.64'/%3E%3Ccircle cx='602' cy='49' r='0.55' fill='%23f4f2ee' fill-opacity='0.39'/%3E%3Ccircle cx='178' cy='26' r='0.8' fill='%23f4f2ee' fill-opacity='0.47'/%3E%3Ccircle cx='429' cy='144' r='0.6' fill='%23f4f2ee' fill-opacity='0.64'/%3E%3Ccircle cx='363' cy='480' r='0.8' fill='%23f4f2ee' fill-opacity='0.65'/%3E%3Ccircle cx='296' cy='400' r='1.2' fill='%23e8cc8c' fill-opacity='0.33'/%3E%3Ccircle cx='187' cy='549' r='0.9' fill='%23f4f2ee' fill-opacity='0.44'/%3E%3Ccircle cx='54' cy='555' r='0.8' fill='%23f4f2ee' fill-opacity='0.34'/%3E%3Ccircle cx='213' cy='52' r='0.55' fill='%23f4f2ee' fill-opacity='0.76'/%3E%3C/svg%3E");
}

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: var(--s-2); }
.crumbs li + li::before { content: "/"; color: var(--c-text-off); }
.crumbs a { color: var(--c-text-dim); text-decoration: none; transition: color var(--d-fast) var(--ease-out); }
.crumbs a:hover { color: var(--c-signal); }
.crumbs [aria-current="page"] { color: var(--c-text-hi); }

/* ---------- Hero: the page's own planet, still, lit like on the home page ---------- */
.pg-hero {
  position: relative;
  z-index: var(--z-content);
  overflow: clip;
  padding-top: calc(var(--header-h) + var(--s-3));
  padding-bottom: var(--s-8);
}
/* phones: the planet hangs off the right edge and the title passes in front of its night side */
.pg-hero__art {
  position: relative;
  width: min(92vw, 560px);
  aspect-ratio: 1;
  margin: 0 calc(-1 * min(24vw, 150px)) calc(-1 * min(26vw, 150px)) auto;
  pointer-events: none;
}
.pg-hero__art::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(closest-side, rgba(232, 204, 140, .14), rgba(216, 182, 106, .05) 55%, transparent 72%);
}
.pg-hero__art img { position: relative; width: 100%; height: 100%; object-fit: contain; }
/* a ringed planet is wide and bright at the bottom: no title over its rings */
.pg-hero__art--wide { width: min(112vw, 720px); margin-right: calc(-1 * min(22vw, 190px)); margin-bottom: calc(-1 * var(--s-4)); }
.pg-hero__copy { position: relative; display: grid; gap: var(--s-5); }
/* long titles (a question, not two words like the home page): sized by the width AND the height of the screen, so the
   lead, prices and button still fit the first screen on a 1280x720 laptop */
.pg-hero__title {
  font-weight: var(--w-550);
  font-size: clamp(34px, 10.2vw, 60px);
  line-height: .96;
  letter-spacing: var(--ls-title);
  color: var(--c-text-hi);
  text-wrap: balance;
}
.pg-hero__title em { font-style: normal; color: var(--c-signal); }
/* phones and tablets: the trail and the title pass in front of the planet; a soft dark halo keeps them readable on its
   bright side (Jupiter's cream bands) without a visible box */
@media (max-width: 1023px) {
  .pg-hero .crumbs, .pg-hero__title { text-shadow: 0 0 16px rgba(4, 4, 4, .85), 0 1px 3px rgba(4, 4, 4, .7); }
}
.pg-hero__lead { max-width: 44ch; font-size: clamp(18px, 1.7vw, 22px); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); color: var(--c-text); }
.pg-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.pg-hero__ctas .btn--primary { width: 100%; }
.pg-hero__fine { font-size: var(--t-small); line-height: var(--lh-small); color: var(--c-text-dim); max-width: 52ch; }
.pg-hero__fine a { color: var(--c-text-hi); text-underline-offset: 3px; }
.pg-hero__fine a:hover { color: var(--c-signal); }

/* price chips under the lead: the two offers at a glance */
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tags .chip b { flex: none; font-weight: 500; color: var(--c-signal); white-space: nowrap; }
@media (max-width: 399px) { .tags .chip { letter-spacing: .03em; gap: 6px; padding-inline: 10px; } }

@media (min-width: 560px) {
  .pg-hero__ctas .btn--primary { width: auto; }
}
@media (min-width: 768px) {
  .pg-hero__title { font-size: clamp(44px, min(7.4vw, 8.6vh), 92px); }
  .pg-hero__art { width: 560px; margin-right: -120px; }
  .pg-hero__art--wide { width: 720px; margin-right: -200px; margin-bottom: -40px; }
}
/* computers, and phones held sideways: the planet goes to the right, beside the title */
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1200px), (min-width: 700px) and (orientation: landscape) and (max-height: 600px) {
  .pg-hero {
    display: flex;
    align-items: center;
    min-height: min(100vh, 980px);
    min-height: min(100svh, 980px);
    padding-top: calc(var(--header-h) + var(--s-7));
    padding-bottom: var(--s-9);
  }
  .pg-hero > .wrap { width: 100%; }
  .pg-hero__copy { max-width: min(58%, 780px); }
  .pg-hero__art {
    position: absolute;
    top: 50%;
    right: calc(-1 * min(11vw, 220px));
    width: min(52vw, 108vh, 940px);
    margin: 0;
    transform: translateY(-46%);
  }
  .pg-hero__art--wide { width: min(64vw, 120vh, 1180px); right: calc(-1 * min(20vw, 360px)); }
}

/* ---------- Sections ---------- */
.pg-sec {
  position: relative;
  z-index: var(--z-content);
  padding-block: var(--section-y);
  border-top: var(--border) solid var(--c-line);
  background: rgba(4, 4, 4, .74);
}
.pg-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); max-width: 980px; }
.pg-h2 {
  font-weight: var(--w-550);
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: var(--ls-statement);
  color: var(--c-text-hi);
  text-wrap: balance;
}
.pg-h3 {
  font-weight: var(--w-550);
  font-size: var(--t-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  color: var(--c-text-hi);
  text-wrap: balance;
}
.pg-intro { max-width: 60ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--c-text); }
.prose { display: grid; gap: var(--s-4); max-width: 66ch; }
.prose strong { font-weight: var(--w-600); color: var(--c-text-hi); }
.prose a, .pg-link { color: var(--c-text-hi); text-decoration: underline; text-decoration-color: var(--c-signal-line); text-underline-offset: 3px; transition: color var(--d-fast) var(--ease-out); }
.prose a:hover, .pg-link:hover { color: var(--c-signal); }
/* no single word left alone on the last line of running text */
.pg-sec p, .pg-sec li, .pg-cta p, .pg-hero__lead { text-wrap: pretty; }

/* two columns from the laptop on: title left, text right */
@media (min-width: 1024px) {
  .pg-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap) calc(var(--gap) * 2); align-items: start; }
  .pg-split > .pg-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* the short answer, first thing under a question (what search engines quote) */
.answer {
  position: relative;
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-6);
  border: var(--border) solid var(--c-line);
  border-left: 2px solid var(--c-signal);
  background: rgba(10, 10, 9, .86);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--c-text-hi);
}
.answer .label { display: block; margin-bottom: var(--s-2); font-size: var(--t-label); line-height: var(--lh-label); }

/* ---------- Points: three ideas side by side ---------- */
.points { display: grid; border-top: var(--border) solid var(--c-line-strong); }
.point { display: grid; align-content: start; gap: var(--s-3); padding-block: var(--s-6); border-bottom: var(--border) solid var(--c-line); }
.point__n { font-family: var(--font-mono); font-weight: 500; font-size: var(--t-label); letter-spacing: var(--ls-label); color: var(--c-signal); }
.point p { max-width: 46ch; }
@media (min-width: 768px) {
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: var(--border) solid var(--c-line); }
  .points--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .point { padding: var(--s-6) var(--s-5); border-bottom: 0; border-left: var(--border) solid var(--c-line); }
  /* the first column of every row sits on the title's edge; later rows get a rule on top */
  .points:not(.points--2) .point:nth-child(3n+1), .points--2 .point:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .points:not(.points--2) .point:nth-child(n+4), .points--2 .point:nth-child(n+3) { border-top: var(--border) solid var(--c-line); }
}

/* ---------- Comparison table (stacks into cards on phones) ---------- */
.cmp { width: 100%; border-collapse: collapse; }
.cmp caption { text-align: left; margin-bottom: var(--s-4); }
.cmp th, .cmp td { text-align: left; vertical-align: top; }
.cmp thead th {
  padding: var(--s-3) var(--s-4) var(--s-3) 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--t-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-text-dim);
  border-bottom: var(--border) solid var(--c-line-strong);
}
.cmp thead th:last-child { color: var(--c-signal); }
.cmp tbody th { padding: var(--s-4) var(--s-4) var(--s-4) 0; font-weight: var(--w-600); color: var(--c-text-hi); }
.cmp td { padding: var(--s-4) var(--s-4) var(--s-4) 0; color: var(--c-text); }
.cmp td:last-child { color: var(--c-text-hi); }
.cmp tbody tr { border-bottom: var(--border) solid var(--c-line); }
@media (max-width: 767px) {
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp tbody tr { padding-block: var(--s-4); }
  .cmp tbody th { padding: 0 0 var(--s-2); }
  .cmp td { padding: var(--s-1) 0; }
  .cmp td::before {
    content: attr(data-k);
    display: block;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: var(--t-label-xs);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--c-text-dim);
  }
  .cmp td:last-child::before { color: var(--c-signal); }
}
@media (min-width: 768px) {
  .cmp tbody th { width: 26%; }
  .cmp td { width: 37%; }
}

/* ---------- Offers: the two immersive sites, side by side ---------- */
.offers { display: grid; gap: var(--s-4); }
.offer {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--s-4);
  padding: var(--plate-pad);
  background: rgba(10, 10, 9, .9);
  border: var(--border) solid var(--c-line);
}
.offer--hi { background: rgba(18, 18, 17, .94); border-color: var(--c-signal-line); box-shadow: inset 0 2px 0 var(--c-signal); }
.offer__name { font-weight: var(--w-550); font-size: var(--t-heading); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); color: var(--c-text-hi); }
.offer__price { display: grid; gap: var(--s-1); padding-block: var(--s-3); border-block: var(--border) solid var(--c-line-strong); }
.offer__val { font-weight: var(--w-550); font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: var(--ls-statement); color: var(--c-text-hi); font-variant-numeric: tabular-nums; }
.offer__for { color: var(--c-text); max-width: 48ch; }
.offer .btn { justify-self: start; margin-top: var(--s-2); }
.offers__note { margin-top: var(--s-5); max-width: 70ch; font-size: var(--t-small); line-height: var(--lh-small); color: var(--c-text-dim); }
.offers__note a { color: var(--c-text-hi); text-underline-offset: 3px; }
@media (min-width: 900px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
}

/* ---------- Live demo: the home page is the sample ---------- */
.demo { display: grid; gap: var(--s-6); align-items: center; }
.demo__fig { position: relative; }
.demo__img { position: relative; aspect-ratio: 1983 / 793; background: var(--c-panel); border: var(--border) solid var(--c-line); overflow: hidden; }
.demo__img img { width: 100%; height: 100%; object-fit: cover; }
.demo__body { display: grid; gap: var(--s-5); justify-items: start; }
@media (min-width: 1024px) {
  .demo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--gap) * 2); }
}

/* ---------- Steps: the flight plan, flat ---------- */
.steps3 { display: grid; gap: 0; border-top: var(--border) solid var(--c-line-strong); counter-reset: none; }
.step3 { display: grid; gap: var(--s-2); padding-block: var(--s-5); border-bottom: var(--border) solid var(--c-line); }
.step3__n { font-family: var(--font-mono); font-weight: 500; font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-dim); }
.step3__n b { font-weight: 500; color: var(--c-signal); }
.step3 p { max-width: 52ch; }
@media (min-width: 1024px) {
  .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step3 { padding: var(--s-6) var(--s-5) var(--s-6) 0; }
  .step3 + .step3 { padding-left: var(--s-5); border-left: var(--border) solid var(--c-line); }
}

/* ---------- Work strip: published projects (links to the portfolio) ---------- */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.work__item { display: grid; gap: var(--s-2); text-decoration: none; color: inherit; }
.work__img { aspect-ratio: 960 / 675; background: var(--c-panel); border: var(--border) solid var(--c-line); overflow: hidden; }
.work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--d-slow) var(--ease-out); }
.work__item:hover .work__img img { transform: scale(1.03); }
.work__cat { font-family: var(--font-mono); font-size: var(--t-label-xs); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-dim); }
.work__t { font-weight: var(--w-600); color: var(--c-text-hi); line-height: 1.25; }
.work__note { margin-top: var(--s-5); font-size: var(--t-small); line-height: var(--lh-small); color: var(--c-text-dim); max-width: 70ch; }
@media (min-width: 1024px) { .work { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); } }

/* ---------- Related pages ---------- */
.rel { border-top: var(--border) solid var(--c-line-strong); }
.rel a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-5);
  border-bottom: var(--border) solid var(--c-line);
  text-decoration: none;
  color: inherit;
}
.rel__k { grid-column: 1; font-family: var(--font-mono); font-weight: 500; font-size: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--c-text-dim); }
.rel__t { grid-column: 1; font-weight: var(--w-550); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.15; letter-spacing: var(--ls-heading); color: var(--c-text-hi); transition: color var(--d-fast) var(--ease-out); }
.rel .i { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; color: var(--c-text-dim); transition: color var(--d-fast) var(--ease-out), transform var(--d-base) var(--ease-out); }
.rel a:hover .rel__t { color: var(--c-signal); }
.rel a:hover .i { color: var(--c-signal); transform: translate(3px, -3px); }

/* ---------- Closing call ---------- */
.pg-cta { position: relative; z-index: var(--z-content); padding-block: var(--section-y); border-top: var(--border) solid var(--c-line); background: radial-gradient(60% 70% at 50% 100%, var(--c-signal-wash), transparent 70%), rgba(4, 4, 4, .8); }
.pg-cta__plate { display: grid; gap: var(--s-5); justify-items: start; }
.pg-cta__title { font-weight: var(--w-550); font-size: var(--t-statement); line-height: var(--lh-statement); letter-spacing: var(--ls-statement); color: var(--c-text-hi); text-wrap: balance; max-width: 22ch; }
.pg-cta__p { max-width: 56ch; }
.pg-cta .pg-hero__ctas { margin-top: var(--s-2); }

/* FAQ on these pages: one column under the title on phones, the home page's grid from the laptop on */
.pg-faq .faq__a p + p { margin-top: var(--s-3); }

/* footer: the three columns live in site.css (the home page has them too); the texture credit is styled here */
.ftr__list a[aria-current="page"] { color: var(--c-signal); }
.ftr__credit { margin-top: var(--s-2); font-size: var(--t-small); color: var(--c-text-dim); }
.ftr__credit a { color: var(--c-text); text-underline-offset: 3px; }

/* print: the page as a document */
@media print {
  .sky, .pg-hero__art { display: none !important; }
  .pg-sec, .pg-cta { background: none; }
}

/* v6 r3: the home's type system carries over: the small labels are Figtree 500 13px in sentence case, not mono caps */
.cmp thead th, .cmp td::before, .step3__n, .work__cat, .rel__k, .point__n {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
