/* Refine the approved DYNAMIX reference without changing its visual language. */
.refined {
  --refine-ease: cubic-bezier(.22, .68, 0, 1.01);
  --refine-muted: rgba(235, 235, 245, .74);
}
.refined.modal-open { position: fixed; inset-inline: 0; width: 100%; overflow: hidden; }

.refined :is(a, button):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.refined .btn {
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.refined .btn:active { transform: scale(.98); }
.refined .hero .btn-glass { background-color: rgba(15, 22, 27, .24); }
.refined .hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: rgba(245, 245, 247, .78);
  font-size: 12px;
  text-decoration: none;
}
.refined .hero-scroll .ic { width: 16px; height: 16px; }

/* Every option is visible before the first interaction. */
.refined .ways { padding: 120px 0; }
.refined .section-head { max-width: none; }
.refined .section-head p { color: var(--refine-muted); }
.refined .membership-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 22px);
  margin-top: 40px;
  padding: 0 var(--gutter);
  overflow: visible;
  scroll-snap-type: none;
}
.refined .membership-grid .feature {
  min-width: 0;
  transform: none;
  perspective: none;
}
.refined .membership-grid .feature-inner {
  display: block;
  width: 100%;
  min-height: 450px;
  aspect-ratio: 3 / 4.8;
  padding: 0;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 26px;
  transform: none;
  filter: none;
  background: #182024;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.refined .membership-grid .feature img {
  transform: scale(1.01);
  transition: transform .8s var(--refine-ease);
}
.refined .membership-grid .feature-shade {
  background: linear-gradient(0deg, rgba(4, 9, 12, .96) 0%, rgba(4, 9, 12, .83) 20%, rgba(4, 9, 12, .2) 65%, rgba(4, 9, 12, .04) 100%);
}
.refined .membership-grid .feature-copy {
  inset: auto 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
}
.refined .membership-grid .feature-tag {
  min-height: 19px;
  margin: 0 0 10px;
  color: rgba(245, 245, 247, .78);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}
.refined .membership-grid .feature-name {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 67px;
  font-size: clamp(29px, 2.75vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
}
.refined .membership-grid .feature-name small {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}
.refined .membership-grid .feature-name strong { display: block; font-weight: 700; }
.refined .membership-grid .feature-line {
  min-height: 44px;
  margin-top: 14px;
  color: rgba(245, 245, 247, .8);
  font-size: 14px;
  line-height: 1.45;
}
.refined .feature-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.refined .membership-grid .feature-price {
  margin: 0;
  white-space: nowrap;
  line-height: 1.15;
}
.refined .membership-grid .feature-price strong { font-size: 25px; letter-spacing: -.03em; }
.refined .membership-grid .feature-price small {
  display: block;
  margin-top: 5px;
  color: rgba(245, 245, 247, .68);
  font-size: 11px;
  font-weight: 400;
}
.refined .feature-open { width: 44px; height: 44px; }
.refined .feature-open .ic { width: 18px; height: 18px; transition: transform .3s var(--refine-ease); }
.refined .membership-grid .is-gold .feature-inner { border-color: rgba(224, 178, 94, .46); }
.refined .membership-grid .is-gold :is(.feature-tag, .feature-name) { color: #e9c992; }
.refined .membership-grid .is-gold .feature-open { background-color: rgba(224, 178, 94, .12); }
.refined .ways-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--gutter) 0; }
.refined .membership-terms { max-width: 53ch; color: var(--refine-muted); font-size: 11px; line-height: 1.6; }
.refined .ways-footer .text-link { flex: none; }
.refined .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  transition: color .2s ease, border-color .2s ease;
}
.refined .text-link .ic { width: 18px; height: 18px; transition: transform .25s var(--refine-ease); }

/* A compact comparison of the differences, followed by shared benefits. */
.refined .compare { padding: 120px var(--gutter) 60px; }
.refined .compare-head { gap: 24px; margin-bottom: 28px; }
.refined .compare-head h2 { max-width: 13ch; }
.refined .compare-intro { max-width: 34ch; color: var(--refine-muted); font-size: 17px; line-height: 1.5; }
.refined .comparison-key {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 18px;
  color: var(--refine-muted);
  font-size: 12px;
}
.refined .comparison-key > span { display: inline-flex; align-items: center; gap: 8px; }
.refined .comparison-key .ic { width: 16px; height: 16px; color: var(--blue); }
.refined .comparison-key .no { background: rgba(245, 245, 247, .48); }
.refined .table-wrap {
  overflow: visible;
  background: rgba(19, 26, 30, .6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), 0 20px 60px rgba(0, 0, 0, .15);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.refined .matrix { border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.refined .matrix thead th {
  top: 82px;
  padding: 0;
  text-align: center;
  vertical-align: top;
  background: rgba(24, 31, 35, .95);
}
.refined .matrix thead th:first-child { width: 32%; padding: 28px; text-align: left; }
.refined .matrix thead th:last-child { background: rgba(43, 40, 31, .96); }
.refined .plan-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 145px;
  padding: 25px 10px 24px;
  border-radius: 12px;
  transition: background-color .2s ease;
}
.refined .col-eyebrow { min-height: 17px; font-size: 11px; color: var(--refine-muted); line-height: 1.4; }
.refined .col-name { margin-top: 5px; font-size: 22px; line-height: 1.1; }
.refined .c3 .col-name { color: #e9c992; }
.refined .col-price { margin-top: 14px; font-size: 28px; line-height: 1.15; letter-spacing: -.025em; }
.refined .col-price small { display: block; margin: 3px 0 0; font-size: 11px; }
.refined .matrix tbody tr.row th {
  padding: 21px 28px;
  font-size: 15px;
  line-height: 1.4;
}
.refined .row-label { display: block; font-weight: 700; }
.refined .row-note { display: block; margin-top: 4px; color: var(--refine-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.refined .matrix tbody td { width: auto; padding: 21px 10px; text-align: center; vertical-align: middle; }
.refined .matrix tbody td.c3 { background: rgba(224, 178, 94, .025); }
.refined .matrix tbody tr.row + tr.row > * { border-top-color: rgba(255, 255, 255, .1); }
.refined .matrix tbody tr:last-child > :first-child { border-bottom-left-radius: 28px; }
.refined .matrix tbody tr:last-child > :last-child { border-bottom-right-radius: 28px; }
.refined .matrix .yes { justify-content: center; }
.refined .matrix .yes .ic { width: 20px; height: 20px; }
.refined .matrix .no { width: 12px; background: rgba(245, 245, 247, .38); }
.refined .cell-value { display: inline-block; color: var(--blue); font-size: 14px; font-weight: 700; line-height: 1.4; }
.refined .c3 .cell-value { color: #e9c992; }
.refined .cell-value small { display: block; margin-top: 3px; color: var(--refine-muted); font-size: 11px; font-weight: 400; }
.refined .compare-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-top: 26px; }
.refined .compare-footer .text-link { flex: 0 1 auto; }
.refined .compare-footer .fine { max-width: 48ch; margin: 8px 0 0; color: var(--refine-muted); text-align: right; font-size: 11px; line-height: 1.6; }

/* Quiet, tangible shared benefits. All three photographs fit in the layout. */
.refined .included { padding: 60px var(--gutter) 120px; scroll-margin-top: 30px; }
.refined .included-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.refined .included h2 { max-width: 18ch; padding: 0; }
.refined .included-head p { max-width: 30ch; color: var(--refine-muted); font-size: 17px; }
.refined .amenity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.refined .amenity-grid .tile { min-width: 0; transform: none; }
.refined .amenity-grid .tile-media { aspect-ratio: 4 / 3; border-radius: 22px; box-shadow: none; background: #1b2428; }
.refined .amenity-grid .tile img { transition: transform .8s var(--refine-ease); }
.refined .amenity-grid .tile figcaption { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; color: var(--text); }
.refined .amenity-index { flex: none; color: rgba(245, 245, 247, .5); font-size: 11px; font-variant-numeric: tabular-nums; }
.refined .amenity-name { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.refined .amenity-essentials { display: flex; justify-content: space-between; gap: 20px; list-style: none; margin: 38px 0 0; padding: 24px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.refined .amenity-essentials li { display: flex; align-items: center; gap: 10px; color: var(--refine-muted); font-size: 14px; }
.refined .amenity-essentials .ic { width: 16px; height: 16px; color: var(--blue); }

/* The dialog stays in place; its actions remain available while details scroll. */
.refined .sheet { overflow: hidden; padding: 0; width: min(620px, calc(100vw - 40px)); max-height: min(860px, calc(100dvh - 48px)); background: rgba(22, 29, 33, .97); }
.refined .sheet[open] { display: flex; flex-direction: column; animation: refined-sheet-in .28s var(--refine-ease) both; }
.refined .sheet-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.refined .sheet-media { aspect-ratio: 2.25; overflow: hidden; }
.refined .sheet-media img { object-fit: cover; }
.refined .sheet-close { position: absolute; top: 16px; right: 16px; z-index: 4; background-color: rgba(5, 12, 17, .5); }
.refined .sheet-body { padding: 28px 36px 32px; }
.refined .sheet-line { max-width: 40ch; font-size: 16px; }
.refined .sheet-price-row { margin-top: 22px; padding: 17px 0; }
.refined .sheet-h { margin-top: 26px; font-size: 15px; }
.refined .sheet-list { margin-top: 16px; gap: 13px; }
.refined .sheet-list li { line-height: 1.45; }
.refined .sheet-list .ic { flex: none; }
.refined .sheet-common { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); color: var(--refine-muted); font-size: 13px; line-height: 1.5; }
.refined .sheet-common .sheet-h { margin: 0 0 8px; color: var(--text); }
.refined .sheet-actions { flex: none; position: relative; padding: 18px 36px 20px; border-top: 1px solid var(--hair); background: #161d21; }
.refined .sheet-actions .sheet-cta { margin: 0; width: 100%; min-height: 50px; }
.refined .sheet-actions .fine { margin: 10px 0 0; max-width: none; font-size: 10px; line-height: 1.5; color: var(--refine-muted); }
.refined .sheet::backdrop { background: rgba(0, 0, 0, .63); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes refined-sheet-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (hover: hover) and (pointer: fine) {
  .refined .btn:hover, .refined .circle:hover { transform: none; }
  .refined .btn-primary:hover { box-shadow: inset 0 1px 0 #fff, 0 6px 22px rgba(0, 0, 0, .2); }
  .refined .hero .btn-glass:hover { background-color: rgba(255, 255, 255, .14); }
  .refined .membership-grid .feature-inner:hover { border-color: rgba(255, 255, 255, .45); box-shadow: 0 22px 55px rgba(0, 0, 0, .35); }
  .refined .membership-grid .feature-inner:hover img { transform: scale(1.055); }
  .refined .membership-grid .feature-inner:hover .feature-open .ic { transform: translateX(3px); }
  .refined .membership-grid .is-gold .feature-inner:hover { border-color: rgba(233, 201, 146, .85); }
  .refined .text-link:hover { color: var(--blue); border-color: var(--blue); }
  .refined .text-link:hover .ic { transform: translateX(4px); }
  .refined .plan-heading:hover { background: rgba(255, 255, 255, .065); }
  .refined .amenity-grid .tile:hover img { transform: scale(1.035); }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .refined .membership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .refined .membership-grid .feature-inner { min-height: 440px; aspect-ratio: 4 / 5; }
  .refined .membership-grid .feature-name { font-size: 40px; }
  .refined .membership-grid .feature-line { min-height: 23px; }
  .refined .matrix thead th:first-child { width: 29%; padding: 20px; }
  .refined .matrix tbody tr.row th { padding: 20px; }
  .refined .col-name { font-size: 18px; }
  .refined .col-price { font-size: 24px; }
  .refined .amenity-grid { gap: 16px; }
  .refined .amenity-name { font-size: 17px; }
}

@media (max-width: 760px) {
  .refined { --gutter: 20px; }
  .refined .hero { min-height: max(660px, 100svh); }
  .refined .hero-scroll { bottom: 103px; }
  .refined .ways { padding: 80px 0; }
  .refined .section-head p { max-width: 26ch; margin-top: 16px; font-size: 17px; }
  .refined .membership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
  .refined .membership-grid .feature-inner { min-height: 346px; aspect-ratio: 1 / 1.7; border-radius: 20px; }
  .refined .membership-grid .feature-copy { inset: auto 15px 17px; gap: 0; }
  .refined .membership-grid .feature-tag { min-height: 28px; margin-bottom: 5px; font-size: 10px; line-height: 1.3; }
  .refined .membership-grid .feature-name { min-height: 53px; font-size: clamp(25px, 6.7vw, 36px); }
  .refined .membership-grid .feature-name small { margin-bottom: 5px; font-size: 11px; }
  .refined .membership-grid .feature-line { min-height: 63px; margin-top: 12px; font-size: 14px; line-height: 1.5; }
  .refined .feature-bottom { gap: 4px; margin-top: 16px; padding-top: 14px; }
  .refined .membership-grid .feature-price strong { font-size: 23px; }
  .refined .membership-grid .feature-price small { font-size: 10px; }
  .refined .feature-open { width: 44px; height: 44px; }
  .refined .feature-open .ic { width: 17px; height: 17px; }
  .refined .ways-footer { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 22px; }
  .refined .ways-footer .text-link { order: -1; }
  .refined .membership-terms { font-size: 10px; max-width: 42ch; }
  .refined .text-link { font-size: 13px; gap: 20px; }
  .refined .compare { padding: 80px var(--gutter) 40px; }
  .refined .compare-head { display: block; margin-bottom: 24px; }
  .refined .compare-head h2 { max-width: 14ch; }
  .refined .compare-intro { max-width: 30ch; margin-top: 18px; font-size: 16px; }
  .refined .comparison-key { justify-content: flex-start; gap: 18px; margin-bottom: 17px; font-size: 11px; }
  .refined .table-wrap { border-radius: 20px; }
  .refined .matrix { display: block; width: 100%; }
  .refined .matrix thead { display: block; position: sticky; top: 65px; z-index: 6; }
  .refined .matrix thead tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .refined .matrix thead th { position: static; display: block; width: auto; min-width: 0; padding: 0; background: rgba(24, 31, 35, .97); }
  .refined .matrix thead th:first-child { display: none; }
  .refined .matrix thead th:nth-child(2) { border-top-left-radius: 20px; }
  .refined .matrix thead th:last-child { border-top-right-radius: 20px; background: rgba(43, 40, 31, .97); }
  .refined .plan-heading { min-height: 118px; padding: 18px 3px 16px; }
  .refined .plan-heading:focus-visible { outline-offset: -4px; }
  .refined .col-eyebrow { min-height: 14px; font-size: 9px; }
  .refined .col-name { margin-top: 4px; font-size: clamp(13px, 3.55vw, 18px); letter-spacing: -.03em; }
  .refined .col-price { margin-top: 12px; font-size: clamp(19px, 5.2vw, 25px); }
  .refined .col-price small { margin-top: 4px; font-size: 9px; }
  .refined .matrix tbody { display: block; }
  .refined .matrix tbody tr.row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 0 10px; }
  .refined .matrix tbody tr.row + tr.row { border-top: 1px solid rgba(255, 255, 255, .12); }
  .refined .matrix tbody tr.row + tr.row > * { border-top: 0; }
  .refined .matrix tbody tr.row th { grid-column: 1 / -1; width: auto; padding: 18px 15px 8px; text-align: left; font-size: 13px; }
  .refined .row-note { margin-top: 3px; font-size: 11px; }
  .refined .matrix tbody td { display: flex; align-items: center; justify-content: center; width: auto; min-width: 0; min-height: 44px; padding: 9px 3px; font-size: 12px; }
  .refined .matrix tbody td.c3 { background: transparent; }
  .refined .matrix .yes .ic { width: 18px; height: 18px; }
  .refined .cell-value { font-size: 11px; line-height: 1.4; }
  .refined .cell-value small { margin-top: 2px; font-size: 9px; }
  .refined .compare-footer { display: block; padding-top: 20px; }
  .refined .compare-footer .fine { margin-top: 19px; max-width: 43ch; text-align: left; font-size: 10px; }
  .refined .included { padding: 40px var(--gutter) 80px; }
  .refined .included-head { display: block; margin-bottom: 28px; }
  .refined .included h2 { max-width: 13ch; }
  .refined .included-head p { margin-top: 18px; font-size: 16px; }
  .refined .amenity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .refined .amenity-grid .tile:first-child { grid-column: 1 / -1; }
  .refined .amenity-grid .tile-media { aspect-ratio: 1; border-radius: 18px; }
  .refined .amenity-grid .tile:first-child .tile-media { aspect-ratio: 4 / 3; }
  .refined .amenity-grid .tile figcaption { gap: 8px; margin-top: 13px; }
  .refined .amenity-index { font-size: 9px; }
  .refined .amenity-name { font-size: 16px; line-height: 1.25; }
  .refined .amenity-essentials { display: grid; gap: 15px; margin-top: 28px; padding: 22px 0; }
  .refined .amenity-essentials li { gap: 12px; font-size: 14px; }
  .refined .sheet { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .refined .sheet[open] { animation: refined-sheet-in .28s var(--refine-ease) both; }
  .refined .sheet-media { aspect-ratio: 2.1; }
  .refined .sheet-body { padding: 24px 24px 28px; }
  .refined .sheet-close { top: 12px; right: 12px; }
  .refined .sheet-body h2 { font-size: 33px; }
  .refined .sheet-line { font-size: 15px; }
  .refined .sheet-list { font-size: 14px; }
  .refined .sheet-actions { padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 359px) {
  .refined { --gutter: 16px; }
  .refined .membership-grid { gap: 10px; }
  .refined .membership-grid .feature-copy { left: 12px; right: 12px; }
  .refined .membership-grid .feature-name { font-size: 22px; }
  .refined .membership-grid .feature-price strong { font-size: 21px; }
  .refined .feature-bottom { gap: 0; }
  .refined .col-name { font-size: 12px; }
  .refined .col-price { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .refined .sheet[open], .refined .hero-copy { animation: none; }
  .refined .membership-grid .feature-inner img, .refined .amenity-grid .tile img { transform: none !important; }
  .refined .feature-open .ic, .refined .text-link .ic { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .refined .glass, .refined .table-wrap, .refined .sheet { background: #1c252a; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .refined .matrix thead th { background: #182126; }
  .refined .matrix thead th:last-child { background: #2b281f; }
  .refined .sheet::backdrop { background: rgba(0, 0, 0, .85); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Keep controls stable when opening a modal adds back the scrollbar width. */
html { scrollbar-gutter: stable; }
.refined .text-link > span:last-child { transition: transform .25s var(--refine-ease); }
@media (hover:hover) and (pointer:fine) { .refined .text-link:hover > span:last-child { transform: translate(2px,-2px); } }
@media (max-width:760px) {
  .refined .col-eyebrow { font-size: 10px; }
  .refined .c2 .col-eyebrow, .refined .c3 .col-eyebrow { visibility: hidden; }
}
@media (max-width:760px) {
  /* The mobile tab bar already makes the sections discoverable. */
  .refined .hero-scroll { display: none; }
}
/* Keep the floating wordmark readable as section content passes beneath it. */
.refined .topbar { isolation: isolate; }
.refined .topbar::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 92px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, #060708 0%, rgba(6,7,8,.96) 58%, rgba(6,7,8,0));
  opacity: 0;
  transition: opacity .2s ease;
}

.refined .topbar.is-scrolled::before { opacity: 1; }
/* Anchor destinations include the title, without an extra section's worth of air. */
.refined :is(.ways, .compare) { scroll-margin-top: -80px; }
.refined .included { scroll-margin-top: -24px; }
@media (max-width:760px) { .refined :is(.ways, .compare) { scroll-margin-top: -64px; } }
