/* ============================================================================
   Build · What it costs. Build's page only, on top of service.css: stone,
   hairlines, mono labels and the copper accent, as the bench and the run
   already wear them. Left, the five builds as photo cards in one frame, a card
   at a time; right, the same five as a list that is the frame's index.
   ========================================================================== */

.pr {
  background: var(--stone); color: var(--stone-ink);
  padding-block: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--stone-line);
}
.pr__inner { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.pr__mark { margin: 0 0 var(--sc-5); font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--stone-accent); }
.pr__lead h2 { margin: 0; color: var(--stone-ink); }
.pr__lead .sc-body { margin: var(--sc-3) 0 0; color: var(--stone-soft); max-width: 44ch; font-size: var(--sc-t-lg); line-height: 1.45; }

/* The founding line: why the numbers are low, said once, up top. A night
   strip with the copper edge the run's "In detail" button wears. */
.pr__founding {
  position: relative; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem;
  margin: var(--sc-7) 0; padding: var(--sc-4) var(--sc-5);
  border-radius: var(--sc-r-md);
  background: linear-gradient(180deg, #2A221A, #1A140F); color: #EFE3D2;
  box-shadow: 0 10px 30px -18px rgba(20, 16, 12, .7);
}
.pr__founding::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, #5E250D 0%, #A24A22 16%, #E08A5C 30%, #F2B08A 40%, #C0602F 50%, #7A3314 66%, #B4552A 82%, #E3935F 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7;
}
.pr__founding-label { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .14em; text-transform: uppercase; color: #F0B65E; white-space: nowrap; }
.pr__founding p { margin: 0; font-size: var(--sc-t-base); line-height: 1.45; }

.pr__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }

/* -------------------------------------------------------------- the frame --
   One card shows; the frame clips the rest, so nothing of the next card is in
   view. pricing.js moves the track by transform only, never by scrolling, so
   a drag never waits on layout. touch-action leaves vertical swipes to the
   page and hands sideways ones to the script. */
.pr__carousel { min-width: 0; }
.pr__viewport {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--sc-r-lg); background: #14100C;
  box-shadow: 0 26px 50px -30px rgba(20, 16, 12, .85);
  touch-action: pan-y; cursor: grab; outline: none;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.pr__viewport.is-dragging { cursor: grabbing; }
.pr__viewport:focus-visible { outline: 2px solid var(--stone-accent); outline-offset: 4px; }
.pr__track { display: flex; will-change: transform; transform: translate3d(0, 0, 0); }
.pr__card {
  flex: 0 0 100%; position: relative; overflow: hidden;
  min-height: 40rem; display: flex; align-items: flex-end; color: #F4ECDF;
}
/* a little wider than its card, so the photo can trail the card (parallax) */
.pr__card img {
  position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%;   /* the site's img cap would stop it at 100% and leave a strip */
  object-fit: cover; pointer-events: none; will-change: transform;
}
.pr__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.05) 0%, rgba(20,16,12,.55) 36%, rgba(20,16,12,.95) 60%); }
.pr__copy { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; padding: var(--sc-6); }
.pr__tag {
  align-self: flex-start; margin: 0 0 var(--sc-3); padding: .2rem .6rem;
  border: 1px solid currentColor; border-radius: 999px;
  font-family: var(--sc-font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #F0B65E;
}
.pr__card h3 { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-xl); letter-spacing: var(--sc-track-snug); line-height: 1.1; }
.pr__for { margin: var(--sc-3) 0 0; color: #CDBFAB; font-size: var(--sc-t-sm); line-height: 1.5; }
.pr__price { display: grid; gap: .2rem; margin: var(--sc-5) 0 var(--sc-4); }
.pr__now { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
/* every price is a starting point: "from", small and quiet, so the number still reads first */
.pr__from { margin-right: .15em; font-family: var(--sc-font-mono); font-weight: 400; font-size: var(--sc-t-xs); letter-spacing: .04em; color: #CDBFAB; }
.pr__row .pr__from { margin-right: .1em; color: var(--stone-soft); }
.pr__was { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .04em; color: #CDBFAB; }
.pr__list { list-style: none; margin: 0 0 var(--sc-5); padding: 0; display: grid; gap: .5rem; }
.pr__list li { position: relative; padding-left: 1.4rem; color: #CDBFAB; font-size: var(--sc-t-sm); line-height: 1.5; }
.pr__list li::before { content: ""; position: absolute; left: 0; top: .66em; width: .7rem; height: 1px; background: #F0B65E; }
.pr__list a { color: #F0B65E; text-underline-offset: 3px; }
.pr__foot {
  margin-top: auto; padding-top: var(--sc-5); border-top: 1px solid rgba(244, 236, 223, .14);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.pr__time { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .1em; text-transform: uppercase; color: #CDBFAB; }
.pr__start, .pr__odd {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
  font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm);
}
.pr__start { color: #F0B65E; }
.pr__start span, .pr__odd span { transition: translate var(--sc-d-fast) var(--sc-ease-out); }
.pr__start:hover span, .pr__odd:hover span { translate: 3px 0; }

/* under the frame: back, where you are, how far, on */
.pr__nav { display: flex; align-items: center; gap: 1rem; margin-top: var(--sc-5); }
.pr__arrow {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #7A3314, #B4552A 55%, #D98A5C);
  box-shadow: 0 6px 16px -8px rgba(122, 51, 20, .6);
  transition: transform .2s var(--sc-ease-out), opacity .2s var(--sc-ease-out);
}
.pr__arrow svg { width: 1rem; height: 1rem; fill: none; stroke: #FFF3E6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pr__arrow:hover { transform: translateY(-1px); }
.pr__arrow:active { transform: scale(.94); }
.pr__arrow:disabled { opacity: .3; cursor: default; transform: none; }
.pr__arrow:focus-visible { outline: 2px solid #7A3314; outline-offset: 3px; }
.pr__count { font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .1em; color: var(--stone-soft); white-space: nowrap; }
.pr__count b { color: var(--stone-ink); font-weight: 500; }
.pr__bar { flex: 1; position: relative; overflow: hidden; height: 2px; background: var(--stone-line); }
.pr__bar i { position: absolute; inset: 0; background: var(--stone-accent); transform-origin: 0 50%; transform: scaleX(var(--f, .4)); transition: transform .35s var(--sc-ease-out); }
/* until pricing.js takes the frame there is no stepping, and the list beside
   it has every price anyway */
.pr__carousel:not(.is-live) .pr__nav { display: none; }

/* -------------------------------------------------------------- the index -- */
.pr__sub {
  margin: var(--sc-6) 0 0; padding-bottom: var(--sc-3); border-bottom: 1px solid var(--stone-line-2);
  font-family: var(--sc-font-mono); font-size: var(--sc-t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--stone-accent);
}
.pr__sub:first-child { margin-top: 0; }
.pr__sub span { margin-left: .75rem; letter-spacing: .06em; text-transform: none; color: var(--stone-soft); }
.pr__index { display: grid; }
.pr__row {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  width: 100%; margin: 0; padding: var(--sc-3) var(--sc-3) var(--sc-3) 1rem; text-align: left; cursor: pointer;
  background: none; border: 0; border-top: 1px solid var(--stone-line); color: var(--stone-ink); font: inherit;
  transition: background .25s var(--sc-ease-out);
}
.pr__row:first-child { border-top: 0; }
.pr__row::before {
  content: ""; position: absolute; left: 0; top: .7rem; bottom: .7rem; width: 2px; border-radius: 2px;
  background: var(--stone-accent); transform: scaleY(0); transition: transform .3s var(--sc-ease-out);
}
.pr__row:hover { background: color-mix(in oklab, var(--stone-raised) 70%, transparent); }
.pr__row[aria-current="true"] { background: var(--stone-raised); }
.pr__row[aria-current="true"]::before { transform: scaleY(1); }
.pr__row:focus-visible { outline: 2px solid var(--stone-accent); outline-offset: -2px; }
.pr__row-name, .pr__row-price, .pr__care dt, .pr__care dd { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-base); }
.pr__row-price, .pr__care dd { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr__row-name small, .pr__care dt span { display: block; margin-top: .15rem; font-family: var(--sc-font-text); font-weight: 400; font-size: var(--sc-t-sm); color: var(--stone-soft); }
.pr__row-price small, .pr__care dd small { display: block; margin-top: .15rem; font-family: var(--sc-font-mono); font-weight: 400; font-size: var(--sc-t-xs); color: var(--stone-soft); }
/* care is not a card to step to, so plain rows on the same insets */
.pr__care { margin: 0; display: grid; }
.pr__care > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: var(--sc-3) var(--sc-3) var(--sc-3) 1rem; border-top: 1px solid var(--stone-line);
}
.pr__care > div:first-child { border-top: 0; }
.pr__care dd { margin: 0; }
/* quieter than the index rows above, which are buttons: these are only facts */
.pr__care dt, .pr__care dd { font-weight: 500; font-size: var(--sc-t-sm); }
.pr__odd { margin: var(--sc-5) 0 0 1rem; color: var(--stone-accent); }

/* ------------------------------------------------------- terms, then call -- */
.pr__terms {
  list-style: none; margin: var(--sc-8) 0 0; padding: var(--sc-6) 0 0; border-top: 1px solid var(--stone-line-2);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sc-5) var(--sc-6);
}
.pr__terms li { color: var(--stone-soft); font-size: var(--sc-t-sm); line-height: 1.5; }
.pr__terms b { display: block; margin-bottom: .35rem; font-family: var(--sc-font-mono); font-weight: 500; font-size: var(--sc-t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--stone-ink); }
.pr__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-4) var(--sc-6); margin-top: var(--sc-7); }
/* beside the call: the questions before booking (faq.css draws the pop-up) */
.pr__ask {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .4rem 1.05rem .4rem .4rem; border-radius: 999px; cursor: pointer;
  background: var(--stone-raised); border: 1px solid var(--stone-line-2);
  font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-sm); color: var(--stone-ink);
  box-shadow: 0 6px 16px -12px rgba(20, 16, 12, .5);
  transition: transform .25s var(--sc-ease-out), box-shadow .25s var(--sc-ease-out), border-color .25s var(--sc-ease-out);
}
.pr__ask-mark {
  display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: linear-gradient(135deg, #7A3314, #B4552A 55%, #D98A5C); color: #FFF3E6;
  font-family: var(--sc-font-display); font-weight: 700; font-size: .9rem; line-height: 1;
}
.pr__ask:hover { transform: translateY(-1px); border-color: color-mix(in oklab, var(--stone-accent) 45%, transparent); box-shadow: 0 10px 22px -12px rgba(122, 51, 20, .55); }
.pr__ask:active { transform: scale(.97); }
.pr__ask:focus-visible { outline: 2px solid var(--stone-accent); outline-offset: 3px; }

@media (max-width: 1100px) {
  .pr__grid { grid-template-columns: 1fr; }
  .pr__carousel { max-width: 40rem; scroll-margin-top: .75rem; }   /* where a row tap brings it */
  .pr__terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pr__card { min-height: 36rem; }
  .pr__copy { padding: var(--sc-5); }
  .pr__terms { grid-template-columns: 1fr; }
}
/* Phones: the chat button parks over the list's right edge, which is where
   the prices were. Each price drops under its name instead, and the rows keep
   clear of the button's column, so nothing reads from behind it. */
@media (max-width: 600px) {
  .pr__row, .pr__care > div { flex-direction: column; align-items: flex-start; gap: .35rem; padding-right: 3.75rem; }
  .pr__row-price, .pr__care dd { text-align: left; white-space: normal; }
  .pr__row-price small, .pr__care dd small { display: inline-block; margin: 0 0 0 .6rem; }
  .pr__odd { display: block; margin-right: 3.75rem; }   /* wrapped, the arrow stays with the words */
}
@media (prefers-reduced-motion: reduce) {
  .pr__bar i, .pr__row, .pr__row::before, .pr__arrow, .pr__ask { transition: none; }
}
